Commit 45e16056 authored by Mark Florisson's avatar Mark Florisson

"Fix" printing of gdb.Values with non-ascii characters or unicode ordinals

parent 3be21c3b
......@@ -59,6 +59,10 @@ import itertools
import gdb
# I think this is the only way to fix this bug :'(
# http://sourceware.org/bugzilla/show_bug.cgi?id=12285
reload(sys).setdefaultencoding('UTF-8')
# Look up the gdb.Type for some standard types:
_type_char_ptr = gdb.lookup_type('char').pointer() # char*
_type_unsigned_char_ptr = gdb.lookup_type('unsigned char').pointer() # unsigned char*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment