From 9597dcefaaf1282aa6721349e5b7472114b8bb54 Mon Sep 17 00:00:00 2001 From: Jun Ma Date: Fri, 14 May 2010 21:04:14 +0800 Subject: [PATCH] missing pointer's declaration when enable macro -D_DEBUG_GDB_IO_. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit reproducable when "./configure --enable-maintainer-mode CFLAGS=-D_DEBUG_GDB_IO_" Signed-off-by: Jun Ma Signed-off-by: Øyvind Harboe --- src/server/gdb_server.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5