Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334494 - CLIGetGDBVersion() doesn't give a correct result if the GDB version number is not a double value.
Summary: CLIGetGDBVersion() doesn't give a correct result if the GDB version number is...
Status: RESOLVED WONTFIX
Alias: None
Product: PTP
Classification: Tools
Component: Debug Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 03:23 EST by Donny Kurniawan CLA
Modified: 2018-06-08 09:53 EDT (History)
1 user (show)

See Also:


Attachments
A fix for CLIGetGDBVersion() (1.42 KB, application/octet-stream)
2011-01-17 03:27 EST, Donny Kurniawan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.