From: Tom Tromey Date: Thu, 27 Jun 2013 19:52:41 +0000 (+0000) Subject: * target.c (find_run_target): Remove. X-Git-Tag: sid-snapshot-20130701~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97b1715633cb136863e0d5ceacef2871ff81a7c9;p=external%2Fbinutils.git * target.c (find_run_target): Remove. * target.h (find_run_target): Remove. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 418695e..13b7057 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-06-27 Tom Tromey + * target.c (find_run_target): Remove. + * target.h (find_run_target): Remove. + +2013-06-27 Tom Tromey + * corelow.c (core_gdbarch): Now static. 2013-06-27 Tom Tromey diff --git a/gdb/target.c b/gdb/target.c index 9467ba4..920f916 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3627,30 +3627,6 @@ return_minus_one (void) return -1; } -/* Find a single runnable target in the stack and return it. If for - some reason there is more than one, return NULL. */ - -struct target_ops * -find_run_target (void) -{ - struct target_ops **t; - struct target_ops *runable = NULL; - int count; - - count = 0; - - for (t = target_structs; t < target_structs + target_struct_size; ++t) - { - if ((*t)->to_can_run && target_can_run (*t)) - { - runable = *t; - ++count; - } - } - - return (count == 1 ? runable : NULL); -} - /* * Find the next target down the stack from the specified target. */ diff --git a/gdb/target.h b/gdb/target.h index a8587e8..1bf716e 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1948,8 +1948,6 @@ extern void find_default_attach (struct target_ops *, char *, int); extern void find_default_create_inferior (struct target_ops *, char *, char *, char **, int); -extern struct target_ops *find_run_target (void); - extern struct target_ops *find_target_beneath (struct target_ops *); /* Read OS data object of type TYPE from the target, and return it in