![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Typedefs | |
| typedef int(* | SceCoredumpHandler) (void *handler_arg) |
| Coredump handler invoked on a dedicated user thread. | |
Functions | |
| int | sceCoredumpRegisterCoredumpHandler (SceCoredumpHandler handler, SceSize stack_size, void *handler_arg) |
| Registers a callback that can append application-specific data to a coredump. | |
| int | sceCoredumpUnregisterCoredumpHandler (void) |
| Unregisters the current process's coredump handler. | |
Exports for User.
Include the header file in your project:
Link the library to the executable:
| typedef int(* SceCoredumpHandler) (void *handler_arg) |
Coredump handler invoked on a dedicated user thread.
The internal thread entry point calls this handler with the registered handler_arg.
| [in] | handler_arg | Argument registered with sceCoredumpRegisterCoredumpHandler. |
| int sceCoredumpRegisterCoredumpHandler | ( | SceCoredumpHandler | handler, |
| SceSize | stack_size, | ||
| void * | handler_arg | ||
| ) |
Registers a callback that can append application-specific data to a coredump.
The callback runs on a dedicated user thread whose stack has the requested size. FW 3.60 waits up to three seconds for the callback. The target process is suspended while it runs, so the callback must not issue ordinary system calls; it should use sceCoredumpWriteUserData to append data.
| [in] | handler | Pointer to a SceCoredumpHandler function. |
| [in] | stack_size | Stack size of the thread used to invoke the handler. Must be at least 0x1000 bytes on FW 3.60. |
| [in] | handler_arg | Argument passed to the handler. When non-NULL, FW 3.60 probes exactly 4 readable bytes at registration time. It must remain valid until the handler is unregistered. |
| 0 | Success. |
| 0x800A0000 | Invalid handler, stack size, or handler argument, or failure to allocate the handler stack. |
| 0x800A0002 | A handler is already registered for this process. |
| int sceCoredumpUnregisterCoredumpHandler | ( | void | ) |
Unregisters the current process's coredump handler.
| 0 | Success. |
| 0x800A0001 | No handler is registered for this process. |