]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2011-07-15 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Fri, 15 Jul 2011 02:04:29 +0000 (02:04 +0000)
committerHui Zhu <teawater@gmail.com>
Fri, 15 Jul 2011 02:04:29 +0000 (02:04 +0000)
* remote.c (remote_get_trace_status): Initialize p.

gdb/ChangeLog
gdb/remote.c

index 82dc935e5dcb650574ea2088731dfc20c640abe8..3a52b6808406e18a09fe589b70aa6a9d6b996a66 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-15  Hui Zhu  <teawater@gmail.com>
+
+       * remote.c (remote_get_trace_status): Initialize p.
+
 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Work around kgdb.
index db5becae4ad29dba5e7bcae8e23fb24a66422442..243bdd764f06d05d8ddd7d54bd3f0059fcf64b75 100644 (file)
@@ -9976,7 +9976,8 @@ remote_trace_start (void)
 static int
 remote_get_trace_status (struct trace_status *ts)
 {
-  char *p;
+  /* Initialize it just to avoid a GCC false warning.  */
+  char *p = NULL;
   /* FIXME we need to get register block size some other way.  */
   extern int trace_regblock_size;
   volatile struct gdb_exception ex;