[Bug python/18655] New: GDB Python FinishBreakpoints are not deleted
simon.marchi at ericsson dot com
sourceware-bugzilla@sourceware.org
Fri Jul 10 15:43:00 GMT 2015
https://sourceware.org/bugzilla/show_bug.cgi?id=18655
Bug ID: 18655
Summary: GDB Python FinishBreakpoints are not deleted
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: simon.marchi at ericsson dot com
Target Milestone: ---
I am not completely certain that this is a bug, but here it is anyway.
FinishBreakpoints are intended to be temporary, once the frame it's attached to
disappears, the breakpoint should vanish. It is not the case currently. I
believe this could be a problem when you start having a few thousand
breakpoints...
I will attach the example C and Python code. Here is a transcript showing that
FinishBreakpoints just keep piling up. I used internal breakpoints to avoid
the verbose output, but it doesn't really matter.
$ gdb -nx -ex "set pagination off" a.out -x test.py
Reading symbols from a.out...done.
(gdb) r
Starting program: /home/emaisin/a.out
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 0
Return value is 1
Return value is 2
Return value is 3
Return value is 4
Return value is 5
Return value is 6
Return value is 7
Return value is 8
Return value is 9
Return value is 0
Return value is 2
Return value is 4
Return value is 6
Return value is 8
Return value is 10
Return value is 12
Return value is 14
Return value is 16
Return value is 18
Return value is 0
Return value is 3
Return value is 6
Return value is 9
Return value is 12
Return value is 15
Return value is 18
Return value is 21
Return value is 24
Return value is 27
Return value is 0
Return value is 4
Return value is 8
Return value is 12
Return value is 16
Return value is 20
Return value is 24
Return value is 28
Return value is 32
Return value is 36
Return value is 0
Return value is 5
Return value is 10
Return value is 15
Return value is 20
Return value is 25
Return value is 30
Return value is 35
Return value is 40
Return value is 45
Temporary breakpoint -65, main () at test.c:13
13 for (j = 0; j < 10; j++)
(gdb) maintenance info breakpoints
Num Type Disp Enb Address What
-1 breakpoint keep y 0x00000000004004f7 in fonction at test.c:4 inf
1
-2 shlib events keep y 0x00007ffff7dea970 <_dl_debug_state> inf 1
-3 longjmp master keep n 0x00007ffff7a4bb30 <siglongjmp> inf 1
-4 longjmp master keep n 0x00007ffff7a4bb30 <siglongjmp> inf 1
-5 longjmp master keep n 0x00007ffff7a4bb30 <siglongjmp> inf 1
-6 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-7 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-8 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-9 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-10 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-11 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-12 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-13 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-14 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-15 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-16 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-17 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-18 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-19 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-20 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-21 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-22 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-23 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-24 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-25 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-26 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-27 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-28 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-29 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-30 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-31 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-32 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-33 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-34 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-35 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-36 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-37 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-38 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-39 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-40 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-41 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-42 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-43 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-44 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-45 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-46 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-47 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-48 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-49 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-50 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-51 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-52 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-53 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-54 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-55 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-56 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-57 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-58 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-59 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-60 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-61 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-62 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-63 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
-64 breakpoint del n 0x0000000000400529 in main at test.c:13 inf 1
thread 1
stop only in thread 1
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list