This is the mail archive of the gdb-patches@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]

RE: [Patch, microblaze]: Add slr and shr regs


Sorry for the late response as I was on Vacation. Please find my response inlined below.



-----Original Message-----
From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Pedro Alves
Sent: Tuesday, May 27, 2014 2:24 PM
To: Ajit Kumar Agarwal; Michael Eager; gdb-patches@sourceware.org; Yao Qi
Cc: Joel Brobecker; Vinod Kathail; Vidhumouli Hunsigida; Nagaraju Mekala
Subject: Re: [Patch, microblaze]: Add slr and shr regs

On 05/27/2014 08:46 AM, Ajit Kumar Agarwal wrote:

> Update the problem description and here it is.
> 
>     [Patch, microblaze]: Add slr and shr regs
>     
>        Prior to version 2013.1, XMD's gdbserver stub returned 57 registers in
>        response to GDB's G request.  Starting with version 2013.1, XMD added the
>        slr and shr register, for a count of 59 registers.  This patch adds
>        these registers to the expected G response.
> 
>>> What targets have you built and tested?
> 
> Microblaze target has been built and tested.

>>Did you test new GDB against old stub?

>>I've looked at the microblaze reference guide, and saw that these registers are optional.  What happens if you debug a system where C_USE_STACK_PROTECTION was set to 0?  Do we >>still show these registers to the user?

SLR/SHR was added in MicroBlaze v8.10.a, EDK 13.1.  XMD's gdbserver stub releasesed before this design throws an error mentioning gdb is not supported  for the version below v8.10.a, EDK 13.1.

The slr(stack low register) and shr(stack high registers) are implemented based on C_USE_STACK_PROTECTION is set 0/1. Microblaze being the reconfigurable architecture the design can be selected with and without these registers. Its hard to identify in gdb whether these registers is being implemented for the design or not. In XMD where the gdb client connects to the local host we always display the shr and shl registers irrespective of  C_USE_STACK_PROTECTION is set or not. In the case where the design is not implemented with these register we always display the content to be 0 or ? to the user.  gdb will also display these registers when the C_USE_STACK_PROTECTION is set 0/1. 


--
Pedro Alves


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