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

Side by Side Diff: src/client/linux/dump_writer_common/thread_info.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) 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 MD_FLOATINGSAVEAREA_ARM64_FPR_COUNT * 16); 228 MD_FLOATINGSAVEAREA_ARM64_FPR_COUNT * 16);
229 } 229 }
230 230
231 #elif defined(__mips__) 231 #elif defined(__mips__)
232 232
233 uintptr_t ThreadInfo::GetInstructionPointer() const { 233 uintptr_t ThreadInfo::GetInstructionPointer() const {
234 return mcontext.pc; 234 return mcontext.pc;
235 } 235 }
236 236
237 void ThreadInfo::FillCPUContext(RawContextCPU* out) const { 237 void ThreadInfo::FillCPUContext(RawContextCPU* out) const {
238 #if _MIPS_SIM == _ABI64
239 out->context_flags = MD_CONTEXT_MIPS64_FULL;
240 #else
vapier 2015/12/15 17:29:27 probably want to do here (and in other places in t
mveljko 2015/12/17 13:36:24 Done.
238 out->context_flags = MD_CONTEXT_MIPS_FULL; 241 out->context_flags = MD_CONTEXT_MIPS_FULL;
242 #endif
239 243
240 for (int i = 0; i < MD_CONTEXT_MIPS_GPR_COUNT; ++i) 244 for (int i = 0; i < MD_CONTEXT_MIPS_GPR_COUNT; ++i)
241 out->iregs[i] = mcontext.gregs[i]; 245 out->iregs[i] = mcontext.gregs[i];
242 246
243 out->mdhi = mcontext.mdhi; 247 out->mdhi = mcontext.mdhi;
244 out->mdlo = mcontext.mdlo; 248 out->mdlo = mcontext.mdlo;
245 out->dsp_control = mcontext.dsp; 249 out->dsp_control = mcontext.dsp;
246 250
247 out->hi[0] = mcontext.hi1; 251 out->hi[0] = mcontext.hi1;
248 out->lo[0] = mcontext.lo1; 252 out->lo[0] = mcontext.lo1;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 *size = sizeof(mcontext.fpregs); 294 *size = sizeof(mcontext.fpregs);
291 #else 295 #else
292 if (fp_regs) 296 if (fp_regs)
293 *fp_regs = &fpregs; 297 *fp_regs = &fpregs;
294 if (size) 298 if (size)
295 *size = sizeof(fpregs); 299 *size = sizeof(fpregs);
296 #endif 300 #endif
297 } 301 }
298 302
299 } // namespace google_breakpad 303 } // namespace google_breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698