Would this be done by passing the paths you want to add as a command line option to LLDB?  <br><br>Is the PYTHONHOME actually needed?  The CMake already copies python27.dll to the output location, so lldb.exe should be able to find it since it's side by side.<br><div class="gmail_quote">On Mon Jan 12 2015 at 2:18:48 PM Ted Woodward <<a href="mailto:ted.woodward@codeaurora.org">ted.woodward@codeaurora.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">On Windows, there is no notion of a default python installation. A system may or may not have python installed. And if it did, but was a different version from the python used to build LLDB, we’d see behavior from warnings to modules not loading to crashes.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Because of this, LLDB for Hexagon ships with the python DLLs and Lib directories in ../lib/python27, python27.dll, and is invoked via a batch file that sets PYTHONHOME to ../lib/python27, and PYTHONPATH to ../lib/site-packages (which contains the LLDB python files).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The problem with using a batch file is it intercepts ctrl-c, so that doesn’t work to break into a running program. So I’d like to add code on Windows (inside #ifdef _WIN32) that will set PYTHONHOME and PYTHONPATH if they don’t exist. The values for these would be controlled by a CMAKE build option.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thoughts?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">--<u></u><u></u></p><p class="MsoNormal">Qualcomm Innovation Center, Inc.<u></u><u></u></p><p class="MsoNormal">The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
</blockquote></div>