[hellogcc] Re: Fwd: Why running the next command will jump back to the previous line position

  • From: asmwarrior <asmwarrior@xxxxxxxxx>
  • To: xunxun <xunxun1982@xxxxxxxxx>
  • Date: Sat, 29 Oct 2011 19:02:52 +0800

On 2011-10-29 15:38, xunxun wrote:
不清 楚,应该是gcc的原因,最后插入了一些代码
我使用objdump -S看了下,最后确实call了前面的代码
不知道这样的用意是啥
在这个地方,main的第一句语句

std::map<int, std::string>  m;


映射了2个汇编代码段(一段是m的构造函数,一段是m的析构函数)

结果gdb在进行反向映射的时候,也就是说,当调用m的析构函数的时候,又把运行行指向了

std::map<int, std::string>  m;


这个问题至少有一年多了,似乎无解。。。。。


Other related posts: