Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CDT support for GDB 10.1 - Issue with gdb --version on Eclipse

Hi Sai Krishna.

Short answer is GDB 10.1 built from source works for me (on Ubuntu 20.04). I tried it in Eclipse 2019-12 as well as 2020-12 and had it working in both.

The fact that you are getting loader errors in the IDE but not in the terminal is unusual. Please file a bug and we can continue the conversation there. What it will be is some configuration issue, the only question is if CDT is breaking the configuration on your machine, or something else going on. The first thing I'll have you try once you file the bug is to create a bash shell (with External Tools Launch Configuration) and try /somepath/bin/gdb --version in there. This will determine if the problem is Eclipse or CDT.

I look forward to your bug report.


Jonah Graham
Kichwa Coders

On Wed, 3 Mar 2021 at 06:30, Sai Krishna Tati Pati <ksai@xxxxxxxxxxx> wrote:

Hi CDT devs,


I was experimenting with a combination of CDT 9.10, Eclipse 4.14 and gdb 10.1.


I am seeing some issues with this combination. It will be great if someone can help me out here. :)



               1) I downloaded the package at with CDT 9.10.

               2) Downloaded the source of gdb 10.1 from

               3) I followed the steps mentioned in to install gdb.

               4) I installed gdb at other location than the default "/usr/local/bin" using "./configure --prefix=/my/custom/location" during the configure step in point 3.



               RHEL 7 - Red Hat Enterprise Linux Workstation release 7.3 (Maipo)

               No sudo access.


On eclipse

               1) I created a "c managedbuild project"

               2) In the source file, just added some integers and initialized them with some values.

               3) Built the project.

               4) Created a new debug configuration and changed the gdb to use using the Debugger tab of the debug configurations dialog.

               5) Clicking on "Debug" is giving me the following error.


               Could not determine GDB version using command: /somepath/bin/gdb --version

               /somepath/bin/gdb: /lib64/ version `GLIBCXX_3.4.20' not found (required by /somepath/bin/gdb)

               /somepath/bin/gdb: /lib64/ version `CXXABI_1.3.8' not found (required by /somepath/bin/gdb)

               /somepath/bin/gdb: /lib64/ version `GLIBCXX_3.4.21' not found (required by /somepath/bin/gdb)


Now, this is not seen when I am running gdb on the terminal.


I have two questions..

               Does this have anything to do with the earlier CDT and Eclipse that I am using?

               Is gdb10.1 support added in CDT? If yes, what is the earliest CDT where it is supported?



Sai Krishna.







cdt-dev mailing list
To unsubscribe from this list, visit

Back to the top