Fixed value exception on gdb 8.2 (#575)

* Fixed value exception on gdb 8.2

* More explicit comment
pull/579/head
Gyorgy Miru 7 years ago committed by Disconnect3d
parent 2978cd86bc
commit df32e12583

@ -112,7 +112,12 @@ class Command(gdb.Command):
last_line = lines[-1]
number, command = last_line.split(None, 1)
number = int(number)
try:
number = int(number)
except ValueError:
# Workaround for a GDB 8.2 bug when show commands return error value
# See issue #523
return False
# A new command was entered by the user
if number not in Command.history:

Loading…
Cancel
Save