aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-26 09:51:56 -0600
committerTom Tromey <tromey@adacore.com>2023-09-26 09:51:56 -0600
commit54e053874dd91c96b0f70b6536147aa18b9ee305 (patch)
treeef9104cc9b5671e450ccfa56bfb1c4420afabf42 /gdb/python
parentf35baff348a2260616dc04721c31726d88e24851 (diff)
downloadgdb-54e053874dd91c96b0f70b6536147aa18b9ee305.zip
gdb-54e053874dd91c96b0f70b6536147aa18b9ee305.tar.gz
gdb-54e053874dd91c96b0f70b6536147aa18b9ee305.tar.bz2
Remove some unnecessary qualification from printing.py
printing.py references "gdb.printing" in a few spots, but there's no need for this. I think this is leftover from when this code was (briefly) in some other module. This patch removes the unnecessary qualifications. Tested on x86-64 Fedora 36.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/lib/gdb/printing.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py
index 0bbe2cb..dec1351 100644
--- a/gdb/python/lib/gdb/printing.py
+++ b/gdb/python/lib/gdb/printing.py
@@ -367,15 +367,15 @@ def make_visualizer(value):
else:
ty = value.type.strip_typedefs()
if ty.is_string_like:
- result = gdb.printing.NoOpScalarPrinter(value)
+ result = NoOpScalarPrinter(value)
elif ty.code == gdb.TYPE_CODE_ARRAY:
- result = gdb.printing.NoOpArrayPrinter(ty, value)
+ result = NoOpArrayPrinter(ty, value)
elif ty.is_array_like:
value = value.to_array()
ty = value.type.strip_typedefs()
- result = gdb.printing.NoOpArrayPrinter(ty, value)
+ result = NoOpArrayPrinter(ty, value)
elif ty.code in (gdb.TYPE_CODE_STRUCT, gdb.TYPE_CODE_UNION):
- result = gdb.printing.NoOpStructPrinter(ty, value)
+ result = NoOpStructPrinter(ty, value)
elif ty.code in (
gdb.TYPE_CODE_PTR,
gdb.TYPE_CODE_REF,
@@ -383,7 +383,7 @@ def make_visualizer(value):
):
result = NoOpPointerReferencePrinter(value)
else:
- result = gdb.printing.NoOpScalarPrinter(value)
+ result = NoOpScalarPrinter(value)
return result