简体   繁体   English

sval 在 gdb 中是什么意思?

[英]What does sval mean in gdb?

GDB is showing the content of a register as GDB 将寄存器的内容显示为

rbp            0x604420 0x604420 <sval>  

What does sval mean? sval 是什么意思? Does it means string val?这是否意味着字符串 val?

What does sval mean? sval 是什么意思?

It means that there is a symbol (given x86_64 target, 0x604420 would usually mean it's a .text symbol) with that value in the binary, and rbp happens to point to that symbol.这意味着在二进制中有一个具有该值的符号(给定x86_64目标, 0x604420通常意味着它是一个.text符号),并且rbp恰好指向该符号。

You can run nm your-binary | grep sval你可以运行nm your-binary | grep sval nm your-binary | grep sval and see that symbol. nm your-binary | grep sval并看到那个符号。

Does it means string val?这是否意味着字符串 val?

No, nothing of the sort.不,什么都没有

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM