diff options
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 27f9ce8..7fe6e2d 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1093,12 +1093,8 @@ static void thread_db_detach (struct target_ops *ops, const char *args, int from_tty) { struct target_ops *target_beneath = find_target_beneath (ops); - struct thread_db_info *info; - - info = get_thread_db_info (ptid_get_pid (inferior_ptid)); - if (info) - delete_thread_db_info (ptid_get_pid (inferior_ptid)); + delete_thread_db_info (ptid_get_pid (inferior_ptid)); target_beneath->to_detach (target_beneath, args, from_tty); |