jtag/drivers/cmsis_dap: use unsigned types
[openocd.git] / src / server / gdb_server.h
blobe27aad7cfcbf8cb42f26cae9ebb0792775a00ad8
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2005 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
6 * *
7 * Copyright (C) 2007-2009 Øyvind Harboe *
8 * oyvind.harboe@zylin.com *
9 * *
10 * Copyright (C) 2008 by Spencer Oliver *
11 * spen@spen-soft.co.uk *
12 * *
13 * Copyright (C) 2011 by Broadcom Corporation *
14 * Evan Hunter - ehunter@broadcom.com *
15 ***************************************************************************/
17 #ifndef OPENOCD_SERVER_GDB_SERVER_H
18 #define OPENOCD_SERVER_GDB_SERVER_H
20 struct image;
21 struct reg;
22 #include <target/target.h>
24 #define GDB_BUFFER_SIZE 16384
26 int gdb_target_add_all(struct target *target);
27 int gdb_register_commands(struct command_context *command_context);
28 void gdb_service_free(void);
30 int gdb_put_packet(struct connection *connection, char *buffer, int len);
32 static inline struct target *get_target_from_connection(struct connection *connection)
34 struct gdb_service *gdb_service = connection->service->priv;
35 return gdb_service->target;
38 #define ERROR_GDB_BUFFER_TOO_SMALL (-800)
39 #define ERROR_GDB_TIMEOUT (-801)
41 #endif /* OPENOCD_SERVER_GDB_SERVER_H */