在 GDB 中打印不带地址的字符串

Print string in GDB without address

提问人:Polo1990 提问时间:9/18/2023 更新时间:9/18/2023 访问量:26

问:

我想打印指向字符串的寄存器地址

x/s $x0

我得到了

$77 =0xaabbccdd "SomeString"

嗨,我只能在没有的情况下打印SomeString$77 =0xaabbccdd

调试 gdb cpu 寄存器

评论

0赞 ssbssa 9/18/2023
尝试printf "%s",$x0
0赞 Polo1990 9/19/2023
@ssbssa你。你可以把它作为评论,所以我会标记它

答: 暂无答案