Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Dallaway2017-10-11 15:48:16 -0400
committerJohn Dallaway2017-10-12 08:16:52 -0400
commitf2115d3a561529bc13b59c68c0b0d8eec13d48da (patch)
tree2517b05ccf6c0c5c2b82afc55eb9853c8ae5f59f
parent4b3aea7e2ac58e4b3c23dc35b68ded5ebc7e4b14 (diff)
downloadorg.eclipse.cdt-f2115d3a561529bc13b59c68c0b0d8eec13d48da.tar.gz
org.eclipse.cdt-f2115d3a561529bc13b59c68c0b0d8eec13d48da.tar.xz
org.eclipse.cdt-f2115d3a561529bc13b59c68c0b0d8eec13d48da.zip
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>
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/DefaultGDBJtagDeviceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/DefaultGDBJtagDeviceImpl.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/DefaultGDBJtagDeviceImpl.java
index 7063d23fcc..500a620a20 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/DefaultGDBJtagDeviceImpl.java
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/DefaultGDBJtagDeviceImpl.java
@@ -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
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* QNX Software Systems - Initial API and implementation
* 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;
@@ -130,7 +131,7 @@ public class DefaultGDBJtagDeviceImpl implements IGDBJtagDevice {
*/
@Override
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);
}

Back to the top