aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386gnu-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-12-10 23:07:24 +0000
committerAndrew Cagney <cagney@redhat.com>1998-12-10 23:07:24 +0000
commitd70a61e74c649e3b3d64b821f5f5415e45febaf4 (patch)
treeb07faa38ea128606f29277767e5bc616ad727b10 /gdb/i386gnu-nat.c
parent986b3b988a0d2418ced8f7d75158624673481b83 (diff)
downloadgdb-d70a61e74c649e3b3d64b821f5f5415e45febaf4.zip
gdb-d70a61e74c649e3b3d64b821f5f5415e45febaf4.tar.gz
gdb-d70a61e74c649e3b3d64b821f5f5415e45febaf4.tar.bz2
CARP:
More replace reg_name[] with REGISTER_NAME().
Diffstat (limited to 'gdb/i386gnu-nat.c')
-rw-r--r--gdb/i386gnu-nat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/i386gnu-nat.c b/gdb/i386gnu-nat.c
index 74a1c73..6ed92c1 100644
--- a/gdb/i386gnu-nat.c
+++ b/gdb/i386gnu-nat.c
@@ -95,10 +95,10 @@ gnu_fetch_registers (int reg)
if (! state)
warning ("Couldn't fetch register %s from %s (invalid thread).",
- reg_names[reg], proc_string (thread));
+ REGISTER_NAME (reg), proc_string (thread));
else if (reg >= 0)
{
- proc_debug (thread, "fetching register: %s", reg_names[reg]);
+ proc_debug (thread, "fetching register: %s", REGISTER_NAME (reg));
supply_register (reg, REG_ADDR(state, reg));
thread->fetched_regs |= (1 << reg);
}
@@ -132,7 +132,7 @@ gnu_store_registers (reg)
if (! thread)
error ("store inferior registers: %d: Invalid thread", inferior_pid);
- proc_debug (thread, "storing register %s.", reg_names[reg]);
+ proc_debug (thread, "storing register %s.", REGISTER_NAME (reg));
was_aborted = thread->aborted;
was_valid = thread->state_valid;
@@ -143,7 +143,7 @@ gnu_store_registers (reg)
if (! state)
warning ("Couldn't store register %s from %s (invalid thread).",
- reg_names[reg], proc_string (thread));
+ REGISTER_NAME (reg), proc_string (thread));
else
{
if (! was_aborted && was_valid)
@@ -158,7 +158,7 @@ gnu_store_registers (reg)
/* Register CHECK_REG has changed! Ack! */
{
warning ("Register %s changed after thread was aborted.",
- reg_names [check_reg]);
+ REGISTER_NAME (check_reg));
if (reg >= 0 && reg != check_reg)
/* Update gdb's copy of the register. */
supply_register (check_reg, REG_ADDR (state, check_reg));
@@ -169,7 +169,7 @@ gnu_store_registers (reg)
if (reg >= 0)
{
- proc_debug (thread, "storing register: %s", reg_names[reg]);
+ proc_debug (thread, "storing register: %s", REGISTER_NAME (reg));
STORE_REGS (state, reg, 1);
}
else