mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52: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:
parent
f2bcb6cb77
commit
fdff1402b2
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue