Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Hultgren2018-04-18 11:31:03 -0400
committerJonah Graham2018-04-20 07:14:46 -0400
commitec9361bd4550fa3cc3398961aa358d3df25fe512 (patch)
tree7ab0725b15f12a7842caf642477f8aa2723190f2 /dsf-gdb
parent4dd0d4ec05c9242bd3d904b5b6b6eb7dc0312cd0 (diff)
downloadorg.eclipse.cdt-ec9361bd4550fa3cc3398961aa358d3df25fe512.tar.gz
org.eclipse.cdt-ec9361bd4550fa3cc3398961aa358d3df25fe512.tar.xz
org.eclipse.cdt-ec9361bd4550fa3cc3398961aa358d3df25fe512.zip
Bug 533771 - Allow limit scope of MIStackListArguments
Change-Id: Ibe63ea352fa4daae0d91989595d79b39c3ef92f0 Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java6
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIStackListArguments.java7
2 files changed, 13 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java
index 0478f261e2..39950cbed2 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/CommandFactory.java
@@ -27,6 +27,7 @@
* Marc Khouzam (Ericsson) - Support for dynamic printf (Bug 400638)
* Marc Khouzam (Ericsson) - Support for -gdb-version (Bug 455408)
* Intel Corporation - Added Reverse Debugging BTrace support
+ * Samuel Hultgren (STMicroelectronics) - Bug 533771
*******************************************************************************/
package org.eclipse.cdt.dsf.mi.service.command;
@@ -977,6 +978,11 @@ public class CommandFactory {
return new MIStackListArguments(frameDmc, showValues);
}
+ /** @since 5.5 */
+ public ICommand<MIStackListArgumentsInfo> createMIStackListArguments(IFrameDMContext frameDmc, boolean showValues, int low, int high) {
+ return new MIStackListArguments(frameDmc, showValues, low, high);
+ }
+
public ICommand<MIStackListArgumentsInfo> createMIStackListArguments(IMIExecutionDMContext execDmc, boolean showValues, int low, int high) {
return new MIStackListArguments(execDmc, showValues, low, high);
}
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIStackListArguments.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIStackListArguments.java
index f3868f675e..005d1c707a 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIStackListArguments.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MIStackListArguments.java
@@ -9,6 +9,7 @@
* QNX Software Systems - Initial API and implementation
* Wind River Systems - Modified for new DSF Reference Implementation
* Ericsson - Modified for handling of execution contexts
+ * STMicroelectronics - Added constructor to limit scope (Bug 533771)
*******************************************************************************/
package org.eclipse.cdt.dsf.mi.service.command.commands;
@@ -41,6 +42,12 @@ public class MIStackListArguments extends MICommand<MIStackListArgumentsInfo>
public MIStackListArguments(IFrameDMContext frameDmc, boolean showValues) {
super(frameDmc, "-stack-list-arguments", new String[] { showValues ? "1" : "0" }); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
+
+ /** @since 5.5 */
+ public MIStackListArguments(IFrameDMContext frameDmc, boolean showValues, int low, int high) {
+ super(frameDmc, "-stack-list-arguments", //$NON-NLS-1$
+ new String[] { showValues ? "1" : "0", Integer.toString(low), Integer.toString(high)}); //$NON-NLS-1$ //$NON-NLS-2$
+ }
public MIStackListArguments(IMIExecutionDMContext execDmc, boolean showValues, int low, int high) {
super(execDmc, "-stack-list-arguments", //$NON-NLS-1$

Back to the top