Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Question on power-core.xml, register: r1.
@ 2008-05-09 23:41 Anmol P. Paralkar
  2008-05-11 21:30 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Anmol P. Paralkar @ 2008-05-09 23:41 UTC (permalink / raw)
  To: gdb

Hello,

  Per Appendix F, Sec. F.3 Predefined Target Types, of the GDB User Manual:

  code_ptr
  data_ptr
     Pointers to unspecified code and data. The program counter and any
  dedicated return address register may be marked as code pointers; printing
  a code pointer converts it into a symbolic address. The stack pointer and
  any dedicated address registers may be marked as data pointers.

  I note the use of the term: "may"; while power-core.xml marks 'pc' and 'lr'
  as type="code_ptr", it does not mark 'r1', the stack-pointer as
  type="data_ptr". Is there a specific reason why this is so? It's type="uint32";
  marking 'pc' & 'lr' as type="code_ptr" has the advantage of converting their
  values into symbollic address, what would happen (and is not) were 'r1' to be
  marked type="data_ptr"?

Thanks,
Anmol.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question on power-core.xml, register: r1.
  2008-05-09 23:41 Question on power-core.xml, register: r1 Anmol P. Paralkar
@ 2008-05-11 21:30 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-05-11 21:30 UTC (permalink / raw)
  To: Anmol P. Paralkar; +Cc: gdb

On Fri, May 09, 2008 at 06:40:42PM -0500, Anmol P. Paralkar wrote:
>  I note the use of the term: "may"; while power-core.xml marks 'pc' and 'lr'
>  as type="code_ptr", it does not mark 'r1', the stack-pointer as
>  type="data_ptr". Is there a specific reason why this is so?

No, there is no particular reason.  Marking code_ptr is a user visible
improvement but marking data_ptr does not make much difference.  In
some places the register will be displayed as hex once you change it
to be a pointer.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-11 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-09 23:41 Question on power-core.xml, register: r1 Anmol P. Paralkar
2008-05-11 21:30 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox