[rpcsx-os] print stack on syscall error

This commit is contained in:
DH 2023-07-30 00:34:52 +03:00
parent 99a3a4005b
commit 23dd8118f6
3 changed files with 5 additions and 0 deletions

View file

@ -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);

View file

@ -15,4 +15,5 @@ IoDevice *createNullCharacterDevice();
IoDevice *createZeroCharacterDevice();
IoDevice *createRngCharacterDevice();
IoDevice *createAjmCharacterDevice();
IoDevice *createSblSrvCharacterDevice();
IoDevice *createShmDevice();

View file

@ -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);
}