Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334494

Summary: CLIGetGDBVersion() doesn't give a correct result if the GDB version number is not a double value.
Product: [Tools] PTP Reporter: Donny Kurniawan <donny.kurniawan>
Component: Debug CoreAssignee: Project Inbox <ptp-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: g.watson
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
A fix for CLIGetGDBVersion() none

Description Donny Kurniawan CLA 2011-01-17 03:23:51 EST
CLIGetGDBVersion() returns the GDB version number as a double value, e.g. 7.2 or 6.4.

But, if the GDB has the version number like: 7.2.1 or 6.4.1, CLIGetGDBVersion() doesn't give a correct result.

Attached is a new version of CLIGetGDBInfo() with a new function signature to return the result as a string (malloc'd that need to be free'd).

It also gives the architecture of the GDB.
Comment 1 Donny Kurniawan CLA 2011-01-17 03:27:42 EST
Created attachment 186894 [details]
A fix for CLIGetGDBVersion()
Comment 2 Greg Watson CLA 2011-05-23 20:27:57 EDT
I tried this, but unfortunately it causes a SIGSEGV on Mac OS X. If you can provide an updated patch that fixes this problem, I should be able to get it into Indigo.
Comment 3 Greg Watson CLA 2018-06-08 09:53:08 EDT
No longer any development on this component.