mirror of
https://github.com/yath/ghidra-xtensa.git
synced 2025-08-01 18:04:29 +02:00
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:
7
data/languages/xtensa.dwarf
Normal file
7
data/languages/xtensa.dwarf
Normal 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>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user