Add DWARF register mappings, but leave them commented out.

With them, Ghidra contains about an invalid “scope” attribute in the
PCode XML(?) for some functions. I haven’t yet found a better source for
the DWARF layout than binutils. :(
This commit is contained in:
Sebastian Schmidt
2019-06-23 12:00:32 +02:00
parent 10c070465a
commit 732995d76b
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<dwarf>
<register_mappings>
<register_mapping dwarf="0" ghidra="a0"/>
<register_mapping dwarf="1" ghidra="a1" stackpointer="true"/>
<register_mapping dwarf="2" ghidra="a2" auto_count="13"/> <!-- a2..a15 -->
</register_mappings>
</dwarf>

View File

@@ -12,5 +12,6 @@
id="Xtensa:LE:32:default">
<description>Tensilica Xtensa 32-bit little-endian</description>
<compiler name="default" spec="xtensa.cspec" id="default"/>
<!-- <external_name tool="DWARF.register.mapping.file" name="xtensa.dwarf"/> -->
</language>
</language_definitions>