* ppc-linux-nat.c (fetch_register): Move code back to be next
authorJim Blandy <jimb@codesourcery.com>
Fri, 21 May 2004 23:30:48 +0000 (23:30 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 21 May 2004 23:30:48 +0000 (23:30 +0000)
to the comment that describes it.  (Moved code, instead of
comment, for symmetry with store_register.)

gdb/ChangeLog
gdb/ppc-linux-nat.c

index 554363fd2a6f21295c0431e021c302f6c462d7bc..839d42734700e2960f2087952180a08108f314d5 100644 (file)
@@ -1,5 +1,9 @@
 2004-05-21  Jim Blandy  <jimb@redhat.com>
 
+       * ppc-linux-nat.c (fetch_register): Move code back to be next
+       to the comment that describes it.  (Moved code, instead of
+       comment, for symmetry with store_register.)
+
        Allocate regset structures in the gdbarch's obstack, not using
        xmalloc.
        * regset.c (regset_alloc): Renamed from regset_xmalloc.
index efd686544d1712954f0a3637d2aa1eedbeef9fd3..123ce91f45720d216276b8e9f9c4abc1dab52016 100644 (file)
@@ -208,11 +208,11 @@ fetch_register (int tid, int regno)
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
   /* This isn't really an address.  But ptrace thinks of it as one.  */
+  CORE_ADDR regaddr = ppc_register_u_addr (regno);
   char mess[128];              /* For messages */
   int i;
   unsigned int offset;         /* Offset of registers within the u area. */
   char buf[MAX_REGISTER_SIZE];
-  CORE_ADDR regaddr = ppc_register_u_addr (regno);
 
   if (altivec_register_p (regno))
     {
This page took 0.029904 seconds and 4 git commands to generate.