scripts: Tweaked corrupt rbyd coloring to include addresses

This matches the coloring in dbglfs.py for other erroneous conditions,
and also matches how we color hidden items when shown.

Also fixed some minor bugs in grm printing.
This commit is contained in:
Christopher Haster
2025-04-05 18:44:33 -05:00
parent e5b430cb8c
commit 202636cccd
4 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -2771,9 +2771,9 @@ class Gstate:
def repr(self):
return 'grm %s' % (
'none' if self.count == 0
else ' '.join(str(mid) for mid in self.rms)
else ' '.join(mid.repr() for mid in self.rms)
if self.count <= 2
else '0x%x %d' % (count, len(data)))
else '0x%x %d' % (self.count, len(self.data)))
# keep track of known gstate
_known = [g for g in Gstate.__subclasses__() if g.tag is not None]