Community
Participate
Working Groups
When running a debug session with GDB < 7.10, the Multicore Visualizer no longer displays and the following error can be seen in the logs: 456,709 53-info-os cpus 456,709 &"warning: Empty data returned by target. Wrong osdata type?\n" 456,710 53^error,msg="Can not fetch data now." -info-os cpus is only available with GDB 7.10, but we seem to be using it with older GDBs. The reason is that in GdbDebugServicesFactory, we do a string comparison with "7.10" but this is not good because "7.10" < "7.9" as a string. So, the GDBHardwareAndOS_7_10 service version gets instantiated by mistake. We should be comparing as integers. We didn't notice this before because GdbDebugServicesFactory.GDB_7_10_VERSION used to be "7.9.50" until recently.
It turns out the problem is worse than we originally thought. "7.10" < "7.2" when doing string comparison. Therefore, CDT thinks that GDB 7.10 is actually a version older than 7.2 and turns off a bunch of things, like multi-process, dynamic-printf, console synchronization, and every other feature that came in with GDB >= 7.2.
New Gerrit change created: https://git.eclipse.org/r/55107
New Gerrit change created: https://git.eclipse.org/r/55109
Gerrit change https://git.eclipse.org/r/55109 was merged to [cdt_8_8]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=fa640a374ac3aa8014b2b5d0cd937acaf1f8a701
New Gerrit change created: https://git.eclipse.org/r/55122
Gerrit change https://git.eclipse.org/r/55122 was merged to [cdt_8_8]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=377202feb1655172b96d0b86696bec492ea48008
New Gerrit change created: https://git.eclipse.org/r/55123
Gerrit change https://git.eclipse.org/r/55123 was merged to [cdt_8_8]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=b5bdc32883e36b980700ace246f5d174eaabcc70
Gerrit change https://git.eclipse.org/r/55107 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=6272b4e523c97678ef29afd8747ba4bdb8f44338
Fixed in 8_8 and master