aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-18 14:44:20 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:14 -0700
commit09b0dc2b57ce52fc478710797dabdf46bfd5abd1 (patch)
tree83757b4a6da72e41a1f5c0fdf6ce672b76491a65 /gdb/target.c
parent7d4f8efaf6b0c9dea516097442917deb89414090 (diff)
downloadgdb-09b0dc2b57ce52fc478710797dabdf46bfd5abd1.zip
gdb-09b0dc2b57ce52fc478710797dabdf46bfd5abd1.tar.gz
gdb-09b0dc2b57ce52fc478710797dabdf46bfd5abd1.tar.bz2
convert to_find_new_threads
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_find_new_threads): Unconditionally delegate. * target.h (struct target_ops) <to_find_new_threads>: Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c16
1 files changed, 3 insertions, 13 deletions
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 (&current_target);
+ if (targetdebug)
+ fprintf_unfiltered (gdb_stdlog, "target_find_new_threads ()\n");
}
void