Community
Participate
Working Groups
Created attachment 189564 [details] Fix removing the assertion When requesting a process execution data, we expect the name of the process to be available, so we added an "assert false" in that case. I found a couple of situation where we could actually hit this code in a valid situation: 1- when changing the Preference that allows GDB to be kept running even when a process runs to completion 2- when running multiple processes and one of them runs to completion. In both those cases, the debug session remains alive, but we remove the process name from our list because we got an event from GDB telling us that the process is finished. Since the debug session is alive, the DView updates and request the data for the old process, which makes us hit the assertion. The process will immediately be removed from the DView, so it is ok to return a name of "Unknown name" instead of having the assert.
Committed to HEAD. John, do you agree?
I do. Though I know the assertion sometimes fails on a basic launch. Unfortunately, I don't think there's a way to separate out that scenario from yours, so removing the assert it the right thing to do, IMO.
*** cdt cvs genie on behalf of mkhouzam *** Bug 337927: Invalid assert when fetching process information [*] GDBProcesses.java 1.12 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java?root=Tools_Project&r1=1.11&r2=1.12 [*] GDBProcesses_7_0.java 1.35 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_0.java?root=Tools_Project&r1=1.34&r2=1.35
*** Bug 310994 has been marked as a duplicate of this bug. ***