|
Re: integration with older gdb version / linux [message #1721175 is a reply to message #1721170] |
Mon, 25 January 2016 13:27 |
Jonah Graham Messages: 416 Registered: June 2014 |
Senior Member |
|
|
Eclipse CDT 8.7 that is part of Mars (or 8.8 pars of Mars.1) has support for gdb >= 7.1: See the details at the bottom of: https://wiki.eclipse.org/CDT/User/NewIn86#Support_for_older_GDB_versions
Quote:
Discontinued support for some older GDB versions
As of CDT 8.6, we will actively support GDB versions 7.1 and higher only.
Older GDB versions are not always working well with newer compilers; it has become difficult and time-consuming to support those versions in newer CDT releases. As of CDT 8.6, we will actively support GDB versions 7.1 and higher. Version 7.1 already dates back to March, 2010. We will not remove the support for older GDBs from the code, but we will make no effort to test or support these older versions.
Note that although 7.1 is oldest officially supported, GDB 6.6 or greater is in the code base still and probably does work.
However, 2004 was circa GDB 6.0 (www.gnu.org/software/gdb/schedule/). Do you know which version you are using?
The fact that the version you are using does not ever respond to --version isn't a great sign, but you can certainly write a wrapper (a bit of Python to wrap around the real gdb) that can handle --version, but it is unknown how much farther after that it will work for. CDT does a version check by launching gdb with --version before even starting the debug session.
Another thing you could try is to use the deprecated CDI aka Legacy launcher instead of the DSF. CDT 9.0 (Eclipse Neon) has it scheduled for removal.
To use the legacy launcher:
1) In the launch configuration, click "select other..." (see step1.png)
2) Check the "Use configuration specific settings" (see step2.png)
3) Choose "Legacy Create Process Launcher" (see step2.png)
You can also change it globally in the preferences (Run/Debug -> Launching -> Default Launchers) if you prefer (see prefs.png)
-
Attachment: step1.png
(Size: 20.89KB, Downloaded 840 times) -
Attachment: step2.png
(Size: 12.92KB, Downloaded 732 times) -
Attachment: prefs.png
(Size: 29.33KB, Downloaded 731 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02474 seconds