Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2014-09-17 20:12:58 +0000
committerMarc Khouzam2014-09-17 20:29:37 +0000
commit7d817be44ad57d0b54a8c8dae873074f23e74a02 (patch)
treecf327e70a3786e13593a840afd7fa5df1b88a274
parent2d3e5f718700204837b73d4daf6de78973a1892b (diff)
downloadorg.eclipse.cdt-CDT_8_5_0.tar.gz
org.eclipse.cdt-CDT_8_5_0.tar.xz
org.eclipse.cdt-CDT_8_5_0.zip
Bug 444395 - Breakpoints don't get set for second session.CDT_8_5_0
Change-Id: Ifa857cc2e9de00bb2f2a86b9d5e73536294dd01d Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/33517
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
index d7b4bb1f368..e0b3d8303be 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
@@ -1890,6 +1890,11 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
results.add("0"); //$NON-NLS-1$
return results;
}
+
+ if (threads.isEmpty()) {
+ results.add("0"); //$NON-NLS-1$
+ return results;
+ }
for (IExecutionDMContext[] targetThreads : threads) {
if (targetThreads != null) {

Back to the top