Skip to content

Commit 9facea6

Browse files
committed
Avoid errors in older GDB versions where BP_CATCHPOINT is not there
Related to #270.
1 parent 72ca40b commit 9facea6

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
@@ -2221,6 +2221,9 @@ class Expressions(Dashboard.Module):
22212221
match = re.match('^Default output radix for printing of values is (\d+)\.$', message)
22222222
return match.groups()[0] if match else 10 # fallback
22232223

2224+
# XXX workaround to support BP_BREAKPOINT in older GDB versions
2225+
setattr(gdb, 'BP_CATCHPOINT', getattr(gdb, 'BP_CATCHPOINT', 26))
2226+
22242227
class Breakpoints(Dashboard.Module):
22252228
'''Display the breakpoints list.'''
22262229

0 commit comments

Comments
 (0)