Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable or disable coloring depending on who is executing .gdbinit #30

Open
giomasce opened this issue Apr 11, 2016 · 4 comments
Open

Enable or disable coloring depending on who is executing .gdbinit #30

giomasce opened this issue Apr 11, 2016 · 4 comments

Comments

@giomasce
Copy link

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.

@gdbinit
Copy link
Owner

gdbinit commented Apr 11, 2016

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

@giomasce
Copy link
Author

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?

@gdbinit
Copy link
Owner

gdbinit commented Apr 11, 2016

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

@rr999888tw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants