What do I need to debug pthreads?

后端 未结 2 1147
悲&欢浪女
悲&欢浪女 2021-02-15 13:23

I want to debug pthreads on my custom linux distribution but I am missing something. My host is Ubuntu 12.04, my target is an i486 custom embedded Linux built with a crosstool-N

2条回答
  •  走了就别回头了
    2021-02-15 14:00

    Just a though... To use the gdb debugger, you need to compile your code with -g option. For instance, gcc -g -c *.c.

提交回复
热议问题