[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCHv2 6/7] hurd: add gnu_target pointer to fix thread API calls
From: |
Samuel Thibault |
Subject: |
Re: [PATCHv2 6/7] hurd: add gnu_target pointer to fix thread API calls |
Date: |
Sat, 30 May 2020 17:53:26 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Simon Marchi, le sam. 30 mai 2020 10:57:42 -0400, a ecrit:
> > @@ -1106,12 +1109,12 @@ inf_validate_procs (struct inf *inf)
> > if (inferior_ptid == ptid_t (inf->pid))
> > /* This is the first time we're hearing about thread
> > ids, after a fork-child. */
> > - thread_change_ptid (inferior_ptid, ptid);
> > + thread_change_ptid (gnu_target, inferior_ptid, ptid);
>
>
> I think it would have been more straightforward and clean to use
> `inf->process_target ()`
> (assuming it's the correct thing to do), given that you have access to the
> appropriate
> inferior everywhere you made changes.
I didn't see a way to access the inferior here (inf is a
gnu-nat.c-specific structure with no link to struct inferior)
> But I also see that you've pretty much replicated what the linux-nat target
> does
Yes, that seemed simpler to stick along what Linux is currently doing.
Samuel
[PATCHv2 7/7] hurd: fix pushing target on inferior creation, Samuel Thibault, 2020/05/29
Re: [PATCHv2 1/7] hurd: fix gnu_debug_flag type, Simon Marchi, 2020/05/30
Re: [PATCHv2 1/7] hurd: fix gnu_debug_flag type, Samuel Thibault, 2020/05/30