Ensure ordering of "start" command

This commit is contained in:
Zach Riggle 2015-04-23 02:12:35 -07:00
parent 5a08d8d553
commit 6f8c15dc94
1 changed files with 3 additions and 4 deletions

View File

@ -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