public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: Problem with Insight GUI mode
@ 2003-10-07 13:57 Thorsten Brehm
  0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Brehm @ 2003-10-07 13:57 UTC (permalink / raw)
  To: keiths; +Cc: insight

Hey,

I found the following email on the insight mailing list. Don't know whether
the subject is solved by now (couldn't find further follow-ups) or even
already
fixed in insight. But I found a way to get around the problem with "grayed
buttons"
when connecting to a remote target using a gdb script...

> On Tue, 2003-04-29 at 04:33, Peter Reilley wrote:
> > I have a problem with Insight 5.2.1 cross compiled for the ARM
> > processor.   Insight is running on X86 Linux.   I am using Insight
> > to connect to a remote target using Redhat's RDA.
> 
> [Zowie.. 5.2.1 is old, old, old. Any chance I could convince you to go
> to 5.3 or CVS head?]
I'm using insight 5.3 - but experienced the very same problem (using
a remote power-pc target connecting through an Abatron BDI200 debugger).

> > When it starts up only the RUN button is enabled, all the others
> > are grayed out.   When using Insight/GDB in this manner you
> > cannot use the RUN command.    If I open a command window
> > and issue a STEP command, then everything is fine, the other
> > buttons are enabled.
> 
> I'm afraid I don't understand the sequence of events. When Insight is
> initially run, only the Run button will be enabled. This is correct.
> When you subsequently attach to a target, the other buttons should
> become enabled.
> 
> Are you saying that after attaching/downloading/etc, only the run button
> remains enabled? That's a problem :-). There are a couple of things that
> we might be able to do to work around the problem.
Yep => same problem here. In addition also the source window is not
updated. So after connecting to a remote target the source window does not
show the correct source location for the current program counter.

> Can you open a console window and enter the commands:
> 
> (gdb) tk gdb_target_has_execution
> (gdb) tk set ::gdb_running
tk gdb_target_has_execution returned 1
tk set ::gdb_running return 0

> Send the results when you are attached to the target (and the buttons
> are disabled).
> 
> Try doing "tk gdbtk_update". Does that enable the buttons?
This updates the source window and shows the correct source location. So
this problem is fixed.
However, the buttons are still grayed.
I found out if I subsequently call
tk gdbtk_idle

Then the buttons are finally enabled! So, executing
tk gdbtk_update
tk gdbtk_idle
at the end of every gdb script file fixes the problem - well - works around
them... ;)

Kind regards,

Thorsten

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with Insight GUI mode
       [not found]     ` <097d01c30ebf$1208e0e0$c9d145cc@mrrmnh.adelphia.net>
@ 2003-04-30  4:41       ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2003-04-30  4:41 UTC (permalink / raw)
  To: Peter Reilley; +Cc: insight

Posted to list. Read below for response.

On Tue, 2003-04-29 at 19:20, Peter Reilley wrote:
> The problem seems to the interaction between the .gdbinit file
> and the .gdbtkinit file.   I often need commands to be issued
> after the "target remote localhost:XXXX" command and the
> "load" command.   In non-GUI mode this all works quite nicely.
> If I use the .gdbinit file to connect to the remote and to issue
> some additional commands and then the "load" command, Insight
> gets into the mode where the RUN button is only highlighted.
> 
> One particular annoyance is that I need the command;
> 
> set remote memory-write-packet-size 1024
> set remote memory-write-packet-size fixed
> 
> When Insight executes these commands in my .gdbinit file it
> pops up a window asking if I really want the packet size changed.
> If I did not want it changed I would not have put it in my .gdbinit
> file!
> 
> I can almost always get to the point where the GUI works properly.
> Often this requires that I issue commands in the console window.
> I don't seem to be able to have Insight come up, set the breakpoint
> at main, run to main and stop.
> 
> Everything works perfectly in non-GUI mode.
> 
> Pete.

I could see that gdb would mess up the whole "set remote ..." thing. If
there's a warning in the code, then the GUI is going to display it. 
There may be a way to fix this. In remote.c, I see that when you set
this option, it calls the function query. Somehow GDB is supressing this
when starting up. If we find out how, Insight could be made to ignore
this, too.

Otherwise, as for fixing your other problems, I haven't heard anything
about whether "tk gdbtk_update" fixes the button problem. If it does,
you can add something like "tk after idle gdbtk_update" to your
.gdbinit. It'll error on non-Insight runs, though...

Keith

> ----- Original Message ----- 
> From: "Keith Seitz" <keiths@redhat.com>
> To: "Peter Reilley" <micrio@mv.com>
> Cc: <insight@sources.redhat.com>
> Sent: Tuesday, April 29, 2003 10:25 AM
> Subject: Re: Problem with Insight GUI mode
> 
> 
> > On Tue, 2003-04-29 at 04:33, Peter Reilley wrote:
> > > I have a problem with Insight 5.2.1 cross compiled for the ARM
> > > processor.   Insight is running on X86 Linux.   I am using Insight
> > > to connect to a remote target using Redhat's RDA.
> > 
> > [Zowie.. 5.2.1 is old, old, old. Any chance I could convince you to go
> > to 5.3 or CVS head?]
> > 
> > > When it starts up only the RUN button is enabled, all the others
> > > are grayed out.   When using Insight/GDB in this manner you
> > > cannot use the RUN command.    If I open a command window
> > > and issue a STEP command, then everything is fine, the other
> > > buttons are enabled.
> > 
> > I'm afraid I don't understand the sequence of events. When Insight is
> > initially run, only the Run button will be enabled. This is correct.
> > When you subsequently attach to a target, the other buttons should
> > become enabled.
> > 
> > Are you saying that after attaching/downloading/etc, only the run button
> > remains enabled? That's a problem :-). There are a couple of things that
> > we might be able to do to work around the problem.
> > 
> > Can you open a console window and enter the commands:
> > 
> > (gdb) tk gdb_target_has_execution
> > (gdb) tk set ::gdb_running
> > 
> > Send the results when you are attached to the target (and the buttons
> > are disabled).
> > 
> > Try doing "tk gdbtk_update". Does that enable the buttons?
> > 
> > Keith
> > 
> > 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with Insight GUI mode
  2003-04-29 11:32 ` Problem with Insight GUI mode Peter Reilley
@ 2003-04-29 14:22   ` Keith Seitz
       [not found]     ` <097d01c30ebf$1208e0e0$c9d145cc@mrrmnh.adelphia.net>
  0 siblings, 1 reply; 4+ messages in thread
From: Keith Seitz @ 2003-04-29 14:22 UTC (permalink / raw)
  To: Peter Reilley; +Cc: insight

On Tue, 2003-04-29 at 04:33, Peter Reilley wrote:
> I have a problem with Insight 5.2.1 cross compiled for the ARM
> processor.   Insight is running on X86 Linux.   I am using Insight
> to connect to a remote target using Redhat's RDA.

[Zowie.. 5.2.1 is old, old, old. Any chance I could convince you to go
to 5.3 or CVS head?]

> When it starts up only the RUN button is enabled, all the others
> are grayed out.   When using Insight/GDB in this manner you
> cannot use the RUN command.    If I open a command window
> and issue a STEP command, then everything is fine, the other
> buttons are enabled.

I'm afraid I don't understand the sequence of events. When Insight is
initially run, only the Run button will be enabled. This is correct.
When you subsequently attach to a target, the other buttons should
become enabled.

Are you saying that after attaching/downloading/etc, only the run button
remains enabled? That's a problem :-). There are a couple of things that
we might be able to do to work around the problem.

Can you open a console window and enter the commands:

(gdb) tk gdb_target_has_execution
(gdb) tk set ::gdb_running

Send the results when you are attached to the target (and the buttons
are disabled).

Try doing "tk gdbtk_update". Does that enable the buttons?

Keith


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Problem with Insight GUI mode
  2003-04-29  8:03 Insight on an EDB7312 board download problem Charles-Henri Balet
@ 2003-04-29 11:32 ` Peter Reilley
  2003-04-29 14:22   ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Reilley @ 2003-04-29 11:32 UTC (permalink / raw)
  To: insight

I have a problem with Insight 5.2.1 cross compiled for the ARM
processor.   Insight is running on X86 Linux.   I am using Insight
to connect to a remote target using Redhat's RDA.

When it starts up only the RUN button is enabled, all the others
are grayed out.   When using Insight/GDB in this manner you
cannot use the RUN command.    If I open a command window
and issue a STEP command, then everything is fine, the other
buttons are enabled.

I cannot fix this by putting commands in my .gdbinit file.    The
commands in the .gdbinit file execute properly but they do not
cause the grayed out buttons to be enabled.   Only issuing 
commands in the command window causes the condition to be 
cleared.

This behavior probably make sense for native debugging but
does not work for cross debugging.   Is there any flag to Insight
that changes this behavior?   Any other fix?

Thanks,
Pete.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-07 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-07 13:57 Problem with Insight GUI mode Thorsten Brehm
  -- strict thread matches above, loose matches on Subject: below --
2003-04-29  8:03 Insight on an EDB7312 board download problem Charles-Henri Balet
2003-04-29 11:32 ` Problem with Insight GUI mode Peter Reilley
2003-04-29 14:22   ` Keith Seitz
     [not found]     ` <097d01c30ebf$1208e0e0$c9d145cc@mrrmnh.adelphia.net>
2003-04-30  4:41       ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).