Skip to content

Commit 1fc5a5a

Browse files
N00byEdgecyrus-and
andauthored
Remove unavailable registers from the register view
Co-authored-by: Andrea Cardaci <[email protected]>
1 parent 101cf69 commit 1fc5a5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gdbinit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,9 @@ class Registers(Dashboard.Module):
19601960
continue
19611961
value = gdb.parse_and_eval('${}'.format(name))
19621962
string_value = Registers.format_value(value)
1963+
# exclude unavailable registers (see #255)
1964+
if string_value == '<unavailable>':
1965+
continue
19631966
changed = self.table and (self.table.get(name, '') != string_value)
19641967
self.table[name] = string_value
19651968
registers.append((name, string_value, changed))

0 commit comments

Comments
 (0)