Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Eager <eager@eagercon.com>
Cc: ajit.kumar.agarwal@xilinx.com, brobecker@adacore.com,
	gdb-patches@sourceware.org, vinodk@xilinx.com, vidhum@xilinx.com,
	nmekala@xilinx.com
Subject: Re: [Patch, microblaze]: Add slr and shr regs and little-endian breakpoint
Date: Fri, 23 May 2014 07:35:00 -0000	[thread overview]
Message-ID: <83oaypkkvk.fsf@gnu.org> (raw)
In-Reply-To: <537EF6EF.5060901@eagercon.com>

> Date: Fri, 23 May 2014 00:21:19 -0700
> From: Michael Eager <eager@eagercon.com>
> CC: ajit.kumar.agarwal@xilinx.com, brobecker@adacore.com, 
>  gdb-patches@sourceware.org, vinodk@xilinx.com, vidhum@xilinx.com, 
>  nmekala@xilinx.com
> 
> >>>       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 see no reason to object to detailed descriptions like the one above
> > from the POV of their length.  They don't hurt, and aren't terribly
> > long to begin with.
> 
> Eli -- The problem  with this description is that it doesn't describe
> the actual problem, but more describes the debugging process.  Describing
> the if statement which tests the packet length doesn't tell what caused
> it to be incorrect.

The numbers don't match, so that inequality seems to be fragile.
That's my understanding.

> > If you want to suggest a rewording, it is much better IME to just show
> > precisely your suggestion.  After all, for most of us here (present
> > parties included) English is not our first language, maybe not even
> > the second.
> 
> I'm happy to suggest better wording, but at the moment I have no more
> than a guess what the root cause of the problem is.  Ajit says my guess is
> wrong, and he didn't respond to my questions about what is running on
> the target which does cause the packet length mismatch.

Well, perhaps no Ajit understand better what we didn't understand in
his original description, and will hopefully follow up.


  reply	other threads:[~2014-05-23  7:35 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
2014-05-23  5:57               ` Eli Zaretskii
2014-05-23  7:21                 ` Michael Eager
2014-05-23  7:35                   ` Eli Zaretskii [this message]
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=83oaypkkvk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=ajit.kumar.agarwal@xilinx.com \
    --cc=brobecker@adacore.com \
    --cc=eager@eagercon.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