[Crash-utility] "gdb" by itself ought to put crash into a "gdb" mode

Bruce Korb bruce.korb at gmail.com
Wed Mar 14 16:01:42 UTC 2012


On 03/14/12 06:37, Dave Anderson wrote:
>> 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].

I did the patch as a "flags2" flag bit.
"gdb_cmd()" already leaves the first bytes of the command alone,
but I found it difficult to leave it alone.  I eliminated the
extra copy....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.patch
Type: text/x-patch
Size: 3820 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120314/382a02cc/attachment.bin>


More information about the Crash-utility mailing list