public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Toralf Lund <toralf@procaptura.com>
Cc: "insight@sources.redhat.com" <insight@sources.redhat.com>
Subject: Re: Insight + ARM-9 + BDI2000: Hang on exec
Date: Tue, 20 Apr 2004 16:14:00 -0000	[thread overview]
Message-ID: <1082477715.2010.32.camel@lindt.uglyboxes.com> (raw)
In-Reply-To: <4084DB79.20105@procaptura.com>

I think you're running into multiple problems...

On Tue, 2004-04-20 at 01:12, Toralf Lund wrote:
> Yes, it runs under gdb (I thought I said that). Well, actually, the code 
> crashes after a while, but I can at least set some breakpoints, have it 
> stop there, step the code etc.

Ok, that's a first good step.

> One problem, though: I sometimes get
> <host>:2001: Connection refused.
> for no apparent reason, when issuing a "target" command. If I try the 
> same operation again, it usually works fine.

My guess would be that since you're reusing the same port on the target,
you're hitting the 2MSL wait state.

> Also, even insight was OK for a while, then something (related to the 
> application - insight hasn't changed) happened that made it stop working 
> - and I can't figure out what it is ;-/

:-(

> I got it to hang simply by starting the code (which is why I didn't 
> think it necessary to give any steps), i.e.
> 
>    1. arm-coff-insight <application>
>    2. Run->Download
>    3. Run->Run

[Note: You can just use the Run button to start your application. The
Target Settings dialog defines the default behavior of the run button
for various targets. For Remote targets, it connects to the target,
downloads and continues execution.]

So, when you do this, the UI just "hangs"? Control buttons disabled
(grayed-out)? If so, open a console window and type "tk
gdb_target_has_execution". What's the return value? Also try "tk set
::gdb_running".

> After I wrote the original message, I discovered that there are other 
> ways, like
> 
>    1. arm-coff-insight <application>
>    2. Run->Download
>    3. File->Exit
>
> (But Exit does work if I do File->Disconnect first.)

This is reminiscent of a long-standing gdb bug. But I could be wrong.
The only way to know for sure is to step through the code and find out
why it is hanging. Having the console window open might help, too.

> Furthermore,
> 
>    1. arm-coff-insight <application>
>    2. Run->Download
>    3. Control->Next Asm Inst (since execution start with start() written
>       in assembler.
>    4. Other "step" commands...
> 
> Actually works, but if I try e.g. View->Registers, I get another hang, 
> but of a slightly different type; this time I get a "stop" icon and 
> "busy" cursor, but I'm not really allowed to stop the process.

I think that there is something wrong with register display in that
version. Gdb has changed a whole lot since I last did any active work on
Insight -- which means that no one else has active worked on it. As I
recall, there have been numerous changes to register and memory
handling, but let's deal with one issue at a time.

Keith


  reply	other threads:[~2004-04-20 16:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-19 12:55 Toralf Lund
2004-04-19 16:52 ` Keith Seitz
2004-04-20  8:12   ` Toralf Lund
2004-04-20 16:14     ` Keith Seitz [this message]
2004-04-21  9:04       ` Toralf Lund
2004-04-21  9:45         ` Toralf Lund
2004-04-21 16:33         ` Keith Seitz
2004-04-22 10:07           ` Toralf Lund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1082477715.2010.32.camel@lindt.uglyboxes.com \
    --to=keiths@redhat.com \
    --cc=insight@sources.redhat.com \
    --cc=toralf@procaptura.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).