Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jack Howarth <howarth@bromo.msbb.uc.edu>
To: gdb@sources.redhat.com
Subject: how to mimic redirection with gdb?
Date: Fri, 21 Nov 2003 14:13:00 -0000	[thread overview]
Message-ID: <200311211412.JAA18330@bromo.msbb.uc.edu> (raw)

     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


             reply	other threads:[~2003-11-21 14:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21 14:13 Jack Howarth [this message]
2003-11-21 16:36 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311211412.JAA18330@bromo.msbb.uc.edu \
    --to=howarth@bromo.msbb.uc.edu \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox