Introduce exec_file_locate_attach
authorGary Benson <gbenson@redhat.com>
Fri, 17 Apr 2015 08:47:30 +0000 (09:47 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 17 Apr 2015 08:47:30 +0000 (09:47 +0100)
commita10de6046fbd50e99742af428a815dcd94e2fba8
tree86cf6669c963b4a71d35b3f92591698e7ade8ee0
parent92209ddfdc725c51d0368716ee316193deb24e8a
Introduce exec_file_locate_attach

This commit adds a new function, exec_file_locate_attach, which works
like exec_file_attach except that, instead of a filename argument, it
takes an integer process ID and attempts to determine the executable
filename from that.

gdb/ChangeLog:

* gdbcore.h (exec_file_locate_attach): New declaration.
* exec.c (exec_file_locate_attach): New function, factored
out from...
* infcmd.c (attach_command_post_wait): ...here.
gdb/ChangeLog
gdb/exec.c
gdb/gdbcore.h
gdb/infcmd.c