# as a key, and the gdb.Breakpoint itself as a value. This is used to
# implement the clearing behavior specified by the protocol, while
# allowing for reuse when a breakpoint can be kept.
-breakpoint_map = {}
+_breakpoint_map = {}
@in_gdb_thread
@in_gdb_thread
def _set_breakpoints(kind, specs, creator):
# Try to reuse existing breakpoints if possible.
- if kind in breakpoint_map:
- saved_map = breakpoint_map[kind]
+ if kind in _breakpoint_map:
+ saved_map = _breakpoint_map[kind]
else:
saved_map = {}
- breakpoint_map[kind] = {}
+ _breakpoint_map[kind] = {}
result = []
with suppress_new_breakpoint_event():
for spec in specs:
)
# Reaching this spot means success.
- breakpoint_map[kind][keyspec] = bp
+ _breakpoint_map[kind][keyspec] = bp
result.append(_breakpoint_descriptor(bp))
# Exceptions other than gdb.error are possible here.
except Exception as e: