Community
Participate
Working Groups
While working on the GDB console feature (bug 303808), I used IProcesses.getExecutionData() to get the name of the process to use for the inferior's console label. However, the call to IProcesses.getExecutionData() was done before the name was finished being fetched from GDB and the call returned a default name instead. The problem is that in GDBProcesses_7_0, we fetch the inferior name from GDB when getting =thread-group-started, but if a call to IProcesses.getExecutionData() arrives before the name is received back, IProcesses.getExecutionData() will return a default value. What we want instead is that the asynchronous request to IProcesses.getExecutionData() wait until the name is received back. It was probably a mistake to fetch the name when getting =thread-group-started as it didn't follow the usual DSF pattern. Instead, such a request should be done in the service API that requests it, namely IProcesses.getExecutionData(). So, I suggest we move the name-fetching logic to the implementation of GDBProcesses_7_0.getExecutionData().
New Gerrit change created: https://git.eclipse.org/r/76996
Gerrit change https://git.eclipse.org/r/76996 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=25a42fbdce188bcfbb60f1207807f9067f232677