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

PATCH: pass proper arguments to register_size


Committed as obvious.

2004-06-04  Jim Blandy  <jimb@redhat.com>

	* ppc-linux-nat.c (fetch_register): Don't forget to pass the
	gdbarch argument to register_size.

Index: gdb/ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.43
diff -c -p -r1.43 ppc-linux-nat.c
*** gdb/ppc-linux-nat.c	4 Jun 2004 23:07:28 -0000	1.43
--- gdb/ppc-linux-nat.c	5 Jun 2004 03:24:16 -0000
*************** fetch_register (int tid, int regno)
*** 240,246 ****
       32-bit platform, 64-bit floating-point registers will require two
       transfers.  */
    for (bytes_transferred = 0;
!        bytes_transferred < register_size (regno);
         bytes_transferred += sizeof (PTRACE_XFER_TYPE))
      {
        errno = 0;
--- 240,246 ----
       32-bit platform, 64-bit floating-point registers will require two
       transfers.  */
    for (bytes_transferred = 0;
!        bytes_transferred < register_size (current_gdbarch, regno);
         bytes_transferred += sizeof (PTRACE_XFER_TYPE))
      {
        errno = 0;


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