This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/7 v2] Introduce linux_proc_pid_to_exec_file
- From: Pedro Alves <palves at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>, gdb-patches at sourceware dot org
- Cc: Doug Evans <xdje42 at gmail dot com>
- Date: Wed, 15 Apr 2015 17:01:10 +0100
- Subject: Re: [PATCH 4/7 v2] Introduce linux_proc_pid_to_exec_file
- Authentication-results: sourceware.org; auth=none
- References: <552E314B dot 9020404 at redhat dot com> <1429103677-8524-1-git-send-email-gbenson at redhat dot com>
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