diff --git a/plugins/org.eclipse.embedcdt.debug.gdbjtag.core/src/org/eclipse/embedcdt/debug/gdbjtag/core/dsf/GnuMcuFinalLaunchSequence.java b/plugins/org.eclipse.embedcdt.debug.gdbjtag.core/src/org/eclipse/embedcdt/debug/gdbjtag/core/dsf/GnuMcuFinalLaunchSequence.java index a6a770a47..d9d2eda34 100644 --- a/plugins/org.eclipse.embedcdt.debug.gdbjtag.core/src/org/eclipse/embedcdt/debug/gdbjtag/core/dsf/GnuMcuFinalLaunchSequence.java +++ b/plugins/org.eclipse.embedcdt.debug.gdbjtag.core/src/org/eclipse/embedcdt/debug/gdbjtag/core/dsf/GnuMcuFinalLaunchSequence.java @@ -99,7 +99,7 @@ protected String[] getExecutionOrder(String group) { if (GROUP_TOP_LEVEL.equals(group)) { for (int i = 0; i < topToRemove.length; ++i) { - int ix = orderList.indexOf(jtagToRemove[i]); + int ix = orderList.indexOf(topToRemove[i]); if (ix >= 0) { orderList.remove(ix); }