This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Find out if GUI active in .gdbinit


Hello,
how can I find out if the GUI (Insight) is running while executing
.gdbinit. I want to take different steps when -nw is given (especially
issue some tk commands if Insight is active).

And secondly, how can I source a gdb commandfile only if it exists?
Something like
if file exists $HOME/second.gdb
  source $HOME/second.gdb
endif

What is the way to do this in gdb (within .gdbinit)?

Thanks for help. (If possible, CC: to my mailaddress)
  Achim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]