diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py index 5aca2bdee4305244db10a3b5fc86286e97cc3967..ab62ef3e45c7c6b5e81459a84b52ce0d125a2860 100644 --- a/gdb/python/lib/gdb/printing.py +++ b/gdb/python/lib/gdb/printing.py @@ -271,6 +271,7 @@ class FlagEnumerationPrinter(PrettyPrinter): class NoOpScalarPrinter: """A no-op pretty printer that wraps a scalar value.""" + def __init__(self, value): self.value = value @@ -280,6 +281,7 @@ class NoOpScalarPrinter: class NoOpArrayPrinter: """A no-op pretty printer that wraps an array value.""" + def __init__(self, value): self.value = value (low, high) = self.value.type.range() @@ -302,6 +304,7 @@ class NoOpArrayPrinter: class NoOpStructPrinter: """A no-op pretty printer that wraps a struct or union value.""" + def __init__(self, value): self.value = value