protected override Backtrace OnGetThreadBacktrace(long processId, long threadId) { ResultData data = SelectThread(threadId); GdbCommandResult res = RunCommand("-stack-info-depth"); int fcount = int.Parse(res.GetValue("depth")); GdbBacktrace bt = new GdbBacktrace(this, threadId, fcount, data != null ? data.GetObject("frame") : null); return(new Backtrace(bt)); }
void FireTargetEvent(TargetEventType type, ResultData curFrame) { UpdateHitCountData(); TargetEventArgs args = new TargetEventArgs(type); if (type != TargetEventType.TargetExited) { GdbCommandResult res = RunCommand("-stack-info-depth"); int fcount = int.Parse(res.GetValue("depth")); GdbBacktrace bt = new GdbBacktrace(this, activeThread, fcount, curFrame); args.Backtrace = new Backtrace(bt); args.Thread = GetThread(activeThread); } OnTargetEvent(args); }
void FireTargetEvent (TargetEventType type, ResultData curFrame) { UpdateHitCountData (); TargetEventArgs args = new TargetEventArgs (type); if (type != TargetEventType.TargetExited) { GdbCommandResult res = RunCommand ("-stack-info-depth"); int fcount = int.Parse (res.GetValue ("depth")); GdbBacktrace bt = new GdbBacktrace (this, activeThread, fcount, curFrame); args.Backtrace = new Backtrace (bt); args.Thread = GetThread (activeThread); } OnTargetEvent (args); }
protected override Backtrace OnGetThreadBacktrace (long processId, long threadId) { ResultData data = SelectThread (threadId); GdbCommandResult res = RunCommand ("-stack-info-depth"); int fcount = int.Parse (res.GetValue ("depth")); GdbBacktrace bt = new GdbBacktrace (this, threadId, fcount, data != null ? data.GetObject ("frame") : null); return new Backtrace (bt); }