Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
To: gdb@sources.redhat.com
Subject: testing current target (in gdb code)
Date: Wed, 02 Apr 2003 10:13:00 -0000	[thread overview]
Message-ID: <buoistxdx6i.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)

Hi,

I'm currently working on making gdb's v850 support work on real CPUs,
and unfortunately I can't get the hardware single-stepping to work
consistently (the hardware has lots of weird restrictions, and by doing
lots of tricks I can get it to work on some processors, but not others).

So I'd like to use GDB's software-single-stepping facility for those
cases where I can't use hardware (thanks to Kevin Buettner who told me
where to find it!); however, I'd still like to use hardware
single-stepping when possible as it seems likely to always be reliable
in some corner case or another, no matter how careful I am.  In
particular, `hardware' single-stepping works great in GDB's simulator.

I guess I can do this sort of thing by defining SOFTWARE_SINGLE_STEP_P
to call a function that looks at the current target and returns an
appropriate boolean for it (defaulting to 1 I suppose).

However I'm not sure how to test the current target; any pointers?

Or am I on the wrong track entirely, and there's a better way to do
what I want?

Thanks for any tips,

-Miles
-- 
`Life is a boundless sea of bitterness'


             reply	other threads:[~2003-04-02 10:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-02 10:13 Miles Bader [this message]
2003-04-02 14:45 ` Andrew Cagney
2003-04-03  2:30   ` Miles Bader

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=buoistxdx6i.fsf@mcspd15.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=gdb@sources.redhat.com \
    --cc=miles@gnu.org \
    /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