public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Wilson Kwan <wilson@kinesphere.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] signal SIGTRAP, Trace/breakpoint trap???
Date: Mon, 29 Jan 2001 10:07:00 -0000	[thread overview]
Message-ID: <3A75B174.CF777161@redhat.com> (raw)
In-Reply-To: <000701c087e8$f5896ac0$0c02a8c0@obiwan>

Wilson Kwan wrote:
> 
> Hi,
> 
> I recently compiled the serial.c example program (using the lastest cvs
> sources). I was able to get it running on my target EP7211 board. I made
> some changes to it recompiled it and successfully ran it again. Now when I
> try to run the program I keep getting a "signal SIGTRAP, Trace/breakpoint
> trap???". This started happening after I ran it the second time in
> Insight/GDB 5.0 with the eCos patches.
> 
> Going back to the command line gdb I still get this problem. I've included a
> couple gdb sessions below if it will help. What is going on here? Also after
> I set the remote target I get a weird string back from GDB "0xe0001964 in ??
> ()". Anyone know what this is?

Note that the message you get with the SIGTRAP:

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to thread 0]
0xe0001964 in ?? ()

reports that the processor is at the same address as when you connected
with target remote. i.e. the target has reset itself for some reason. But
there isn't enough info here to determine exactly _why_ this has happened.

You may want to set breakpoints in places like cyg_hal_invoke_constructors,
or cyg_user_start to see if it reaches those points in the startup
sequence.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

      reply	other threads:[~2001-01-29 10:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-26 14:42 Wilson Kwan
2001-01-29 10:07 ` Jonathan Larmour [this message]

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=3A75B174.CF777161@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=wilson@kinesphere.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).