LLDB (3.8) expects the e_flags field in the ELF header to contain instruction set/CPU information for at least the MIPS CPU:
Otherwise, LLDB gives the following error when trying to debug a mips corefile:
% lldb-3.9.0 mips64.a.out -c mips64.a.out.core error: Unable to find process plug-in for core file 'mips64.a.out.core'
This change adds the correct e_flags field information for the CPU type in core files generated by the kernel for MIPS and adds stubs to the other arch's to do the same.