1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Bug 525726: Use GDB/MI for temporary breakpoint

Issue a GDB/MI "-break-insert -t -f" command rather
than "tbreak" to avoid raising a "=breakpoint-created"
event which would trigger the breakpoint synchronizer.

Change-Id: I330f3e69fe096cb16791e4d7de7af92b2c9ccd0c
Signed-off-by: John Dallaway <john@dallaway.org.uk>
This commit is contained in:
John Dallaway 2017-10-11 20:48:16 +01:00
parent 4b3aea7e2a
commit f2115d3a56

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2008, 2014 QNX Software Systems and others. * Copyright (c) 2008, 2017 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors: * Contributors:
* QNX Software Systems - Initial API and implementation * QNX Software Systems - Initial API and implementation
* Andy Jin - Hardware debugging UI improvements, bug 229946 * Andy Jin - Hardware debugging UI improvements, bug 229946
* John Dallaway - Use GDB/MI for temporary breakpoint, bug 525726
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice; package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice;
@ -130,7 +131,7 @@ public class DefaultGDBJtagDeviceImpl implements IGDBJtagDevice {
*/ */
@Override @Override
public void doStopAt(String stopAt, Collection<String> commands) { public void doStopAt(String stopAt, Collection<String> commands) {
String cmd = "tbreak " + stopAt; //$NON-NLS-1$ String cmd = "-break-insert -t -f " + stopAt; //$NON-NLS-1$
addCmd(commands, cmd); addCmd(commands, cmd);
} }