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变量disable-randomization是ON,但变量的内存地址在不同的运行时仍然会发生变化 。
gdb
disable-randomization
ON
第一次运行:
(gdb) p &g[v].bIsDummyVertex $13 = (bool *) 0x143d6a7c
第二次运行:
(gdb) p &g[v].bIsDummyVertex $13 = (bool *) 0x143d63e4
我期待内存位置的值相同,因为禁用随机化已打开。