使用gdb调试单步程序时如果打印提示“single stepping until exit from function xxx,which has no line number information”,可能的原因有两个:

1 编译源文件时没有加-g选项;

2 gcc与gdb版本不兼容,通常是由于手工对gcc程序进行了升级,导致现有gdb程序版本过旧,比如gcc升级到4.8版本,gdb仍为旧的7.2版本。此时需要下载新版gdb源码包(7.8版本可行),手工升级gdb。

./configure
make & make install
cp -fv ./gdb/gdb /usr/bin/

 

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2021-05-20
  • 2021-12-05
  • 2022-12-23
  • 2021-09-09
  • 2021-09-20
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-07-28
  • 2021-05-22
  • 2021-06-15
  • 2021-06-25
相关资源
相似解决方案