diff options
author | Marc Khouzam | 2016-11-10 03:51:21 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-11-14 15:12:03 +0000 |
commit | e8480ca0f8c72f1eb1a7d31f6c48789eef1bf9ba (patch) | |
tree | 2ec70b45d24af79d28b41ec63908145b6d30a815 /dsf-gdb/org.eclipse.cdt.dsf.gdb.ui | |
parent | c2b4f189433b8a7309b58a4e7a3e5d9265df4915 (diff) | |
download | org.eclipse.cdt-e8480ca0f8c72f1eb1a7d31f6c48789eef1bf9ba.tar.gz org.eclipse.cdt-e8480ca0f8c72f1eb1a7d31f6c48789eef1bf9ba.tar.xz org.eclipse.cdt-e8480ca0f8c72f1eb1a7d31f6c48789eef1bf9ba.zip |
Bug 498782 - add synchronize of process selection between the DV and GDB
This patch synchronizes the GDB focus when the user selects a process
node in the DV.
When the user selects a new process (inferior) from the GDB console, we
are already synchronizing the DV to the thread/frame that GDB selects
from that process.
Change-Id: I11dfd175d51ec49e969f4d07288f80f7ea72a3e1
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb.ui')
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/sync/GdbDebugContextSyncManager.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/sync/GdbDebugContextSyncManager.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/sync/GdbDebugContextSyncManager.java index ffa0e6ddc6d..96cce9903e9 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/sync/GdbDebugContextSyncManager.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/sync/GdbDebugContextSyncManager.java @@ -12,6 +12,7 @@ import org.eclipse.cdt.dsf.datamodel.IDMContext; import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext; import org.eclipse.cdt.dsf.gdb.internal.service.IGDBFocusSynchronizer; import org.eclipse.cdt.dsf.gdb.internal.ui.GdbUIPlugin; +import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext; import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext; import org.eclipse.cdt.dsf.service.DsfServicesTracker; import org.eclipse.cdt.dsf.service.DsfSession; @@ -46,8 +47,10 @@ public class GdbDebugContextSyncManager implements IDebugContextListener { if (context != null) { final IDMContext dmc = context.getAdapter(IDMContext.class); - if (dmc instanceof IMIExecutionDMContext || dmc instanceof IFrameDMContext) { - // A thread or stack frame was selected. In either case, have GDB switch to the new + if (dmc instanceof IMIContainerDMContext || + dmc instanceof IMIExecutionDMContext || + dmc instanceof IFrameDMContext) { + // A process, thread or stack frame was selected. In each case, have GDB switch to the new // corresponding thread, if required. // Resolve the debug session |