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
http://lists.cs.uiuc.edu/pipermail/lldb-dev/2013-February/001477.html)

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.

Thanks
Samuel

Attachment: lldb_RegisterContextx86-64.diff
Description: Binary data

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to