[Lldb-commits] [PATCH] D32271: Patch to Attach pid successfully from different dir

Dimitry Andric via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri May 19 06:05:46 PDT 2017


dim added a comment.

As I found out in https://reviews.llvm.org/rL303015, the `KERN_PROC_PATHNAME` has one drawback: if an executable file has multiple hard links, you will get just one of its filenames as the result.  Since that filename is more or less randomly chosen, it does *not* have to correspond to the actual `argv[0]` the executable was invoked with.  If that does not matter, this approach is fine, though.


https://reviews.llvm.org/D32271





More information about the lldb-commits mailing list