gdb -O2 will cause, when debugging, some variable can not be print,

we will see "optimized out"

 

dont use the -O2 option, every thing will be fine, but add O2 in makefile, will make the process run faster

 

gdb -O2

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
  • 2021-10-03
  • 2022-12-23
  • 2022-01-23
  • 2021-10-27
  • 2021-05-28
猜你喜欢
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案