mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-23 17:21:05 +00:00
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@633 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
b5b8051a23
commit
6e3869c19f
|
@ -111,13 +111,13 @@ class DynamicImage {
|
||||||
: header_(header),
|
: header_(header),
|
||||||
header_size_(header_size),
|
header_size_(header_size),
|
||||||
load_address_(load_address),
|
load_address_(load_address),
|
||||||
file_mod_date_(image_mod_date),
|
|
||||||
task_(task),
|
|
||||||
vmaddr_(0),
|
vmaddr_(0),
|
||||||
vmsize_(0),
|
vmsize_(0),
|
||||||
slide_(0),
|
slide_(0),
|
||||||
version_(0),
|
version_(0),
|
||||||
file_path_(NULL) {
|
file_path_(NULL),
|
||||||
|
file_mod_date_(image_mod_date),
|
||||||
|
task_(task) {
|
||||||
InitializeFilePath(inFilePath);
|
InitializeFilePath(inFilePath);
|
||||||
CalculateMemoryAndVersionInfo();
|
CalculateMemoryAndVersionInfo();
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ class DynamicImage {
|
||||||
|
|
||||||
// Debugging
|
// Debugging
|
||||||
void Print();
|
void Print();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DynamicImage(const DynamicImage &);
|
DynamicImage(const DynamicImage &);
|
||||||
DynamicImage &operator=(const DynamicImage &);
|
DynamicImage &operator=(const DynamicImage &);
|
||||||
|
|
|
@ -453,10 +453,11 @@ void *ExceptionHandler::WaitForMessage(void *exception_handler_class) {
|
||||||
// Wait for the exception info
|
// Wait for the exception info
|
||||||
while (1) {
|
while (1) {
|
||||||
receive.header.msgh_local_port = self->handler_port_;
|
receive.header.msgh_local_port = self->handler_port_;
|
||||||
receive.header.msgh_size = sizeof(receive);
|
receive.header.msgh_size = static_cast<mach_msg_size_t>(sizeof(receive));
|
||||||
kern_return_t result = mach_msg(&(receive.header),
|
kern_return_t result = mach_msg(&(receive.header),
|
||||||
MACH_RCV_MSG | MACH_RCV_LARGE, 0,
|
MACH_RCV_MSG | MACH_RCV_LARGE, 0,
|
||||||
sizeof(receive), self->handler_port_,
|
receive.header.msgh_size,
|
||||||
|
self->handler_port_,
|
||||||
MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
|
MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ bool MinidumpGenerator::Write(const char *path) {
|
||||||
if (!header.Allocate())
|
if (!header.Allocate())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int writer_count = sizeof(writers) / sizeof(writers[0]);
|
int writer_count = static_cast<int>(sizeof(writers) / sizeof(writers[0]));
|
||||||
|
|
||||||
// If we don't have exception information, don't write out the
|
// If we don't have exception information, don't write out the
|
||||||
// exception stream
|
// exception stream
|
||||||
|
@ -358,7 +358,7 @@ bool MinidumpGenerator::WriteContext(breakpad_thread_state_data_t state,
|
||||||
|
|
||||||
#define AddReg(a) context_ptr->a = REGISTER_FROM_THREADSTATE(machine_state, a)
|
#define AddReg(a) context_ptr->a = REGISTER_FROM_THREADSTATE(machine_state, a)
|
||||||
#define AddGPR(a) context_ptr->gpr[a] = REGISTER_FROM_THREADSTATE(machine_state, r ## a)
|
#define AddGPR(a) context_ptr->gpr[a] = REGISTER_FROM_THREADSTATE(machine_state, r ## a)
|
||||||
|
|
||||||
AddReg(srr0);
|
AddReg(srr0);
|
||||||
AddReg(cr);
|
AddReg(cr);
|
||||||
AddReg(xer);
|
AddReg(xer);
|
||||||
|
@ -505,7 +505,8 @@ bool MinidumpGenerator::WriteContext(breakpad_thread_state_data_t state,
|
||||||
bool MinidumpGenerator::WriteThreadStream(mach_port_t thread_id,
|
bool MinidumpGenerator::WriteThreadStream(mach_port_t thread_id,
|
||||||
MDRawThread *thread) {
|
MDRawThread *thread) {
|
||||||
breakpad_thread_state_data_t state;
|
breakpad_thread_state_data_t state;
|
||||||
mach_msg_type_number_t state_count = sizeof(state);
|
mach_msg_type_number_t state_count
|
||||||
|
= static_cast<mach_msg_type_number_t>(sizeof(state));
|
||||||
|
|
||||||
if (thread_get_state(thread_id, BREAKPAD_MACHINE_THREAD_STATE,
|
if (thread_get_state(thread_id, BREAKPAD_MACHINE_THREAD_STATE,
|
||||||
state, &state_count) ==
|
state, &state_count) ==
|
||||||
|
@ -580,7 +581,8 @@ MinidumpGenerator::WriteExceptionStream(MDRawDirectory *exception_stream) {
|
||||||
exception_ptr->exception_record.exception_flags = exception_code_;
|
exception_ptr->exception_record.exception_flags = exception_code_;
|
||||||
|
|
||||||
breakpad_thread_state_data_t state;
|
breakpad_thread_state_data_t state;
|
||||||
mach_msg_type_number_t stateCount = sizeof(state);
|
mach_msg_type_number_t stateCount
|
||||||
|
= static_cast<mach_msg_type_number_t>(sizeof(state));
|
||||||
|
|
||||||
if (thread_get_state(exception_thread_,
|
if (thread_get_state(exception_thread_,
|
||||||
BREAKPAD_MACHINE_THREAD_STATE,
|
BREAKPAD_MACHINE_THREAD_STATE,
|
||||||
|
@ -934,7 +936,7 @@ bool MinidumpGenerator::WriteMiscInfoStream(MDRawDirectory *misc_info_stream) {
|
||||||
misc_info_stream->location = info.location();
|
misc_info_stream->location = info.location();
|
||||||
|
|
||||||
MDRawMiscInfo *info_ptr = info.get();
|
MDRawMiscInfo *info_ptr = info.get();
|
||||||
info_ptr->size_of_info = sizeof(MDRawMiscInfo);
|
info_ptr->size_of_info = static_cast<u_int32_t>(sizeof(MDRawMiscInfo));
|
||||||
info_ptr->flags1 = MD_MISCINFO_FLAGS1_PROCESS_ID |
|
info_ptr->flags1 = MD_MISCINFO_FLAGS1_PROCESS_ID |
|
||||||
MD_MISCINFO_FLAGS1_PROCESS_TIMES |
|
MD_MISCINFO_FLAGS1_PROCESS_TIMES |
|
||||||
MD_MISCINFO_FLAGS1_PROCESSOR_POWER_INFO;
|
MD_MISCINFO_FLAGS1_PROCESSOR_POWER_INFO;
|
||||||
|
@ -952,15 +954,16 @@ bool MinidumpGenerator::WriteMiscInfoStream(MDRawDirectory *misc_info_stream) {
|
||||||
static_cast<u_int32_t>(usage.ru_stime.tv_sec);
|
static_cast<u_int32_t>(usage.ru_stime.tv_sec);
|
||||||
}
|
}
|
||||||
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, info_ptr->process_id };
|
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, info_ptr->process_id };
|
||||||
|
u_int mibsize = static_cast<u_int>(sizeof(mib) / sizeof(mib[0]));
|
||||||
size_t size;
|
size_t size;
|
||||||
if (!sysctl(mib, sizeof(mib) / sizeof(mib[0]), NULL, &size, NULL, 0)) {
|
if (!sysctl(mib, mibsize, NULL, &size, NULL, 0)) {
|
||||||
mach_vm_address_t addr;
|
mach_vm_address_t addr;
|
||||||
if (mach_vm_allocate(mach_task_self(),
|
if (mach_vm_allocate(mach_task_self(),
|
||||||
&addr,
|
&addr,
|
||||||
size,
|
size,
|
||||||
true) == KERN_SUCCESS) {
|
true) == KERN_SUCCESS) {
|
||||||
struct kinfo_proc *proc = (struct kinfo_proc *)addr;
|
struct kinfo_proc *proc = (struct kinfo_proc *)addr;
|
||||||
if (!sysctl(mib, sizeof(mib) / sizeof(mib[0]), proc, &size, NULL, 0))
|
if (!sysctl(mib, mibsize, proc, &size, NULL, 0))
|
||||||
info_ptr->process_create_time =
|
info_ptr->process_create_time =
|
||||||
static_cast<u_int32_t>(proc->kp_proc.p_starttime.tv_sec);
|
static_cast<u_int32_t>(proc->kp_proc.p_starttime.tv_sec);
|
||||||
mach_vm_deallocate(mach_task_self(), addr, size);
|
mach_vm_deallocate(mach_task_self(), addr, size);
|
||||||
|
|
|
@ -3,10 +3,24 @@
|
||||||
archiveVersion = 1;
|
archiveVersion = 1;
|
||||||
classes = {
|
classes = {
|
||||||
};
|
};
|
||||||
objectVersion = 42;
|
objectVersion = 46;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
|
8BFC813F11FF9A58002CB4DC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */; };
|
||||||
|
8BFC814411FF9A9C002CB4DC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */; };
|
||||||
|
8BFC814511FF9A9D002CB4DC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */; };
|
||||||
|
8BFC814811FF9B13002CB4DC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */; };
|
||||||
|
8BFC814911FF9B13002CB4DC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */; };
|
||||||
|
8BFC814A11FF9B13002CB4DC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */; };
|
||||||
|
8BFC814B11FF9B3F002CB4DC /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F9721FA10E8B0E2300D7E813 /* SenTestingKit.framework */; };
|
||||||
|
8BFC814C11FF9B3F002CB4DC /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F9721F6B0E8B0D7000D7E813 /* Cocoa.framework */; };
|
||||||
|
8BFC81A211FF9C2E002CB4DC /* CPlusTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC819211FF9C23002CB4DC /* CPlusTest.framework */; };
|
||||||
|
8BFC81A311FF9C2F002CB4DC /* CPlusTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFC819211FF9C23002CB4DC /* CPlusTest.framework */; };
|
||||||
|
8BFC81AD11FF9C8A002CB4DC /* breakpad_nlist_64.cc in Sources */ = {isa = PBXBuildFile; fileRef = F98208A10DB32CAE0017AECA /* breakpad_nlist_64.cc */; };
|
||||||
|
8BFC81AE11FF9C8C002CB4DC /* breakpad_nlist_64.cc in Sources */ = {isa = PBXBuildFile; fileRef = F98208A10DB32CAE0017AECA /* breakpad_nlist_64.cc */; };
|
||||||
|
8BFC81AF11FF9C8C002CB4DC /* breakpad_nlist_64.cc in Sources */ = {isa = PBXBuildFile; fileRef = F98208A10DB32CAE0017AECA /* breakpad_nlist_64.cc */; };
|
||||||
|
8BFC81B011FF9C8D002CB4DC /* breakpad_nlist_64.cc in Sources */ = {isa = PBXBuildFile; fileRef = F98208A10DB32CAE0017AECA /* breakpad_nlist_64.cc */; };
|
||||||
9B35FF5A0B267D5F008DE8C7 /* convert_UTF.c in Sources */ = {isa = PBXBuildFile; fileRef = 9B35FF560B267D5F008DE8C7 /* convert_UTF.c */; };
|
9B35FF5A0B267D5F008DE8C7 /* convert_UTF.c in Sources */ = {isa = PBXBuildFile; fileRef = 9B35FF560B267D5F008DE8C7 /* convert_UTF.c */; };
|
||||||
9B35FF5B0B267D5F008DE8C7 /* string_conversion.cc in Sources */ = {isa = PBXBuildFile; fileRef = 9B35FF580B267D5F008DE8C7 /* string_conversion.cc */; };
|
9B35FF5B0B267D5F008DE8C7 /* string_conversion.cc in Sources */ = {isa = PBXBuildFile; fileRef = 9B35FF580B267D5F008DE8C7 /* string_conversion.cc */; };
|
||||||
9B37CEEC0AF98ECD00FA4BD4 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B37CEEB0AF98ECD00FA4BD4 /* CoreFoundation.framework */; };
|
9B37CEEC0AF98ECD00FA4BD4 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B37CEEB0AF98ECD00FA4BD4 /* CoreFoundation.framework */; };
|
||||||
|
@ -94,12 +108,18 @@
|
||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
|
8BFC812011FF99D5002CB4DC /* Breakpad.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Breakpad.xcconfig; path = ../../../common/mac/Breakpad.xcconfig; sourceTree = SOURCE_ROOT; };
|
||||||
|
8BFC812111FF99D5002CB4DC /* BreakpadDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = BreakpadDebug.xcconfig; path = ../../../common/mac/BreakpadDebug.xcconfig; sourceTree = SOURCE_ROOT; };
|
||||||
|
8BFC812211FF99D5002CB4DC /* BreakpadRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = BreakpadRelease.xcconfig; path = ../../../common/mac/BreakpadRelease.xcconfig; sourceTree = SOURCE_ROOT; };
|
||||||
|
8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcrypto.dylib; path = usr/lib/libcrypto.dylib; sourceTree = SDKROOT; };
|
||||||
|
8BFC815411FF9B7F002CB4DC /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = System/Library/Frameworks/Carbon.framework; sourceTree = SDKROOT; };
|
||||||
|
8BFC819211FF9C23002CB4DC /* CPlusTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CPlusTest.framework; path = Library/Frameworks/CPlusTest.framework; sourceTree = DEVELOPER_DIR; };
|
||||||
8DD76F6C0486A84900D96B5E /* generator_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = generator_test; sourceTree = BUILT_PRODUCTS_DIR; };
|
8DD76F6C0486A84900D96B5E /* generator_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = generator_test; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
9B35FF560B267D5F008DE8C7 /* convert_UTF.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = convert_UTF.c; path = ../../../common/convert_UTF.c; sourceTree = SOURCE_ROOT; };
|
9B35FF560B267D5F008DE8C7 /* convert_UTF.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = convert_UTF.c; path = ../../../common/convert_UTF.c; sourceTree = SOURCE_ROOT; };
|
||||||
9B35FF570B267D5F008DE8C7 /* convert_UTF.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = convert_UTF.h; path = ../../../common/convert_UTF.h; sourceTree = SOURCE_ROOT; };
|
9B35FF570B267D5F008DE8C7 /* convert_UTF.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = convert_UTF.h; path = ../../../common/convert_UTF.h; sourceTree = SOURCE_ROOT; };
|
||||||
9B35FF580B267D5F008DE8C7 /* string_conversion.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = string_conversion.cc; path = ../../../common/string_conversion.cc; sourceTree = SOURCE_ROOT; };
|
9B35FF580B267D5F008DE8C7 /* string_conversion.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = string_conversion.cc; path = ../../../common/string_conversion.cc; sourceTree = SOURCE_ROOT; };
|
||||||
9B35FF590B267D5F008DE8C7 /* string_conversion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = string_conversion.h; path = ../../../common/string_conversion.h; sourceTree = SOURCE_ROOT; };
|
9B35FF590B267D5F008DE8C7 /* string_conversion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = string_conversion.h; path = ../../../common/string_conversion.h; sourceTree = SOURCE_ROOT; };
|
||||||
9B37CEEB0AF98ECD00FA4BD4 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; };
|
9B37CEEB0AF98ECD00FA4BD4 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
|
||||||
9B7CA84E0B1297F200CD3A1D /* unit_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = unit_test; sourceTree = BUILT_PRODUCTS_DIR; };
|
9B7CA84E0B1297F200CD3A1D /* unit_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = unit_test; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
9B7CA8530B12989000CD3A1D /* minidump_file_writer_unittest.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = minidump_file_writer_unittest.cc; path = ../../minidump_file_writer_unittest.cc; sourceTree = "<group>"; };
|
9B7CA8530B12989000CD3A1D /* minidump_file_writer_unittest.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = minidump_file_writer_unittest.cc; path = ../../minidump_file_writer_unittest.cc; sourceTree = "<group>"; };
|
||||||
9BD82A9B0B00267E0055103E /* handler_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = handler_test; sourceTree = BUILT_PRODUCTS_DIR; };
|
9BD82A9B0B00267E0055103E /* handler_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = handler_test; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
@ -132,11 +152,11 @@
|
||||||
F9721F310E8B07E800D7E813 /* dwarftests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = dwarftests.mm; sourceTree = "<group>"; };
|
F9721F310E8B07E800D7E813 /* dwarftests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = dwarftests.mm; sourceTree = "<group>"; };
|
||||||
F9721F380E8B0CFC00D7E813 /* dump_syms.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dump_syms.h; path = ../../../common/mac/dump_syms.h; sourceTree = SOURCE_ROOT; };
|
F9721F380E8B0CFC00D7E813 /* dump_syms.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dump_syms.h; path = ../../../common/mac/dump_syms.h; sourceTree = SOURCE_ROOT; };
|
||||||
F9721F390E8B0D0D00D7E813 /* dump_syms.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = dump_syms.mm; path = ../../../common/mac/dump_syms.mm; sourceTree = SOURCE_ROOT; };
|
F9721F390E8B0D0D00D7E813 /* dump_syms.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = dump_syms.mm; path = ../../../common/mac/dump_syms.mm; sourceTree = SOURCE_ROOT; };
|
||||||
F9721F6B0E8B0D7000D7E813 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
|
F9721F6B0E8B0D7000D7E813 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
||||||
F9721F760E8B0DC700D7E813 /* bytereader.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = bytereader.cc; path = ../../../common/dwarf/bytereader.cc; sourceTree = SOURCE_ROOT; };
|
F9721F760E8B0DC700D7E813 /* bytereader.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = bytereader.cc; path = ../../../common/dwarf/bytereader.cc; sourceTree = SOURCE_ROOT; };
|
||||||
F9721F770E8B0DC700D7E813 /* dwarf2reader.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = dwarf2reader.cc; path = ../../../common/dwarf/dwarf2reader.cc; sourceTree = SOURCE_ROOT; };
|
F9721F770E8B0DC700D7E813 /* dwarf2reader.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = dwarf2reader.cc; path = ../../../common/dwarf/dwarf2reader.cc; sourceTree = SOURCE_ROOT; };
|
||||||
F9721F780E8B0DC700D7E813 /* functioninfo.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = functioninfo.cc; path = ../../../common/dwarf/functioninfo.cc; sourceTree = SOURCE_ROOT; };
|
F9721F780E8B0DC700D7E813 /* functioninfo.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = functioninfo.cc; path = ../../../common/dwarf/functioninfo.cc; sourceTree = SOURCE_ROOT; };
|
||||||
F9721FA10E8B0E2300D7E813 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = /System/Library/Frameworks/SenTestingKit.framework; sourceTree = "<absolute>"; };
|
F9721FA10E8B0E2300D7E813 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
|
||||||
F9721FA80E8B0E4800D7E813 /* md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = md5.c; path = ../../../common/md5.c; sourceTree = SOURCE_ROOT; };
|
F9721FA80E8B0E4800D7E813 /* md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = md5.c; path = ../../../common/md5.c; sourceTree = SOURCE_ROOT; };
|
||||||
F982089A0DB3280D0017AECA /* breakpad_nlist_test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = breakpad_nlist_test.h; sourceTree = "<group>"; };
|
F982089A0DB3280D0017AECA /* breakpad_nlist_test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = breakpad_nlist_test.h; sourceTree = "<group>"; };
|
||||||
F982089B0DB3280D0017AECA /* breakpad_nlist_test.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = breakpad_nlist_test.cc; sourceTree = "<group>"; };
|
F982089B0DB3280D0017AECA /* breakpad_nlist_test.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = breakpad_nlist_test.cc; sourceTree = "<group>"; };
|
||||||
|
@ -156,6 +176,7 @@
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
9B37CEEC0AF98ECD00FA4BD4 /* CoreFoundation.framework in Frameworks */,
|
9B37CEEC0AF98ECD00FA4BD4 /* CoreFoundation.framework in Frameworks */,
|
||||||
|
8BFC813F11FF9A58002CB4DC /* libcrypto.dylib in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -163,6 +184,7 @@
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
8BFC814511FF9A9D002CB4DC /* libcrypto.dylib in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -171,6 +193,7 @@
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
9BD82AC10B0029DF0055103E /* CoreFoundation.framework in Frameworks */,
|
9BD82AC10B0029DF0055103E /* CoreFoundation.framework in Frameworks */,
|
||||||
|
8BFC814411FF9A9C002CB4DC /* libcrypto.dylib in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -178,6 +201,9 @@
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
8BFC814A11FF9B13002CB4DC /* libcrypto.dylib in Frameworks */,
|
||||||
|
8BFC814B11FF9B3F002CB4DC /* SenTestingKit.framework in Frameworks */,
|
||||||
|
8BFC814C11FF9B3F002CB4DC /* Cocoa.framework in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -185,6 +211,8 @@
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
8BFC814811FF9B13002CB4DC /* libcrypto.dylib in Frameworks */,
|
||||||
|
8BFC81A211FF9C2E002CB4DC /* CPlusTest.framework in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -194,6 +222,8 @@
|
||||||
files = (
|
files = (
|
||||||
F9721F6C0E8B0D7000D7E813 /* Cocoa.framework in Frameworks */,
|
F9721F6C0E8B0D7000D7E813 /* Cocoa.framework in Frameworks */,
|
||||||
F9721FA20E8B0E2300D7E813 /* SenTestingKit.framework in Frameworks */,
|
F9721FA20E8B0E2300D7E813 /* SenTestingKit.framework in Frameworks */,
|
||||||
|
8BFC814911FF9B13002CB4DC /* libcrypto.dylib in Frameworks */,
|
||||||
|
8BFC81A311FF9C2F002CB4DC /* CPlusTest.framework in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -203,6 +233,9 @@
|
||||||
08FB7794FE84155DC02AAC07 /* MinidumpWriter */ = {
|
08FB7794FE84155DC02AAC07 /* MinidumpWriter */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
8BFC812011FF99D5002CB4DC /* Breakpad.xcconfig */,
|
||||||
|
8BFC812111FF99D5002CB4DC /* BreakpadDebug.xcconfig */,
|
||||||
|
8BFC812211FF99D5002CB4DC /* BreakpadRelease.xcconfig */,
|
||||||
F9721FA80E8B0E4800D7E813 /* md5.c */,
|
F9721FA80E8B0E4800D7E813 /* md5.c */,
|
||||||
F9721F760E8B0DC700D7E813 /* bytereader.cc */,
|
F9721F760E8B0DC700D7E813 /* bytereader.cc */,
|
||||||
F9721F770E8B0DC700D7E813 /* dwarf2reader.cc */,
|
F9721F770E8B0DC700D7E813 /* dwarf2reader.cc */,
|
||||||
|
@ -261,9 +294,12 @@
|
||||||
9B37CEEA0AF98EB600FA4BD4 /* Frameworks */ = {
|
9B37CEEA0AF98EB600FA4BD4 /* Frameworks */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
8BFC813E11FF9A58002CB4DC /* libcrypto.dylib */,
|
||||||
|
8BFC815411FF9B7F002CB4DC /* Carbon.framework */,
|
||||||
F9721FA10E8B0E2300D7E813 /* SenTestingKit.framework */,
|
F9721FA10E8B0E2300D7E813 /* SenTestingKit.framework */,
|
||||||
F9721F6B0E8B0D7000D7E813 /* Cocoa.framework */,
|
F9721F6B0E8B0D7000D7E813 /* Cocoa.framework */,
|
||||||
9B37CEEB0AF98ECD00FA4BD4 /* CoreFoundation.framework */,
|
9B37CEEB0AF98ECD00FA4BD4 /* CoreFoundation.framework */,
|
||||||
|
8BFC819211FF9C23002CB4DC /* CPlusTest.framework */,
|
||||||
);
|
);
|
||||||
name = Frameworks;
|
name = Frameworks;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -414,7 +450,7 @@
|
||||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "minidump_test" */;
|
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "minidump_test" */;
|
||||||
compatibilityVersion = "Xcode 2.4";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
hasScannedForEncodings = 1;
|
hasScannedForEncodings = 1;
|
||||||
mainGroup = 08FB7794FE84155DC02AAC07 /* MinidumpWriter */;
|
mainGroup = 08FB7794FE84155DC02AAC07 /* MinidumpWriter */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
|
@ -513,6 +549,7 @@
|
||||||
D2F6510E0BEF94EB00920385 /* macho_walker.cc in Sources */,
|
D2F6510E0BEF94EB00920385 /* macho_walker.cc in Sources */,
|
||||||
D2F651110BEF951700920385 /* string_conversion.cc in Sources */,
|
D2F651110BEF951700920385 /* string_conversion.cc in Sources */,
|
||||||
D2F651150BEF953000920385 /* convert_UTF.c in Sources */,
|
D2F651150BEF953000920385 /* convert_UTF.c in Sources */,
|
||||||
|
8BFC81B011FF9C8D002CB4DC /* breakpad_nlist_64.cc in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -524,6 +561,7 @@
|
||||||
9B7CA8550B1298A100CD3A1D /* minidump_file_writer.cc in Sources */,
|
9B7CA8550B1298A100CD3A1D /* minidump_file_writer.cc in Sources */,
|
||||||
9BC1D2940B336F2300F2A2B4 /* convert_UTF.c in Sources */,
|
9BC1D2940B336F2300F2A2B4 /* convert_UTF.c in Sources */,
|
||||||
9BC1D2950B336F2500F2A2B4 /* string_conversion.cc in Sources */,
|
9BC1D2950B336F2500F2A2B4 /* string_conversion.cc in Sources */,
|
||||||
|
8BFC81AE11FF9C8C002CB4DC /* breakpad_nlist_64.cc in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -543,6 +581,7 @@
|
||||||
D2F6511E0BEF973600920385 /* macho_id.cc in Sources */,
|
D2F6511E0BEF973600920385 /* macho_id.cc in Sources */,
|
||||||
D2F6511F0BEF973900920385 /* macho_utilities.cc in Sources */,
|
D2F6511F0BEF973900920385 /* macho_utilities.cc in Sources */,
|
||||||
D2F651210BEF975400920385 /* macho_walker.cc in Sources */,
|
D2F651210BEF975400920385 /* macho_walker.cc in Sources */,
|
||||||
|
8BFC81AF11FF9C8C002CB4DC /* breakpad_nlist_64.cc in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -580,6 +619,7 @@
|
||||||
files = (
|
files = (
|
||||||
F9AE5B390DBFDBDB00505983 /* dynamic_images.cc in Sources */,
|
F9AE5B390DBFDBDB00505983 /* dynamic_images.cc in Sources */,
|
||||||
F9AE5B3A0DBFDBDB00505983 /* DynamicImagesTests.cc in Sources */,
|
F9AE5B3A0DBFDBDB00505983 /* DynamicImagesTests.cc in Sources */,
|
||||||
|
8BFC81AD11FF9C8A002CB4DC /* breakpad_nlist_64.cc in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -589,154 +629,78 @@
|
||||||
1DEB923208733DC60010E9CD /* Debug */ = {
|
1DEB923208733DC60010E9CD /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
COPY_PHASE_STRIP = NO;
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
GCC_CW_ASM_SYNTAX = NO;
|
"$(inherited)",
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
"\"$(DEVELOPER_FRAMEWORKS_DIR)\"",
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
);
|
||||||
GCC_ENABLE_PASCAL_STRINGS = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
GCC_THREADSAFE_STATICS = NO;
|
|
||||||
INSTALL_PATH = "$(HOME)/bin";
|
|
||||||
PRODUCT_NAME = generator_test;
|
PRODUCT_NAME = generator_test;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
1DEB923308733DC60010E9CD /* Release */ = {
|
1DEB923308733DC60010E9CD /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
ppc,
|
"$(inherited)",
|
||||||
i386,
|
"\"$(DEVELOPER_FRAMEWORKS_DIR)\"",
|
||||||
);
|
);
|
||||||
GCC_CW_ASM_SYNTAX = NO;
|
|
||||||
GCC_ENABLE_PASCAL_STRINGS = NO;
|
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_THREADSAFE_STATICS = NO;
|
|
||||||
INSTALL_PATH = "$(HOME)/bin";
|
|
||||||
PRODUCT_NAME = generator_test;
|
PRODUCT_NAME = generator_test;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
1DEB923608733DC60010E9CD /* Debug */ = {
|
1DEB923608733DC60010E9CD /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 8BFC812111FF99D5002CB4DC /* BreakpadDebug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
||||||
OTHER_LDFLAGS = "-lcrypto";
|
|
||||||
PREBINDING = NO;
|
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
1DEB923708733DC60010E9CD /* Release */ = {
|
1DEB923708733DC60010E9CD /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 8BFC812211FF99D5002CB4DC /* BreakpadRelease.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
||||||
OTHER_LDFLAGS = "-lcrypto";
|
|
||||||
PREBINDING = NO;
|
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
9B7CA8510B12984300CD3A1D /* Debug */ = {
|
9B7CA8510B12984300CD3A1D /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
INSTALL_PATH = "$(HOME)/bin";
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = unit_test;
|
PRODUCT_NAME = unit_test;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
9B7CA8520B12984300CD3A1D /* Release */ = {
|
9B7CA8520B12984300CD3A1D /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
COPY_PHASE_STRIP = YES;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
INSTALL_PATH = "$(HOME)/bin";
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = unit_test;
|
PRODUCT_NAME = unit_test;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
USER_HEADER_SEARCH_PATHS = "../../../** $(inherited)";
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
9BD82AA70B0026BF0055103E /* Debug */ = {
|
9BD82AA70B0026BF0055103E /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = "$(NATIVE_ARCH)";
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
||||||
INSTALL_PATH = "$(HOME)/bin";
|
|
||||||
OTHER_CFLAGS = "-Wall";
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = handler_test;
|
PRODUCT_NAME = handler_test;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../.. $(inherited)";
|
USER_HEADER_SEARCH_PATHS = "../../.. $(inherited)";
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
9BD82AA80B0026BF0055103E /* Release */ = {
|
9BD82AA80B0026BF0055103E /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = "$(NATIVE_ARCH)";
|
|
||||||
COPY_PHASE_STRIP = YES;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
||||||
INSTALL_PATH = "$(HOME)/bin";
|
|
||||||
OTHER_CFLAGS = "-Wall";
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = handler_test;
|
PRODUCT_NAME = handler_test;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../.. $(inherited)";
|
USER_HEADER_SEARCH_PATHS = "../../.. $(inherited)";
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
F93A88770E8B4C700026AF89 /* Debug */ = {
|
F93A88770E8B4C700026AF89 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
||||||
GCC_CHAR_IS_UNSIGNED_CHAR = YES;
|
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
INFOPLIST_FILE = "obj-cTestCases-Info.plist";
|
INFOPLIST_FILE = "obj-cTestCases-Info.plist";
|
||||||
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-lcrypto",
|
|
||||||
"-framework",
|
|
||||||
Cocoa,
|
|
||||||
"-framework",
|
|
||||||
SenTestingKit,
|
|
||||||
);
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = octestcases;
|
PRODUCT_NAME = octestcases;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../..//**";
|
USER_HEADER_SEARCH_PATHS = "../../../..//**";
|
||||||
WRAPPER_EXTENSION = octest;
|
WRAPPER_EXTENSION = octest;
|
||||||
|
@ -746,58 +710,20 @@
|
||||||
F93A88780E8B4C700026AF89 /* Release */ = {
|
F93A88780E8B4C700026AF89 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
COPY_PHASE_STRIP = YES;
|
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
||||||
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
||||||
GCC_CHAR_IS_UNSIGNED_CHAR = YES;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
INFOPLIST_FILE = "obj-cTestCases-Info.plist";
|
INFOPLIST_FILE = "obj-cTestCases-Info.plist";
|
||||||
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-lcrypto",
|
|
||||||
"-framework",
|
|
||||||
Cocoa,
|
|
||||||
"-framework",
|
|
||||||
SenTestingKit,
|
|
||||||
);
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = octestcases;
|
PRODUCT_NAME = octestcases;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../..//**";
|
USER_HEADER_SEARCH_PATHS = "../../../..//**";
|
||||||
WRAPPER_EXTENSION = octest;
|
WRAPPER_EXTENSION = octest;
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
F9AE19C40DB04A9500C98454 /* Debug */ = {
|
F9AE19C40DB04A9500C98454 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = (
|
|
||||||
"$(NATIVE_ARCH_64_BIT)",
|
|
||||||
ppc64,
|
|
||||||
);
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
||||||
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";
|
|
||||||
INFOPLIST_FILE = "minidump_tests64-Info.plist";
|
INFOPLIST_FILE = "minidump_tests64-Info.plist";
|
||||||
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
Carbon,
|
|
||||||
"-framework",
|
|
||||||
CPlusTest,
|
|
||||||
);
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = minidump_tests64;
|
PRODUCT_NAME = minidump_tests64;
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
|
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../**";
|
USER_HEADER_SEARCH_PATHS = "../../../**";
|
||||||
WRAPPER_EXTENSION = cptest;
|
WRAPPER_EXTENSION = cptest;
|
||||||
};
|
};
|
||||||
|
@ -806,57 +732,19 @@
|
||||||
F9AE19C50DB04A9500C98454 /* Release */ = {
|
F9AE19C50DB04A9500C98454 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = (
|
|
||||||
"$(NATIVE_ARCH_64_BIT)",
|
|
||||||
ppc64,
|
|
||||||
);
|
|
||||||
COPY_PHASE_STRIP = YES;
|
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
||||||
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
||||||
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";
|
|
||||||
INFOPLIST_FILE = "minidump_tests64-Info.plist";
|
INFOPLIST_FILE = "minidump_tests64-Info.plist";
|
||||||
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
Carbon,
|
|
||||||
"-framework",
|
|
||||||
CPlusTest,
|
|
||||||
);
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = minidump_tests64;
|
PRODUCT_NAME = minidump_tests64;
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
|
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../**";
|
USER_HEADER_SEARCH_PATHS = "../../../**";
|
||||||
WRAPPER_EXTENSION = cptest;
|
WRAPPER_EXTENSION = cptest;
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
F9AE5B350DBFDBA300505983 /* Debug */ = {
|
F9AE5B350DBFDBA300505983 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = "$(NATIVE_ARCH)";
|
|
||||||
COPY_PHASE_STRIP = NO;
|
|
||||||
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
||||||
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";
|
|
||||||
INFOPLIST_FILE = "minidump_tests32-Info.plist";
|
INFOPLIST_FILE = "minidump_tests32-Info.plist";
|
||||||
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-framework",
|
|
||||||
Carbon,
|
|
||||||
"-framework",
|
|
||||||
CPlusTest,
|
|
||||||
"-lcrypto",
|
|
||||||
);
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = minidump_tests32;
|
PRODUCT_NAME = minidump_tests32;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../**";
|
USER_HEADER_SEARCH_PATHS = "../../../**";
|
||||||
WRAPPER_EXTENSION = cptest;
|
WRAPPER_EXTENSION = cptest;
|
||||||
|
@ -866,28 +754,11 @@
|
||||||
F9AE5B370DBFDBA300505983 /* Release */ = {
|
F9AE5B370DBFDBA300505983 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = "$(NATIVE_ARCH)";
|
|
||||||
COPY_PHASE_STRIP = YES;
|
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
||||||
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
|
||||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
|
||||||
GCC_MODEL_TUNING = G5;
|
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
|
||||||
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";
|
|
||||||
INFOPLIST_FILE = "minidump_tests32-Info.plist";
|
INFOPLIST_FILE = "minidump_tests32-Info.plist";
|
||||||
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
|
|
||||||
OTHER_LDFLAGS = (
|
|
||||||
"-lcrypto",
|
|
||||||
"-framework",
|
|
||||||
Carbon,
|
|
||||||
"-framework",
|
|
||||||
CPlusTest,
|
|
||||||
);
|
|
||||||
PREBINDING = NO;
|
|
||||||
PRODUCT_NAME = minidump_tests32;
|
PRODUCT_NAME = minidump_tests32;
|
||||||
USER_HEADER_SEARCH_PATHS = "../../../**";
|
USER_HEADER_SEARCH_PATHS = "../../../**";
|
||||||
WRAPPER_EXTENSION = cptest;
|
WRAPPER_EXTENSION = cptest;
|
||||||
ZERO_LINK = NO;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,9 +51,9 @@ namespace MacFileUtilities {
|
||||||
|
|
||||||
MachoWalker::MachoWalker(const char *path, LoadCommandCallback callback,
|
MachoWalker::MachoWalker(const char *path, LoadCommandCallback callback,
|
||||||
void *context)
|
void *context)
|
||||||
: callback_(callback),
|
: file_(0),
|
||||||
|
callback_(callback),
|
||||||
callback_context_(context),
|
callback_context_(context),
|
||||||
file_(0),
|
|
||||||
current_header_(NULL),
|
current_header_(NULL),
|
||||||
current_header_size_(0),
|
current_header_size_(0),
|
||||||
current_header_offset_(0) {
|
current_header_offset_(0) {
|
||||||
|
@ -99,7 +99,7 @@ bool MachoWalker::CurrentHeader(struct mach_header_64 *header, off_t *offset) {
|
||||||
*offset = current_header_offset_;
|
*offset = current_header_offset_;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ bool MachoWalker::FindHeader(int cpu_type, off_t &offset) {
|
||||||
// Figure out what type of file we've got
|
// Figure out what type of file we've got
|
||||||
bool is_fat = false;
|
bool is_fat = false;
|
||||||
if (magic == FAT_MAGIC || magic == FAT_CIGAM) {
|
if (magic == FAT_MAGIC || magic == FAT_CIGAM) {
|
||||||
is_fat = true;
|
is_fat = true;
|
||||||
}
|
}
|
||||||
else if (magic != MH_MAGIC && magic != MH_CIGAM && magic != MH_MAGIC_64 &&
|
else if (magic != MH_MAGIC && magic != MH_CIGAM && magic != MH_MAGIC_64 &&
|
||||||
magic != MH_CIGAM_64) {
|
magic != MH_CIGAM_64) {
|
||||||
|
@ -178,13 +178,13 @@ bool MachoWalker::WalkHeaderAtOffset(off_t offset) {
|
||||||
bool swap = (header.magic == MH_CIGAM);
|
bool swap = (header.magic == MH_CIGAM);
|
||||||
if (swap)
|
if (swap)
|
||||||
swap_mach_header(&header, NXHostByteOrder());
|
swap_mach_header(&header, NXHostByteOrder());
|
||||||
|
|
||||||
// Copy the data into the mach_header_64 structure. Since the 32-bit and
|
// Copy the data into the mach_header_64 structure. Since the 32-bit and
|
||||||
// 64-bit only differ in the last field (reserved), this is safe to do.
|
// 64-bit only differ in the last field (reserved), this is safe to do.
|
||||||
struct mach_header_64 header64;
|
struct mach_header_64 header64;
|
||||||
memcpy((void *)&header64, (const void *)&header, sizeof(header));
|
memcpy((void *)&header64, (const void *)&header, sizeof(header));
|
||||||
header64.reserved = 0;
|
header64.reserved = 0;
|
||||||
|
|
||||||
current_header_ = &header64;
|
current_header_ = &header64;
|
||||||
current_header_size_ = sizeof(header); // 32-bit, not 64-bit
|
current_header_size_ = sizeof(header); // 32-bit, not 64-bit
|
||||||
current_header_offset_ = offset;
|
current_header_offset_ = offset;
|
||||||
|
|
Loading…
Reference in a new issue