library多线程file1.gdb (运行程序名称)

例如

gdb cbenchmark

 

2.设置运行参数

set args -c 1 -n 1 -F ./libaliww.so -l 1

 

3.如果是多线程程序

set follow-fork-mode child

 

4.设置断点,如果代码是动态链接库.so中的代码系统会提示如提示1

b CWWSimulator.cpp:530

 

提示1:

No source file named CWWSimulator.cpp.
Make breakpoint pending on future shared library load? (y or [n])

输入y,回车

 

经过如上步骤即可断到相关代码

相关文章:

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