mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-4674+8: fix for state
This commit is contained in:
parent
2a03e142bc
commit
0bfad2458d
1 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,8 @@ else:
|
||||||
def main():
|
def main():
|
||||||
# Delay these imports until sys.path is patched
|
# Delay these imports until sys.path is patched
|
||||||
from ghidradbg import commands as cmd
|
from ghidradbg import commands as cmd
|
||||||
from ghidradbg.hooks import on_stop
|
from pybag.dbgeng import core as DbgEng
|
||||||
|
from ghidradbg.hooks import on_state_changed
|
||||||
from ghidradbg.util import dbg
|
from ghidradbg.util import dbg
|
||||||
|
|
||||||
# So that the user can re-enter by typing repl()
|
# So that the user can re-enter by typing repl()
|
||||||
|
@ -62,7 +63,7 @@ def main():
|
||||||
cmd.ghidra_trace_start(os.getenv('OPT_TARGET_IMG'))
|
cmd.ghidra_trace_start(os.getenv('OPT_TARGET_IMG'))
|
||||||
cmd.ghidra_trace_sync_enable()
|
cmd.ghidra_trace_sync_enable()
|
||||||
|
|
||||||
on_stop()
|
on_state_changed(DbgEng.DEBUG_CES_EXECUTION_STATUS, DbgEng.DEBUG_STATUS_BREAK)
|
||||||
cmd.repl()
|
cmd.repl()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue