]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Initialize variable and silence GCC warning from last commit
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 2 Sep 2015 04:34:22 +0000 (00:34 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 2 Sep 2015 04:34:22 +0000 (00:34 -0400)
BuildBot e-mailed me to let me know that my last commit broke GDB on
RHEL-7.1 s390x.  On solib-svr4.c:svr4_handle_solib_event, 'val' now
needs to be initialized as NULL because it is inside a TRY..CATCH
block.  This patch does that.  Pushed as obvious.

gdb/ChangeLog:
2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>

* solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL

gdb/ChangeLog
gdb/solib-svr4.c

index 8ed469f5df6cdf6cd8a3191eceaf2bb8d9713566..80fff7e41d94fe6c683ece6d4a7eda05d6169b82 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
+
 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * solib-svr4.c (solib_event_probe_action): Call
index 5d2b9dde2183e5cca2d6f4fcf8d84f3cefc91e1e..d3411faf8319e7b08de72524e0095cec390e4ab9 100644 (file)
@@ -1908,7 +1908,7 @@ svr4_handle_solib_event (void)
   struct probe_and_action *pa;
   enum probe_action action;
   struct cleanup *old_chain, *usm_chain;
-  struct value *val;
+  struct value *val = NULL;
   CORE_ADDR pc, debug_base, lm = 0;
   int is_initial_ns;
   struct frame_info *frame = get_current_frame ();