Debugging Issues with Clang 3.4 / Bundled GDB on Ubuntu 14.04.3 LTS x64

In Clion, the debugger is not hitting any of my breakpoints.  I have (at least) two problems from what I can tell form the GDB Log:

GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
python
>>>>>No source file named /opt/Company/Projects/Project/CMakeLists.txt.
No source file named /opt/Company/Projects/Project/File.cpp.
No source file named /opt/Company/Projects/Project/File.cpp.
No source file named /opt/Company/Projects/Project/File2.cpp.
No source file named /opt/Company/Projects/Project/linuxmain.cpp.
No source file named /opt/Company/Projects/Project/linuxmain.cpp.
Got object file from memory but can't read symbols: File truncated.
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.



1) It looks like the bundled GDB cannot load the libpthread / libthread_db libraries from the /usr/lib/x86_64-linux-gnu.  I have created a .gdbinit file in ~, but the bundled gdb doesn't seem to load it.  When I choose to use the installed version of gdb instead, I don't get the warning about the thread library.

2) It looks like it cannot find the source code in the compiled file even though it was compiled with the -g option.  I've tried both Debug and RelWithDebInfo configurations.

Any suggestions?

7 comments
Comment actions Permalink

Problem 2 was caused by a dumb error -- I had Release Mode hard coded into the CMake.

I still have an issue with Problem 1 when using the integrated GDB.  I managed to find a PPA for Ubuntu that let me upgrade 14.04.3 to use GDB 7.8 in the meantime.

0
Comment actions Permalink

Hi Matt.

Could you also please add the following line to (Help | Configure Debug Log Settings)
#com.jetbrains.cidr.execution.debugger

and send us idea.log file (Help | Show log in ) after the problem will happen again.

Could you also please try to use the system debugger? Will it work?
0
Comment actions Permalink

Log sent by email

0
Comment actions Permalink

Hi Matt.

Could you please specify which email address did you use? We didn't get the log on clion-support @jetbrains.com yet.

0
Comment actions Permalink

I sent it last Friday.  Just resent.

0
Comment actions Permalink

We have received it! Thanks.

0
Comment actions Permalink

I have the same problem.

If anyone else experiences this also, please upvote on the bug tracker:

https://youtrack.jetbrains.com/issue/CPP-2535

0

Please sign in to leave a comment.