最近遇到这个警告,这个警告的意思是说,调试的程序是多线程的程序,而且找到了libthread_db 和libc的目标文件,共享库,但是找不到符号:pthread_create。然后就报了这个警告:
Unable to find libthread_db matching inferior’s thread library, thread debugging will not be available.
从下面的链接,可以看到以后libthread_db 的函数可能要合到libc里去,所以要添加对libc的兼容。
https://github.com/bminor/binutils-gdb/commit/e2b9ea4bbbf16962da55062b3aef6f5238a50f3d
那为什么没找到相关的符号呢?
就是对应的so文件中没找到符号,需要debuginfo相关的rpm安装。