Re: [PATCH 10/23] Some get_last_target_status tweaks

Pedro Alves
2019-10-17T01:14:26Z

On 9/9/19 7:53 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> - Declare nullify_last_target_wait_ptid in a header, and remove the
> Pedro> local extern declaration from linux-fork.c.
>
> Pedro> diff --git a/gdb/infrun.h b/gdb/infrun.h
> Pedro> index 30374ee51c..042edbbb66 100644
> Pedro> --- a/gdb/infrun.h
> Pedro> +++ b/gdb/infrun.h
> Pedro> @@ -107,6 +107,8 @@ extern void get_last_target_status (ptid_t *ptid,
> Pedro> extern void set_last_target_status (ptid_t ptid,
> Pedro> struct target_waitstatus status);
>
> Pedro> +extern void nullify_last_target_wait_ptid ();
>
> This could use an intro comment.
>

I've added:

+/* Clear the cached copy of the last ptid/waitstatus returned by
+ target_wait(). */

Also moved the intro comments of get_last_target_status / set_last_target_status
to the header file.

Thanks,
Pedro Alves