summaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2011-07-25 15:22:06 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2011-07-25 15:22:06 +0000
commitf800dff96eae100f07cd7e178f7b6e4b980cfc7d (patch)
treef4fe8cc49c1961fe1e35a3510ec1db83a504654d /gdb/linux-thread-db.c
parent3db9e4c95edadd61fd1cd827347fe0f68a98251d (diff)
downloadgdb-f800dff96eae100f07cd7e178f7b6e4b980cfc7d.tar.gz
2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
* linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index f43efc74c48..6427f8b9437 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -431,6 +431,9 @@ thread_from_lwp (ptid_t ptid)
struct thread_db_info *info;
struct thread_get_info_inout io = {0};
+ /* Just in case td_ta_map_lwp2thr doesn't initialize it completely. */
+ th.th_unique = 0;
+
/* This ptid comes from linux-nat.c, which should always fill in the
LWP. */
gdb_assert (GET_LWP (ptid) != 0);