Valgrind does not show line-numbers

后端 未结 1 580
心在旅途
心在旅途 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)
提交回复
热议问题