The previous patch will allow lldb to finish building. However, on 10.5, I get a linker error at startup time. It's missing source/Plugins/Process/MacOSX-User in lldb.dylib. However, at least on my machine, that subdirectory needs some work to properly compile.<div>
<div><br></div><div><div><div>Index: source/Plugins/Makefile</div><div>===================================================================</div><div>--- source/Plugins/Makefile<span class="Apple-tab-span" style="white-space:pre"> </span>(revision 109318)</div>
<div>+++ source/Plugins/Makefile<span class="Apple-tab-span" style="white-space:pre"> </span>(working copy)</div><div>@@ -18,7 +18,8 @@</div><div> </div><div> ifeq ($(HOST_OS),Darwin)</div><div> DIRS += DynamicLoader/MacOSX-DYLD ObjectContainer/Universal-Mach-O \</div>
<div>-<span class="Apple-tab-span" style="white-space:pre"> </span>ObjectFile/Mach-O Process/gdb-remote Process/Utility SymbolVendor/MacOSX</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>ObjectFile/Mach-O Process/gdb-remote Process/Utility SymbolVendor/MacOSX \</div>
<div>+<span class="Apple-tab-span" style="white-space:pre"> </span>Process/MacOSX-User</div><div> endif</div><div> </div><div> ifeq ($(HOST_OS),Linux)</div></div><div><br></div><br><div class="gmail_quote">On Fri, Jul 23, 2010 at 10:37 PM, William Lynch <span dir="ltr"><<a href="mailto:wlynch@wlynch.cx">wlynch@wlynch.cx</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">A very small patch which should help building on Darwin:<div><br></div><div><div>Index: lib/Makefile</div><div>===================================================================</div>
<div>--- lib/Makefile<span style="white-space:pre-wrap"> </span>(revision 109318)</div>
<div>+++ lib/Makefile<span style="white-space:pre-wrap"> </span>(working copy)</div><div>@@ -65,7 +65,7 @@</div><div> lldbPluginObjectFileMachO.a \</div><div> lldbPluginProcessGDBRemote.a \</div>
<div> lldbPluginUtility.a \</div><div>- lldbSymbolVendorMaxOSX.a</div><div>+ lldbPluginSymbolVendorMacOSX.a</div><div> endif</div><div> </div><div> ifeq ($(HOST_OS),Linux)</div><div>
<div></div><div class="h5"><div>
<br></div><div><br><div class="gmail_quote">On Fri, Jul 23, 2010 at 9:19 PM, Stephen Wilson <span dir="ltr"><<a href="mailto:wilsons@start.ca" target="_blank">wilsons@start.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I just pushed the new linux process plugin. A few notes:<br>
<br>
I updated the makefiles to build only under linux. I do not know if<br>
this will build on a mac. Perhaps someone can try and let me know the<br>
result.<br>
<br>
Only very basic breakpoint/step-over functionality is present. For<br>
example, we cannot resolve pending breakpoints yet, so one must set<br>
breakpoints with the debugee stopped on entry.<br>
<br>
Only x86_64 at the moment (will add i386 soon).<br>
<br>
Here is a simple example of what is working for those who might like to<br>
test it out:<br>
<br>
===--------------------------------------------------------------------------===<br>
> cat ctest.c<br>
<br>
void foo() { return; }<br>
<br>
void bar() { return; }<br>
<br>
int main()<br>
{<br>
foo();<br>
bar();<br>
return 0;<br>
}<br>
<br>
> lldb ./ctest<br>
Current executable set to './ctest' (x86_64).<br>
(lldb) r -s<br>
Launching '/home/steve/tmp/ctest' (x86_64)<br>
(lldb) Process 0 Launching<br>
Process 0 Stopped<br>
* thread #1: tid = 0x4789, pc = 0x0000003206200af0, ...<br>
(lldb) b s -n foo<br>
Breakpoint created: 1: name = 'foo', locations = 1, resolved = 1<br>
(lldb) b s -n bar<br>
Breakpoint created: 2: name = 'bar', locations = 1, resolved = 1<br>
(lldb) p c<br>
Resuming process 0<br>
(lldb) Process 0 Stopped<br>
* thread #1: tid = 0x4789, pc = 0x0000000000400478, ...<br>
1<br>
2 -> void foo() { return; }<br>
3<br>
4 void bar() { return; }<br>
5<br>
(lldb) p c<br>
Resuming process 0<br>
(lldb) Process 0 Stopped<br>
* thread #1: tid = 0x4789, pc = 0x000000000040047e, ...<br>
1<br>
2 void foo() { return; }<br>
3<br>
4 -> void bar() { return; }<br>
5<br>
6 int main()<br>
7 {<br>
(lldb) q<br>
===--------------------------------------------------------------------------===<br>
<br>
<br>
It's a start. Let be know of any issues, comments, advice, etc.<br>
<br>
Thanks!<br>
Steve<br>
_______________________________________________<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/mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>