且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用 gdb 调试多线程应用程序

更新时间:2023-09-13 20:41:04

警告:无法找到与下级线程库匹配的 libthread_db

warning: Unable to find libthread_db matching inferior's thread library

这意味着您的 /lib/libthread_db.so.1 与您的 /lib/libpthread.so.0 不匹配.这种不匹配可能是由于您安装了不同版本的 libclibthread_db 包,或者在包管理系统之外更新了一个或另一个.这也可能是你的包中的错误(即它们可能没有正确构建).

This means that your /lib/libthread_db.so.1 does not match your /lib/libpthread.so.0. Such mismatch could be the result of you installing different versions of libc and libthread_db packages, or updating one or the other outside of the package management system. It could also be an error in your packages (i.e. they may not be built correctly).

你应该忽略 /lib/.debug/*——那是不是你正在寻找的库.

You should ignore /lib/.debug/* -- that is not the library you are looking for.