[Dwarf-discuss] DWARF register numbers on MIPS

2023-08-16 Thread Seva Alekseyev via Dwarf-discuss
What is the canonical mapping between DWARF register numbers and MIPS32 
CPU registers, please? The first 32 ones are the general purpose 
registers, but what about beyond that (e. g. lo/hi)?


A link to an authoritative document would be most welcome. DWARF proper 
doesn't document this kind of thing, it's usually a part of the ABI, but 
the ABI handbook doesn't seem to mention DWARF.
-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss


Re: [Dwarf-discuss] DWARF register numbers on MIPS

2023-08-16 Thread John DelSignore via Dwarf-discuss
If you can’t find it in an ABI document… You might want to look at the GDB 
sources, which usually contains the code to handle various targets, probably in 
a file named “gdb/mips*tdep.h”.

Cheers, John D.

From: Dwarf-discuss 
 On Behalf 
Of Seva Alekseyev via Dwarf-discuss
Sent: Wednesday, August 16, 2023 11:23 AM
To: dwarf-discuss@lists.dwarfstd.org
Subject: [Dwarf-discuss] DWARF register numbers on MIPS


What is the canonical mapping between DWARF register numbers and MIPS32 CPU 
registers, please? The first 32 ones are the general purpose registers, but 
what about beyond that (e. g. lo/hi)?

A link to an authoritative document would be most welcome. DWARF proper doesn't 
document this kind of thing, it's usually a part of the ABI, but the ABI 
handbook doesn't seem to mention DWARF.

CAUTION: This email originated from outside of the organization. Do not click 
on links or open attachments unless you recognize the sender and know the 
content is safe.



This e-mail may contain information that is privileged or confidential. If you 
are not the intended recipient, please delete the e-mail and any attachments 
and notify us immediately.

-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss


Re: [Dwarf-discuss] DWARF register numbers on MIPS

2023-08-16 Thread Seva Alekseyev via Dwarf-discuss
Thanks, better than nothing. Can't be complete though - it only has 
space for 35 FP registers, while there is a flavor of MIPS out there 
with 64.




On 8/16/2023 11:37 AM, John DelSignore wrote:


If you can’t find it in an ABI document… You might want to look at the 
GDB sources, which usually contains the code to handle various 
targets, probably in a file named “gdb/mips*tdep.h”.


Cheers, John D.

*From:* Dwarf-discuss 
*On 
Behalf Of *Seva Alekseyev via Dwarf-discuss

*Sent:* Wednesday, August 16, 2023 11:23 AM
*To:* dwarf-discuss@lists.dwarfstd.org
*Subject:* [Dwarf-discuss] DWARF register numbers on MIPS

What is the canonical mapping between DWARF register numbers and 
MIPS32 CPU registers, please? The first 32 ones are the general 
purpose registers, but what about beyond that (e. g. lo/hi)?


A link to an authoritative document would be most welcome. DWARF 
proper doesn't document this kind of thing, it's usually a part of the 
ABI, but the ABI handbook doesn't seem to mention DWARF.


*CAUTION:*This email originated from outside of the organization. Do 
not click on links or open attachments unless you recognize the sender 
and know the content is safe.



This e-mail may contain information that is privileged or 
confidential. If you are not the intended recipient, please delete the 
e-mail and any attachments and notify us immediately.


-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss