Remove unnecessary call to get_thread_db_info
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 30 Dec 2017 02:56:58 +0000 (21:56 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 30 Dec 2017 02:57:08 +0000 (21:57 -0500)
commit502a625ab01da27e851333b598c893d6f2c20bd0
treebaa5ad83ae08cdc5de233223acedbed7e579eb0f
parent4b2dfff9e78c6b615a92c727758f08f595aadba2
Remove unnecessary call to get_thread_db_info

In thread_db_detach, we call get_thread_db_info to first check if there
exists a thread_db_info entry for the pid to detach.  If there is, then
we call delete_thread_db_info.  It's unnecessary to call
get_thread_db_info in the first place, since delete_thread_db_info
handles the case where no thread_db_info entry exist for the given pid.

gdb/ChangeLog:

* linux-thread-db.c (thread_db_detach): Remove call to
delete_thread_db_info.
gdb/ChangeLog
gdb/linux-thread-db.c