From: Niko Sams <niko.sams@gmail.com>
To: gdb <gdb@sourceware.org>
Subject: watchpoint on variable in function scope
Date: Wed, 01 Jun 2011 21:22:00 -0000 [thread overview]
Message-ID: <BANLkTi=Yr6oNKDWPQOMNHi=oz49Lor1fMg@mail.gmail.com> (raw)
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;
}
next reply other threads:[~2011-06-01 21:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-01 21:22 Niko Sams [this message]
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
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='BANLkTi=Yr6oNKDWPQOMNHi=oz49Lor1fMg@mail.gmail.com' \
--to=niko.sams@gmail.com \
--cc=gdb@sourceware.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