From 227a7f83d4ee77a47204d0132d828dc93fbcec18 Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 3 Aug 2023 15:09:07 +0100 Subject: [PATCH] remove workaround for issue #523 see discussion here: https://github.com/pwndbg/pwndbg/issues/523 --- pwndbg/commands/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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: