Ghidra is a software reverse engineering (SRE) framework
GP-4384: Upgrade to pybag-2.2.10
Dan87aecb85f9c3
diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.batindex c0f60ff116..4ce4b27a3a 100644--- a/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat+++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/debugger-launchers/local-dbgeng.bat@@ -15,7 +15,7 @@::@env OPT_TARGET_IMG:str="" "Image" "The target binary executable image"::@env OPT_TARGET_ARGS:str="" "Arguments" "Command-line arguments to pass to the target"::@env OPT_USE_DBGMODEL:bool=true "Use dbgmodel" "Load and use dbgmodel.dll if it is available."-::@env OPT_DBGMODEL_PATH:str="" "Path to dbgeng" "Path to dbgeng and associated DLLS (if not Windows Kits)."+::@env WINDBG_DIR:str="" "Path to dbgeng" "Path to dbgeng and associated DLLS (if not Windows Kits)."@echo offdiff --git a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/pyproject.toml b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/pyproject.tomlindex 9aea393d5e..6a0362775e 100644--- a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/pyproject.toml+++ b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/pyproject.toml@@ -18,7 +18,7 @@ classifiers = []dependencies = ["ghidratrace==10.4",- "pybag>=2.2.9"+ "pybag>=2.2.10"][project.urls]diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/libraries.py b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/libraries.pyindex 7aebf5c846..5b5cf44579 100644--- a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/libraries.py+++ b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/libraries.py@@ -24,41 +24,6 @@ from ghidradbg import dbgmodelctypes.windll.kernel32.SetErrorMode(0x0001 | 0x0002 | 0x8000)-if platform.architecture()[0] == '64bit':- dbgdirs = [os.getenv('OPT_DBGMODEL_PATH'),- r'C:\Program Files\Windows Kits\10\Debuggers\x64',- r'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64']-else:- dbgdirs = [os.getenv('OPT_DBGMODEL_PATH'),- r'C:\Program Files\Windows Kits\10\Debuggers\x86',- r'C:\Program Files (x86)\Windows Kits\10\Debuggers\x86']-dbgdir = None-for _dir in dbgdirs:- if _dir is not None and os.path.exists(_dir):- dbgdir = _dir- break--if not dbgdir:- raise RuntimeError("Windbg install directory not found!")--print(f"Loading dbgeng and friends from {dbgdir}")--# preload these to get correct DLLs loaded-try:- ctypes.windll.LoadLibrary(os.path.join(dbgdir, 'dbghelp.dll'))-except Exception as exc:- print(f"LoadLibrary failed: {dbgdir}\dbghelp.dll {exc}")- pass-try:- ctypes.windll.LoadLibrary(os.path.join(dbgdir, 'dbgeng.dll'))-except Exception as exc:- print(f"LoadLibrary failed: {dbgdir}\dbgeng.dll {exc}")- pass-try:- ctypes.windll.LoadLibrary(os.path.join(dbgdir, 'DbgModel.dll'))-except Exception as exc:- print(f"LoadLibrary failed: {dbgdir}\dbgmodel.dll {exc}")- passtry:from comtypes.gen import DbgMod