Re: [PATCH v6 2/4] Share parts of gdb/gdbthread.h with gdbserver

Pedro Alves
2017-05-05T19:04:50Z

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