This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v6 2/4] Share parts of gdb/gdbthread.h with gdbserver
- From: Pedro Alves <palves at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>, GDB Patches <gdb-patches at sourceware dot org>
- Date: Fri, 5 May 2017 20:04:46 +0100
- Subject: Re: [PATCH v6 2/4] Share parts of gdb/gdbthread.h with gdbserver
- Authentication-results: sourceware.org; auth=none
- References: <1482464361-4068-1-git-send-email-sergiodj@redhat.com> <20170504052954.16936-1-sergiodj@redhat.com> <20170504052954.16936-3-sergiodj@redhat.com>
On 05/04/2017 06:29 AM, Sergio Durigan Junior wrote:
> diff --git a/gdb/common/common-gdbthread.h b/gdb/common/common-gdbthread.h
> new file mode 100644
> index 0000000..3e2b991
> --- /dev/null
> +++ b/gdb/common/common-gdbthread.h
> @@ -0,0 +1,27 @@
> +#ifndef COMMON_GDBTHREAD_H
> +#define COMMON_GDBTHREAD_H
> +
> +struct target_waitstatus;
Why add this here? Nothing uses it in this file.
> +
> +/* Switch from one thread to another. */
> +extern void switch_to_thread (ptid_t ptid);
> +
> +#endif /* ! COMMON_GDBTHREAD_H */
Thanks,
Pedro Alves