Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: uweigand@de.ibm.com
Cc: drow@false.org, gdb-patches@sourceware.org
Subject: Re: [patch 0/1] Threaded Watchpoints
Date: Mon, 10 Sep 2007 19:31:00 -0000	[thread overview]
Message-ID: <200709101931.l8AJVP7l017940@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <200709101903.l8AJ3Q7W012168@d12av02.megacenter.de.ibm.com> 	(uweigand@de.ibm.com)

> Date: Mon, 10 Sep 2007 21:03:26 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> 
> I'd tend to agree with Andrew's comment in mips-tdep.c:
> 
>   /* FIXME: cagney/2003-08-29: The macros HAVE_STEPPABLE_WATCHPOINT,
>      HAVE_NONSTEPPABLE_WATCHPOINT, and HAVE_CONTINUABLE_WATCHPOINT
>      need to all be folded into the target vector.  Since they are
>      being used as guards for STOPPED_BY_WATCHPOINT, why not have
>      STOPPED_BY_WATCHPOINT return the type of watchpoint that the code
>      is sitting on?  */
> 
> Since all other watchpoint-related callbacks are in the target 
> vector, having nonsteppable_watchpoint as a gdbarch property
> does look somewhat odd.
> 
> The only problem with moving HAVE_NONSTEPPABLE_WATCHPOINT into the
> target vector might be the remote targets.  Is this information
> available via the remote protocol somehow?  If not, I guess it has
> to stay in gdbarch ...

That really is the wrong way to think about this; we shouldn't keep
gdb criplled forever, just because some bad decision was made years
and years ago.

So the real question here is, whether HAVE_NONSTEPPABLE_WATCHPOINT and
these other properties mentions above are really a fundamental
property of the architecture (ISA or OS ABI).  Or if they are
properties of a particular debug interface (ptrace, remote, jtag).

In some cases it may actually make sense to have something as a
property of the architecture but making it possible for the target
vector to override it.

Mark


      parent reply	other threads:[~2007-09-10 19:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 13:51 Luis Machado
2007-08-20 17:33 ` Luis Machado
2007-08-20 17:40   ` Luis Machado
2007-09-05  2:04     ` Daniel Jacobowitz
2007-09-05 12:31       ` Luis Machado
2007-09-10  0:21         ` Daniel Jacobowitz
2007-09-10 15:34           ` Luis Machado
2007-09-10 15:44             ` Daniel Jacobowitz
2007-09-10 17:56               ` Luis Machado
2007-09-10 18:30                 ` Daniel Jacobowitz
2007-09-10 18:23           ` Ulrich Weigand
2007-09-10 18:29             ` Daniel Jacobowitz
2007-09-10 18:44               ` Ulrich Weigand
2007-09-10 18:54                 ` Daniel Jacobowitz
2007-09-10 19:03                   ` Ulrich Weigand
2007-09-10 19:12                     ` Daniel Jacobowitz
2007-09-10 19:31                     ` Mark Kettenis [this message]

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=200709101931.l8AJVP7l017940@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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