Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Eliminate TARGET_HAS_HARDWARE_WATCHPOINTS
Date: Tue, 07 Sep 2004 21:20:00 -0000	[thread overview]
Message-ID: <413E25F6.7020908@gnu.org> (raw)
In-Reply-To: <01c49441$Blat.v2.2.2$ead61420@zahav.net.il>

>>>> > In any case, I'd like to see the suggested Autoconf replacement for
>>>> > this before we deprecate the feature.
>>
>>> 
>>> This is neither deprecating a feature, nor deprecating a system.
> 
> 
> ``The feature'' in question is TARGET_HAS_HARDWARE_WATCHPOINTS.  It is
> being deprecated/removed, isn't it?

The macro TARGET_HAS_HARDWARE_WATCHPOINTS is just a mechanism that core 
GDB might use (it doesn't) when implementing a [user visible] feature 
such as ``hardware watchpoints''.  I'm not ``expressing disapproval of 
or wishing against'' the feature ``hardware watchpoints'', nor am I 
``expressing disapproval of or wishing against'' systems that provide 
the feature ``hardware watchpoints''.

However, I am formalizing our disapproval of the macro 
TARGET_HAS_HARDWARE_WATCHPOINTS.  To which I wrote:

> Here there are several things to notice:
> 
> - core GDB no longer refers to TARGET_HAS_HARDWARE_WATCHPOINTS
> At one stage target.h had definitions dependant on this macro, but no more.  This patch removes the no-longer-needed defintion from configurations, such as GNU/Linux.
> 
> - procfs.c and i386v-nat.c do refer to TARGET_HAS_HARDWARE_WATCHPOINTS
> These files should be replying on an autoconf test.  This patch replaces those cases with DEPRECATED_{PROCFS,I386V}_USE_HARDWARE_WATCHPOINTS macros.
> 
> That leaves no definition so this patch also removes the corresponding documentation.

Regarding the second of those points, procfs.c and i386v-nat.c:

>>> Date: Mon, 06 Sep 2004 10:05:02 -0400
>>> From: Andrew Cagney <cagney@gnu.org>
>>> Cc: gdb-patches@sources.redhat.com
>>> 
>>> I'll clarify the comments so that it is clear that:
>>> 
>>> - it is native only
>>> 
>>> - in all likelyhood all applicable current systems support this 
>>> mechanism so no autoconf test is needed (someone needs to do a proper 
>>> analysis)
>>> 
>>> - its a configuration change, possibly involving an autoconf test
> 
> 
> Sorry, I'm confused: what will a non-native port do to support both
> targets that have hardware watchpoints and those which do not?  Or are
> you saying that _all_ targets have hardware watchpoint support now
> (which I think is not true)?

(my comments were for the native case only).

For the non-native case, as I initially indicated and as an examination 
of the code reveals, this macro is never used!  Consequently I've in no 
way motified or altered GDB's ``hardware watchpoints'' feature on those 
targets.

Andrew



  reply	other threads:[~2004-09-07 21:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-05 13:59 Andrew Cagney
2004-09-06  5:03 ` Eli Zaretskii
2004-09-06 14:05   ` Andrew Cagney
2004-09-06 18:47     ` Eli Zaretskii
2004-09-07 21:20       ` Andrew Cagney [this message]
2004-09-08  3:51         ` Eli Zaretskii
2004-09-08 14:28           ` Andrew Cagney
2004-09-08 15:18             ` Eli Zaretskii
2004-09-08 15:23               ` Daniel Jacobowitz
2004-09-09  3:41                 ` Eli Zaretskii
2004-09-09  3:53                   ` Daniel Jacobowitz
2004-09-09  4:04                     ` Eli Zaretskii
2004-09-09 12:47                       ` Daniel Jacobowitz
2004-09-09 18:52                         ` Eli Zaretskii
2004-09-12 16:33                           ` Andrew Cagney
2004-09-12 18:42                             ` Eli Zaretskii
2004-09-13 14:30                               ` Andrew Cagney
2004-09-13 19:43                                 ` Eli Zaretskii
2004-09-13 20:48                                   ` Andrew Cagney
2004-09-15  7:20                                     ` Eli Zaretskii
2004-09-15 16:11                                       ` Andrew Cagney
2004-09-16 10:53                                         ` 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=413E25F6.7020908@gnu.org \
    --to=cagney@gnu.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@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