Option to switch $BLACK and $WHITE
Gdbinit currently references $BLACK three places, as $COLOR_REGVAL and two times in context, while $WHITE isn't used anywhere.
My terminals background color is black, so I can't see the black text without selecting it.
I propose you add an option (eg. $BLACK_BACKGROUND) which when set, switches $BLACK and $WHITE, so people with black terminals, can see the text.
Good idea, let me work on something :-)
Hummm, I was just testing it. You can do something to workaround this to avoid adding this kind of cases to the main code. Just create a ~/.gdbinit.local to set your colors. That will be compatible with any new versions since the vars will be overridden with that local config file.
CHANGME: If you want to modify the "theme" change the colors here
or just create a ~/.gdbinit.local and set these variables there
set $COLOR_REGNAME = $GREEN set $COLOR_REGVAL = $BLACK <- change to $WHITE set $COLOR_REGVAL_MODIFIED = $RED set $COLOR_SEPARATOR = $BLUE set $COLOR_CPUFLAGS = $RED
The problem is the two uses of $BLACK in context (under some objc stuff) which requires you to change $BLACK.