Some optimizations for ThreadHandler.

- CreateStackTrace() now takes a parameter indicating whether or not
  to try and retrieve full frame information. This in turn is passed
  on to SpecificImageDebugInfo, where e.g. DwarfImageDebugInfo can
  use it to avoid constructing variables and parameters. This is
  used by ThreadHandler since, when it requests the top frame for
  its stepping  calculations, this additional data/work is completely
  unnecessary.
This commit is contained in:
Rene Gollent
2012-12-26 00:20:33 -05:00
parent 50bd564d06
commit 1167ae5274
8 changed files with 20 additions and 9 deletions
@@ -253,7 +253,8 @@ ThreadHandler::HandleThreadAction(uint32 action)
if (stackTrace == NULL && cpuState != NULL) {
if (fDebuggerInterface->GetArchitecture()->CreateStackTrace(
fThread->GetTeam(), this, cpuState, stackTrace, 1) == B_OK) {
fThread->GetTeam(), this, cpuState, stackTrace, 1, false,
false) == B_OK) {
stackTraceReference.SetTo(stackTrace, true);
}
}