This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question on power-core.xml, register: r1.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]