From: Ajit Kumar Agarwal <ajit.kumar.agarwal@xilinx.com>
To: Michael Eager <eager@eagerm.com>, Joel Brobecker <brobecker@adacore.com>
Cc: Michael Eager <eager@eagercon.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Vinod Kathail <vinodk@xilinx.com>,
"Vidhumouli Hunsigida" <vidhum@xilinx.com>,
Nagaraju Mekala <nmekala@xilinx.com>
Subject: RE: [Patch, microblaze]: Add slr and shr regs and little-endian breakpoint
Date: Fri, 23 May 2014 04:17:00 -0000 [thread overview]
Message-ID: <dc4693e0-80cb-46b5-8aed-9455f356d7ec@BN1BFFO11FD041.protection.gbl> (raw)
In-Reply-To: <537E53AD.2070901@eagerm.com>
-----Original Message-----
From: Michael Eager [mailto:eager@eagerm.com]
Sent: Friday, May 23, 2014 1:15 AM
To: Ajit Kumar Agarwal; Joel Brobecker
Cc: Michael Eager; gdb-patches@sourceware.org; Vinod Kathail; Vidhumouli Hunsigida; Nagaraju Mekala
Subject: Re: [Patch, microblaze]: Add slr and shr regs and little-endian breakpoint
On 05/22/14 10:58, Ajit Kumar Agarwal wrote:
> Thanks Joel for the review comments. Will make sure to consider your suggestions
> when Submitting the new patches.
Please don't top post. Please trim your responses so they don't contain multiple copies of the same text.
> Based on the feedback, the updated patch is given below.
>
> Okay for the upstream?
An OK would only be appropriate if you had write access to the repository.
> [Patch, microblaze]: Add slr and shr regs
>
> This patch add the support of slr and shr regs and also solves
> the problem
also? Is there another unmentioned problem?
> related to process_g_packet where the buf_len > 2 * rsa->sizeof_g_packet
> and throwing the Error that 'g' packet message reply is too long. This is
> because the buf_len calculated in the init_remote_state function for
> microblaze target is based On the sizeof_g_packet and remote_packet_size
> and the memory_packet_config->size. The sizeof_g_packet is 236 because the
> number of reg num is 59 and 2* sizeof_g_packet comes to 472 .With shr and
> shl entry and the buf_len is 472. This does not match the greater than
> conditional statement and works fine. Without shr and shl entry,the
> sizeof_g_packets comes to 57*4 *2 = 456. This doesn't match the criteria
> in the process_g_packet function leading to throwing of error message as
> " 'g' packet message reply is too long".
>>Please make the description of the problem reasonably succinct. A detailed analysis of how you identified the problem is not needed, especially when you mention the error message >>and the cause of the error multiple times.
I have addressed the Joel comments and incorporated his suggestions.
What is running on the target?
>>If this a problem using the XMD gdbserver stub which is returning more registers than GDB expects?
This is not XMD gdbserver stub but related to number of registers we define microblaze-tdep.c.
>> If that is the case, then say so. Otherwise, what is the cause of the mismatch >>between the gdb G packet and the target?
I have already replied the cause of the error and let me know if you need additional info.
Thanks & Regards
Ajit
>
> ChangeLog:
> 2014-05-20 Ajit Agarwal <ajitkum@xilinx.com>
>
> * gdb/gdbserver/Makefile.in (microblaze-linux.c): New rule.
>
> * gdb/microblaze-tdep.c (microblaze_register_names): Added
> the rshr and rslr register names.
>
> * gdb/microblaze-tdep.h (microblaze_reg_num): Addition of
> field MICROBLAZE_SLR_REGNUM and MICROBLAZE_SHR_REGNUM.
> (microblaze_frame_cache): Change in the index of
> register_offsets.
>
> * gdb/regformats/reg-microblaze.dat: New Register data file.
>
> Signed-off-by:Ajit Agarwal ajitkum@xilinx.com
>
> Thanks & Regards
> Ajit
>
> -----Original Message-----
> From: Joel Brobecker [mailto:brobecker@adacore.com]
> Sent: Wednesday, May 21, 2014 7:16 PM
> To: Ajit Kumar Agarwal
> Cc: Michael Eager; Michael Eager; gdb-patches@sourceware.org; Vinod
> Kathail; Vidhumouli Hunsigida; Nagaraju Mekala
> Subject: Re: [Patch, microblaze]: Add slr and shr regs and
> little-endian breakpoint
>
>> Here is the problem description. The problem is related to
>> process_g_packet where the buf_len > 2 * rsa->sizeof_g_packet and
>> throwing the Error that 'g' packet message reply is too long. This is
>> because the buf_len calculated in the init_remote_state function for
>> microblaze target is based On the sizeof_g_packet and
>> remote_packet_size and the memory_packet_config->size. The
>> sizeof_g_packet is 236 because the number of reg num is 59 and 2*
>> sizeof_g_packet comes to 472 .With shr and shl entry and the buf_len
>> is 472. This does not match the greater than conditional statement
>> and works fine. Without shr and shl entry,the sizeof_g_packets comes
>> to
>> 57*4 *2 = 456. This doesn't match the criteria in the
>> process_g_packet function leading to throwing of error message as "
>> 'g' packet message reply is too long".
>>
>> This is happening when tar remote machine:1234 command is run in gdb.
>>
>>>>> These changes don't appear related. Split independent changes in
>>>>> to separate patches.
>>
>> I will split the changes and send the separate patch with shr and
>> shl reg changes and the little endian breakpoint support.
>
> Thanks, Ajit. FWIW, I agree with Michael.
>
> Also, when submitting the new patches, please include the description of the problem you are trying to solve in the revision log of your patch. Something like the description you gave above, for instance.
> This makes archeology a lot easier for us. The good news when doing that is that submitting the patch could be as simple as "git send-email"-ing the patch; that's what I personally do for my own patches, and it's been a real time saver.
>
> --
> Joel
>
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
next prev parent reply other threads:[~2014-05-23 4:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 16:25 Ajit Kumar Agarwal
2014-05-20 21:14 ` Michael Eager
2014-05-21 6:20 ` Ajit Kumar Agarwal
2014-05-21 7:47 ` Michael Eager
2014-05-21 12:55 ` Ajit Kumar Agarwal
2014-05-21 13:45 ` Joel Brobecker
2014-05-22 17:58 ` Ajit Kumar Agarwal
2014-05-22 19:44 ` Michael Eager
2014-05-23 4:17 ` Ajit Kumar Agarwal [this message]
2014-05-23 5:57 ` Eli Zaretskii
2014-05-23 7:21 ` Michael Eager
2014-05-23 7:35 ` Eli Zaretskii
2014-05-21 13:41 ` Ajit Kumar Agarwal
2014-05-21 14:06 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dc4693e0-80cb-46b5-8aed-9455f356d7ec@BN1BFFO11FD041.protection.gbl \
--to=ajit.kumar.agarwal@xilinx.com \
--cc=brobecker@adacore.com \
--cc=eager@eagercon.com \
--cc=eager@eagerm.com \
--cc=gdb-patches@sourceware.org \
--cc=nmekala@xilinx.com \
--cc=vidhum@xilinx.com \
--cc=vinodk@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox