diff --git a/peda.py b/peda.py index 122f5e0..6b975f8 100644 --- a/peda.py +++ b/peda.py @@ -4414,6 +4414,14 @@ def context(self, *arg): if "SIG" in status: msg("Stopped reason: %s" % red(status)) + # display breakpoint commands + bplist = peda.get_breakpoints() + for bp in bplist: + addr, cmds = bp[4], bp[6] + if addr == peda.getreg("pc") and cmds != "": + for _ in bp[6].split('\n'): peda.execute(_) + break + return def breakrva(self, *arg):