Re: [PATCH] gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with corrupt codes

2019-04-26 Thread Jeff Law
On 4/18/19 6:47 AM, Eugene Sharygin wrote: > Hi, > > This silences UnicodeDecodeError Python exceptions raised when trying to > print a tree with a corrupt (or uninitialized) code in Gdb: > > Python Exception 'utf-8' codec can't decode > byte 0xb8 in position 0: invalid start byte: > > Wit

[PATCH] gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with corrupt codes

2019-04-18 Thread Eugene Sharygin
Hi, This silences UnicodeDecodeError Python exceptions raised when trying to print a tree with a corrupt (or uninitialized) code in Gdb: Python Exception 'utf-8' codec can't decode byte 0xb8 in position 0: invalid start byte: With this patch, TreePrinter would print such trees generically