Community
Participate
Working Groups
Created attachment 232055 [details] Screenshot C/C++ Development Tools 8.2.0.201306051012 GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu Sometimes, after stopping at break points and resuming a few times, the suspend decorator is shown on the executable in the Debug view even though it's running. I think this happens more often with multi threaded executables. See attached screenshot.
I have the same issue and I was investigating where the problem is. What I found out was that from the version 7.2 on, the property setUseThreadGroupOptions of the class AbstractMIControl is being always set to true when creating a GDBControl_7_xxx instance. This causes a resume command to look like this: -exec-continue --thread-group i1 Instead of sending -exec-continue --thread 1 That is supposed to be so, but the problem is that the response should look like this: *running,thread-id="all" (note the "all" value) in order for the ProcessNode in the tree to get set to the "running" status, instead the response (that I get) is: *running,thread-id="3" which is enought for the thread state to get set but not for the process state as it expects "all".
(In reply to comment #1) > That is supposed to be so, but the problem is that the response should look > like this: So are you saying the problem is on the GDB side?
(In reply to comment #2) > (In reply to comment #1) > > That is supposed to be so, but the problem is that the response should look > > like this: > > So are you saying the problem is on the GDB side? No, what I'm saying is that the option --thread-group is valid for a GDB version => 7.2 but the GDB documentation says in this case GDB will pick one thread and execute the action on it and then return that thread id in the response and (in my oppinion) the eventHandler in DSF shouldn't expect to receive "all" when it sent a specific Thread-Id. Instead it should check if all Threads are running. I hope now it clear what I meant. Sorry if I didn't express myself clearly.
(In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > I hope now it clear what I meant. Sorry if I didn't express myself clearly. It's clear now, thanks!
I was about to open a new bug about this issue. Turns out there are already two :) It seems both this bug and bug 337899 are about the same problem, so I am keeping the oldest. *** This bug has been marked as a duplicate of bug 337899 ***