From df32e12583c6b64099bc958b3c692288815f75b9 Mon Sep 17 00:00:00 2001 From: Gyorgy Miru Date: Fri, 23 Nov 2018 02:34:26 +0100 Subject: [PATCH] Fixed value exception on gdb 8.2 (#575) * Fixed value exception on gdb 8.2 * More explicit comment --- pwndbg/commands/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pwndbg/commands/__init__.py b/pwndbg/commands/__init__.py index 88f35cbcc..03b45855e 100644 --- a/pwndbg/commands/__init__.py +++ b/pwndbg/commands/__init__.py @@ -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: