Optionally print source code to gdb console window
Tom Tromey
tom@tromey.com
Thu May 9 13:58:17 GMT 2024
>>>>> "Bob" == Bob Rossi <bob@brasko.net> writes:
Bob> I saw in the NEWS file,
Bob> show print frame-info
Bob> This controls what frame information is printed by the commands printing
Bob> a frame. This setting will e.g. influence the behaviour of 'backtrace',
Bob> 'frame', 'stepi'. The python frame filtering also respect this setting.
Bob> The 'backtrace' '-frame-info' option can override this global setting.
Yeah, sorry. I was hoping to find some simpler way but I think there
isn't one.
Bob> A new option, but separate from the existing frame-info command, as to
Bob> not impact other areas of gdb.
Bob> set print frame-info-source-line off
Bob> This is very similar to your approach, however, it lets the user choose
Bob> whatever they want with print frame-info, and then it lets cgdb "subtract" the
Bob> source-line printing from the console in only that case (and not bt case).
Bob> What do you think about this crazyiness?
Works for me.
Tom
More information about the Gdb-patches
mailing list