Tracking a variable in gdb

Shlomi Fish shlomif at
Tue Oct 1 18:53:56 UTC 2013

Hi John,

On Tue, 1 Oct 2013 02:00:41 -0500
"John J. Boyer" <john.boyer at> wrote:

> What is the syntax for telling gdb to break when a variable changes? 
> I've read the manual, but I can't find this information.

perhaps try adding a watchpoint:

Note that sometimes it is helpful to take the address of the variable and
watch its * expression, because this is more likely to be constant.
Hope it helps.


	Shlomi Fish

Shlomi Fish
Rethinking CPAN -

CPAN thrives *because* of the unfettered uploading of shit, not in spite of it.
    — Andy Lester

Please reply to list if it's a mailing list post - .

More information about the Blinux-list mailing list