From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: ac131313@ges.redhat.com
Cc: gdb@sources.redhat.com
Subject: Re: Getting the i386 watchpoints into the taget vector?
Date: Fri, 20 Sep 2002 14:42:00 -0000 [thread overview]
Message-ID: <5137-Sat21Sep2002004300+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <3D8A8094.5080908@ges.redhat.com> (message from Andrew Cagney on Thu, 19 Sep 2002 21:57:40 -0400)
> Date: Thu, 19 Sep 2002 21:57:40 -0400
> From: Andrew Cagney <ac131313@ges.redhat.com>
>
> Instead of using a system interface, the i386 manipulates the
> hardware watchpoint registers directly.
Really? What I see is that most i386 ports use ptrace or similar
interfaces to access the hardware watchpoints. So in what sense is
this manipulation ``direct''?
> One thought is to change the config/i386/nm-i386.h macros to something
> native specific (native_insert_watchpoint()) and then have the various
> native targets (infptrace.c, ...) add these methods to their target vector.
>
> It does restrict things to native targets. A remote target couldn't
> make use of GDB's built-in knowledge of watchpoint registers.
>
> Another (less well thought out) idea, is for the target stack, to fall
> back to the ``native watchpoint'' mechanism when the [remote] target
> doesn't support watchpoints. I think this would mean putting the
> ``native watchpoint'' methods in the architecture vector where the
> target vector code could call it.
Why not simply allow remote targets define the watchpoint-related
macros? Let their definitions issue remote packets that will cause
the target end DTRT. As long as the target is a i386-compatible
machine, the internal bookkeeping we have in the current code will
work.
Am I missing something?
next prev parent reply other threads:[~2002-09-20 21:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-19 18:57 Andrew Cagney
2002-09-20 0:38 ` Kevin Buettner
2002-09-20 6:32 ` Paul Koning
2002-09-20 8:26 ` Andrew Cagney
2002-09-20 14:42 ` Eli Zaretskii [this message]
2002-09-20 16:51 ` Andrew Cagney
2002-09-21 1:32 ` Eli Zaretskii
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=5137-Sat21Sep2002004300+0300-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=ac131313@ges.redhat.com \
--cc=gdb@sources.redhat.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