Skip to content

Commit 4cb3873

Browse files
jannewulfJanne Wulf
andauthored
Skip internal breakpoints
Co-authored-by: Janne Wulf <[email protected]>
1 parent e6ba31f commit 4cb3873

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gdbinit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ def fetch_breakpoints(watchpoints=False, pending=False):
358358
breakpoints = []
359359
# XXX in older versions gdb.breakpoints() returns None
360360
for gdb_breakpoint in gdb.breakpoints() or []:
361+
# skip internal breakpoints
362+
if gdb_breakpoint.number < 0:
363+
continue
361364
addresses, is_pending = parsed_breakpoints[gdb_breakpoint.number]
362365
is_pending = getattr(gdb_breakpoint, 'pending', is_pending)
363366
if not pending and is_pending:

0 commit comments

Comments
 (0)