Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: Re: how to mimic redirection with gdb?
Date: Fri, 21 Nov 2003 16:36:00 -0000	[thread overview]
Message-ID: <20031121163617.GB27120@nevyn.them.org> (raw)
In-Reply-To: <200311211412.JAA18330@bromo.msbb.uc.edu>

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


      reply	other threads:[~2003-11-21 16:36 UTC|newest]

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

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=20031121163617.GB27120@nevyn.them.org \
    --to=drow@mvista.com \
    --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