forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user