diff options
Diffstat (limited to 'jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence_7_7.java')
-rw-r--r-- | jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence_7_7.java | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence_7_7.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence_7_7.java index 213e118c15a..dd9c2f48a80 100644 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence_7_7.java +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence_7_7.java @@ -7,7 +7,7 @@ * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 - * + * * Contributors: * Marc Khouzam (Ericsson) - initial API and implementation *******************************************************************************/ @@ -29,12 +29,13 @@ import org.eclipse.cdt.dsf.service.DsfSession; /** * Subclass for GDB >= 7.7. - * + * * @since 8.4 */ public class GDBJtagDSFFinalLaunchSequence_7_7 extends GDBJtagDSFFinalLaunchSequence_7_2 { - - public GDBJtagDSFFinalLaunchSequence_7_7(DsfSession session, Map<String, Object> attributes, RequestMonitorWithProgress rm) { + + public GDBJtagDSFFinalLaunchSequence_7_7(DsfSession session, Map<String, Object> attributes, + RequestMonitorWithProgress rm) { super(session, attributes, rm); } @@ -62,23 +63,21 @@ public class GDBJtagDSFFinalLaunchSequence_7_7 extends GDBJtagDSFFinalLaunchSequ DsfServicesTracker tracker = new DsfServicesTracker(Activator.getBundleContext(), getSession().getId()); IGDBControl gdbControl = tracker.getService(IGDBControl.class); tracker.dispose(); - - if (gdbControl != null) { - // For hardware debug the 'call' style does not work with GDB - // Let's use the 'gdb' style instead - gdbControl.queueCommand( - gdbControl.getCommandFactory().createMIGDBSetDPrintfStyle(gdbControl.getContext(), - MIGDBSetDPrintfStyle.GDB_STYLE), - new ImmediateDataRequestMonitor<MIInfo>(rm) { - @Override - protected void handleCompleted() { - // We accept errors - rm.done(); - } - }); - } else { - // Should not happen but accept errors in this case - rm.done(); - } + + if (gdbControl != null) { + // For hardware debug the 'call' style does not work with GDB + // Let's use the 'gdb' style instead + gdbControl.queueCommand(gdbControl.getCommandFactory().createMIGDBSetDPrintfStyle(gdbControl.getContext(), + MIGDBSetDPrintfStyle.GDB_STYLE), new ImmediateDataRequestMonitor<MIInfo>(rm) { + @Override + protected void handleCompleted() { + // We accept errors + rm.done(); + } + }); + } else { + // Should not happen but accept errors in this case + rm.done(); + } } } |