]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb, testsuite, python: Add missing imports.
authorSchimpe, Christina <christina.schimpe@intel.com>
Mon, 19 Feb 2024 17:59:24 +0000 (17:59 +0000)
committerSchimpe, Christina <christina.schimpe@intel.com>
Wed, 25 Sep 2024 11:04:45 +0000 (11:04 +0000)
commitee06c79b0fefd5e4ed5e7a1171dc3440130e41da
tree41eeba29100975b8a429bf241cc4e0898e7ca54d
parent4eb048d448835e9a612643858b2ec49c6b520b65
gdb, testsuite, python: Add missing imports.

Removing the pretty printer (bound_registers.py) in the next commit
leads to failures due to a missing import of 'gdb.printing':

"AttributeError: module 'gdb' has no attribute 'printing'".

Add this import to each file requiring it, as it's not imported by the
pretty-printer anymore.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/python/lib/gdb/dap/varref.py
gdb/testsuite/gdb.python/py-pp-cast.py
gdb/testsuite/gdb.python/py-pp-re-notag.py
gdb/testsuite/gdb.python/py-prettyprint-stub.py