This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/5] Introduce target_ops method thread_info_to_thread_handle


>>>>> "Kevin" == Kevin Buettner <kevinb@redhat.com> writes:

Kevin> +gdb::byte_vector
Kevin> +target_thread_info_to_thread_handle (struct thread_info *tip)
Kevin> +{
Kevin> +  return current_top_target ()->thread_info_to_thread_handle (tip);
Kevin> +}

It's the gdb style to stick /* See target.h.  */ before the definition.

Kevin> +    virtual gdb::byte_vector thread_info_to_thread_handle (struct thread_info *)
Kevin> +      TARGET_DEFAULT_RETURN (gdb::byte_vector ());

This should probably have a comment explaining what is meant by the
return value.

Kevin> +/* Given a thread, return the thread handle.  */
Kevin> +extern gdb::byte_vector target_thread_info_to_thread_handle
Kevin> +  (struct thread_info *);

Explaining that the thread handle is just some target-specific bytes
would be good.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]