RFC: don't call add_target for thread_db_ops

Pedro Alves palves@redhat.com
Thu Jul 25 14:39:00 GMT 2013


On 07/25/2013 03:14 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
> 
>>> * linux-thread-db.c (init_thread_db_ops): Call
>>> complete_target_initialization.
>>> (_initialize_thread_db): Don't call add_target.
>>> * target.c (complete_target_initialization): New function.
>>> (add_target_with_completer): Call it.
>>> * target.h (complete_target_initialization): Declare.
> 
> Pedro> This is OK.
> 
> Thanks.  I'm checking it in now.

Thanks.  Do you plan on doing the same to the remaining
thread_stratum targets?  If not, I'll do it at some point.
I'd prefer not leaving the incomplete transition in
place; it's bound to confuse someone later on.  I wouldn't
worry much if an affected target goes untested.

-- 
Pedro Alves



More information about the Gdb-patches mailing list