From: jimb Date: Fri, 21 May 2004 23:30:47 +0000 (+0000) Subject: * ppc-linux-nat.c (fetch_register): Move code back to be next X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b7cd879dbb843379f04a9a287532baf022d91ef1;p=pf3gnuchains%2Fsourceware.git * 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.) --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 554363fd2a..839d427347 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-05-21 Jim Blandy + * 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. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index efd686544d..123ce91f45 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -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)) {