From e5c392f1737e455500727cd57228ea6db650d677 Mon Sep 17 00:00:00 2001 From: "cheese.office.x64" Date: Sun, 13 Jan 2019 17:52:42 -0800 Subject: [PATCH] Added display commands of breakpoint --- peda.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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):