Eclipse CDT:加载外部共享库的调试符号 [英] Eclipse CDT: Loading debug symbols for an external shared libraries

查看:272
本文介绍了Eclipse CDT:加载外部共享库的调试符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试调试到第三方库( GTS )。
我从Ubuntu的Synaptic Package Manager安装了共享库及其调试符号。我还从Sourceforge下载了库的源文件。



我使用Eclipse CDT来调试一个提供的示例,我想进入
图书馆的代码。问题是在调试期间,即使我逐步进入,Eclipse也会跳过库函数调用。



有人可以帮我解决这个问题..谢谢



我正在使用Eclipse Helios与CDT 7.0

解决方案

显然是GDB没有找到调试符号文件,或者拒绝它们不符合您的实际二进制文件。



作为第一步,尝试找出GDB正在查找的位置,文件是否存在。以下(gdb)显示debug-file-dir 应该告诉你GDB在哪里寻找单独的debuginfo文件



如果。调试/ 文件实际上安装在GDB期望的位置,(gdb)set verbose 可能会提供关于为什么不加载的其他线索。 / p>

I'm trying to debug into a third-party library (GTS). I installed the shared library and its debugging symbols from the Synaptic Package Manager in Ubuntu. I also downloaded the source files for the library from Sourceforge.

I'm using Eclipse CDT to debug one the provided examples, and I would like to go into the library's code. The problem is that during debugging, Eclipse simply skips the library function calls even when i go into it step by step.

Can someone help me with this problem.. Thanks

I'm using Eclipse Helios with CDT 7.0

解决方案

Obviously either GDB is not finding the debugging symbol files, or is rejecting them as not matching your actual binaries.

As the first step, try to figure out where GDB is looking, and whether the files are there. The following (gdb) show debug-file-dir should tell you where GDB is looking for separate debuginfo files.

If the .debug/ files are actually installed where GDB expects them, (gdb) set verbose on may provide additional clues about why they do not get loaded.

这篇关于Eclipse CDT:加载外部共享库的调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆