From 959e7d3658741749c02ac0456d51e5c9b9f393a9 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Mon, 19 Apr 2010 11:58:40 +0000 Subject: [PATCH] [309650] Turning on catchpoint while multi-threaded programs runs causes assertion --- .../cdt/dsf/mi/service/command/output/CLICatchInfo.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/CLICatchInfo.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/CLICatchInfo.java index 86488f46e48..7eecf28f061 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/CLICatchInfo.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/CLICatchInfo.java @@ -48,11 +48,7 @@ public class CLICatchInfo extends MIInfo { } private MIBreakpoint parseCatchpoint(String str) { - if (str.startsWith("Catchpoint ")) { //$NON-NLS-1$ - return new MIBreakpoint(str); - } - assert false : "CLI catch command had an unexpected result: " + str; //$NON-NLS-1$ - return null; + return str.startsWith("Catchpoint ") ? new MIBreakpoint(str) : null; //$NON-NLS-1$ } /**