diff options
author | Jun 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 |
commit | 9597dcefaaf1282aa6721349e5b7472114b8bb54 (patch) | |
tree | 424cb60ab6a58479e366cc17131bdc6a0a938cf0 /src/server | |
parent | dcca0b7694d23dbee6f1554dfbc4bffc4bedb4f2 (diff) | |
download | openocd+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>
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 3 |
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) |