mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Bug 413437 - Disable 'delay' command when appropriate. This was a bug
introduced when we ported hardware debug to DSF. Change-Id: I5232ab1e2e345edac9df640836bf8c8413ac6a36 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
a2e42758f2
commit
86c55d8821
1 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007 - 2013 QNX Software Systems and others.
|
||||
* Copyright (c) 2007, 2014 QNX Software Systems 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
|
||||
|
@ -14,6 +14,7 @@
|
|||
* John Dallaway - Wrong groupId during initialization (Bug 349736)
|
||||
* Marc Khouzam (Ericsson) - Updated to extend FinalLaunchSequence instead of copying it (bug 324101)
|
||||
* William Riley (Renesas) - Memory viewing broken (Bug 413483)
|
||||
* Marc Khouzam (Ericsson) - Cannot disable Delay command (bug 413437)
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.gdbjtag.core;
|
||||
|
||||
|
@ -353,10 +354,15 @@ public class GDBJtagDSFFinalLaunchSequence extends FinalLaunchSequence {
|
|||
/** @since 8.2 */
|
||||
@Execute
|
||||
public void stepDelayStartup(final RequestMonitor rm) {
|
||||
int defaultDelay = fGdbJtagDevice.getDefaultDelay();
|
||||
// The delay is also controlled by the RESET attribute.
|
||||
if (CDebugUtils.getAttribute(getAttributes(), IGDBJtagConstants.ATTR_DO_RESET, IGDBJtagConstants.DEFAULT_DO_RESET)) {
|
||||
int defaultDelay = fGdbJtagDevice.getDefaultDelay();
|
||||
List<String> commands = new ArrayList<String>();
|
||||
fGdbJtagDevice.doDelay(CDebugUtils.getAttribute(getAttributes(), IGDBJtagConstants.ATTR_DELAY, defaultDelay), commands);
|
||||
queueCommands(commands, rm);
|
||||
queueCommands(commands, rm);
|
||||
} else {
|
||||
rm.done();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue