mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-09 22:35:36 +00:00
[MIPS] Rename variable mips to mips32
Renaming variable mips to mips32 since mips is already defined by the toolchain. BUG=Compile error in Chromium R=mark@chromium.org Review URL: https://codereview.chromium.org/2006393004 . Patch from Veljko Mihailovic <veljko.mihailovic@imgtec.com>.
This commit is contained in:
parent
79901bb99d
commit
71a5ee37a5
|
@ -67,7 +67,7 @@ class MicrodumpContext : public DumpContext {
|
||||||
virtual void SetContextARM(MDRawContextARM* arm);
|
virtual void SetContextARM(MDRawContextARM* arm);
|
||||||
virtual void SetContextARM64(MDRawContextARM64* arm64);
|
virtual void SetContextARM64(MDRawContextARM64* arm64);
|
||||||
virtual void SetContextX86(MDRawContextX86* x86);
|
virtual void SetContextX86(MDRawContextX86* x86);
|
||||||
virtual void SetContextMIPS(MDRawContextMIPS* mips);
|
virtual void SetContextMIPS(MDRawContextMIPS* mips32);
|
||||||
virtual void SetContextMIPS64(MDRawContextMIPS* mips64);
|
virtual void SetContextMIPS64(MDRawContextMIPS* mips64);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -133,9 +133,9 @@ void MicrodumpContext::SetContextX86(MDRawContextX86* x86) {
|
||||||
valid_ = true;
|
valid_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MicrodumpContext::SetContextMIPS(MDRawContextMIPS* mips) {
|
void MicrodumpContext::SetContextMIPS(MDRawContextMIPS* mips32) {
|
||||||
DumpContext::SetContextFlags(MD_CONTEXT_MIPS);
|
DumpContext::SetContextFlags(MD_CONTEXT_MIPS);
|
||||||
DumpContext::SetContextMIPS(mips);
|
DumpContext::SetContextMIPS(mips32);
|
||||||
valid_ = true;
|
valid_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,9 +330,9 @@ Microdump::Microdump(const string& contents)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
MDRawContextMIPS* mips = new MDRawContextMIPS();
|
MDRawContextMIPS* mips32 = new MDRawContextMIPS();
|
||||||
memcpy(mips, &cpu_state_raw[0], cpu_state_raw.size());
|
memcpy(mips32, &cpu_state_raw[0], cpu_state_raw.size());
|
||||||
context_->SetContextMIPS(mips);
|
context_->SetContextMIPS(mips32);
|
||||||
} else if (strcmp(arch.c_str(), kMips64Architecture) == 0) {
|
} else if (strcmp(arch.c_str(), kMips64Architecture) == 0) {
|
||||||
if (cpu_state_raw.size() != sizeof(MDRawContextMIPS)) {
|
if (cpu_state_raw.size() != sizeof(MDRawContextMIPS)) {
|
||||||
std::cerr << "Malformed CPU context. Got " << cpu_state_raw.size()
|
std::cerr << "Malformed CPU context. Got " << cpu_state_raw.size()
|
||||||
|
|
Loading…
Reference in a new issue