mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-5270: post-review
GP-5720: engine options GP-5720: engine options
This commit is contained in:
parent
c5d7728ed3
commit
0b13f8de50
3 changed files with 18 additions and 17 deletions
|
@ -21,6 +21,7 @@
|
|||
::@env OPT_CREATE_FLAGS:int="1" "Create flags" "Creation flags"
|
||||
::@env OPT_CREATE_ENGFLAGS:int="0" "Create flags (Engine)" "Engine-specific creation flags"
|
||||
::@env OPT_VERIFIER_FLAGS:int="0" "Verifier flags" "Verifier flags"
|
||||
::@env OPT_ENG_OPTIONS:int="0x20" "Engine options" "Options for AddEngineOptions (e.g. INITIAL_BREAK=0x20)"
|
||||
|
||||
@echo off
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ def main():
|
|||
os.getenv('OPT_CREATE_FLAGS'),
|
||||
os.getenv('OPT_CREATE_ENGFLAGS'),
|
||||
os.getenv('OPT_VERIFIER_FLAGS'),
|
||||
os.getenv('OPT_ENG_OPTIONS'),
|
||||
start_trace=False)
|
||||
|
||||
# TODO: HACK
|
||||
|
|
|
@ -270,7 +270,7 @@ def ghidra_trace_create(command=None, initial_break=True, timeout=DbgEng.WAIT_IN
|
|||
|
||||
|
||||
@util.dbg.eng_thread
|
||||
def ghidra_trace_create_ext(command=None, initialDirectory='.', envVariables="\0\0", create_flags=1, create_flags_eng=0, verifier_flags=0, initial_break=True, timeout=DbgEng.WAIT_INFINITE, start_trace=True):
|
||||
def ghidra_trace_create_ext(command=None, initialDirectory='.', envVariables="\0\0", create_flags=1, create_flags_eng=0, verifier_flags=0, engine_options=0x20, timeout=DbgEng.WAIT_INFINITE, start_trace=True):
|
||||
"""
|
||||
Create a session.
|
||||
"""
|
||||
|
@ -295,8 +295,7 @@ def ghidra_trace_create_ext(command=None, initialDirectory='.', envVariables="\0
|
|||
if envVariables is not None and envVariables.endswith("/0/0") is False:
|
||||
envVariables += "/0/0"
|
||||
dbg._client.CreateProcess2(command, options, initialDirectory, envVariables)
|
||||
if initial_break:
|
||||
dbg._control.AddEngineOptions(DbgEng.DEBUG_ENGINITIAL_BREAK)
|
||||
dbg._control.AddEngineOptions(int(engine_options))
|
||||
if start_trace:
|
||||
ghidra_trace_start(command)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue