[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
2 changed files with 6 additions and 6 deletions
|
@ -67,7 +67,7 @@ class MicrodumpContext : public DumpContext {
|
|||
virtual void SetContextARM(MDRawContextARM* arm);
|
||||
virtual void SetContextARM64(MDRawContextARM64* arm64);
|
||||
virtual void SetContextX86(MDRawContextX86* x86);
|
||||
virtual void SetContextMIPS(MDRawContextMIPS* mips);
|
||||
virtual void SetContextMIPS(MDRawContextMIPS* mips32);
|
||||
virtual void SetContextMIPS64(MDRawContextMIPS* mips64);
|
||||
};
|
||||
|
||||
|
|
|
@ -133,9 +133,9 @@ void MicrodumpContext::SetContextX86(MDRawContextX86* x86) {
|
|||
valid_ = true;
|
||||
}
|
||||
|
||||
void MicrodumpContext::SetContextMIPS(MDRawContextMIPS* mips) {
|
||||
void MicrodumpContext::SetContextMIPS(MDRawContextMIPS* mips32) {
|
||||
DumpContext::SetContextFlags(MD_CONTEXT_MIPS);
|
||||
DumpContext::SetContextMIPS(mips);
|
||||
DumpContext::SetContextMIPS(mips32);
|
||||
valid_ = true;
|
||||
}
|
||||
|
||||
|
@ -330,9 +330,9 @@ Microdump::Microdump(const string& contents)
|
|||
<< std::endl;
|
||||
continue;
|
||||
}
|
||||
MDRawContextMIPS* mips = new MDRawContextMIPS();
|
||||
memcpy(mips, &cpu_state_raw[0], cpu_state_raw.size());
|
||||
context_->SetContextMIPS(mips);
|
||||
MDRawContextMIPS* mips32 = new MDRawContextMIPS();
|
||||
memcpy(mips32, &cpu_state_raw[0], cpu_state_raw.size());
|
||||
context_->SetContextMIPS(mips32);
|
||||
} else if (strcmp(arch.c_str(), kMips64Architecture) == 0) {
|
||||
if (cpu_state_raw.size() != sizeof(MDRawContextMIPS)) {
|
||||
std::cerr << "Malformed CPU context. Got " << cpu_state_raw.size()
|
||||
|
|
Loading…
Reference in a new issue