fix for 'show version' bug

This commit is contained in:
d-millar
2024-06-17 23:19:58 +00:00
parent 1087a923b1
commit 740e5d94c5

View File

@@ -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))