mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 04:25:29 +00:00
Dump MH_DYLINKER images in upload_system_symbols.
Change-Id: I18291efe211f88ae0607a9055d027b520ef13291 Reviewed-on: https://chromium-review.googlesource.com/462676 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
846b6335c5
commit
aa7115cfde
|
@ -59,3 +59,4 @@ const char* GetNXArchInfoName(cpu_type_t cpu_type, cpu_subtype_t cpu_subtype) {
|
||||||
const uint32_t kMachHeaderFtypeDylib = MH_DYLIB;
|
const uint32_t kMachHeaderFtypeDylib = MH_DYLIB;
|
||||||
const uint32_t kMachHeaderFtypeBundle = MH_BUNDLE;
|
const uint32_t kMachHeaderFtypeBundle = MH_BUNDLE;
|
||||||
const uint32_t kMachHeaderFtypeExe = MH_EXECUTE;
|
const uint32_t kMachHeaderFtypeExe = MH_EXECUTE;
|
||||||
|
const uint32_t kMachHeaderFtypeDylinker = MH_DYLINKER;
|
||||||
|
|
|
@ -59,7 +59,8 @@ func getArchStringFromHeader(header macho.FileHeader) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MachODylib macho.Type = C.kMachHeaderFtypeDylib
|
MachODylib macho.Type = C.kMachHeaderFtypeDylib
|
||||||
MachOBundle = C.kMachHeaderFtypeBundle
|
MachOBundle = C.kMachHeaderFtypeBundle
|
||||||
MachOExe = C.kMachHeaderFtypeExe
|
MachOExe = C.kMachHeaderFtypeExe
|
||||||
|
MachODylinker = C.kMachHeaderFtypeDylinker
|
||||||
)
|
)
|
||||||
|
|
|
@ -404,7 +404,7 @@ func (fq *findQueue) worker() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fq *findQueue) dumpMachOFile(fp string, image *macho.File) {
|
func (fq *findQueue) dumpMachOFile(fp string, image *macho.File) {
|
||||||
if image.Type != MachODylib && image.Type != MachOBundle {
|
if image.Type != MachODylib && image.Type != MachOBundle && image.Type != MachODylinker {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue