Is this always the address for GDB debug program?

前端 未结 2 2021
天命终不由人
天命终不由人 2021-01-29 01:39

I will narrow down my questions:

The entry address in GDB stays the same for the same program (even after reboot, and after rewriting the source code).

Why is th

2条回答
  •  不思量自难忘°
    2021-01-29 02:12

    Your program is (at least partially) statically linked, and main() almost certainly is. Rebooting your computer isn't going to change that statically linked part of the executable.

提交回复
热议问题