mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 07:25:26 +00:00
Implement thread->where (backtrace)
This commit is contained in:
parent
5b097f62ae
commit
7a5ba3bf6a
4 changed files with 16 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "ops.hpp"
|
||||
#include "align.hpp"
|
||||
#include "backtrace.hpp"
|
||||
#include "io-device.hpp"
|
||||
#include "linker.hpp"
|
||||
#include "orbis/module/ModuleHandle.hpp"
|
||||
|
|
@ -752,6 +753,10 @@ SysResult registerEhFrames(Thread *thread) {
|
|||
|
||||
return {};
|
||||
}
|
||||
|
||||
void where(Thread *thread) {
|
||||
rx::printStackTrace((ucontext_t *)thread->context, thread, 2);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
ProcessOps rx::procOpsTable = {
|
||||
|
|
@ -794,4 +799,5 @@ ProcessOps rx::procOpsTable = {
|
|||
.exit = exit,
|
||||
.processNeeded = processNeeded,
|
||||
.registerEhFrames = registerEhFrames,
|
||||
.where = where,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue