osandov / drgn

Programmable debugger
Other
1.78k stars 165 forks source link

cli: catch FaultError when displaying objects #441

Closed osandov closed 1 month ago

osandov commented 1 month ago

Modify _displayhook to catch FaultError, log a warning, and print the repr() instead. Fixes #440.

osandov commented 1 month ago

@brenns10 let me know what you think of this fix.