Just-in-time debugging on Linux

Tom Tromey tromey@redhat.com
Mon Jun 10 09:25:00 GMT 2002

>>>>> "phi" == phi  <phi@hpfrcu81.france.hp.com> writes:

phi> Then wrap them up in a script 
phi> rename prog xyz into xyz.ori  this doesn't modify the prog?
phi> then implement the script xyz that does

phi> xyz::
phi> #! your shell
phi> gdb xyz.ori $@

This doesn't really work.  One problem is that the inferior won't
start running automatically.  The other problem is that I/O
redirections get hosed (I think).

I do think this would be a useful feature for gdb.  I've wanted it for
a number of years now, but haven't had the time to implement it.

Incidentally your script is missing a `--args'.


More information about the Gdb mailing list