1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 294537 - Registers view very slow to open the first time

This commit is contained in:
Ken Ryall 2010-02-03 22:55:24 +00:00
parent 1ce33a5af6
commit 0e2151791d
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,20 @@
package org.eclipse.cdt.debug.mi.core.command.factories.macos;
import org.eclipse.cdt.debug.mi.core.command.CLIPType;
class MacOSCLIPtype extends CLIPType {
public MacOSCLIPtype(String var) {
super(var);
// apple-gdb does not give a ^error response with an invalid CLI command
// but with -interpreter-exec console it does
setOperation("-interpreter-exec console \"ptype " + var + "\""); //$NON-NLS-1$ //$NON-NLS-2$
}
// MI doesn't work with a space between the token and the
// operation, so we override CLICommmand's toString
public String toString() {
return getToken() + getOperation() + "\n"; //$NON-NLS-1$
}
}

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2007 Nokia and others.
* Copyright (c) 2006, 2007, 2010 Nokia and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -15,6 +15,7 @@ import java.io.File;
import org.eclipse.cdt.debug.mi.core.command.CLIInfoProc;
import org.eclipse.cdt.debug.mi.core.command.CLIInfoThreads;
import org.eclipse.cdt.debug.mi.core.command.CLIPType;
import org.eclipse.cdt.debug.mi.core.command.MIEnvironmentCD;
import org.eclipse.cdt.debug.mi.core.command.MIInfoSharedLibrary;
import org.eclipse.cdt.debug.mi.core.command.MIVarUpdate;
@ -44,6 +45,10 @@ public class StandardMacOSCommandFactory extends StandardCommandFactory {
return new MacOSMIEnvironmentCD(getMIVersion(), pathdir);
}
public CLIPType createCLIPType(String name) {
return new MacOSCLIPtype(name);
}
public MIInfoSharedLibrary createMIInfoSharedLibrary() {
return new MIInfoSharedLibrary(getMIVersion());
}