[Crash-utility] "gdb" by itself ought to put crash into a "gdb" mode
Dave Anderson
anderson at redhat.com
Wed Mar 14 13:37:08 UTC 2012
----- Original Message -----
> Hi,
>
> I might actually write the patch for this one. Piping back to crash,
> as useful as it would be, requires too much context shuffling. Here,
> all that'd be necessary is a "we are in pass through to gdb" mode
> meaning that the "gdb " prefix to gdb commands would not be necessary.
> Just monitor the input for a "crash" line and flip the bit. It's a
> nuisance to have to remember that prefix when typing a long series of
> gdb commands that mostly work as crash commands.
>
> Possible? Thanks ! Regards, Bruce
Definitely sounds possible. Maybe create a new "gdb" environment
variable that can be flipped with "set gdb on/off" commands. Then
check for the mode in process_command_line() and exec_input_file()
and insert/shift the "gdb" string into args[0].
Dave
More information about the Crash-utility
mailing list