diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/util.py b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/util.py index f883d39c54..dc85fc987d 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/util.py +++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/util.py @@ -28,6 +28,8 @@ def _compute_gdb_ver(): top = blurb.split('\n')[0] full = top.split(' ')[-1] major, minor = full.split('.')[:2] + if '-' in minor: + minor = minor[:minor.find('-')] return GdbVersion(full, int(major), int(minor))