[lldb-dev] Patch to add two new classes - RegisterContextLinux_x86_64 and RegisterContextFreeBSD_x86_64

Samuel Jacob samueldotj at gmail.com
Fri Apr 26 15:17:12 PDT 2013

RegisterContext_x86_64->GPR is defined based on the host. This is done
at compile time by including OS specific files.

This caused a problem in elf-coredump plugin - RegisterContext_x86_64
with FreeBSD GPR format cant be instantiated in Linux and vice versa.
The need for this is based on Greg's suggestion - coredump files
should be platform independent.(Refer

This patch adds two new classes RegisterContextLinux_x86_64 and
RegisterContextFreeBSD_x86_64 which can instantiated on any platform.

I verified it compiles on a Ubuntu and on a MacMini. I also verified
it shows correct backtrace and correct register content on a simple
program. I can run more test cases for that somebody please point me
how do I run test suites.

Once this is done I will send a new elf-core patch based on this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb_RegisterContextx86-64.diff
Type: application/octet-stream
Size: 27352 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130426/9a44924f/attachment.obj>

More information about the lldb-dev mailing list