aboutsummaryrefslogtreecommitdiff
path: root/gdb/vax-tdep.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/vax-tdep.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/vax-tdep.c')
-rw-r--r--gdb/vax-tdep.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index 2104004..b378571 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -120,17 +120,17 @@ print_insn_arg (d, p, addr, info)
case 4: /* Indexed */
p = (char *) print_insn_arg (d, p, addr + 1, info);
- (*info->fprintf_func) (info->stream, "[%s]", reg_names[regnum]);
+ (*info->fprintf_func) (info->stream, "[%s]", REGISTER_NAME (regnum));
break;
case 5: /* Register */
- (*info->fprintf_func) (info->stream, reg_names[regnum]);
+ (*info->fprintf_func) (info->stream, REGISTER_NAME (regnum));
break;
case 7: /* Autodecrement */
(*info->fprintf_func) (info->stream, "-");
case 6: /* Register deferred */
- (*info->fprintf_func) (info->stream, "(%s)", reg_names[regnum]);
+ (*info->fprintf_func) (info->stream, "(%s)", REGISTER_NAME (regnum));
break;
case 9: /* Autoincrement deferred */
@@ -209,7 +209,7 @@ print_insn_arg (d, p, addr, info)
}
}
else
- (*info->fprintf_func) (info->stream, "(%s)+", reg_names[regnum]);
+ (*info->fprintf_func) (info->stream, "(%s)+", REGISTER_NAME (regnum));
break;
case 11: /* Byte displacement deferred */
@@ -221,7 +221,7 @@ print_insn_arg (d, p, addr, info)
(*info->print_address_func) (info->target, info);
}
else
- (*info->fprintf_func) (info->stream, "%d(%s)", *p, reg_names[regnum]);
+ (*info->fprintf_func) (info->stream, "%d(%s)", *p, REGISTER_NAME (regnum));
p += 1;
break;
@@ -235,7 +235,7 @@ print_insn_arg (d, p, addr, info)
}
else
(*info->fprintf_func) (info->stream, "%d(%s)",
- *(short *)p, reg_names[regnum]);
+ *(short *)p, REGISTER_NAME (regnum));
p += 2;
break;
@@ -249,7 +249,7 @@ print_insn_arg (d, p, addr, info)
}
else
(*info->fprintf_func) (info->stream, "%d(%s)",
- *(long *)p, reg_names[regnum]);
+ *(long *)p, REGISTER_NAME (regnum));
p += 4;
}