From 02980c5645e355833b989e9551befddd54e75640 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 23 Mar 2021 09:50:35 -0400 Subject: gdb: remove push_target free functions Same as the previous patch, but for the push_target functions. The implementation of the move variant is moved to a new overload of inferior::push_target. gdb/ChangeLog: * target.h (push_target): Remove, update callers to use inferior::push_target. * target.c (push_target): Remove. * inferior.h (class inferior) : New overload. Change-Id: I5a95496666278b8f3965e5e8aecb76f54a97c185 --- gdb/bsd-uthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/bsd-uthread.c') diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c index 2ee47bf..3cb8f64 100644 --- a/gdb/bsd-uthread.c +++ b/gdb/bsd-uthread.c @@ -231,7 +231,7 @@ bsd_uthread_activate (struct objfile *objfile) bsd_uthread_thread_ctx_offset = bsd_uthread_lookup_offset ("_thread_ctx_offset", objfile); - push_target (&bsd_uthread_ops); + current_inferior ()->push_target (&bsd_uthread_ops); bsd_uthread_active = 1; return 1; } -- cgit v1.1