Find out if GUI active in .gdbinit

Ben Elliston bje@redhat.com
Tue Jan 21 10:58:00 GMT 2003


>>>>> "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



More information about the Gdb mailing list