[PATCH 4/7 v2] Introduce linux_proc_pid_to_exec_file
Pedro Alves
palves@redhat.com
Wed Apr 15 16:01:00 GMT 2015
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
More information about the Gdb-patches
mailing list