Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2012-10-03 11:04:04 -0400
committerMikhail Khodjaiants2012-10-03 11:09:05 -0400
commitafda71bc567c7da5dbabce59d8182385d923d0c2 (patch)
tree955ab1fffa3623274334c7f8a2701dfe027deda6 /debug
parent8c98525c760f5b822c48e213e6ae4f46e199927e (diff)
downloadorg.eclipse.cdt-afda71bc567c7da5dbabce59d8182385d923d0c2.tar.gz
org.eclipse.cdt-afda71bc567c7da5dbabce59d8182385d923d0c2.tar.xz
org.eclipse.cdt-afda71bc567c7da5dbabce59d8182385d923d0c2.zip
Bug 363688 - CDT issues "auto-solib-add on" command to gdb with invalid
syntax
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/StandardWinCommandFactory.java19
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/WinMIGDBSetAutoSolib.java27
2 files changed, 28 insertions, 18 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/StandardWinCommandFactory.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/StandardWinCommandFactory.java
index 76a66f0640..e4aee9f617 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/StandardWinCommandFactory.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/StandardWinCommandFactory.java
@@ -49,24 +49,7 @@ public class StandardWinCommandFactory extends StandardCommandFactory {
@Override
public MIGDBSetAutoSolib createMIGDBSetAutoSolib( boolean set ) {
- // Suppress "set auto-solib" - returns error on Windows
- return new MIGDBSetAutoSolib( getMIVersion(), true ) {
-
- @Override
- public String getOperation() {
- return ""; //$NON-NLS-1$
- }
-
- @Override
- public String[] getOptions() {
- return new String[0];
- }
-
- @Override
- public String[] getParameters() {
- return new String[0];
- }
- };
+ return new WinMIGDBSetAutoSolib( getMIVersion(), set );
}
@Override
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/WinMIGDBSetAutoSolib.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/WinMIGDBSetAutoSolib.java
new file mode 100644
index 0000000000..cbbd491d71
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/WinMIGDBSetAutoSolib.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Mentor Graphics 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Mentor Graphics - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.debug.mi.core.command.factories.win32;
+
+import org.eclipse.cdt.debug.mi.core.command.MIGDBSetAutoSolib;
+
+/**
+ * Suppress "set auto-solib" - returns error on Windows
+ */
+class WinMIGDBSetAutoSolib extends MIGDBSetAutoSolib {
+
+ public WinMIGDBSetAutoSolib(String miVersion, boolean isSet) {
+ super(miVersion, isSet);
+ setOperation(""); //$NON-NLS-1$
+ setOptions(new String[0]);
+ setParameters(new String[0]);
+ }
+}

Back to the top