1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

getStackFameCount() set and reset the thread.

This commit is contained in:
Alain Magloire 2002-11-18 18:10:02 +00:00
parent 1e61153ea5
commit 01bde001e6

View file

@ -95,11 +95,14 @@ public class CThread extends CObject implements ICDIThread {
CommandFactory factory = mi.getCommandFactory(); CommandFactory factory = mi.getCommandFactory();
MIStackInfoDepth depth = factory.createMIStackInfoDepth(); MIStackInfoDepth depth = factory.createMIStackInfoDepth();
try { try {
ICDIThread oldThread = getCTarget().getCurrentThread();
getCTarget().setCurrentThread(this);
mi.postCommand(depth); mi.postCommand(depth);
MIStackInfoDepthInfo info = depth.getMIStackInfoDepthInfo(); MIStackInfoDepthInfo info = depth.getMIStackInfoDepthInfo();
if (info == null) { if (info == null) {
throw new CDIException("No answer"); throw new CDIException("No answer");
} }
getCTarget().setCurrentThread(oldThread);
return info.getDepth(); return info.getDepth();
} catch (MIException e) { } catch (MIException e) {
throw new CDIException(e.getMessage()); throw new CDIException(e.getMessage());