summaryrefslogtreecommitdiffstats
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-06-02 18:17:05 +0000
committerJim Blandy <jimb@codesourcery.com>2004-06-02 18:17:05 +0000
commitbc97b3ba79f2ca091064cc3e1c39926bedaaeb08 (patch)
treea3eab8d5576187ff81b166fcb2617f5f26a6a146 /gdb/ppc-linux-nat.c
parent4c4b4cd2ff2ce4cbb0f416634216d7245946e3e7 (diff)
downloadppe42-binutils-bc97b3ba79f2ca091064cc3e1c39926bedaaeb08.tar.gz
ppe42-binutils-bc97b3ba79f2ca091064cc3e1c39926bedaaeb08.zip
* ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
to 'message', and make it local to the lone block that uses it.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 123ce91f45..0d9fbc2845 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -209,7 +209,6 @@ 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];
@@ -253,9 +252,10 @@ fetch_register (int tid, int regno)
regaddr += sizeof (PTRACE_XFER_TYPE);
if (errno != 0)
{
- sprintf (mess, "reading register %s (#%d)",
+ char message[128];
+ sprintf (message, "reading register %s (#%d)",
REGISTER_NAME (regno), regno);
- perror_with_name (mess);
+ perror_with_name (message);
}
}
@@ -406,7 +406,6 @@ store_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];
@@ -457,9 +456,10 @@ store_register (int tid, int regno)
if (errno != 0)
{
- sprintf (mess, "writing register %s (#%d)",
+ char message[128];
+ sprintf (message, "writing register %s (#%d)",
REGISTER_NAME (regno), regno);
- perror_with_name (mess);
+ perror_with_name (message);
}
}
}
OpenPOWER on IntegriCloud