Re: [PATCH v3 2/8] gdbserver: Add PID parameter to linux_get_auxv and linux_get_hwcap

Simon Marchi via Gdb-patches
2023-02-09T01:31:47Z

> Ok, I will look into that. A simpler approach though would be to fetch
> auxv at process starts and cache it for the duration of the debugging
> session (since auxv doesn't change at runtime, AFAIK). Would that be a
> good solution?

Not sure, you could be attaching, and at the moment you attach, the
leader has already exited.

Simon