Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAnton Leherbauer2008-04-03 08:52:33 +0000
committerAnton Leherbauer2008-04-03 08:52:33 +0000
commitfdff1402b290634bb8c869a31c9406eabbef755e (patch)
tree566f2325c3fc90bbacb282c90307c4d11d6989b6 /debug
parentf2bcb6cb77cc74d1e1de2e6efcdf6a00ace5a863 (diff)
downloadorg.eclipse.cdt-fdff1402b290634bb8c869a31c9406eabbef755e.tar.gz
org.eclipse.cdt-fdff1402b290634bb8c869a31c9406eabbef755e.tar.xz
org.eclipse.cdt-fdff1402b290634bb8c869a31c9406eabbef755e.zip
Fix for 86676: CDT ghosts resume/step when stack-info-depth fails
Patch by √ėyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java11
1 files changed, 10 insertions, 1 deletions
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 ca92915cd5..daf47b2dfc 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);
}

Back to the top