From: Tom de Vries Date: Mon, 15 Jun 2026 08:28:32 +0000 (+0200) Subject: [gdb] Fix flake8 warning in gdb.python/py-inf-exited-at-exit.py X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d5cf13cba6bee05612e16bf8bef8b1978c1178;p=thirdparty%2Fbinutils-gdb.git [gdb] Fix flake8 warning in gdb.python/py-inf-exited-at-exit.py With current trunk we have: ... $ pre-commit run flake8 --all-files flake8..................................................................Failed - hook id: flake8 - exit code: 1 gdb.python/py-inf-exited-at-exit.py:22:1: F821 undefined name 'gdb' ... Fix this by adding the missing import. --- diff --git a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py index 9a5440b083f..4a73e562bc4 100644 --- a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py +++ b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py @@ -13,6 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +import gdb + def exit_event_handler(event): inf = event.inferior