public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Jed Brown <jed@59A2.org>
Cc: gdb@sourceware.org
Subject: Re: watch -location
Date: Mon, 23 Jan 2012 21:07:00 -0000	[thread overview]
Message-ID: <m3aa5ei0wi.fsf@fleche.redhat.com> (raw)
In-Reply-To: <CAM9tzSmRS0Dd2qC=iZR3__X+VCK8pNK7xr1r-c4YUKadrurAQA@mail.gmail.com>	(Jed Brown's message of "Sat, 21 Jan 2012 20:45:14 -0600")

>>>>> "Jed" == Jed Brown <jed@59A2.org> writes:

Jed> I was surprised when I upgraded to 7.3.1 that my common pattern of
Jed> (gdb) print &obj->member
Jed> $1 = (int *) 0x6fcf04
Jed> (gdb) watch *$1

Jed> I like the new method, but why did the old method stop working? It
Jed> makes some old debugging documentation incorrect.

As far as I know, nothing has changed here.
If you have a reproducible test case, please file a bug.

Jed> (gdb) info watchpoints
Jed> Num     Type           Disp Enb Address            What
Jed> 3       hw watchpoint  keep y                      -location obj->member

Jed> Could the address of obj->member be printed in this output?

Nice idea.  Could you file a (separate) bug for this as well?

Tom

  reply	other threads:[~2012-01-23 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-22  2:45 Jed Brown
2012-01-23 21:07 ` Tom Tromey [this message]
2012-01-23 22:05 ` Sergio Durigan Junior

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=m3aa5ei0wi.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=jed@59A2.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).