MCPcopy Create free account
hub / github.com/SamoZ256/hydra / GetStackTrace

Method GetStackTrace

src/core/debugger/debugger.cpp:116–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116StackTrace Debugger::GetStackTrace(Thread& thread) {
117 StackTrace stack_trace;
118
119 // Host
120 // TODO
121
122 // Guest
123 if (auto guest_thread = thread.guest_thread) {
124 guest_thread->GetThread()->GetStackTrace([&](vaddr_t addr) {
125 stack_trace.frames.emplace_back(this, StackFrameType::Guest, addr);
126 });
127 }
128
129 return stack_trace;
130}
131
132} // namespace hydra::debugger

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected