internals.h (505601d5806a5b9a8acde140da5b507bdd03a794) internals.h (c566080cd37fe328077a3c49d7fd248ce2a06bfe)
1/*
2 * gdbstub internals
3 *
4 * Copyright (c) 2022 Linaro Ltd
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8

--- 47 unchanged lines hidden (view full) ---

56 int line_buf_index;
57 int line_sum; /* running checksum */
58 int line_csum; /* checksum at the end of the packet */
59 GByteArray *last_packet;
60 int signal;
61 bool multiprocess;
62 GDBProcess *processes;
63 int process_num;
1/*
2 * gdbstub internals
3 *
4 * Copyright (c) 2022 Linaro Ltd
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8

--- 47 unchanged lines hidden (view full) ---

56 int line_buf_index;
57 int line_sum; /* running checksum */
58 int line_csum; /* checksum at the end of the packet */
59 GByteArray *last_packet;
60 int signal;
61 bool multiprocess;
62 GDBProcess *processes;
63 int process_num;
64 char syscall_buf[256];
65 gdb_syscall_complete_cb current_syscall_cb;
66 GString *str_buf;
67 GByteArray *mem_buf;
68 int sstep_flags;
69 int supported_sstep_flags;
70} GDBState;
71
72/* lives in main gdbstub.c */
73extern GDBState gdbserver_state;

--- 112 unchanged lines hidden (view full) ---

186void gdb_handle_query_xfer_auxv(GArray *params, void *user_ctx); /*user */
187
188void gdb_handle_query_attached(GArray *params, void *user_ctx); /* both */
189
190/* softmmu only */
191void gdb_handle_query_qemu_phy_mem_mode(GArray *params, void *user_ctx);
192void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *user_ctx);
193
64 GString *str_buf;
65 GByteArray *mem_buf;
66 int sstep_flags;
67 int supported_sstep_flags;
68} GDBState;
69
70/* lives in main gdbstub.c */
71extern GDBState gdbserver_state;

--- 112 unchanged lines hidden (view full) ---

184void gdb_handle_query_xfer_auxv(GArray *params, void *user_ctx); /*user */
185
186void gdb_handle_query_attached(GArray *params, void *user_ctx); /* both */
187
188/* softmmu only */
189void gdb_handle_query_qemu_phy_mem_mode(GArray *params, void *user_ctx);
190void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *user_ctx);
191
192/* sycall handling */
193void gdb_handle_file_io(GArray *params, void *user_ctx);
194bool gdb_handled_syscall(void);
195void gdb_disable_syscalls(void);
196void gdb_syscall_reset(void);
197
194/*
195 * Break/Watch point support - there is an implementation for softmmu
196 * and user mode.
197 */
198bool gdb_supports_guest_debug(void);
199int gdb_breakpoint_insert(CPUState *cs, int type, vaddr addr, vaddr len);
200int gdb_breakpoint_remove(CPUState *cs, int type, vaddr addr, vaddr len);
201void gdb_breakpoint_remove_all(CPUState *cs);

--- 17 unchanged lines hidden ---
198/*
199 * Break/Watch point support - there is an implementation for softmmu
200 * and user mode.
201 */
202bool gdb_supports_guest_debug(void);
203int gdb_breakpoint_insert(CPUState *cs, int type, vaddr addr, vaddr len);
204int gdb_breakpoint_remove(CPUState *cs, int type, vaddr addr, vaddr len);
205void gdb_breakpoint_remove_all(CPUState *cs);

--- 17 unchanged lines hidden ---