public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jesper Skov <jskov@cygnus.co.uk>
To: Stan Shebs <shebs@cygnus.com>
Cc: kerry@cae-plus.com, ecos-discuss@cygnus.com
Subject: Re: [ECOS] gdb vs. eCos?
Date: Wed, 17 Feb 1999 03:21:00 -0000	[thread overview]
Message-ID: <14026.31757.484758.980750@lassi.cygnus.co.uk> (raw)
In-Reply-To: < 199902162112.NAA25765@andros.cygnus.com >

>>>>> "Stan" == Stan Shebs <shebs@cygnus.com> writes:
Stan> We haven't done anything about interrupt handler debugging.  My
Stan> understanding is that eCos might need some additional tweaking
Stan> for that.  (True eCos'ers jump in here please.)  GDB doesn't
Stan> really care - if the OS hands it a valid state, it will try to
Stan> make sense of it, whether it's in the main code or in an
Stan> interrupt handler.

If the trap exception vector is different from the interrupt vector
you want to debug, it can be done if you are careful; i.e., set your
breakpoint after the pre-exception state has been saved.

Also, using a simulator for debugging the interrupt handlers can be a
great help since it doesn't trash so much state as the gdb stub does
(that is, debugging in a SIM is truly transparent for the program
being run -- at least I haven't had any problems).

I've stepped my way through the PowerPC interrupt handler more than
once using GDB (although I prefer the SIM way -- it's faster).

Jesper

  parent reply	other threads:[~1999-02-17  3:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-12 12:38 Kerry S. Kimbrough
     [not found] ` < 199902121646.KAA26430@cae-plus.com >
1999-02-16 15:39   ` Stan Shebs
     [not found]     ` < 199902162112.NAA25765@andros.cygnus.com >
1999-02-17  3:21       ` Jesper Skov [this message]
     [not found]         ` <199902171527.JAA25835@cae-plus.com>
1999-02-17 10:41           ` Jesper Skov
1999-02-21 17:55 Zubin Burjor Sethna
     [not found] ` < 6006B52C37ABD211AB0900805FFE9D79169244@saturn.sg.adisys.com.au >
1999-02-22  3:06   ` Jesper Skov

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=14026.31757.484758.980750@lassi.cygnus.co.uk \
    --to=jskov@cygnus.co.uk \
    --cc=ecos-discuss@cygnus.com \
    --cc=kerry@cae-plus.com \
    --cc=shebs@cygnus.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).