OSDN Git Service

Temporarily omit MIPS floating point registers in DWARF.
authorDavid Srbecky <dsrbecky@google.com>
Fri, 27 Nov 2015 13:31:16 +0000 (13:31 +0000)
committerDavid Srbecky <dsrbecky@google.com>
Fri, 27 Nov 2015 13:31:16 +0000 (13:31 +0000)
I am struggling to find authoritative source for the mapping,
so disable them in the meantime so they do not break tests.

Change-Id: I37340179f5d2fe91f318b64ddf64a725ce96ab76

compiler/elf_writer_debug.cc

index ee557fc..81f574f 100644 (file)
@@ -495,6 +495,10 @@ class DebugInfoWriter {
               pos = WriteOpReg(pos, Reg::ArmDp(value / 2).num());
               break;
             }
+            if (isa == kMips || isa == kMips64) {
+              // TODO: Find what the DWARF floating point register numbers are on MIPS.
+              break;
+            }
             pos = WriteOpReg(pos, GetDwarfFpReg(isa, value).num());
             if (piece == 0 && reg_hi.GetKind() == Kind::kInFpuRegisterHigh &&
                 reg_hi.GetValue() == reg_lo.GetValue()) {