This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Watching expressions that don't involve memory (e.g., watch $regfoo)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, Eli Zaretskii <eliz at gnu dot org>
- Date: Thu, 4 Mar 2010 13:16:29 +0000
- Subject: Re: Watching expressions that don't involve memory (e.g., watch $regfoo)
- References: <201003040156.44957.pedro@codesourcery.com> <83k4ts3eu4.fsf@gnu.org>
On Thursday 04 March 2010 04:12:19, Eli Zaretskii wrote:
> > From: Pedro Alves <pedro@codesourcery.com>
> > Date: Thu, 4 Mar 2010 01:56:44 +0000
> >
> > Anyone else things this is useful?
>
> I do. (Somehow, I thought it actually did work at some point in the
> past, but maybe I was dreaming.)
Indeed, I tried it on 5.3 and 6.0 gdbs, and it worked. Looking
at the code, I guess it broke with the support for
multi-location breakpoints, in 6.8. I guess I shall drop the
NEWS entry, as it's a regression fix afterall?
I think I'll add a simple test that watches for "watch $pc",
so that we don't regress again. That expression should be
portable.
--
Pedro Alves