Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Emi SUZUKI <emi-suzuki@tjsys.co.jp>, gdb@sourceware.org
Subject: Re: Watchpoint on an unloaded shared library(2)
Date: Mon, 29 Dec 2008 13:54:00 -0000	[thread overview]
Message-ID: <20081229135332.GA10806@caradoc.them.org> (raw)
In-Reply-To: <20081229051317.GB16483@adacore.com>

On Mon, Dec 29, 2008 at 09:13:17AM +0400, Joel Brobecker wrote:
> >  a) Print b->exp_string and b->cond_string. 
> >     We might make some effort to display it like as its expression is
> >     valid for annotations... I have no idea whether it is worthwhile
> >     to try.  
> 
> I think that this is the best we can do (print exp_string).
> I personally wouldn't worry about trying to massage the string
> into something that would look like we're printing an expression.
> I'm not even sure why we use "print_expression (b->exp) rather
> than printing exp_string directly - perhaps someone does?

I don't know, but it drives me nuts.  This causes:

(gdb) break *0x10000000
Breakpoint 1 at 0x10000000
(gdb) watch *0x10000000
Watchpoint 2: *268435456
(gdb) info break
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   0x10000000
2       watchpoint     keep y              *268435456

I'm sure there are some cases which are more ambiguous if you print
the string, but I'd risk some ambiguity to get rid of that :-)

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-12-29 13:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  6:41 Emi SUZUKI
2008-12-29  5:14 ` Joel Brobecker
2008-12-29 13:54   ` Daniel Jacobowitz [this message]
2008-12-29 23:45     ` Pedro Alves
2008-12-30  0:01     ` Tom Tromey
2008-12-30  7:04       ` Joel Brobecker
2009-01-06  4:05       ` Emi SUZUKI

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=20081229135332.GA10806@caradoc.them.org \
    --to=drow@false.org \
    --cc=brobecker@adacore.com \
    --cc=emi-suzuki@tjsys.co.jp \
    --cc=gdb@sourceware.org \
    /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