diff options
author | Anton Leherbauer | 2008-01-15 09:12:57 +0000 |
---|---|---|
committer | Anton Leherbauer | 2008-01-15 09:12:57 +0000 |
commit | b127b4265f02c42c44b70a0d101903b0a280360e (patch) | |
tree | c05c63521cacfe9a9a6f104b17a924692c31a17d /debug/org.eclipse.cdt.debug.mi.core | |
parent | b90fcb3b0c2d2e1c62f7df53030837111e1cf08c (diff) | |
download | org.eclipse.cdt-b127b4265f02c42c44b70a0d101903b0a280360e.tar.gz org.eclipse.cdt-b127b4265f02c42c44b70a0d101903b0a280360e.tar.xz org.eclipse.cdt-b127b4265f02c42c44b70a0d101903b0a280360e.zip |
Patch by Alena Laskavaia for 186172: NullPointerException in debugger console
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.core')
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBProcess.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBProcess.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBProcess.java index bb7e5ce15dc..c2af3523625 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBProcess.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBProcess.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2006 QNX Software Systems and others. + * Copyright (c) 2004, 2008 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 @@ -7,8 +7,9 @@ * * Contributors: * QNX Software Systems - Initial API and implementation + * Alena Laskavaia (QNX) - Fix for 186172 *******************************************************************************/ -package org.eclipse.cdt.debug.mi.core; +package org.eclipse.cdt.debug.mi.core; import java.util.Map; import org.eclipse.cdt.debug.mi.core.cdi.model.Target; @@ -17,11 +18,13 @@ import org.eclipse.debug.core.model.RuntimeProcess; public class GDBProcess extends RuntimeProcess { - private Target fTarget; + // volatile because the field may be accessed concurrently during construction + private volatile Target fTarget; - public GDBProcess( Target target, ILaunch launch, Process process, String name, Map attributes ) { + public GDBProcess(Target target, ILaunch launch, Process process, String name, Map attributes) { super( launch, process, name, attributes ); fTarget = target; + fireChangeEvent(); } public Target getTarget() { |