File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -621,12 +621,15 @@ def _display_value(self, value: Any) -> str:
621621 if isinstance (value , objects .Pointer ):
622622 # show pointers in hex to match output for struct addrs
623623 # highlight null or unreadable pointers
624- if value == 0 :
625- suffix = " (null pointer)"
626- elif not value .is_readable ():
627- suffix = " (unreadable pointer)"
628- else :
629- suffix = ""
624+ try :
625+ if value == 0 :
626+ suffix = " (null pointer)"
627+ elif not value .is_readable ():
628+ suffix = " (unreadable pointer)"
629+ else :
630+ suffix = ""
631+ except exceptions .SymbolError as exc :
632+ suffix = f" (unknown sized { exc .symbol_name } )"
630633 return f"{ hex (value )} { suffix } "
631634 elif isinstance (value , objects .PrimitiveObject ):
632635 return repr (value )
You can’t perform that action at this time.
0 commit comments