[lldb-dev] Cross-arch core file loading on FreeBSD
Ed Maste
emaste at freebsd.org
Fri Feb 13 11:56:18 PST 2015
On 13 February 2015 at 14:40, Greg Clayton <gclayton at apple.com> wrote:
>
> Are there any data structures in the core file memory or ELF headers in memory you can look at to help you properly determine the contents of a core file and identify it as FreeBSD or Linux? Try and scrub through the core file contents, only for ELF core files of course, and try to figure things out.
Oh, of course. There is no section header, but the FreeBSD-specific
notes are in the phdr's NOTE segment. Unfortunately there's no program
header parsing in ObjectFileELF yet, but that will be the way to go.
More information about the lldb-dev
mailing list