mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 08:45:44 +02:00
Don't force the GDB console to be shown when created.
When a new launch is triggered and a new GDB console created, it was shown automatically. However, if there was a current debug session where the selection was a stack frame, our sticky policy (DefaultDsfSelectionPolicy) prevents the new session from being selected, so the new GDB console shown didn't match the selection in the DV. With this patch, when a new GDB console is created, we don't show it automatically, but let other logic figure out if it should be shown or not. Change-Id: If826677a6fb0f925f6b397a13f61fc75fc892748
This commit is contained in:
parent
2cbf669a38
commit
c2b4f18943
1 changed files with 7 additions and 2 deletions
|
@ -211,9 +211,14 @@ implements IConsoleView, IDebuggerConsoleView, IConsoleListener, IPropertyChange
|
||||||
DebuggerConsoleWorkbenchPart part = new DebuggerConsoleWorkbenchPart(registered, getSite());
|
DebuggerConsoleWorkbenchPart part = new DebuggerConsoleWorkbenchPart(registered, getSite());
|
||||||
fConsoleToPart.put(registered, part);
|
fConsoleToPart.put(registered, part);
|
||||||
fPartToConsole.put(part, registered);
|
fPartToConsole.put(part, registered);
|
||||||
|
// Must call partActivated() to create the page
|
||||||
|
// However, this will also show the page, which is not
|
||||||
|
// what we want. Therefore, let's force the previous
|
||||||
|
// page to be shown again right after.
|
||||||
|
IDebuggerConsole previouslyShown = getCurrentConsole();
|
||||||
partActivated(part);
|
partActivated(part);
|
||||||
if (console instanceof IDebuggerConsole) {
|
if (previouslyShown != null) {
|
||||||
display((IDebuggerConsole)console);
|
display(previouslyShown);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue