i#891: Use /proc/self/exe to find the application path by default
i#891: Use /proc/self/exe to find the application path by default

We still have to use /proc/pid/cmdline when doing early injection, since
/proc/self/exe will point to DR.

I renamed getnamefrompid and get_executable_path so that it clearer
where those implementations are getting their results from.

Fixes issue 891.

Review URL: https://codereview.appspot.com/6488115

SVN-Revision: 1581

code4bones/dynamorio,AmesianX/dynamorio,bl4ckic3/dynamorio,bl4ckic3/dynamorio,daksunt/dynamorio,daksunt/dynamorio,code4bones/dynamorio,bl4ckic3/dynamorio,daksunt/dynamorio,AmesianX/dynamorio,daksunt/dynamorio,code4bones/dynamorio,sigma-random/dynamorio,sigma-random/dynamorio,bl4ckic3/dynamorio,AmesianX/dynamorio,code4bones/dynamorio,AmesianX/dynamorio,AmesianX/dynamorio,code4bones/dynamorio,daksunt/dynamorio,bl4ckic3/dynamorio,sigma-random/dynamorio,sigma-random/dynamorio,sigma-random/dynamorio