gdb调试python的时候,需要根据不同的python版本2.6、2.7、3.x安装相应的gdb;

如何指定关联的python版本?

下面gdb源码,解压后,进入目录:

./configure -h 并没有发现--with-python的选项。

没有也没有问题,没有也可以自己加:which python找到python的执行路径,放到--with-python参数里

./configure --with-python='/usr/local/bin/python2.7'

 

 

gdb下载地址:http://ftp.gnu.org/gnu/gdb/?C=M;O=D

 

参考:

https://stackoverflow.com/questions/26243956/how-to-change-the-python-interpreter-that-gdb-uses

相关文章:

  • 2022-01-23
  • 2021-06-27
  • 2022-12-23
  • 2021-09-29
  • 2021-08-05
  • 2022-12-23
  • 2021-07-14
  • 2021-08-04
猜你喜欢
  • 2021-12-27
  • 2022-02-04
  • 2022-12-23
  • 2021-08-22
  • 2021-11-22
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案