Use exec_file_find to prepend gdb_sysroot in follow_exec
authorGary Benson <gbenson@redhat.com>
Tue, 28 Apr 2015 11:21:32 +0000 (12:21 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 28 Apr 2015 11:21:32 +0000 (12:21 +0100)
commitff862be47e7acf51e4abaf0f121d5961adb1845a
tree27a64c2e92dc0972a76fd477fc6d430f03c319a0
parentda7119c99c41f60cb178b0b9729d9f7880f33c86
Use exec_file_find to prepend gdb_sysroot in follow_exec

This commit updates follow_exec to use exec_file_find to prefix
the new executable's filename with gdb_sysroot rather than doing
it longhand.

gdb/ChangeLog:

* infrun.c (solist.h): New include.
(follow_exec): Use exec_file_find to prefix execd_pathname
with gdb_sysroot.
gdb/ChangeLog
gdb/infrun.c