* how to mimic redirection with gdb?
@ 2003-11-21 14:13 Jack Howarth
2003-11-21 16:36 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Jack Howarth @ 2003-11-21 14:13 UTC (permalink / raw)
To: gdb
Is there any way to do the following in gdb? I am debugging a
molecular dynamics program that executes the commands contained in
input script files. The program has just been rebuilt with IBM XL
Fortran which has exposed some pre-existing problems with the code.
However I am having trouble looking at the segfaults in gdb because
they only happen at the end of the execution of one of these input
scripts.
What I need to mimic in gdb is the following...
xplor < sa-rama.inp > sa-rama.out &
which is how it is normally used. Are there any tricks that will
do this so that the program can be debugged without rewriting the
code? It is unclear to me if there is any way to mimic this
shell redirection on the gdb command line when I issue additional
arguments after the 'run' command.
Thanks in advance for any hints.
Jack Howarth
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: how to mimic redirection with gdb?
2003-11-21 14:13 how to mimic redirection with gdb? Jack Howarth
@ 2003-11-21 16:36 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-11-21 16:36 UTC (permalink / raw)
To: gdb
On Fri, Nov 21, 2003 at 09:12:46AM -0500, Jack Howarth wrote:
> Is there any way to do the following in gdb? I am debugging a
> molecular dynamics program that executes the commands contained in
> input script files. The program has just been rebuilt with IBM XL
> Fortran which has exposed some pre-existing problems with the code.
> However I am having trouble looking at the segfaults in gdb because
> they only happen at the end of the execution of one of these input
> scripts.
> What I need to mimic in gdb is the following...
>
> xplor < sa-rama.inp > sa-rama.out &
>
> which is how it is normally used. Are there any tricks that will
> do this so that the program can be debugged without rewriting the
> code? It is unclear to me if there is any way to mimic this
> shell redirection on the gdb command line when I issue additional
> arguments after the 'run' command.
Have you tried using run with these options (minus the &)?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-21 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-21 14:13 how to mimic redirection with gdb? Jack Howarth
2003-11-21 16:36 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox