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

Thiago Jung Bauermann via Gdb-patches
2023-02-10T03:55:20Z

Simon Marchi <simon.marchi@efficios.com> writes:

>> 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.

Ah, that is true. I'll work on a solution following what Pedro
described, then.

--
Thiago