Community
Participate
Working Groups
I've used Query in different places for the TraceControl view but I haven't put a timeout. This causes a deadlock if the view has to query GDB but GDB is running.
Created attachment 196028 [details] Adding timeout to the query to avoid deadlock Bug 346217 addresses being able to do tracing operations even while the target is running in all-stop mode. Until then though, we should not deadlock. This patch adds a timeout to the query, and prints an error message in the dialog to indicate that we failed to get the trace variables. In that case, we also do not allow to create new variables.
Committed to HEAD.
*** cdt cvs genie on behalf of mkhouzam *** Bug 335235 - Deadlock when pressing trace var button in Trace Control view when GDB is running [*] TracepointsMessages.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/tracepoints/TracepointsMessages.java?root=Tools_Project&r1=1.2&r2=1.3 [*] TracepointsMessages.properties 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/tracepoints/TracepointsMessages.properties?root=Tools_Project&r1=1.2&r2=1.3 [*] TraceVarDetailsDialog.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/tracepoints/TraceVarDetailsDialog.java?root=Tools_Project&r1=1.1&r2=1.2 [*] TraceControlView.java 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/tracepoints/TraceControlView.java?root=Tools_Project&r1=1.6&r2=1.7