aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2015-09-02 00:34:22 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2015-09-02 00:34:22 -0400
commitad1c917a79e8c5aa67657f148415c1bee01b240f (patch)
treede06969ae3fc8cefa74030df8570e2dce4432f6d
parent3bd7e5b7ee5ea0b3bbb4030ca841f66faad74f0f (diff)
downloadgdb-ad1c917a79e8c5aa67657f148415c1bee01b240f.zip
gdb-ad1c917a79e8c5aa67657f148415c1bee01b240f.tar.gz
gdb-ad1c917a79e8c5aa67657f148415c1bee01b240f.tar.bz2
Initialize variable and silence GCC warning from last commit
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
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/solib-svr4.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8ed469f..80fff7e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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
get_probe_argument_count using TRY...CATCH.
(svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 5d2b9dd..d3411fa 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -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 ();