Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* watchpoint on variable in function scope
@ 2011-06-01 21:22 Niko Sams
  2011-06-02 17:22 ` Tom Tromey
  0 siblings, 1 reply; 6+ messages in thread
From: Niko Sams @ 2011-06-01 21:22 UTC (permalink / raw)
  To: gdb

Hi again,

please have a look at the example code below.
How can i set a watchpoint on i before starting the appliaction?
it used to work with
"watch foo::i"


thanks,
Niko

------------------
void foo() {
    static int i=0;
    ++i;
}
int main(int argc, char **argv) {
    foo();
    return 0;
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-13 17:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 21:22 watchpoint on variable in function scope Niko Sams
2011-06-02 17:22 ` Tom Tromey
2011-06-02 17:48   ` Eli Zaretskii
2011-06-02 18:07     ` Niko Sams
2011-06-02 18:43     ` Sterling Augustine
2011-06-13 17:43       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox