Implement thread->where (backtrace)

This commit is contained in:
Ivan Chikish 2023-07-20 18:18:12 +03:00
parent 5b097f62ae
commit 7a5ba3bf6a
4 changed files with 16 additions and 2 deletions

View file

@ -68,5 +68,7 @@ struct ProcessOps {
SysResult (*processNeeded)(Thread *thread);
SysResult (*registerEhFrames)(Thread *thread);
void (*where)(Thread *);
};
} // namespace orbis

View file

@ -32,6 +32,9 @@ struct Thread {
uint64_t evfResultPattern;
uint64_t evfIsCancelled;
// Print backtrace
void where();
// FIXME: implement thread destruction
void incRef() {}
void decRef() {}