diff options
author | Tom Tromey <tromey@adacore.com> | 2023-11-13 14:03:58 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-11-17 08:36:21 -0700 |
commit | 4a1b9a4badc8954221926b231b81392fa625653c (patch) | |
tree | 3409a3a23cb794807111c654f226c870729cfe28 /gdb/python | |
parent | cfd00e8050a58aacc6489ec0379908be1a12be73 (diff) | |
download | binutils-4a1b9a4badc8954221926b231b81392fa625653c.zip binutils-4a1b9a4badc8954221926b231b81392fa625653c.tar.gz binutils-4a1b9a4badc8954221926b231b81392fa625653c.tar.bz2 |
Ignore static members in NoOpStructPrinter
Hannes' patch to show local variables in the TUI pointed out that
NoOpStructPrinter should ignore static members. This patch implements
this.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/lib/gdb/printing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py index dec1351..14bd84b 100644 --- a/gdb/python/lib/gdb/printing.py +++ b/gdb/python/lib/gdb/printing.py @@ -350,7 +350,7 @@ class NoOpStructPrinter(gdb.ValuePrinter): def children(self): for field in self.__ty.fields(): - if field.name is not None: + if hasattr(field, "bitpos") and field.name is not None: yield (field.name, self.__value[field]) |