This is the mail archive of the gdb-prs@sources.redhat.com 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]

breakpoints/1757: When a signal, GDB re-hits instead of skips, a step-over breakpoint


>Number:         1757
>Category:       breakpoints
>Synopsis:       When a signal, GDB re-hits instead of skips, a step-over breakpoint
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 24 14:08:04 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        2004-08-24
>Organization:
>Environment:
PPC NetBSD 1.6.2, FC2 i386
>Description:
When the inferior is sitting on a just hit breakpoint, and there's a signal pending (pass, nostop), a step / next will result in that breakpoint being re-hit.  Ex:

(gdb) PASS: gdb.base/sigstep.exp: step on breakpoint, skip handler; resync
break 65
Breakpoint 13 at 0x1800c90: file /home/scratch/PENDING/2004-08-10-sigskip/src/gdb/testsuite/gdb.base/sigstep.c, line 65.
(gdb) PASS: gdb.base/sigstep.exp: step on breakpoint, skip handler; break infinite loop
continue
Continuing.

Breakpoint 13, main () at /home/scratch/PENDING/2004-08-10-sigskip/src/gdb/testsuite/gdb.base/sigstep.c:65
65            while (!done);
1: x/i $pc  0x1800c90 <main+168>:       lis     r9,385
(gdb) PASS: gdb.base/sigstep.exp: step on breakpoint, skip handler; continue to infinite loop
step
...
Breakpoint 13, main () at /home/scratch/PENDING/2004-08-10-sigskip/src/gdb/testsuite/gdb.base/sigstep.c:65
65            while (!done);
1: x/i $pc  0x1800c90 <main+168>:       lis     r9,385
(gdb) FAIL: gdb.base/sigstep.exp: step on breakpoint, skip handler; performing step

instead of re-hitting breakpoint 13, it should have advanced to the next line (66).
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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