From 6e9542fc7ee1d6615bbbd9d095d7df9bfa4dbe30 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Thu, 23 Apr 2015 02:12:35 -0700 Subject: [PATCH] Ensure ordering of "start" command --- pwndbg/commands/start.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pwndbg/commands/start.py b/pwndbg/commands/start.py index 8dc5940e3..d43593e7b 100644 --- a/pwndbg/commands/start.py +++ b/pwndbg/commands/start.py @@ -35,14 +35,13 @@ def start(*a): "init", "_init"] - # Try a symbolic breakpoint which GDB will automatically update. - symbols = {s:pwndbg.symbol.address(s) for s in symbols} + for symbol in symbols: + address = pwndbg.symbol.address(symbol) - for name, address in symbols.items(): if not address: continue - b = gdb.Breakpoint(name, temporary=True) + b = gdb.Breakpoint(symbol, temporary=True) gdb.execute(run, from_tty=False, to_string=True) return