This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/815: temporary breakpoints not removed
- From: thomas dot koeller at baslerweb dot com
- To: gdb-gnats at sources dot redhat dot com
- Cc: thomas at koeller dot dyndns dot org, support at abatron dot ch
- Date: 6 Nov 2002 10:46:33 -0000
- Subject: gdb/815: temporary breakpoints not removed
- Reply-to: thomas dot koeller at baslerweb dot com
>Number: 815
>Category: gdb
>Synopsis: temporary breakpoints not removed
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 06 02:48:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Thomas Koeller
>Release: 5.2.1
>Organization:
>Environment:
Linux (kernel 2.4.18)
abatron BDI2000 JTAG interface
>Description:
When doing remote debugging on a Linux host for an arm-ecos-elf target, I noticed that sometimes temporary breakpoints set by GDB during execution of a 'finish' or 'step' command are not removed. It seems that GDB's internal bookkeeping of
temporary brakpoints gets screwed up, as illustrated by the following transcript of a debug session:
----
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) set debug remote 1
(gdb) cont
Continuing.
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $s#73...Ack
Packet received: S05
Sending packet: $g#67...Ack
Packet received: 64000000a73b000005000000100000001c1b00001c1b0000000000000000000001000000060000004c000100583b0000383b0000383b0000704702013447020100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d3000020
Sending packet: $Z0,1024770,4#7b...Ack
Packet received: OK
----
As can be seen, a 'Z0' record is sent, although no breakpoints are set within GDB.
>How-To-Repeat:
Most likely to appear when using 'finish' command multiple times to step out of deeply nested function call.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: