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/12311] New: Multiple hw watchpoint hits get ignored


http://sourceware.org/bugzilla/show_bug.cgi?id=12311

           Summary: Multiple hw watchpoint hits get ignored
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com


echo 'union{int i;char c[4];}v;main(){v.i=0;}'|gcc -g -x c -;./gdb -q -nx
./a.out -ex start -ex 'awatch v.c[1]' -ex 'awatch v.c[2]' -ex 'maintenance set
show-debug-regs off' -ex c

Hardware access (read/write) watchpoint 3: v.c[2]
Value = 0 '\000'
0x0000000000400482 in main () at <stdin>:1
1    in <stdin>
(gdb) c
Continuing.
Program exited with code 0100.

But v.c[1] is not caught.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]