Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] avr: fix io reg read command.
@ 2003-03-05  0:25 Theodore A. Roth
  2003-03-05  3:07 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Theodore A. Roth @ 2003-03-05  0:25 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: TEXT/PLAIN, Size: 345 bytes --]

I've committed this patch.

Is there going to be another gdb-5.3.x release? If so, I'd like to
commit this to the branch.

Ted Roth

2003-03-04  Theodore A. Roth  <troth@openavr.org>

    * gdb/avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
    number of io registers reported by remote target is not a multiple of
    step.


[-- Attachment #2: Type: TEXT/PLAIN, Size: 933 bytes --]

2003-03-04  Theodore A. Roth  <troth@openavr.org>

	* gdb/avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
	number of io registers reported by remote target is not a multiple of
	step.

Index: gdb/avr-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/avr-tdep.c,v
retrieving revision 1.25
diff -u -r1.25 avr-tdep.c
--- gdb/avr-tdep.c	27 Feb 2003 17:48:46 -0000	1.25
+++ gdb/avr-tdep.c	4 Mar 2003 20:48:51 -0000
@@ -1278,7 +1278,10 @@
 
   for (i = 0; i < nreg; i += step)
     {
-      j = step - (nreg % step);	/* how many registers this round? */
+      /* how many registers this round? */
+      j = step;
+      if ( (i+j) >= nreg)
+        j = nreg - i;           /* last block is less than 8 registers */
 
       snprintf (query, sizeof (query) - 1, "avr.io_reg:%x,%x", i, j);
       target_query ((int) 'R', query, buf, &bufsiz);

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

* Re: [commit] avr: fix io reg read command.
  2003-03-05  0:25 [commit] avr: fix io reg read command Theodore A. Roth
@ 2003-03-05  3:07 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-03-05  3:07 UTC (permalink / raw)
  To: Theodore A. Roth; +Cc: gdb-patches

> I've committed this patch.
> 
> Is there going to be another gdb-5.3.x release? If so, I'd like to
> commit this to the branch.

You're free to commit it to the branch (but it is very unlikely that 
there will be another release from the 5.3.x branch).

Andrew

> 2003-03-04  Theodore A. Roth  <troth@openavr.org>
> 
>     * gdb/avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
>     number of io registers reported by remote target is not a multiple of
>     step.
> 



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

end of thread, other threads:[~2003-03-05  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-05  0:25 [commit] avr: fix io reg read command Theodore A. Roth
2003-03-05  3:07 ` Andrew Cagney

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