From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Seitz To: Paul@Netburner.com Cc: insight@sourceware.cygnus.com Subject: Re: .gdbinit initialization and GUI... Date: Mon, 10 Jul 2000 05:32:00 -0000 Message-id: <3969C263.58E14DEF@firetalk.com> References: <20000709204737.1214.qmail@web3507.mail.yahoo.com> X-SW-Source: 2000-q3/msg00042.html Paul Breed wrote: > > I want to write a GDB script that > loads a specific symbol table and the connects to the > (already running) target. I can easily do this with > GDB, but when the Insight GUI gets involved things > don't work like you expect. > I would expect some runtime differences when using a script. There are still quite a few disconnects between the GUI and the "command line"... > How do I tell the GUI that GDB has already connected > to > the target so it won't try to connect again when I hit > the run button? Simple. Using the target dialog, click the "more options" button to reveal the hidden pane. The options here are the default actions taken when the user presses the Run button. Simply turn off "Download" and "Attach" and keep "Continue". > Also the GUI sometimes gets confused and puts up the > hourglass when it should not, is there any way to > reset this? If you have a console window open, you can enter the command "tk gdbtk_idle". This will make the GUI "idle" (ready for user input). Whenever the GUI is "busy" like this (and it shouldn't be), it means that an error happened within the depths of gdb and GUI didn't check for it/expect it. If you open a debug window, you might be able to find out why this is happening and stop it altogether. (Set environment variable "GDBTK_DEBUG" > 1 to open a debug window. Set it to 1 to allow it to be opened via the "Windows" menu.) Keith