Adding architecture-specific commands in GDB
Tom Tromey
tom@tromey.com
Fri Sep 4 16:04:12 GMT 2026
>>>>> "Matthieu" == Matthieu Longo via Gdb <gdb@sourceware.org> writes:
>> Maybe I'm wrong, in which case I'd love to see some counter examples,
>> but the set/show command are usually for settings that are set by the
>> user of GDB, and the show reads back the setting.
>>
>> Viewing kernel data would normally be an 'info' command.
Matthieu> What would the opposite of 'info' be ?
Matthieu> If for instance, I wanted to change a value in one of those tables ?
There isn't really one, but I guess you could introduce some new,
arch-specific prefix.
Somewhere I think there was some rationale for the show/info split,
though I no longer remember it. I'm not sure it is totally coherent any
more. But in most cases 'set' affects gdb, not the inferior. (Except
'set variable'. And other cases you may discover.)
Tom
More information about the Gdb
mailing list