Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIInfoOs.java')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIInfoOs.java52
1 files changed, 52 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIInfoOs.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIInfoOs.java
new file mode 100644
index 00000000000..a29a957c0ea
--- /dev/null
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIInfoOs.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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:
+ * Vladimir Prus (Mentor Graphics) - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.dsf.mi.service.command.commands;
+
+import org.eclipse.cdt.dsf.datamodel.IDMContext;
+import org.eclipse.cdt.dsf.mi.service.command.commands.MICommand;
+import org.eclipse.cdt.dsf.mi.service.command.output.MIInfoOsInfo;
+import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
+
+/**
+ * MIInfoOS
+ *
+ * -info-os [ type ]
+ * If no argument is supplied, the command returns a table of
+ * available operating-system-specific information types. If one of these
+ * types is supplied as an argument type, then the command returns a
+ * table of data of that type.
+ *
+ * The types of information available depend on the target operating system.
+ * @since 4.2
+ */
+public class MIInfoOs extends MICommand<MIInfoOsInfo> {
+
+ public MIInfoOs(IDMContext ctx)
+ {
+ super(ctx, "-info-os"); //$NON-NLS-1$
+ }
+
+ public MIInfoOs(IDMContext ctx, String resourceClass)
+ {
+ super(ctx, "-info-os", new String[]{resourceClass}); //$NON-NLS-1$
+ specificResource = true;
+ }
+
+ @Override
+ public MIInfoOsInfo getResult(MIOutput out) {
+
+ return new MIInfoOsInfo(out, specificResource);
+ }
+
+ private boolean specificResource = false;
+
+}

Back to the top