]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Fix flake8 warning in gdb.python/py-inf-exited-at-exit.py
authorTom de Vries <tdevries@suse.de>
Mon, 15 Jun 2026 08:28:32 +0000 (10:28 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 15 Jun 2026 08:28:32 +0000 (10:28 +0200)
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.

gdb/testsuite/gdb.python/py-inf-exited-at-exit.py

index 9a5440b083f127df04543a12aadcf5971f9a3b13..4a73e562bc41473904ea13885d23249a199277ed 100644 (file)
@@ -13,6 +13,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import gdb
+
 
 def exit_event_handler(event):
     inf = event.inferior