This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Just-in-time debugging on Linux
>>>>> "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'.
Tom