diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-06-28 23:02:06 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-06-28 23:02:06 +0000 |
commit | a787bedf4fd7134d1d2282d13100e86450237581 (patch) | |
tree | 52149a9c64f6b565cd915d0a1abfd2862a1382a2 /gdb/linux-thread-db.c | |
parent | 77accacd474022e900c001d986f3cf16ce5b0229 (diff) | |
download | gdb-a787bedf4fd7134d1d2282d13100e86450237581.zip gdb-a787bedf4fd7134d1d2282d13100e86450237581.tar.gz gdb-a787bedf4fd7134d1d2282d13100e86450237581.tar.bz2 |
2007-06-28 Michael Snyder <msnyder@access-company.com>
* linux-thread-db.c (thread_db_get_thread_local_address): Add
gdb_assert before using return value of find_thread_pid (Coverity).
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 460e044..91e12e8 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1081,6 +1081,7 @@ thread_db_get_thread_local_address (ptid_t ptid, /* Get info about the thread. */ thread_info = find_thread_pid (ptid); + gdb_assert (thread_info); thread_db_map_id2thr (thread_info, 1); /* Finally, get the address of the variable. */ |