[Lldb-commits] [PATCH] Allow MachO JIT debugging

Greg Clayton gclayton at apple.com
Thu Jun 5 11:26:24 PDT 2014


> On Jun 5, 2014, at 10:44 AM, Keno Fischer <kfischer at college.harvard.edu> wrote:
> 
> I missed your question about macho file types. These are all MH_OBJECTs. 

Then you might be able to key off of that instead of always trying to read from the load commands.

It would then be:

if (process && m_header.filetype != llvm::MachO::MH_OBJECT)
{
    // Read symbol table from memory
}
else
{
    // read symbol table using load commands
}



More information about the lldb-commits mailing list