diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d2d207b44..49ba2bc811 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-12-01 Ulrich Weigand + + * remote.c (remote_newthread_step): Initialize item.name. + (remote_get_threads_with_qthreadinfo): Likewise. + 2015-11-30 Pedro Alves PR 14618 diff --git a/gdb/remote.c b/gdb/remote.c index 9d44ce1d7b..c60f173632 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2914,6 +2914,7 @@ remote_newthread_step (threadref *ref, void *data) item.ptid = ptid_build (pid, threadref_to_int (ref), 0); item.core = -1; + item.name = NULL; item.extra = NULL; VEC_safe_push (thread_item_t, context->items, &item); @@ -3079,6 +3080,7 @@ remote_get_threads_with_qthreadinfo (struct target_ops *ops, item.ptid = read_ptid (bufp, &bufp); item.core = -1; + item.name = NULL; item.extra = NULL; VEC_safe_push (thread_item_t, context->items, &item);