MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / bp_commands

Method bp_commands

tools/python-3.11.9-amd64/Lib/pdb.py:327–349  ·  view source on GitHub ↗

Call every command that was set for the current active breakpoint (if there is one). Returns True if the normal interaction function must be called, False otherwise.

(self, frame)

Source from the content-addressed store, hash-verified

325 self.interaction(frame, None)
326
327 def bp_commands(self, frame):
328 """Call every command that was set for the current active breakpoint
329 (if there is one).
330
331 Returns True if the normal interaction function must be called,
332 False otherwise."""
333 # self.currentbp is set in bdb in Bdb.break_here if a breakpoint was hit
334 if getattr(self, "currentbp", False) and \
335 self.currentbp in self.commands:
336 currentbp = self.currentbp
337 self.currentbp = 0
338 lastcmd_back = self.lastcmd
339 self.setup(frame, None)
340 for line in self.commands[currentbp]:
341 self.onecmd(line)
342 self.lastcmd = lastcmd_back
343 if not self.commands_silent[currentbp]:
344 self.print_stack_entry(self.stack[self.curindex])
345 if self.commands_doprompt[currentbp]:
346 self._cmdloop()
347 self.forget()
348 return
349 return 1
350
351 def user_return(self, frame, return_value):
352 """This function is called when a return trap is set here."""

Callers 1

user_lineMethod · 0.95

Calls 5

setupMethod · 0.95
onecmdMethod · 0.95
print_stack_entryMethod · 0.95
_cmdloopMethod · 0.95
forgetMethod · 0.95

Tested by

no test coverage detected