Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确定这是由编码引起的,gdb并在 gdb 中找到了更改编码的命令:
gdb
set charset charsetname
我尝试了utf8, UTF8, UTF-8, utf-8,gbk等gb2312来替换charsetname, 但都返回了: Undefined name: charsetname.
utf8
UTF8
UTF-8
utf-8
gbk
gb2312
charsetname
Undefined name: charsetname
我怎么知道gdb支持哪些编码?
输入
set charset
然后按两次TAB 键,GDB 会列出可以使用的字符集的名称。