From f652de6f62870f7dec1b866494cbecef8a04b4ed Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Thu, 14 Jul 2011 04:46:42 +0000 Subject: [PATCH] 2011-07-14 Hui Zhu * remote.c (remote_get_trace_status): Initialize p. --- gdb/ChangeLog | 4 ++++ gdb/remote.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d2ee2cfcf..b2d01eefc2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-07-14 Hui Zhu + + * remote.c (remote_get_trace_status): Initialize p. + 2011-07-13 Jan Kratochvil Work around kgdb. diff --git a/gdb/remote.c b/gdb/remote.c index f9059e672d..05a3dc8f04 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10042,7 +10042,7 @@ remote_trace_start (void) static int remote_get_trace_status (struct trace_status *ts) { - char *p; + char *p = NULL; /* FIXME we need to get register block size some other way. */ extern int trace_regblock_size; volatile struct gdb_exception ex;