mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-16 00:27:30 +00:00
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).
This commit is contained in:
parent
77accacd47
commit
a787bedf4f
@ -1,5 +1,8 @@
|
||||
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).
|
||||
|
||||
* source.c (unset_substitute_path_command): Plug leak (Coverity).
|
||||
|
||||
* cli/cli-script.c (build_command_line): Add null pointer guard
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user