Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335235

Summary: [tracepoint] Deadlock when pressing trace var button in Trace Control view when GDB is running
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Adding timeout to the query to avoid deadlock marc.khouzam: iplog-

Description Marc Khouzam CLA 2011-01-24 14:11:07 EST
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.
Comment 1 Marc Khouzam CLA 2011-05-18 14:08:20 EDT
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.
Comment 2 Marc Khouzam CLA 2011-05-18 14:08:57 EDT
Committed to HEAD.