From: Stephane.Bihan@arccores.com
To: jtc@redback.com
Cc: gdb@sourceware.cygnus.com
Subject: Re: breakpoint insert API (was: A patch for ia32 hardware watchpoint.)
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <OFFC5FBD39.F51E2E68-ON802568A3.00576DA1@risccores.com> (raw)
Message-ID: <20000401000000.Bq9FdvO3k3jF6CslQq94kT2iSgOGdaZP35MhSumikqA@z> (raw)
>
> Stephane> I also use the breakpoint structure as an extern variable. I
> Stephane> needed it to implement the set_hw_breakpoint routine for the
> Stephane> remote protocol. I think it's not the nicer way to do but
> Stephane> ....
>
> Can you explain? I don't see any use of struct breakpoint in the
> current arc-tdep.c, nor do I see a set_hw_breakpoint function?
The version at FSF is a very old version out of date.
I am currently extending gdb for ARC to support user extensions.
>
> >> Since you say you can remove the single step code, I assume that the
> >> ISS target and remote protocol agents can perform the single step by
> >> themselves? If so, it would be advantageous to disable GDB's single
> >> step support. GDB would then issue a single "step" command instead of
> >> "insert breakpoint(s)", "continue", and "remove breakpoint(s)". The
> >> latency of a step should be greatly improved.
>
> Stephane> I will implement this for the remote target only since the
> Stephane> hardware supports single-stepping. I'm not sure if this
> Stephane> feasible in the ISS - Yuri?
>
> Stephane> If not feasible I won't disable the GDB's single step
> Stephane> support (thus enabling a call to single_step()) but I will
> Stephane> implement a single_step call to gdbstub in remote_resume().
>
> If your ISS target cannot support single step, but the remote protocol
> can, perhaps the best thing is to make software single step a target
> specific option.
By creating a target specific command?
The single step mechanism is a not a step-over-calls mechanism.
>
> I don't think that the arc is the only processor that would benefit
> from such a change. For example, the sparclet ROM monitor supports a
> single step command, but I do not know if it is ever issued because
> the SPARC target uses software single step. Perhaps it inserts the
> trap instructions needed for single step and issues the monitor step
> command?
>
> I do not think it's possible for any change to remote_resume() to be
> the right solution.
>
You're right, I've tried and if does not work.
Thanks for your explanations anyway.
Stephane.
----------------------------------------------------------------
Stephane Bihan
ARC Cores Ltd http://www.arccores.com
next reply other threads:[~2000-04-01 0:00 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-15 9:07 Stephane.Bihan [this message]
2000-04-01 0:00 ` Stephane.Bihan
-- strict thread matches above, loose matches on Subject: below --
2000-03-15 4:21 Stephane.Bihan
2000-03-15 7:51 ` J.T. Conklin
2000-04-01 0:00 ` J.T. Conklin
2000-04-01 0:00 ` Stephane.Bihan
2000-03-13 1:50 Stephane.Bihan
2000-03-14 14:47 ` J.T. Conklin
2000-04-01 0:00 ` J.T. Conklin
2000-04-01 0:00 ` Stephane.Bihan
2000-03-08 0:46 A patch for ia32 hardware watchpoint Todd Whitesel
2000-03-09 11:28 ` breakpoint insert API (was: A patch for ia32 hardware watchpoint.) J.T. Conklin
2000-03-09 15:15 ` Jim Kingdon
2000-04-01 0:00 ` Jim Kingdon
2000-03-09 15:33 ` Andrew Cagney
2000-03-09 17:28 ` Todd Whitesel
2000-03-14 15:15 ` J.T. Conklin
2000-03-14 15:31 ` Todd Whitesel
2000-04-01 0:00 ` Todd Whitesel
2000-04-01 0:00 ` J.T. Conklin
2000-04-01 0:00 ` Todd Whitesel
2000-03-14 14:10 ` J.T. Conklin
2000-03-21 2:50 ` Andrew Cagney
2000-04-01 0:00 ` Andrew Cagney
2000-04-01 0:00 ` J.T. Conklin
2000-04-01 0:00 ` Andrew Cagney
2000-03-09 17:33 ` Todd Whitesel
2000-03-14 14:56 ` J.T. Conklin
2000-03-21 3:11 ` Andrew Cagney
2000-03-21 6:10 ` Richard Earnshaw
2000-04-01 0:00 ` Richard Earnshaw
2000-04-01 0:00 ` Andrew Cagney
2000-04-01 0:00 ` J.T. Conklin
2000-04-01 0:00 ` Todd Whitesel
2000-04-01 0:00 ` J.T. Conklin
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=OFFC5FBD39.F51E2E68-ON802568A3.00576DA1@risccores.com \
--to=stephane.bihan@arccores.com \
--cc=gdb@sourceware.cygnus.com \
--cc=jtc@redback.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).