<div dir="ltr"><div class="gmail_extra">On Fri, Jun 21, 2013 at 1:04 PM, Malea, Daniel <span dir="ltr"><<a href="mailto:daniel.malea@intel.com" target="_blank">daniel.malea@intel.com</a>></span> wrote:<br><div class="gmail_quote">


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="overflow:hidden">I'm reading the patch but only got through a small portion of it thus far. The interface changes look all right, to me at least. I'm not too familiar with generating split-file debug info, but I imagine it's possible to do so with some flags to GCC (if not Clang)? If so, can you add some tests that do that too? I'd love to see this functionality go in and stay unbroken :)<br>



<br>
In any case, it's probably best to have someone else with more object file experience review the patch too as my knowledge is somewhat limited in that dept. I'll post any comments I might come up with on phabricator.</div>


</blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for looking at this Daniel. I finally got the Mac stuff building and running. I'm building lldb with cmake+ninja, and debugserver with "xcodebuild -scheme debugserver", then I set LLDB_SERVER_PATH and everything is working a lot more consistently for me. I also got the tests to run and fixed a couple of Mac bugs. So the latest patch is updated here:</div>

<div class="gmail_extra"><br>
</div><div class="gmail_extra"><a href="http://llvm-reviews.chandlerc.com/D1027" target="_blank">http://llvm-reviews.chandlerc.com/D1027</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>However when I try to run the full suite of Mac tests (via: ./dotest.py -i --compiler `xcrun -find clang`), it successfully runs several and then python crashes with the issue down below.</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>I'm off to Montana next week, so I'll try to get some test cases for this split symbol support, and hopefully some other folks can verify some of this and we can work to get it committed sometime in early July.</div>

<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Have a great weekend.</div><div class="gmail_extra" style> -Mike</div><br><div class="gmail_extra">Process:         Python [77522]</div><div class="gmail_extra">

Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python</div><div class="gmail_extra">Identifier:      Python</div><div class="gmail_extra">Version:         2.7.2 (2.7.2)</div>

<div class="gmail_extra">Code Type:       X86-64 (Native)</div><div class="gmail_extra">Parent Process:  bash [68645]</div><div class="gmail_extra">User ID:         501</div><div class="gmail_extra"><br></div><div class="gmail_extra">

PlugIn Path:       /Users/USER/*/_lldb.so</div><div class="gmail_extra">PlugIn Identifier: _lldb.so</div><div class="gmail_extra">PlugIn Version:    ??? (0)</div><div class="gmail_extra"><br></div><div class="gmail_extra">

Date/Time:       2013-06-21 16:13:05.685 -0700</div><div class="gmail_extra">OS Version:      Mac OS X 10.8.4 (12E55)</div><div class="gmail_extra">Report Version:  10</div><div class="gmail_extra">Sleep/Wake UUID: 5773AD08-BB53-4028-9656-588ED4D88FB7</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Interval Since Last Report:          200369 sec</div><div class="gmail_extra">Crashes Since Last Report:           2</div><div class="gmail_extra">Per-App Crashes Since Last Report:   2</div>

<div class="gmail_extra">Anonymous UUID:                      FA7AC80A-95B5-623E-D9BA-4A199914D12E</div><div class="gmail_extra"><br></div><div class="gmail_extra">Crashed Thread:  5  <lldb.process.internal-state(pid=85810)></div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Exception Type:  EXC_BAD_ACCESS (SIGBUS)</div><div class="gmail_extra">Exception Codes: KERN_PROTECTION_FAILURE at 0x00000001185aa180</div><div class="gmail_extra">

<br></div><div class="gmail_extra">VM Regions Near 0x1185aa180:</div><div class="gmail_extra">    Stack                  00000001185a8000-00000001185aa000 [    8K] rw-/rwx SM=COW  </div><div class="gmail_extra">--> STACK GUARD            00000001185aa000-00000001185ab000 [    4K] ---/rwx SM=NUL  stack guard for thread 5</div>

<div class="gmail_extra">    Stack                  00000001185ab000-000000011862d000 [  520K] rw-/rwx SM=COW  thread 5</div><div class="gmail_extra"><br></div><div class="gmail_extra">Application Specific Information:</div>

<div class="gmail_extra">HandleCommand(command = "process attach -p 85810")</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thread 0:: Dispatch queue: com.apple.main-thread</div><div class="gmail_extra">

0   libsystem_kernel.dylib        <span class="" style="white-space:pre">     </span>0x00007fff870af0fa __psynch_cvwait + 10</div><div class="gmail_extra">1   libsystem_c.dylib             <span class="" style="white-space:pre">    </span>0x00007fff81826fe9 _pthread_cond_wait + 869</div>

<div class="gmail_extra">2   _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001042b5182 lldb_private::Condition::Wait(lldb_private::Mutex&, lldb_private::TimeValue const*, bool*) + 146 (Condition.cpp:92)</div>

<div class="gmail_extra">3   _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001042c566d lldb_private::Predicate<bool>::WaitForValueEqualTo(bool, lldb_private::TimeValue const*, bool*) + 205 (Predicate.h:338)</div>

<div class="gmail_extra">4   _lldb.so                      <span class="" style="white-space:pre">    </span>0x0000000104366b05 lldb_private::Listener::WaitForEventsInternal(lldb_private::TimeValue const*, lldb_private::Broadcaster*, lldb_private::ConstString const*, unsigned int, unsigned int, std::__1::shared_ptr<lldb_private::Event>&) + 805 (Listener.cpp:433)</div>

<div class="gmail_extra">5   _lldb.so                      <span class="" style="white-space:pre">    </span>0x0000000104366dec lldb_private::Listener::WaitForEventForBroadcasterWithType(lldb_private::TimeValue const*, lldb_private::Broadcaster*, unsigned int, std::__1::shared_ptr<lldb_private::Event>&) + 92 (Listener.cpp:464)</div>

<div class="gmail_extra">6   _lldb.so                      <span class="" style="white-space:pre">    </span>0x0000000104670d44 lldb_private::Process::WaitForStateChangedEvents(lldb_private::TimeValue const*, std::__1::shared_ptr<lldb_private::Event>&) + 132 (Process.cpp:1336)</div>

<div class="gmail_extra">7   _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001046709a1 lldb_private::Process::WaitForProcessToStop(lldb_private::TimeValue const*, std::__1::shared_ptr<lldb_private::Event>*) + 577 (Process.cpp:1241)</div>

<div class="gmail_extra">8   _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001041bdb29 CommandObjectProcessAttach::DoExecute(lldb_private::Args&, lldb_private::CommandReturnObject&) + 2185 (CommandObjectProcess.cpp:634)</div>

<div class="gmail_extra">9   _lldb.so                      <span class="" style="white-space:pre">    </span>0x0000000104506190 lldb_private::CommandObjectParsed::Execute(char const*, lldb_private::CommandReturnObject&) + 528 (CommandObject.cpp:1038)</div>

<div class="gmail_extra">10  _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001044e38a6 lldb_private::CommandInterpreter::HandleCommand(char const*, lldb_private::LazyBool, lldb_private::CommandReturnObject&, lldb_private::ExecutionContext*, bool, bool) + 20134 (CommandInterpreter.cpp:1828)</div>

<div class="gmail_extra">11  _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001040a5684 lldb::SBCommandInterpreter::HandleCommand(char const*, lldb::SBCommandReturnObject&, bool) + 292 (SBCommandInterpreter.cpp:123)</div>

<div class="gmail_extra">12  _lldb.so                      <span class="" style="white-space:pre">    </span>0x00000001040980bf _wrap_SBCommandInterpreter_HandleCommand__SWIG_0 + 831 (LLDBWrapPython.cpp:9296)</div><div class="gmail_extra">

13  _lldb.so                      <span class="" style="white-space:pre">     </span>0x0000000103ffaa0b _wrap_SBCommandInterpreter_HandleCommand + 923 (LLDBWrapPython.cpp:9404)</div><div class="gmail_extra">14  org.python.python             <span class="" style="white-space:pre">        </span>0x0000000103708f72 PyEval_EvalFrameEx + 3557</div>

<div class="gmail_extra">15  org.python.python             <span class="" style="white-space:pre">    </span>0x0000000103708147 PyEval_EvalCodeEx + 1934</div><div class="gmail_extra">16  org.python.python             <span class="" style="white-space:pre">        </span>0x000000010370e8df 0x1036f1000 + 121055</div>

<div class="gmail_extra">17  org.python.python             <span class="" style="white-space:pre">    </span>0x000000010370a63a PyEval_EvalFrameEx + 9389</div><div class="gmail_extra">18  org.python.python             <span class="" style="white-space:pre">       </span>0x0000000103708147 PyEval_EvalCodeEx + 1934</div>

</div></div>