aboutsummaryrefslogtreecommitdiff
path: root/src/common/dwarf/dwarf2reader.cc
diff options
context:
space:
mode:
authorDave MacLachlan <dmaclach@google.com>2016-05-12 11:38:09 -0700
committerDave MacLachlan <dmaclach@google.com>2016-05-12 11:38:09 -0700
commit3d225e288c95902b965e0a06333dfdbe25a637b5 (patch)
treecbcd530a8750c170fde142af2c3f90e08f436952 /src/common/dwarf/dwarf2reader.cc
parentUpdate to handle dsym files that end with a header. (diff)
downloadbreakpad-3d225e288c95902b965e0a06333dfdbe25a637b5.tar.xz
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 .
Diffstat (limited to 'src/common/dwarf/dwarf2reader.cc')
-rw-r--r--src/common/dwarf/dwarf2reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dwarf/dwarf2reader.cc b/src/common/dwarf/dwarf2reader.cc
index dc0e2349..a65b43c8 100644
--- a/src/common/dwarf/dwarf2reader.cc
+++ b/src/common/dwarf/dwarf2reader.cc
@@ -639,7 +639,7 @@ void CompilationUnit::ProcessSplitDwarf() {
}
}
bool found_in_dwp = false;
- if (dwp_reader_ != NULL) {
+ if (dwp_reader_) {
// If we have a .dwp file, read the debug sections for the requested CU.
SectionMap sections;
dwp_reader_->ReadDebugSectionsForCU(dwo_id_, &sections);