From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26435 invoked by alias); 23 Jan 2012 21:07:19 -0000 Received: (qmail 26426 invoked by uid 22791); 23 Jan 2012 21:07:18 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SARE_SPEC_REPL_OBFU1,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Jan 2012 21:07:00 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0NL6uLG011729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Jan 2012 16:06:56 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0NL6tkG002842; Mon, 23 Jan 2012 16:06:56 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q0NL6r69013597; Mon, 23 Jan 2012 16:06:54 -0500 From: Tom Tromey To: Jed Brown Cc: gdb@sourceware.org Subject: Re: watch -location References: Date: Mon, 23 Jan 2012 21:07:00 -0000 In-Reply-To: (Jed Brown's message of "Sat, 21 Jan 2012 20:45:14 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00068.txt.bz2 >>>>> "Jed" =3D=3D Jed Brown writes: Jed> I was surprised when I upgraded to 7.3.1 that my common pattern of Jed> (gdb) print &obj->member Jed> $1 =3D (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 =C2=A0 =C2=A0 Type =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Disp Enb Add= ress =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0What Jed> 3 =C2=A0 =C2=A0 =C2=A0 hw watchpoint =C2=A0keep y =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-location obj->memb= er 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