projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Corrected mono-gdb.py use of "\u%X".format (val)
[mono.git]
/
data
/
gdb
/
mono-gdb.py
diff --git
a/data/gdb/mono-gdb.py
b/data/gdb/mono-gdb.py
index ce34d357f643f46953e45518289e7dc796853b9d..f4dcfe72c09edbea4c3fcf23c19c3e0bbf1c0502 100644
(file)
--- a/
data/gdb/mono-gdb.py
+++ b/
data/gdb/mono-gdb.py
@@
-31,7
+31,7
@@
class StringPrinter:
while i < len:
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
- c =
"\u%X".format
(val)
+ c =
unichr
(val)
else:
c = chr (val)
res.append (c)