[lldb-dev] FreeBSD and Linux patch

dawn at burble.org dawn at burble.org
Tue Jan 31 17:57:24 PST 2012


On Sun, Jan 29, 2012 at 01:29:13PM -0500, Joel Dillon wrote:
> A trip report. I tried both vanilla lldb and your git repository, and had
> similar
> problems building them for Kubuntu 11.04 64-bit x86, with g++ 4.6.1. I
> attach the patches necessary
> to make things compile (mostly just missing header includes); I also had
> some link
> ordering problems which I sort of hacked support into the generated
> makefiles for. These
> are the same patches I submitted a couple of months ago so I guess they
> didn't end up
> making it into the source tree, unfortunately.

Please send them again to lldb-commits with [PATCH] in the subject.
The Apple lldb guys are usually pretty good about reviewing and/or commiting
them.

> I take it attaching to a process on Linux isn't expected to work? It
> crashes for me
> in this manner:
[...]
> I'd be happy to have a look into fixing this, if no-one else is and if
> someone wants to give me some hints on where to start. :)

Nope, attach doesn't work on Linux. :(  I started to work on a fix but ran out
of time before I could finish.  Where I left off, there was a problem with
DynamicLoaderPOSIXDYLD.cpp not finding the module associated with the
PID and then getting an invalid architecture.  Not sure if that's still the case.

Good luck!  :)
-Dawn

> On Wed, Jan 4, 2012 at 6:30 PM, <dawn at burble.org> wrote:
> 
> > FYI - see patch titled "[PATCH] Merge of Linux and FreeBSD"
> > sent to lldb-commits and hopefully committed soon.  :)
> >
> > -Dawn
> >
> > On Wed, Jan 04, 2012 at 02:45:54PM -0800, Mark Peek wrote:
> > > [Resending from my subscribed email address]
> > >
> > > Having taken a snapshot of lldb and pushed it into github, we have
> > developed a
> > > patch set to refactor the Linux and FreeBSD support to reduce the
> > differences
> > > and improve compatibility. The current repo has been built and run on
> > 64bit
> > > FreeBSD and Linux systems.
> > >
> > > The github repo is located here:
> > >
> > > https://github.com/fbsd/lldb
> > >
> > > And a patch set against rXXXXX of lldb is here:
> > >
> > > http://people.freebsd.org/~mp/lldb_r147532.patch
> > >
> > > We'd like the current work to not diverge too far away from the main
> > repo and
> > > we thought others might want to play with this or help out. Some of the
> > todo's
> > > on our list are:
> > >
> > > - Verify i386 operation on Linux, implement/verify on FreeBSD
> > > - Verify attach support
> > > - FreeBSD stop at exit
> > > - thread support
> > > - core file support
> > > - Better process control for interrupting inferior
> > > - Get buildbot passing reliably
> > >
> > > Are there any volunteers with commit bits willing to review and commit
> > this
> > > patch to the lldb repo? Dawn is going to follow up with a formal patch to
> > > lldb-commits at .
> > >
> > > Thanks,
> > > Mark, Kip and Dawn
> > >
> > > _______________________________________________
> > > lldb-dev mailing list
> > > lldb-dev at cs.uiuc.edu
> > > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
> >



> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list