Valgrind does not show line-numbers

后端 未结 1 586
心在旅途
心在旅途 2021-01-11 22:43

I\'m trying to find out where I made invalid writes to a piece of memory using Valgrind. It tells there is such an issue, also in what function, but not in what line. Althou

相关标签:
1条回答
  • 2021-01-11 23:18

    You need to include debug information in your binaries. Pass the -g flag if you're using gcc.

    0 讨论(0)
提交回复
热议问题