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

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

Issue 1418453011: [mips64] Support for mips n64 (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Fix accidentally removed lines from Makefile.am Created 4 years, 10 months 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) 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // a 32-bit app running on a aarch64 device. 172 // a 32-bit app running on a aarch64 device.
173 #if defined(__aarch64__) 173 #if defined(__aarch64__)
174 const char kArch[] = "arm64"; 174 const char kArch[] = "arm64";
175 #elif defined(__ARMEL__) 175 #elif defined(__ARMEL__)
176 const char kArch[] = "arm"; 176 const char kArch[] = "arm";
177 #elif defined(__x86_64__) 177 #elif defined(__x86_64__)
178 const char kArch[] = "x86_64"; 178 const char kArch[] = "x86_64";
179 #elif defined(__i386__) 179 #elif defined(__i386__)
180 const char kArch[] = "x86"; 180 const char kArch[] = "x86";
181 #elif defined(__mips__) 181 #elif defined(__mips__)
182 # if _MIPS_SIM == _ABIO32
182 const char kArch[] = "mips"; 183 const char kArch[] = "mips";
184 # elif _MIPS_SIM == _ABI64
185 const char kArch[] = "mips64";
186 # else
187 # error "This mips ABI is currently not supported (n32)"
188 #endif
183 #else 189 #else
184 #error "This code has not been ported to your platform yet" 190 #error "This code has not been ported to your platform yet"
185 #endif 191 #endif
186 192
187 LogAppend("O "); 193 LogAppend("O ");
188 LogAppend(kOSId); 194 LogAppend(kOSId);
189 LogAppend(" "); 195 LogAppend(" ");
190 LogAppend(kArch); 196 LogAppend(kArch);
191 LogAppend(" "); 197 LogAppend(" ");
192 LogAppend(n_cpus); 198 LogAppend(n_cpus);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 dumper.set_crash_signal(context->siginfo.si_signo); 430 dumper.set_crash_signal(context->siginfo.si_signo);
425 dumper.set_crash_thread(context->tid); 431 dumper.set_crash_thread(context->tid);
426 } 432 }
427 MicrodumpWriter writer(context, mappings, microdump_extra_info, &dumper); 433 MicrodumpWriter writer(context, mappings, microdump_extra_info, &dumper);
428 if (!writer.Init()) 434 if (!writer.Init())
429 return false; 435 return false;
430 return writer.Dump(); 436 return writer.Dump();
431 } 437 }
432 438
433 } // namespace google_breakpad 439 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « src/client/linux/dump_writer_common/ucontext_reader.cc ('k') | src/client/linux/minidump_writer/minidump_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698