Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: src/client/linux/minidump_writer/minidump_writer.cc

Issue 1418453011: [mips64] Support for mips n64 (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 { "processor", -1, false }, 812 { "processor", -1, false },
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__) && _MIPS_SIM == _ABIO32
vapier 2015/12/15 17:29:27 same comment here
mveljko 2015/12/17 13:36:24 Done.
823 MD_CPU_ARCHITECTURE_MIPS; 823 MD_CPU_ARCHITECTURE_MIPS;
824 #elif defined(__mips__) && _MIPS_SIM == _ABI64
825 MD_CPU_ARCHITECTURE_MIPS64;
824 #elif defined(__i386__) 826 #elif defined(__i386__)
825 MD_CPU_ARCHITECTURE_X86; 827 MD_CPU_ARCHITECTURE_X86;
826 #else 828 #else
827 MD_CPU_ARCHITECTURE_AMD64; 829 MD_CPU_ARCHITECTURE_AMD64;
828 #endif 830 #endif
829 831
830 const int fd = sys_open("/proc/cpuinfo", O_RDONLY, 0); 832 const int fd = sys_open("/proc/cpuinfo", O_RDONLY, 0);
831 if (fd < 0) 833 if (fd < 0)
832 return false; 834 return false;
833 835
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 const MappingList& mappings, 1360 const MappingList& mappings,
1359 const AppMemoryList& appmem, 1361 const AppMemoryList& appmem,
1360 LinuxDumper* dumper) { 1362 LinuxDumper* dumper) {
1361 MinidumpWriter writer(filename, -1, NULL, mappings, appmem, dumper); 1363 MinidumpWriter writer(filename, -1, NULL, mappings, appmem, dumper);
1362 if (!writer.Init()) 1364 if (!writer.Init())
1363 return false; 1365 return false;
1364 return writer.Dump(); 1366 return writer.Dump();
1365 } 1367 }
1366 1368
1367 } // namespace google_breakpad 1369 } // namespace google_breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698