<div dir="ltr">Check out CommandInterpreter::SourceInitFile.  It looks like it uses the following algorithm:<div>---------------</div><div>if (there is .lldbinit file side-by-side)</div><div>   use it</div><div>else</div><div>
{</div><div>   if (there is an app-specific lldbinit file in the home directory)</div><div>      use it</div><div>   else if (there is an lldbinit file in the home directory)</div><div>      use it</div><div>}</div><div><br>
</div><div>load settings from the lldb init file that was found.</div><div>---------------<br></div><div><br></div><div>Maybe it could change to something like this:</div><div><br></div><div>---------------</div><div>if (there is an lldb init file in the home directory)</div>
<div>   load settings from it</div><div>if (there is an app-specific lldbinit file in the home directory)</div><div>   load it too, overwriting values that have already been set.   </div><div>if (there is an lldbinit file side-by-side with the application)</div>
<div>   load it too, overwriting values that have already been set.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 9:25 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>Do we have any existing way to handle conditionally making settings based on lldb version, within the .lldbinit system?</div>
<div><br></div><div>The specific case I have in mind is helping support side-by-side lldb installs (e.g. on debian/ubuntu) where, across lldb 3.4, 3.5 and 3.6, the python path to the correct lldb python module differs.  Right now, the default behavior is that lldb 3.5 and 3.6 are picking up the older 3.4 lldb python library and choking due to the mismatch.</div>

<div><br></div><div>Thanks for any thoughts on this!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Todd<br><div><div><br></div>
</div></div></font></span></div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">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/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>