1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix for 86676: CDT ghosts resume/step when stack-info-depth fails

Patch by Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Anton Leherbauer 2008-04-03 08:52:33 +00:00
parent f2bcb6cb77
commit fdff1402b2

View file

@ -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);
}