LEFT | RIGHT |
1 // Copyright (c) 2014, Google Inc. | 1 // Copyright (c) 2014, 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const char kArch[] = "arm64"; | 157 const char kArch[] = "arm64"; |
158 #elif defined(__ARMEL__) | 158 #elif defined(__ARMEL__) |
159 const char kArch[] = "arm"; | 159 const char kArch[] = "arm"; |
160 #elif defined(__x86_64__) | 160 #elif defined(__x86_64__) |
161 const char kArch[] = "x86_64"; | 161 const char kArch[] = "x86_64"; |
162 #elif defined(__i386__) | 162 #elif defined(__i386__) |
163 const char kArch[] = "x86"; | 163 const char kArch[] = "x86"; |
164 #elif defined(__mips__) | 164 #elif defined(__mips__) |
165 const char kArch[] = "mips"; | 165 const char kArch[] = "mips"; |
166 #else | 166 #else |
167 #error Architecture not supported | 167 #error "This code has not been ported to your platform yet" |
168 #endif | 168 #endif |
169 | 169 |
170 LogAppend("O "); | 170 LogAppend("O "); |
171 LogAppend(kOSId); | 171 LogAppend(kOSId); |
172 LogAppend(" "); | 172 LogAppend(" "); |
173 LogAppend(kArch); | 173 LogAppend(kArch); |
174 LogAppend(" "); | 174 LogAppend(" "); |
175 LogAppend(n_cpus); | 175 LogAppend(n_cpus); |
176 LogAppend(" "); | 176 LogAppend(" "); |
177 LogAppend(uts.machine); | 177 LogAppend(uts.machine); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 dumper.set_crash_signal(context->siginfo.si_signo); | 384 dumper.set_crash_signal(context->siginfo.si_signo); |
385 dumper.set_crash_thread(context->tid); | 385 dumper.set_crash_thread(context->tid); |
386 } | 386 } |
387 MicrodumpWriter writer(context, mappings, &dumper); | 387 MicrodumpWriter writer(context, mappings, &dumper); |
388 if (!writer.Init()) | 388 if (!writer.Init()) |
389 return false; | 389 return false; |
390 return writer.Dump(); | 390 return writer.Dump(); |
391 } | 391 } |
392 | 392 |
393 } // namespace google_breakpad | 393 } // namespace google_breakpad |
LEFT | RIGHT |