Serenity Operating System
1/*
2 * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <Kernel/API/POSIX/sys/types.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define PT_TRACE_ME 1
16#define PT_ATTACH 2
17#define PT_CONTINUE 3
18#define PT_SYSCALL 4
19#define PT_GETREGS 5
20#define PT_DETACH 6
21#define PT_PEEK 7
22#define PT_POKE 8
23#define PT_SETREGS 9
24
25// Serenity extensions:
26#define PT_POKEDEBUG 10
27#define PT_PEEKDEBUG 11
28#define PT_PEEKBUF 12
29
30#define PT_READ_I PT_PEEK
31#define PT_READ_D PT_PEEK
32#define PT_WRITE_I PT_POKE
33#define PT_WRITE_D PT_POKE
34
35#define DEBUG_STATUS_REGISTER 6
36#define DEBUG_CONTROL_REGISTER 7
37
38#ifdef __cplusplus
39}
40#endif