diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f4857e3..646a827 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-07-17 Yao Qi <yao.qi@linaro.org> + + * remote.c (get_current_thread): Initialise ptid to null_ptid. + (add_current_inferior_and_thread): Don't initialise ptid. + 2015-07-16 Pierre Langlois <pierre.langlois@arm.com> * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as diff --git a/gdb/remote.c b/gdb/remote.c index 9d97f6b..94899bd 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3474,7 +3474,7 @@ stop_reply_extract_thread (char *stop_reply) static ptid_t get_current_thread (char *wait_status) { - ptid_t ptid; + ptid_t ptid = null_ptid; /* Note we don't use remote_parse_stop_reply as that makes use of the target architecture, which we haven't yet fully determined at @@ -3503,7 +3503,7 @@ add_current_inferior_and_thread (char *wait_status) { struct remote_state *rs = get_remote_state (); int fake_pid_p = 0; - ptid_t ptid = null_ptid; + ptid_t ptid; inferior_ptid = null_ptid; |