用gdb调程序,为什么main函数的地址会在0xb7f4415a?

其它类软件,非上述版软件
回复
andylucky
帖子: 1
注册时间: 2011-10-28 14:17

用gdb调程序,为什么main函数的地址会在0xb7f4415a?

#1

帖子 andylucky »

求助啊!
我在ubuntu8.04下用gdb7.3.1调程序(之前也用apt-get装过6.X.X的,效果一样),attach后x main显示的是0xb7f4415a <main>: ...
这是怎么回事啊 :em20
图片
附件
未命名.JPG
未命名.JPG (3.45 KiB) 查看 1037 次
头像
RavenChan
帖子: 25
注册时间: 2011-01-21 22:39

Re: 用gdb调程序,为什么main函数的地址会在0xb7f4415a?

#2

帖子 RavenChan »

为什么不能在?
Reality is the most imaginary thing
@rorvn
== Return of Raven
头像
cjxgm
帖子: 1952
注册时间: 2010-04-23 20:40
系统: Arch Linux
来自: 浙江·杭州
联系:

Re: 用gdb调程序,为什么main函数的地址会在0xb7f4415a?

#3

帖子 cjxgm »

那就是个虚拟地址,不是物理地址,所以可以到 2G 的地方
Clanjor Prods. | Develop for Developers. (C++, Lua) | 作曲编曲 | 实时渲染引擎
回复