OLD | NEW |
1 // Copyright (c) 2010, Google Inc. | 1 // Copyright (c) 2010, 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 #if defined(__i386__) || defined(__x86_64__) | 813 #if defined(__i386__) || defined(__x86_64__) |
814 { "model", 0, false }, | 814 { "model", 0, false }, |
815 { "stepping", 0, false }, | 815 { "stepping", 0, false }, |
816 { "cpu family", 0, false }, | 816 { "cpu family", 0, false }, |
817 #endif | 817 #endif |
818 }; | 818 }; |
819 | 819 |
820 // processor_architecture should always be set, do this first | 820 // processor_architecture should always be set, do this first |
821 sys_info->processor_architecture = | 821 sys_info->processor_architecture = |
822 #if defined(__mips__) | 822 #if defined(__mips__) |
| 823 # if _MIPS_SIM == _ABIO32 |
823 MD_CPU_ARCHITECTURE_MIPS; | 824 MD_CPU_ARCHITECTURE_MIPS; |
| 825 # elif _MIPS_SIM == _ABI64 |
| 826 MD_CPU_ARCHITECTURE_MIPS64; |
| 827 # else |
| 828 # error "This mips ABI is currently not supported (n32)" |
| 829 #endif |
824 #elif defined(__i386__) | 830 #elif defined(__i386__) |
825 MD_CPU_ARCHITECTURE_X86; | 831 MD_CPU_ARCHITECTURE_X86; |
826 #else | 832 #else |
827 MD_CPU_ARCHITECTURE_AMD64; | 833 MD_CPU_ARCHITECTURE_AMD64; |
828 #endif | 834 #endif |
829 | 835 |
830 const int fd = sys_open("/proc/cpuinfo", O_RDONLY, 0); | 836 const int fd = sys_open("/proc/cpuinfo", O_RDONLY, 0); |
831 if (fd < 0) | 837 if (fd < 0) |
832 return false; | 838 return false; |
833 | 839 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 const MappingList& mappings, | 1364 const MappingList& mappings, |
1359 const AppMemoryList& appmem, | 1365 const AppMemoryList& appmem, |
1360 LinuxDumper* dumper) { | 1366 LinuxDumper* dumper) { |
1361 MinidumpWriter writer(filename, -1, NULL, mappings, appmem, dumper); | 1367 MinidumpWriter writer(filename, -1, NULL, mappings, appmem, dumper); |
1362 if (!writer.Init()) | 1368 if (!writer.Init()) |
1363 return false; | 1369 return false; |
1364 return writer.Dump(); | 1370 return writer.Dump(); |
1365 } | 1371 } |
1366 | 1372 |
1367 } // namespace google_breakpad | 1373 } // namespace google_breakpad |
OLD | NEW |