aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-06-27 19:52:41 +0000
committerTom Tromey <tromey@redhat.com>2013-06-27 19:52:41 +0000
commit97b1715633cb136863e0d5ceacef2871ff81a7c9 (patch)
treee27aa3a39b730fcc425ac62768f35ce7e7735f0a /gdb/target.c
parent6a3bfc5cda51016d9534be898cc68c54fd4a5bba (diff)
downloadgdb-97b1715633cb136863e0d5ceacef2871ff81a7c9.zip
gdb-97b1715633cb136863e0d5ceacef2871ff81a7c9.tar.gz
gdb-97b1715633cb136863e0d5ceacef2871ff81a7c9.tar.bz2
* target.c (find_run_target): Remove.
* target.h (find_run_target): Remove.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c24
1 files changed, 0 insertions, 24 deletions
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.
*/