aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-06-07 17:27:47 +0100
committerPedro Alves <palves@redhat.com>2018-06-07 18:57:37 +0100
commitd6ca69cddc3fc6ef61fdfe3c3803d13b0b4e13e9 (patch)
treeed4b826fa773038c603131579fac9ffdfb734053 /gdb/target.c
parentb6a8c27bb8fb383be6f57724eb9aafa9f2f83aa5 (diff)
downloadgdb-d6ca69cddc3fc6ef61fdfe3c3803d13b0b4e13e9.zip
gdb-d6ca69cddc3fc6ef61fdfe3c3803d13b0b4e13e9.tar.gz
gdb-d6ca69cddc3fc6ef61fdfe3c3803d13b0b4e13e9.tar.bz2
Eliminate find_target_beneath
Call target_ops::beneath() throughout instead. gdb/ChangeLog: 2018-06-07 Pedro Alves <palves@redhat.com> * target.h (find_target_beneath): Delete declaration. * target.c (find_target_beneath): Delete definition. * aix-thread.c: All callers of find_target_beneath adjusted to call target_ops::beneath instead. * bsd-uthread.c: Likewise. * linux-thread-db.c: Likewise. * ravenscar-thread.c: Likewise. * sol-thread.c: Likewise. * spu-multiarch.c: Likewise.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/target.c b/gdb/target.c
index c8fa8e1..cc4f81e 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3211,16 +3211,6 @@ default_thread_architecture (struct target_ops *ops, ptid_t ptid)
return inf->gdbarch;
}
-/*
- * Find the next target down the stack from the specified target.
- */
-
-struct target_ops *
-find_target_beneath (struct target_ops *t)
-{
- return t->beneath ();
-}
-
/* See target.h. */
struct target_ops *