mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
[252230] - [launch] GDB backend initialization jobs should be hidden from user.
This commit is contained in:
parent
775e47d5cc
commit
72c5c09e17
1 changed files with 15 additions and 1 deletions
|
@ -355,7 +355,7 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
|
||||||
}
|
}
|
||||||
final GDBLaunchMonitor fGDBLaunchMonitor = new GDBLaunchMonitor();
|
final GDBLaunchMonitor fGDBLaunchMonitor = new GDBLaunchMonitor();
|
||||||
|
|
||||||
final RequestMonitor gdbLaunchRequestMonitor = new RequestMonitor(getExecutor(), null) {
|
final RequestMonitor gdbLaunchRequestMonitor = new RequestMonitor(getExecutor(), requestMonitor) {
|
||||||
@Override
|
@Override
|
||||||
protected void handleCompleted() {
|
protected void handleCompleted() {
|
||||||
if (!fGDBLaunchMonitor.fTimedOut) {
|
if (!fGDBLaunchMonitor.fTimedOut) {
|
||||||
|
@ -369,8 +369,18 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
|
||||||
};
|
};
|
||||||
|
|
||||||
final Job startGdbJob = new Job("Start GDB Process Job") { //$NON-NLS-1$
|
final Job startGdbJob = new Job("Start GDB Process Job") { //$NON-NLS-1$
|
||||||
|
{
|
||||||
|
setSystem(true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
|
if (gdbLaunchRequestMonitor.isCanceled()) {
|
||||||
|
gdbLaunchRequestMonitor.setStatus(new Status(IStatus.CANCEL, GdbPlugin.PLUGIN_ID, -1, "Canceled starting GDB", null)); //$NON-NLS-1$
|
||||||
|
gdbLaunchRequestMonitor.done();
|
||||||
|
return Status.OK_STATUS;
|
||||||
|
}
|
||||||
|
|
||||||
String commandLine = getGDBCommandLine();
|
String commandLine = getGDBCommandLine();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -422,6 +432,10 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
|
||||||
@Override
|
@Override
|
||||||
protected void shutdown(final RequestMonitor requestMonitor) {
|
protected void shutdown(final RequestMonitor requestMonitor) {
|
||||||
new Job("Terminating GDB process.") { //$NON-NLS-1$
|
new Job("Terminating GDB process.") { //$NON-NLS-1$
|
||||||
|
{
|
||||||
|
setSystem(true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
destroy();
|
destroy();
|
||||||
|
|
Loading…
Add table
Reference in a new issue