Revision d2c75345 gdb-xml/power-core.xml

b/gdb-xml/power-core.xml
46 46
  <reg name="lr" bitsize="32" type="code_ptr"/>
47 47
  <reg name="ctr" bitsize="32" type="uint32"/>
48 48
  <reg name="xer" bitsize="32" type="uint32"/>
49
  <!-- HACK: The way the QEMU GDB stub code is currently written requires
50
       the "integer" registers from the XML file to span the entirety of
51
       NUM_CORE_REGS that non-XML-aware GDB requires.  Otherwise, XML-aware
52
       GDB thinks that "coprocessor" registers from XML, such as the
53
       floating-point registers, have register numbers less than
54
       NUM_CORE_REGS.  This can lead to problems.  Work around it by using
55
       an unnamed register as padding; NUM_CORE_REGS on Power is 71 and
56
       this register is 70.  It would be fpscr for non-XML-aware GDB.  -->
57
  <reg name="" bitsize="32" type="uint32"/>
49 58
</feature>

Also available in: Unified diff