aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-21 23:30:48 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-21 23:30:48 +0000
commit0397dee1d1a9d1bc808f15b800ec49096e4e46d4 (patch)
tree93c20a3aaa9db9a9fffb90283aa3fdff1e92edb2 /gdb/ppc-linux-nat.c
parent617a4cbacf3fae7fb4eb43708b127bd19dc1623b (diff)
downloadfsf-binutils-gdb-0397dee1d1a9d1bc808f15b800ec49096e4e46d4.zip
fsf-binutils-gdb-0397dee1d1a9d1bc808f15b800ec49096e4e46d4.tar.gz
fsf-binutils-gdb-0397dee1d1a9d1bc808f15b800ec49096e4e46d4.tar.bz2
* 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.)
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index efd6865..123ce91 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))
{