mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
[rpcsx-os] print stack on syscall error
This commit is contained in:
parent
99a3a4005b
commit
23dd8118f6
|
|
@ -76,6 +76,8 @@ static orbis::ErrorCode convertErrno() {
|
|||
return orbis::ErrorCode::SPIPE;
|
||||
case EPIPE:
|
||||
return orbis::ErrorCode::PIPE;
|
||||
case EINVAL:
|
||||
return orbis::ErrorCode::INVAL;
|
||||
|
||||
default:
|
||||
ORBIS_LOG_ERROR("Unconverted errno", error);
|
||||
|
|
|
|||
|
|
@ -15,4 +15,5 @@ IoDevice *createNullCharacterDevice();
|
|||
IoDevice *createZeroCharacterDevice();
|
||||
IoDevice *createRngCharacterDevice();
|
||||
IoDevice *createAjmCharacterDevice();
|
||||
IoDevice *createSblSrvCharacterDevice();
|
||||
IoDevice *createShmDevice();
|
||||
|
|
|
|||
|
|
@ -287,6 +287,8 @@ static void onSysExit(orbis::Thread *thread, int id, uint64_t *args,
|
|||
|
||||
std::fprintf(stderr, ") -> Status %d, Value %lx:%lx\n", result.value(),
|
||||
thread->retval[0], thread->retval[1]);
|
||||
|
||||
thread->where();
|
||||
funlockfile(stderr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue