]> git.sur5r.net Git - openocd/commitdiff
missing pointer's declaration when enable macro -D_DEBUG_GDB_IO_.
authorJun Ma <sync.jma@gmail.com>
Fri, 14 May 2010 13:04:14 +0000 (21:04 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 14 May 2010 13:08:29 +0000 (15:08 +0200)
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>
src/server/gdb_server.c

index 275d41468daa40597fb2ea40cd0d3506c9300be0..5b4fb7a606db14e3a65f873dbc3985d6ff51883a 100644 (file)
@@ -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)