<div dir="ltr">Hi,<div>Firstly, I am new to the community, So please bear with my mistakes and guide me to be on your wavelength.</div><div><div><br></div><div>While using lldb we found the small bug with attaching to the running process. </div><div>"attach" works fine when we run the lldb on the same dir where we ran the executable but not if the dir changes.</div><div><br></div><div><div>> cd lldb_temp/</div><div>> ./test &</div><div>[2] 39044</div><div>> cd ../</div></div><div><div>> /b/vignesh/lldb_daily_build/20170419_bkup/binaries/bin/lldb</div><div>(lldb) attach 39044</div><div>error: attach failed: unable to find executable for './test'</div></div><div><br></div><div>I see the lldb using the relative path instead of absolute path of the exe.</div><div>Modified the way sysctl gets the exe name to get the absolute path.</div><div><br></div><div>Attached the patch which does the work. I did my testing on Fbsd10.</div><div>Please let me know how to commit it</div><div><br></div><div>-regards,</div><div>vbalu</div></div></div>