[m68k] Correct dwarf register numbering
Nathan Sidwell
nathan@codesourcery.com
Mon Jun 5 15:16:00 GMT 2006
The m68k port was using a one-to-one mapping between dwarf register numbers and
gdb register numbers. That's incorrect as the floating point registers have
dwarf numbers 16..23 but gdb register numbers 18..25. Furthermore, GCC
indicates the return column is register 25, which maps onto the last fp register.
This patch adds a mapping function. ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf-reg.patch
Type: text/x-patch
Size: 2311 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060605/186cf532/attachment.bin>
More information about the Gdb-patches
mailing list