OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #ifndef __STDC_FORMAT_MACROS |
| 6 #define __STDC_FORMAT_MACROS |
| 7 #endif |
| 8 |
5 #include "google_breakpad/processor/proc_maps_linux.h" | 9 #include "google_breakpad/processor/proc_maps_linux.h" |
6 | 10 |
7 #include <fcntl.h> | 11 #include <fcntl.h> |
8 #define __STDC_FORMAT_MACROS 1 | |
9 #include <inttypes.h> | 12 #include <inttypes.h> |
10 #include <stdio.h> | 13 #include <stdio.h> |
11 | 14 |
12 #include "processor/logging.h" | 15 #include "processor/logging.h" |
13 | 16 |
14 #if defined(OS_ANDROID) && !defined(__LP64__) | 17 #if defined(OS_ANDROID) && !defined(__LP64__) |
15 // In 32-bit mode, Bionic's inttypes.h defines PRI/SCNxPTR as an | 18 // In 32-bit mode, Bionic's inttypes.h defines PRI/SCNxPTR as an |
16 // unsigned long int, which is incompatible with Bionic's stdint.h | 19 // unsigned long int, which is incompatible with Bionic's stdint.h |
17 // defining uintptr_t as an unsigned int: | 20 // defining uintptr_t as an unsigned int: |
18 // https://code.google.com/p/android/issues/detail?id=57218 | 21 // https://code.google.com/p/android/issues/detail?id=57218 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 regions.push_back(region); | 96 regions.push_back(region); |
94 regions.back().path.assign(line + path_index); | 97 regions.back().path.assign(line + path_index); |
95 regions.back().line.assign(line); | 98 regions.back().line.assign(line); |
96 } | 99 } |
97 | 100 |
98 regions_out->swap(regions); | 101 regions_out->swap(regions); |
99 return true; | 102 return true; |
100 } | 103 } |
101 | 104 |
102 } // namespace google_breakpad | 105 } // namespace google_breakpad |
OLD | NEW |