// Copyright 2013 Google LLC // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // For <inttypes.h> PRI* macros, before anything else might #include it. #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif /* __STDC_FORMAT_MACROS */ #ifdef HAVE_CONFIG_H #include <config.h> // Must come first #endif #include "google_breakpad/processor/proc_maps_linux.h" #include <fcntl.h> #include <inttypes.h> #include <stdio.h> #include "common/using_std_string.h" #include "processor/logging.h" #if defined(OS_ANDROID) && !defined(__LP64__) // In 32-bit mode, Bionic's inttypes.h defines PRI/SCNxPTR as an // unsigned long int, which is incompatible with Bionic's stdint.h // defining uintptr_t as an unsigned int: // https://code.google.com/p/android/issues/detail?id=57218 #undef SCNxPTR #define SCNxPTR … #endif namespace google_breakpad { bool ParseProcMaps(const string& input, std::vector<MappedMemoryRegion>* regions_out) { … } } // namespace google_breakpad