From ec9361bd4550fa3cc3398961aa358d3df25fe512 Mon Sep 17 00:00:00 2001 From: Samuel Hultgren Date: Wed, 18 Apr 2018 17:31:03 +0200 Subject: [PATCH] Bug 533771 - Allow limit scope of MIStackListArguments Change-Id: Ibe63ea352fa4daae0d91989595d79b39c3ef92f0 Signed-off-by: Samuel Hultgren --- .../eclipse/cdt/dsf/mi/service/command/CommandFactory.java | 6 ++++++ .../mi/service/command/commands/MIStackListArguments.java | 7 +++++++ 2 files changed, 13 insertions(+) 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 0478f261e25..39950cbed25 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 createMIStackListArguments(IFrameDMContext frameDmc, boolean showValues, int low, int high) { + return new MIStackListArguments(frameDmc, showValues, low, high); + } + public ICommand 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 f3868f675e8..005d1c707ab 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 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$