1

I have a C++ project which i've been working on for a while. I decided to import it into eclipse mainly for code-completion/parsing and visual-debugging. The project uses a makefile, and g++ compiler. The relevant flags i pass to g++ are:

LOCAL_CPPFLAGS = -g -O0 -Wall -Wextra -rdynamic -DPLATFORM_DESKTOP -DDEBUG -std=c++11

LIB_FLAGS = -lglfw -lGL -lGLU -lGLEW -lpthread -lXxf86vm ./Libraries/libpng/built/libpng14.a -lz

I can debug the executable from the command line just fine. But when i try to set up a debug configuration in eclipse it seems to always break in a certain _dl_debug_state() with no symbols available (regardless of whether or not i have any breakpoints set)

When i turn on verbose logging i think i see it is in a shared library: /lib64/ld-linux-x86-64.so.2

I tried importing just the executable into a debug configuration, and that had the same result.

I read other questions in here and other forums which seemed to deal with the same issue, but none of them worked for me.

4

1 回答 1

1

好的,修好了。在调试配置中,在“调试器”选项卡下,有一个“共享库”子选项卡。取消选中“自动加载共享库符号”有帮助。

基本上,我可以在详细输出中看到它正在使用 "auto-solib-add" 和 "stop-on-solib-event" 做一些事情,但是子选项卡有点隐藏,我没有找到它在我的干预中足够快。

于 2013-10-03T04:46:05.380 回答