2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>

* linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
This commit is contained in:
Paul Pluzhnikov 2011-07-25 15:22:07 +00:00
parent 179809c050
commit 6cb9b55b98
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
* linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
2011-07-25 Pedro Alves <pedro@codesourcery.com>
* breakpoint.h (print_recreate_thread): Declare.

View file

@ -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);