[Lldb-commits] [PATCH] Update ObjectFileELF to detect ELF triple based on ELF notes and the ELF header.

Todd Fiala tfiala at google.com
Thu Jun 26 14:55:42 PDT 2014


> After a lengthy debugging session it turns out this is the change that breaks core file loading on FreeBSD. The core file has no sections (the core data and thread / register notes are in program segments), so ParseSectionHeaders() returns 0.

Oh dang.  I originally had a comment on that in the first version of the patch to draw attention to whether that was valid or not to have no sections.  I ultimately removed the comment.

Okay - so I can easily just call the method.  Of course, if there are no sections, it also won't pick up the notes either.  Is this a case where its creating a module on the fly?

http://reviews.llvm.org/D4302






More information about the lldb-commits mailing list