diff --git a/pwndbg/commands/__init__.py b/pwndbg/commands/__init__.py index 9fdf48eb8..f5d767c55 100644 --- a/pwndbg/commands/__init__.py +++ b/pwndbg/commands/__init__.py @@ -163,12 +163,7 @@ class Command(gdb.Command): last_line = lines[-1] number_str, command = last_line.split(maxsplit=1) - try: - number = int(number_str) - except ValueError: - # Workaround for a GDB 8.2 bug when show commands return error value - # See issue #523 - return False + number = int(number_str) # A new command was entered by the user if number not in Command.history: