summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-01-11 00:14:01 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-11 00:16:57 -0800
commit8c730aaee22a505cf66666be3ff28734ac885418 (patch)
treee3f5fba860026687418f4e31a4879d286bd0a210 /src/server
parent88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7 (diff)
downloadopenocd_libswd-8c730aaee22a505cf66666be3ff28734ac885418.tar.gz
openocd_libswd-8c730aaee22a505cf66666be3ff28734ac885418.tar.bz2
openocd_libswd-8c730aaee22a505cf66666be3ff28734ac885418.tar.xz
openocd_libswd-8c730aaee22a505cf66666be3ff28734ac885418.zip
Doxygen file comments
Add file comments to a few files. Make the GDB server use more conventional (pointer-free) hex digit conversion. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/server')
-rw-r--r--src/server/gdb_server.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 08daa68a..f4a99cae 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -37,6 +37,15 @@
#include <jtag/jtag.h>
+/**
+ * @file
+ * GDB server implementation.
+ *
+ * This implements the GDB Remote Serial Protocol, over TCP connections,
+ * giving GDB access to the JTAG or other hardware debugging facilities
+ * found in most modern embedded processors.
+ */
+
/* private connection data for GDB */
struct gdb_connection
{
@@ -68,7 +77,7 @@ static enum breakpoint_type gdb_breakpoint_override_type;
extern int gdb_error(struct connection *connection, int retval);
static unsigned short gdb_port = 3333;
static unsigned short gdb_port_next = 0;
-static const char *DIGITS = "0123456789abcdef";
+static const char DIGITS[16] = "0123456789abcdef";
static void gdb_log_callback(void *priv, const char *file, unsigned line,
const char *function, const char *string);