Gdbinit icon indicating copy to clipboard operation
Gdbinit copied to clipboard

Enable or disable coloring depending on who is executing .gdbinit

Open giomasce opened this issue 8 years ago • 4 comments

Hi, thanks for this nice script.

Every now and then I use your .gdbinit with ddd, which is confused by the color codes. Is there any way to enable color if gdb is executing and disable it if ddd is executing?

Thanks, Giovanni.

giomasce avatar Apr 11 '16 09:04 giomasce

There is a configuration option for that. You should never blindly execute scripts on your machine ;-)

gdbinit avatar Apr 11 '16 13:04 gdbinit

I know there is an option to disable colors. But I was hoping for that option to be automatically selected or not depending on the program used to debug, without me having to modify the configuration file. Is this possible?

giomasce avatar Apr 11 '16 13:04 giomasce

No idea, I don't use ddd. I guess not.

gdbinit avatar Apr 11 '16 13:04 gdbinit

@giomasce
gdb --nh is what u r looking for

rr999888tw avatar Sep 26 '18 14:09 rr999888tw