[binutils-gdb] Remove some unnecessary qualification from printing.py
Tom Tromey
tromey@sourceware.org
Tue Sep 26 15:54:29 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=54e053874dd91c96b0f70b6536147aa18b9ee305
commit 54e053874dd91c96b0f70b6536147aa18b9ee305
Author: Tom Tromey <tromey@adacore.com>
Date: Tue Sep 26 09:51:56 2023 -0600
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.
Diff:
---
gdb/python/lib/gdb/printing.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py
index 0bbe2cb8ae7..dec1351c2d7 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
More information about the Gdb-cvs
mailing list