mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +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:
parent
f2bcb6cb77
commit
fdff1402b2
1 changed files with 10 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* QNX Software Systems - Initial API and implementation
|
* QNX Software Systems - Initial API and implementation
|
||||||
* Alena Laskavaia (QNX) - Bug 221224
|
* Alena Laskavaia (QNX) - Bug 221224
|
||||||
|
* Oyvind Harboe (oyvind.harboe@zylin.com) - Bug 86676
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.debug.mi.core.cdi.model;
|
package org.eclipse.cdt.debug.mi.core.cdi.model;
|
||||||
|
|
||||||
|
@ -185,7 +186,15 @@ public class Thread extends CObject implements ICDIThread {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (MIException e) {
|
} 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 {
|
} finally {
|
||||||
target.setCurrentThread(currentThread, false);
|
target.setCurrentThread(currentThread, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue