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] |
Achim Bursian wrote:
Nothing that I can remember off the top of my head. But it would be a good idea to set a gdb convenience variable $nw so one could perform this test. Maybe you should open a bug report (enhancement request) for that.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).
Alias the gdb command to a shell script that checks for the file existence and calls gdb with the appropriate -x flag argument.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)?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |