From 09b0dc2b57ce52fc478710797dabdf46bfd5abd1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 14:44:20 -0700 Subject: convert to_find_new_threads 2014-02-19 Tom Tromey * target-delegates.c: Rebuild. * target.c (target_find_new_threads): Unconditionally delegate. * target.h (struct target_ops) : Use TARGET_DEFAULT_RETURN. --- gdb/target.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index 0519900..59c593f 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3606,19 +3606,9 @@ target_thread_alive (ptid_t ptid) void target_find_new_threads (void) { - struct target_ops *t; - - for (t = current_target.beneath; t != NULL; t = t->beneath) - { - if (t->to_find_new_threads != NULL) - { - t->to_find_new_threads (t); - if (targetdebug) - fprintf_unfiltered (gdb_stdlog, "target_find_new_threads ()\n"); - - return; - } - } + current_target.to_find_new_threads (¤t_target); + if (targetdebug) + fprintf_unfiltered (gdb_stdlog, "target_find_new_threads ()\n"); } void -- cgit v1.1