Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 176501 Details for
Bug 237306
[multicore][multi-process] Support for Multi-Process debugging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
-add-inferior and -remove-inferior
zpatch.txt (text/plain), 8.51 KB, created by
Marc Khouzam
on 2010-08-12 16:17:25 EDT
(
hide
)
Description:
-add-inferior and -remove-inferior
Filename:
MIME Type:
Creator:
Marc Khouzam
Created:
2010-08-12 16:17:25 EDT
Size:
8.51 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.dsf.gdb >Index: src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java,v >retrieving revision 1.12 >diff -u -r1.12 CommandFactory.java >--- src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java 30 Jul 2010 15:51:42 -0000 1.12 >+++ src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java 12 Aug 2010 20:10:53 -0000 >@@ -41,6 +41,7 @@ > import org.eclipse.cdt.dsf.mi.service.command.commands.CLIThread; > import org.eclipse.cdt.dsf.mi.service.command.commands.CLITrace; > import org.eclipse.cdt.dsf.mi.service.command.commands.CLIUnsetEnv; >+import org.eclipse.cdt.dsf.mi.service.command.commands.MIAddInferior; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIBreakAfter; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIBreakCommands; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIBreakCondition; >@@ -94,6 +95,7 @@ > import org.eclipse.cdt.dsf.mi.service.command.commands.MIInterpreterExec; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIInterpreterExecConsole; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIListThreadGroups; >+import org.eclipse.cdt.dsf.mi.service.command.commands.MIRemoveInferior; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIStackInfoDepth; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIStackListArguments; > import org.eclipse.cdt.dsf.mi.service.command.commands.MIStackListFrames; >@@ -136,6 +138,7 @@ > import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoThreadsInfo; > import org.eclipse.cdt.dsf.mi.service.command.output.CLIThreadInfo; > import org.eclipse.cdt.dsf.mi.service.command.output.CLITraceInfo; >+import org.eclipse.cdt.dsf.mi.service.command.output.MIAddInferiorInfo; > import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakInsertInfo; > import org.eclipse.cdt.dsf.mi.service.command.output.MIBreakListInfo; > import org.eclipse.cdt.dsf.mi.service.command.output.MIDataDisassembleInfo; >@@ -252,6 +255,11 @@ > return new CLIUnsetEnv(ctx, name); > } > >+ /** @since 4.0 */ >+ public ICommand<MIAddInferiorInfo> createMIAddInferior(ICommandControlDMContext ctx) { >+ return new MIAddInferior(ctx); >+ } >+ > public ICommand<MIInfo> createMIBreakAfter(IBreakpointsTargetDMContext ctx, int breakpoint, int ignoreCount) { > return new MIBreakAfter(ctx, breakpoint, ignoreCount); > } >@@ -592,6 +600,11 @@ > return new MIListThreadGroups(ctx, listAll); > } > >+ /** @since 4.0 */ >+ public ICommand<MIInfo> createMIRemoveInferior(ICommandControlDMContext ctx, String groupId) { >+ return new MIRemoveInferior(ctx, groupId); >+ } >+ > public ICommand<MIStackInfoDepthInfo> createMIStackInfoDepth(IMIExecutionDMContext ctx) { > return new MIStackInfoDepth(ctx); > } >Index: src/org/eclipse/cdt/dsf/mi/service/command/commands/MIAddInferior.java >=================================================================== >RCS file: src/org/eclipse/cdt/dsf/mi/service/command/commands/MIAddInferior.java >diff -N src/org/eclipse/cdt/dsf/mi/service/command/commands/MIAddInferior.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/cdt/dsf/mi/service/command/commands/MIAddInferior.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,40 @@ >+/******************************************************************************* >+ * Copyright (c) 2010 Ericsson 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: >+ * Ericsson - Initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.cdt.dsf.mi.service.command.commands; >+ >+import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext; >+import org.eclipse.cdt.dsf.mi.service.command.output.MIAddInferiorInfo; >+import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput; >+ >+ >+/** >+ * -add-inferior >+ * ^done,inferior="i2" >+ * >+ * Creates a new inferior. The created inferior is not associated with any executable. >+ * Such association may be established with the '-file-exec-and-symbols' command. >+ * The command response has a single field, 'thread-group', whose value is the >+ * identifier of the thread group corresponding to the new inferior. >+ * >+ * @since 4.0 >+ */ >+public class MIAddInferior extends MICommand<MIAddInferiorInfo> >+{ >+ public MIAddInferior(ICommandControlDMContext dmc) { >+ super(dmc, "-add-inferior"); //$NON-NLS-1$ >+ } >+ >+ @Override >+ public MIAddInferiorInfo getResult(MIOutput output) { >+ return new MIAddInferiorInfo(output); >+ } >+} >Index: src/org/eclipse/cdt/dsf/mi/service/command/commands/MIRemoveInferior.java >=================================================================== >RCS file: src/org/eclipse/cdt/dsf/mi/service/command/commands/MIRemoveInferior.java >diff -N src/org/eclipse/cdt/dsf/mi/service/command/commands/MIRemoveInferior.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/cdt/dsf/mi/service/command/commands/MIRemoveInferior.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,30 @@ >+/******************************************************************************* >+ * Copyright (c) 2010 Ericsson 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: >+ * Ericsson - Initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.cdt.dsf.mi.service.command.commands; >+ >+import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext; >+import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; >+ >+/** >+ * -remove-inferior GROUPID >+ * ^done >+ * >+ * Remove the specified inferior. >+ * >+ * @since 4.0 >+ */ >+public class MIRemoveInferior extends MICommand<MIInfo> >+{ >+ public MIRemoveInferior(ICommandControlDMContext dmc, String groupId) { >+ super(dmc, "-remove-inferior", new String[] { groupId }); //$NON-NLS-1$ >+ } >+} >Index: src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java >=================================================================== >RCS file: src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java >diff -N src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,50 @@ >+/******************************************************************************* >+ * Copyright (c) 2010 Ericsson 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: >+ * Ericsson - Initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.cdt.dsf.mi.service.command.output; >+ >+/** >+ * -add-inferior >+ * ^done,inferior="i2" >+ * >+ * @since 4.0 >+ */ >+public class MIAddInferiorInfo extends MIInfo { >+ >+ private String fGroupId; >+ >+ public MIAddInferiorInfo(MIOutput record) { >+ super(record); >+ if (isDone()) { >+ MIOutput out = getMIOutput(); >+ MIResultRecord rr = out.getMIResultRecord(); >+ if (rr != null) { >+ MIResult[] results = rr.getMIResults(); >+ for (int i = 0; i < results.length; i++) { >+ String var = results[i].getVariable(); >+ MIValue resultVal = results[i].getMIValue(); >+ String str = ""; //$NON-NLS-1$ >+ if (resultVal instanceof MIConst) { >+ str = ((MIConst)resultVal).getString(); >+ } >+ >+ if (var.equals("inferior")) { //$NON-NLS-1$ >+ fGroupId = str; >+ } >+ } >+ } >+ } >+ } >+ >+ public String getGroupId() { >+ return fGroupId; >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
marc.khouzam
:
iplog-
Actions:
View
|
Diff
Attachments on
bug 237306
:
166478
|
167440
|
168092
|
168093
|
168510
| 176501 |
178929
|
179595
|
179596
|
179913
|
182593
|
184318
|
185285
|
185617
|
185691
|
186266
|
187326
|
187357
|
190931
|
190997