让我们只关注Rect_IsEmpty()
功能。
该nm
命令给了我这个输出:
(...)
00021af0 T Rect_IsEmpty
(...)
另一方面,当我启动gdb
并查看此函数的地址时,我得到:
(gdb) info address Rect_IsEmpty
Symbol "Rect_IsEmpty" is at 0x8057c84 in a file compiled without debugging.
谁能解释一下为什么这些地址不一样?gdb 从哪里得到这个地址?