This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Stabs Register Numbering Convention
- To: Mike_Sorensen at arium dot com
- Subject: Re: Stabs Register Numbering Convention
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 14 Dec 2000 15:38:44 -0800
- CC: binutils at sources dot redhat dot com
- References: <882569B5.007F16AD.00@mailhost.arium.com>
From: Mike_Sorensen@arium.com
Date: Thu, 14 Dec 2000 15:09:50 -0800
Stabs uses a number mapping to registers to indicate parameters passed in
registers. Where can I find this mapping? I assume it is in a .h file
hidden somewhere.
Is this the question you are asking: given the register number which
appears in a stabs string, to which processor register does it refer?
Precisely where to find that mapping depends upon the processor you
are using. Look in the gdb sources. for a particular processor, see
whether STAB_REG_TO_REGNUM is defined. That maps stabs register
numbers to gdb register numbers, though for most processors they are
the same. To map gdb register numbers to human readable names, look
at REGISTER_NAMES for the particular processor.
If you are asking some other question, what question are you asking?
Ian