From fdff1402b290634bb8c869a31c9406eabbef755e Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Thu, 3 Apr 2008 08:52:33 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20for=2086676:=20CDT=20ghosts=20resume/step?= =?UTF-8?q?=20when=20stack-info-depth=20fails=20Patch=20by=20=C3=98yvind?= =?UTF-8?q?=20Harboe=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eclipse/cdt/debug/mi/core/cdi/model/Thread.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java index ca92915cd51..daf47b2dfca 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java +++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java @@ -8,6 +8,7 @@ * Contributors: * QNX Software Systems - Initial API and implementation * Alena Laskavaia (QNX) - Bug 221224 + * Oyvind Harboe (oyvind.harboe@zylin.com) - Bug 86676 *******************************************************************************/ package org.eclipse.cdt.debug.mi.core.cdi.model; @@ -185,7 +186,15 @@ public class Thread extends CObject implements ICDIThread { } } } catch (MIException e) { - throw new MI2CDIException(e); + /* GDB has a bug where it fails to evaluate the stack depth, this must, ultimately + * be fixed in GDB. GNAT nr 2395 + * + * http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2395 + */ + // Bug#86676 fix: + // + // 1 is safe + stackdepth = 1; } finally { target.setCurrentThread(currentThread, false); }