diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat index eb9e84b023..d0f788bc90 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng-attach.bat @@ -10,8 +10,8 @@ ::@icon icon.debugger ::@help TraceRmiLauncherServicePlugin#dbgeng_attach ::@env OPT_PYTHON_EXE:file!="python" "Python command" "The path to the Python 3 interpreter. Omit the full path to resolve using the system PATH." -::@env OPT_TARGET_PID:int="" "Process id" "The target process id" -::@env OPT_ATTACH_FLAGS:int="0" "Attach flags" "Attach flags" +::@env OPT_TARGET_PID:int=0 "Process id" "The target process id" +::@env OPT_ATTACH_FLAGS:int=0 "Attach flags" "Attach flags" ::@env OPT_USE_DBGMODEL:bool=true "Use dbgmodel" "Load and use dbgmodel.dll if it is available." ::@env WINDBG_DIR:dir="" "Path to dbgeng.dll directory" "Path containing dbgeng and associated DLLS (if not Windows Kits)." diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/arch.py b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/arch.py index 1a507fbd76..7a0ab053a7 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/arch.py +++ b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/arch.py @@ -208,16 +208,11 @@ class DefaultMemoryMapper(object): self.defaultSpace = defaultSpace def map(self, proc: int, offset: int): - if proc == 0: - space = self.defaultSpace - else: - space = f'{self.defaultSpace}{proc}' + space = self.defaultSpace return self.defaultSpace, Address(space, offset) def map_back(self, proc: int, address: Address) -> int: - if address.space == self.defaultSpace and proc == 0: - return address.offset - if address.space == f'{self.defaultSpace}{proc}': + if address.space == self.defaultSpace: return address.offset raise ValueError(f"Address {address} is not in process {proc}")