gdb 调试打印中文如何打印,每次打印都会打印如下。。
$23 = 0x6d26ecd8 "һ\274", <incomplete sequence \323>
1
zts1993 2016-01-15 20:05:40 +08:00 via Android
非二进制安全字符串?
|
2
yeahren 2016-01-15 20:54:43 +08:00
(gdb) help printf
printf "printf format string", arg1, arg2, arg3, ..., argn This is useful for formatted output in user-defined commands. . . . (gdb) printf "%s\n", test_chinese_str |