libctru v2.5.0
Loading...
Searching...
No Matches
pmdbg.h
Go to the documentation of this file.
1/**
2 * @file pmdbg.h
3 * @brief PM (Process Manager) debug service.
4 */
5#pragma once
6
8
9/// Initializes pm:dbg.
11
12/// Exits pm:dbg.
13void pmDbgExit(void);
14
15/**
16 * @brief Gets the current pm:dbg session handle.
17 * @return The current pm:dbg session handle.
18 */
20
21/**
22 * @brief Enqueues an application for debug after setting cpuTime to 0, and returns a debug handle to it.
23 * If another process was enqueued, this just calls @ref RunQueuedProcess instead.
24 * @param[out] Pointer to output the debug handle to.
25 * @param programInfo Program information of the title.
26 * @param launchFlags Flags to launch the title with.
27 */
28Result PMDBG_LaunchAppDebug(Handle *outDebug, const FS_ProgramInfo *programInfo, u32 launchFlags);
29
30/**
31 * @brief Launches an application for debug after setting cpuTime to 0.
32 * @param programInfo Program information of the title.
33 * @param launchFlags Flags to launch the title with.
34 */
35Result PMDBG_LaunchApp(const FS_ProgramInfo *programInfo, u32 launchFlags);
36
37/**
38 * @brief Runs the queued process and returns a debug handle to it.
39 * @param[out] Pointer to output the debug handle to.
40 */
PM (Process Manager) application service.
Result PMDBG_LaunchApp(const FS_ProgramInfo *programInfo, u32 launchFlags)
Launches an application for debug after setting cpuTime to 0.
Result PMDBG_RunQueuedProcess(Handle *outDebug)
Runs the queued process and returns a debug handle to it.
Result pmDbgInit(void)
Initializes pm:dbg.
Result PMDBG_LaunchAppDebug(Handle *outDebug, const FS_ProgramInfo *programInfo, u32 launchFlags)
Enqueues an application for debug after setting cpuTime to 0, and returns a debug handle to it.
void pmDbgExit(void)
Exits pm:dbg.
Handle * pmDbgGetSessionHandle(void)
Gets the current pm:dbg session handle.
Program information.
Definition fs.h:183
u32 Handle
Resource handle.
Definition types.h:41
s32 Result
Function result.
Definition types.h:42
uint32_t u32
32-bit unsigned integer
Definition types.h:23