diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2024-06-20 16:22:10 +0100 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2024-06-24 10:14:17 +0100 |
| commit | 5b7d54d4ed7857b8b27fb040c6027ba59e003889 (patch) | |
| tree | eef845c7178f84a97a3a3cb8589d158c715da58d /include/gdbstub/enums.h | |
| parent | b31bf9f8f72477742615888e78ab07845574e19c (diff) | |
| download | focaccia-qemu-5b7d54d4ed7857b8b27fb040c6027ba59e003889.tar.gz focaccia-qemu-5b7d54d4ed7857b8b27fb040c6027ba59e003889.zip | |
gdbstub: move enums into separate header
This is an experiment to further reduce the amount we throw into the exec headers. It might not be as useful as I initially thought because just under half of the users also need gdbserver_start(). Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240620152220.2192768-3-alex.bennee@linaro.org>
Diffstat (limited to 'include/gdbstub/enums.h')
| -rw-r--r-- | include/gdbstub/enums.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/gdbstub/enums.h b/include/gdbstub/enums.h new file mode 100644 index 0000000000..c4d54a1d08 --- /dev/null +++ b/include/gdbstub/enums.h @@ -0,0 +1,21 @@ +/* + * gdbstub enums + * + * Copyright (c) 2024 Linaro Ltd + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef GDBSTUB_ENUMS_H +#define GDBSTUB_ENUMS_H + +#define DEFAULT_GDBSTUB_PORT "1234" + +/* GDB breakpoint/watchpoint types */ +#define GDB_BREAKPOINT_SW 0 +#define GDB_BREAKPOINT_HW 1 +#define GDB_WATCHPOINT_WRITE 2 +#define GDB_WATCHPOINT_READ 3 +#define GDB_WATCHPOINT_ACCESS 4 + +#endif /* GDBSTUB_ENUMS_H */ |