File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1985,6 +1985,10 @@ class Registers(Dashboard.Module):
1985
1985
changed = self .table and (self .table .get (name , '' ) != string_value )
1986
1986
self .table [name ] = string_value
1987
1987
registers .append ((name , string_value , changed ))
1988
+ # handle the empty register list
1989
+ if not registers :
1990
+ msg = 'No registers to show (check the "dashboard registers -style list" attribute)'
1991
+ return [ansi (msg , R .style_error )]
1988
1992
# compute lengths considering an extra space between and around the
1989
1993
# entries (hence the +2 and term_width - 1)
1990
1994
max_name = max (len (name ) for name , _ , _ in registers )
@@ -2036,7 +2040,8 @@ class Registers(Dashboard.Module):
2036
2040
'list' : {
2037
2041
'doc' : '''String of space-separated register names to display.
2038
2042
2039
- The empty list (default) causes to show all the available registers.''' ,
2043
+ The empty list (default) causes to show all the available registers. For
2044
+ architectures different from x86 setting this attribute might be mandatory.''' ,
2040
2045
'default' : '' ,
2041
2046
'name' : 'register_list' ,
2042
2047
}
You can’t perform that action at this time.
0 commit comments