Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorMarc Khouzam2010-05-28 19:51:48 +0000
committerMarc Khouzam2010-05-28 19:51:48 +0000
commitf699fcfdf34bf70bd3830c77d0a5a7e518dea3f4 (patch)
tree34125dd9d096a85d6a8deec7aea5629de51ac5cb /dsf
parent18f37c3ccf8d899b825313ea1816c74581643cac (diff)
downloadorg.eclipse.cdt-f699fcfdf34bf70bd3830c77d0a5a7e518dea3f4.tar.gz
org.eclipse.cdt-f699fcfdf34bf70bd3830c77d0a5a7e518dea3f4.tar.xz
org.eclipse.cdt-f699fcfdf34bf70bd3830c77d0a5a7e518dea3f4.zip
Bug 314950: A null reason is valid in non-stop mode
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java
index a854d40a30b..5b6783bc086 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/launch/ExecutionContextLabelText.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 Wind River Systems and others.
+ * Copyright (c) 2008, 2010 Wind River 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
@@ -52,7 +52,10 @@ public class ExecutionContextLabelText extends LabelText {
if ( ILaunchVMConstants.PROP_STATE_CHANGE_REASON.equals(propertyName) ) {
String reason = (String)properties.get(ILaunchVMConstants.PROP_STATE_CHANGE_REASON);
String reasonLabel = "invalid reason"; //$NON-NLS-1$
- if (StateChangeReason.BREAKPOINT.name().equals(reason)) {
+ if (reason == null) {
+ // In non-stop mode threads that are running have no state change reason
+ reasonLabel = ""; //$NON-NLS-1$
+ } else if (StateChangeReason.BREAKPOINT.name().equals(reason)) {
reasonLabel = MessagesForLaunchVM.State_change_reason__Breakpoint__label;
} else if (StateChangeReason.CONTAINER.name().equals(reason)) {
reasonLabel = MessagesForLaunchVM.State_change_reason__Container__label;

Back to the top