[PATCH] specify arguments to debugee from commandline (second try)

Tom Tromey tromey@redhat.com
Fri Apr 6 08:44:00 GMT 2001


>>>>> "Eli" == Eli Zaretskii <eliz@delorie.com> writes:

>> Likewise I'd like to be able to simply insert `gdb --run' into shell
>> scripts or any other program-launching code to get the debugger to do
>> the tedious work for me.

Eli> Wouldn't such use get you in trouble in some cases anyway?  The
Eli> arguments you put after "gdb --run" are evaluated by the shell,
Eli> so what GDB sees is not exactly what you typed.  I'd imagine that
Eli> in some cases this would produce subtle differences between "gdb
Eli> --run" and issuing the `run' command inside GDB.

I don't understand.  Can you give an example?

Maybe you mean that redirections won't work as expected.  That's true.
I agree that is something that should be addressed.

Tom



More information about the Gdb-patches mailing list