summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Ma <sync.jma@gmail.com>2010-05-14 21:04:14 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-05-14 15:08:29 +0200
commit9597dcefaaf1282aa6721349e5b7472114b8bb54 (patch)
tree424cb60ab6a58479e366cc17131bdc6a0a938cf0
parentdcca0b7694d23dbee6f1554dfbc4bffc4bedb4f2 (diff)
downloadopenocd_libswd-9597dcefaaf1282aa6721349e5b7472114b8bb54.tar.gz
openocd_libswd-9597dcefaaf1282aa6721349e5b7472114b8bb54.tar.bz2
openocd_libswd-9597dcefaaf1282aa6721349e5b7472114b8bb54.tar.xz
openocd_libswd-9597dcefaaf1282aa6721349e5b7472114b8bb54.zip
missing pointer's declaration when enable macro -D_DEBUG_GDB_IO_.
reproducable when "./configure --enable-maintainer-mode CFLAGS=-D_DEBUG_GDB_IO_" Signed-off-by: Jun Ma <sync.jma@gmail.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/server/gdb_server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 275d4146..5b4fb7a6 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -171,6 +171,9 @@ static int gdb_get_char_inner(struct connection *connection, int* next_char)
struct gdb_connection *gdb_con = connection->priv;
int retval = ERROR_OK;
+#ifdef _DEBUG_GDB_IO_
+ char *debug_buffer;
+#endif
for (;;)
{
if (connection->service->type == CONNECTION_PIPE)