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/21969] New: watchpoint break not triggered on reverse continue


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

            Bug ID: 21969
           Summary: watchpoint break not triggered on reverse continue
           Product: gdb
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: jfhart085 at gmail dot com
  Target Milestone: ---

Created attachment 10351
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10351&action=edit
utl1.c - test program with deliberate stack overwrite

bash-3.2$ uname -a
Linux DellXPS 4.10.0 #1 SMP Thu Apr 13 09:55:54 EDT 2017 x86_64 GNU/Linux

build utl1.c as follows: 
gcc -Wall -Wno-unused-but-set-variable -g utl1.c -o0 -o utl1

# forward continue - watch break triggered
gdb utl1
c-x 2
b *main    # break on 1st main() instruction
run
record
watch -l *((long *)$sp)
continue

# reverse continue - watch break not triggered
gdb utl1
c-x 2
b *main    # break on 1st main() instruction
b *main+41 # break on retq instruction
run
record
continue
watch -l *((long *)$sp)
reverse-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]