mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-03 05:04:45 +01:00
Fixes up dump_syms build on OS X so it works with ELF.
Adds elf.h header from glibc. Updates dwarf2reader.cc so it isn't comparing a unique_ptr against NULL. Moves from MacOS10.5 SDK to latest SDK for Xcode project. Moves from using gcc to clang for dump_syms tests. Disables warning about 'Missing Field In Structure Initializers' to temporarily work around https://bugs.chromium.org/p/google-breakpad/issues/detail?id=697. With this patch all tests form dump_syms pass again using Xcode 7.3 on Mac OS X 10.11. BUG= https://bugs.chromium.org/p/google-breakpad/issues/detail?id=696, https://bugs.chromium.org/p/google-breakpad/issues/detail?id=697 R=mark@chromium.org Review URL: https://codereview.chromium.org/1970903002 .
This commit is contained in:
parent
1bbe2f29c9
commit
3d225e288c
9 changed files with 4500 additions and 13 deletions
16
src/common/mac/include/features.h
Normal file
16
src/common/mac/include/features.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// This file is included by third_party/glibc/elf/elf.h
|
||||
// We use it to map a couple of glibc specific macros
|
||||
// over to their OS X equivalents.
|
||||
|
||||
|
||||
// Map GNU endianness macros over to OS X endianness macros.
|
||||
|
||||
#ifndef __LITTLE_ENDIAN
|
||||
#define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
|
||||
#endif
|
||||
#ifndef __BIG_ENDIAN
|
||||
#define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
|
||||
#endif
|
||||
#ifndef __BYTE_ORDER
|
||||
#define __BYTE_ORDER __BYTE_ORDER__
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue