This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/16115] New: watch -location needless software watchpoint


https://sourceware.org/bugzilla/show_bug.cgi?id=16115

            Bug ID: 16115
           Summary: watch -location needless software watchpoint
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu

#include <vector>
int main () { std::vector<int> v;
  return 0; }

GNU gdb (GDB) 7.6.50.20131021-cvs
(gdb) b 3
(gdb) r
Breakpoint 1, main () at vec2.C:3
3      return 0; }
(gdb) watch v
Hardware watchpoint 2: v
(gdb) delete 2
(gdb) watch -location v
Watchpoint 3: -location v
^^^^^^^^^^^^^
(gdb) p sizeof (v)
$1 = 24

And it really singlesteps after 'continue'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]