Re: [PATCH 4/7 v2] Introduce linux_proc_pid_to_exec_file

Pedro Alves
2015-04-15T16:01:18Z

On 04/15/2015 02:14 PM, Gary Benson wrote:
> This commit introduces a new function linux_proc_pid_to_exec_file
> that shared Linux code can use to discover the filename of the
> executable that was run to create a process on the system.

I'd have the preferred the readlink change to be a separate change,
but, it's not worth it to split now.

>
> gdb/ChangeLog:
>
> * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
> New declaration.
> * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
> New function, factored out from...
> * linux-nat.c (linux_child_pid_to_exec_file): ...here.

OK.

Thanks,
Pedro Alves