Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Luis Machado <luisgpm@linux.vnet.ibm.com>
Cc: gdb@sourceware.org
Subject: Re: Watchpoints stopping GDB on specific threads
Date: Tue, 14 Aug 2007 16:42:00 -0000	[thread overview]
Message-ID: <20070814164154.GA22717@caradoc.them.org> (raw)
In-Reply-To: <1187108458.4388.14.camel@localhost>

On Tue, Aug 14, 2007 at 01:20:58PM -0300, Luis Machado wrote:
> At a first glance, i'd need to work in a different way than the
> breakpoint case, because the entire watchpoint expression is handled by
> a expression parser. It automatically processes the "thread <id>"
> parameter and of course gives an error because that's not recognized. Do
> you have any idea on how this could be solved in a clever way? We could
> start parsing the expression from the end, and try to locate the "thread
> <id>" parameter, and then hand over the remaining parameters to the
> expression parser. What do you think?

You might want to take a look at this:

  http://sourceware.org/ml/gdb-patches/2005-04/msg00092.html

break *EXPRESSION thread N is the same as watch EXPRESSION thread N.
Eli suggested basically the same thing you did; it might work :-)

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-08-14 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14 16:21 Luis Machado
2007-08-14 16:42 ` Daniel Jacobowitz [this message]
2007-08-14 19:41 ` Eli Zaretskii
2007-08-14 19:47   ` Daniel Jacobowitz
2007-08-14 20:19   ` Luis Machado
2007-08-15  3:06     ` 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=20070814164154.GA22717@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=luisgpm@linux.vnet.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