aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-pp-cast.py
diff options
context:
space:
mode:
authorSchimpe, Christina <christina.schimpe@intel.com>2024-02-19 17:59:24 +0000
committerSchimpe, Christina <christina.schimpe@intel.com>2024-09-25 11:04:45 +0000
commitee06c79b0fefd5e4ed5e7a1171dc3440130e41da (patch)
tree41eeba29100975b8a429bf241cc4e0898e7ca54d /gdb/testsuite/gdb.python/py-pp-cast.py
parent4eb048d448835e9a612643858b2ec49c6b520b65 (diff)
downloadgdb-ee06c79b0fefd5e4ed5e7a1171dc3440130e41da.zip
gdb-ee06c79b0fefd5e4ed5e7a1171dc3440130e41da.tar.gz
gdb-ee06c79b0fefd5e4ed5e7a1171dc3440130e41da.tar.bz2
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>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-pp-cast.py')
-rw-r--r--gdb/testsuite/gdb.python/py-pp-cast.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-pp-cast.py b/gdb/testsuite/gdb.python/py-pp-cast.py
index 6eff800..a0c48f9 100644
--- a/gdb/testsuite/gdb.python/py-pp-cast.py
+++ b/gdb/testsuite/gdb.python/py-pp-cast.py
@@ -13,6 +13,7 @@
# 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.printing
class PpIntPrinter(object):
def __init__(self, val):