This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Find out if GUI active in .gdbinit
- From: Ben Elliston <bje at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: 21 Jan 2003 21:58:54 +1100
- Subject: Re: Find out if GUI active in .gdbinit
- Organization: Red Hat Asia-Pacific Pty Ltd
- References: <3E2884ED.50F6AF9D@bigfoot.de> <3E2C1BA5.2040900@redhat.com>
>>>>> "Fernando" == Fernando Nasser <fnasser@redhat.com> writes:
Fernando> Nothing that I can remember off the top of my head. But
Fernando> it would be a good idea to set a gdb convenience variable
Fernando> $nw so one could perform this test. Maybe you should open
Fernando> a bug report (enhancement request) for that.
Is it possible to (roughly) do this by examining the DISPLAY variable
using `show environment'? Now, I know that it's still possible that
you might want to run gdb -nw on an X display, but this might be
sufficient for the original poster's needs?
Cheers, Ben