public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "niko dot sams at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug breakpoints/10136] New: rwatch not working when set before run Date: Sat, 09 May 2009 18:55:00 -0000 [thread overview] Message-ID: <20090509185516.10136.niko.sams@gmail.com> (raw) When setting a read watchpoint for a static variable I get the error "Target does not support this type of hardware watchpoint." Same problem with awatch. watch works correctly. $ gdb debugee GNU gdb (GDB) 6.8.50.20090509-cvs (gdb) l 25 20 void noop() {} 21 void foo() { 22 static int i=0; 23 ++i; 24 noop(); 25 noop(); 26 } 27 int main(int argc, char **argv) { 28 std::cout << "Hello, world!" << std::endl; 29 foo(); (gdb) rwatch foo::i Target does not support this type of hardware watchpoint. Setting the watchpoint after a breakpoint was it works: $ gdb debugee GNU gdb (GDB) 6.8.50.20090509-cvs Copyright (C) 2009 Free Software Foundation, Inc. (gdb) break main Breakpoint 1 at 0x400a70: file /home/niko/kdesvn/kde-git/kdevelop/debuggers/gdb/unittests/debugee.cpp, line 28. (gdb) r Starting program: /home/niko/kdesvn/build/kde-git/kdevelop/debuggers/gdb/unittests/debugee Breakpoint 1, main (argc=1, argv=0x7fffffffdbc8) at /home/niko/kdesvn/kde-git/kdevelop/debuggers/gdb/unittests/debugee.cpp:28 28 std::cout << "Hello, world!" << std::endl; (gdb) rwatch foo::i Hardware read watchpoint 2: foo::i (gdb) Gdb 6.8 works: $ /usr/bin/gdb debugee GNU gdb 6.8 (gdb) rwatch foo::i Hardware read watchpoint 1: foo()::i (gdb) -- Summary: rwatch not working when set before run Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: breakpoints AssignedTo: unassigned at sourceware dot org ReportedBy: niko dot sams at gmail dot com CC: gdb-prs at sourceware dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=10136 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2009-05-09 18:55 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-05-09 18:55 niko dot sams at gmail dot com [this message] 2009-11-17 22:44 ` [Bug breakpoints/10136] " pedro at codesourcery dot com
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=20090509185516.10136.niko.sams@gmail.com \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).