OLD | NEW |
1 // Copyright (c) 2009, Google Inc. | 1 // Copyright (c) 2009, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 #include "client/linux/minidump_writer/linux_dumper.h" | 41 #include "client/linux/minidump_writer/linux_dumper.h" |
42 #include "google_breakpad/common/minidump_format.h" | 42 #include "google_breakpad/common/minidump_format.h" |
43 | 43 |
44 namespace google_breakpad { | 44 namespace google_breakpad { |
45 | 45 |
46 class ExceptionHandler; | 46 class ExceptionHandler; |
47 | 47 |
48 #if defined(__aarch64__) | 48 #if defined(__aarch64__) |
49 typedef struct fpsimd_context fpstate_t; | 49 typedef struct fpsimd_context fpstate_t; |
50 #elif !defined(__ARM_EABI__) && !defined(__mips__) | 50 #elif !defined(__ARM_EABI__) && !defined(__mips__) && !defined(__SH4__) |
51 typedef struct _libc_fpstate fpstate_t; | 51 typedef struct _libc_fpstate fpstate_t; |
52 #endif | 52 #endif |
53 | 53 |
54 // These entries store a list of memory regions that the client wants included | 54 // These entries store a list of memory regions that the client wants included |
55 // in the minidump. | 55 // in the minidump. |
56 struct AppMemory { | 56 struct AppMemory { |
57 void* ptr; | 57 void* ptr; |
58 size_t length; | 58 size_t length; |
59 | 59 |
60 bool operator==(const struct AppMemory& other) const { | 60 bool operator==(const struct AppMemory& other) const { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const AppMemoryList& appdata); | 115 const AppMemoryList& appdata); |
116 | 116 |
117 bool WriteMinidump(const char* filename, | 117 bool WriteMinidump(const char* filename, |
118 const MappingList& mappings, | 118 const MappingList& mappings, |
119 const AppMemoryList& appdata, | 119 const AppMemoryList& appdata, |
120 LinuxDumper* dumper); | 120 LinuxDumper* dumper); |
121 | 121 |
122 } // namespace google_breakpad | 122 } // namespace google_breakpad |
123 | 123 |
124 #endif // CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_WRITER_H_ | 124 #endif // CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_WRITER_H_ |
OLD | NEW |