From 12070676a9aa85a35b0f3e0f5f4a968e1d13e594 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 5 Aug 2013 16:54:27 +0000 Subject: more add_target removals This removes a few more erroneous calls to add_target. These calls end up installing the target in a user-visible way; but these targets are all auto-activated and, I think, should never be explicitly requested. I have no way to test these. * aix-thread.c (_initialize_aix_thread): Use complete_target_initialization. * bsd-uthread.c (_initialize_bsd_uthread): Use complete_target_initialization. * dec-thread.c (_initialize_dec_thread): Use complete_target_initialization. * ravenscar-thread.c (_initialize_ravenscar): Use complete_target_initialization. * sol-thread.c (_initialize_sol_thread): Use complete_target_initialization. * spu-multiarch.c (_initialize_spu_multiarch): Use complete_target_initialization. --- gdb/dec-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/dec-thread.c') diff --git a/gdb/dec-thread.c b/gdb/dec-thread.c index 27cf004..f07721d 100644 --- a/gdb/dec-thread.c +++ b/gdb/dec-thread.c @@ -727,7 +727,7 @@ void _initialize_dec_thread (void) { init_dec_thread_ops (); - add_target (&dec_thread_ops); + complete_target_initialization (&dec_thread_ops); observer_attach_new_objfile (dec_thread_new_objfile_observer); -- cgit v1.1