[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 10 03:07:22 PST 2018


labath added a comment.

In https://reviews.llvm.org/D41702#971076, @jhibbits wrote:

> > @emaste, @jhibbits: do you know what's the state of ppc64 lldb support in freebsd?
>
> It's broken because LLDB doesn't yet handle function descriptors, and I haven't yet made the effort (ENOTIME) to fix that.  I think our eventual goal is to move even BE to ELFv2 on FreeBSD, to do away with function descriptors, and it should then Just Work, as powerpc (32-bit) works fine for most cases right now.
>
> That said, if anyone knows enough to add function descriptor knowledge to LLDB, I think that's the only missing piece, or the biggest missing piece.  I do want to finish the effort, since I started it 3.5 years ago, but I do need help with understanding that ABI detail and how it fits with LLDB.


Thanks for the explanation. How badly is it broken would you say? Do you think that using this ABI plugin for the big endian target (instead of the one from 2014) would make things any worse? Could you take a quick look to see if there is anything in this plugin that would be completely wrong for the big endian target ? (I couldn't find anything, apart from the obvious things like register constants in `CreateDefaultUnwindPlan`, but then again, I don't know the ABIs).

I'm trying to avoid making bad design decisions now because of legacy code that is known to be broken and has no clear maintainer nor a plan to fix it.


https://reviews.llvm.org/D41702





More information about the lldb-commits mailing list