diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-12-10 23:07:24 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-12-10 23:07:24 +0000 |
commit | d70a61e74c649e3b3d64b821f5f5415e45febaf4 (patch) | |
tree | b07faa38ea128606f29277767e5bc616ad727b10 /gdb/gdbtk-cmds.c | |
parent | 986b3b988a0d2418ced8f7d75158624673481b83 (diff) | |
download | binutils-d70a61e74c649e3b3d64b821f5f5415e45febaf4.zip binutils-d70a61e74c649e3b3d64b821f5f5415e45febaf4.tar.gz binutils-d70a61e74c649e3b3d64b821f5f5415e45febaf4.tar.bz2 |
CARP:
More replace reg_name[] with REGISTER_NAME().
Diffstat (limited to 'gdb/gdbtk-cmds.c')
-rw-r--r-- | gdb/gdbtk-cmds.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/gdbtk-cmds.c b/gdb/gdbtk-cmds.c index 52f25c2..7001d06 100644 --- a/gdb/gdbtk-cmds.c +++ b/gdb/gdbtk-cmds.c @@ -1535,17 +1535,17 @@ map_arg_registers (objc, objv, func, argp) int regnum; /* Note that the test for a valid register must include checking the - reg_names array because NUM_REGS may be allocated for the union of the - register sets within a family of related processors. In this case, the - trailing entries of reg_names will change depending upon the particular - processor being debugged. */ + REGISTER_NAME because NUM_REGS may be allocated for the union of + the register sets within a family of related processors. In this + case, some entries of REGISTER_NAME will change depending upon + the particular processor being debugged. */ if (objc == 0) /* No args, just do all the regs */ { for (regnum = 0; regnum < NUM_REGS - && reg_names[regnum] != NULL - && *reg_names[regnum] != '\000'; + && REGISTER_NAME (regnum) != NULL + && *REGISTER_NAME (regnum) != '\000'; regnum++) func (regnum, argp); @@ -1563,8 +1563,8 @@ map_arg_registers (objc, objv, func, argp) if (regnum >= 0 && regnum < NUM_REGS - && reg_names[regnum] != NULL - && *reg_names[regnum] != '\000') + && REGISTER_NAME (regnum) != NULL + && *REGISTER_NAME (regnum) != '\000') func (regnum, argp); else { @@ -1598,7 +1598,7 @@ get_register_name (regnum, argp) void *argp; /* Ignored */ { Tcl_ListObjAppendElement (NULL, result_ptr->obj_ptr, - Tcl_NewStringObj (reg_names[regnum], -1)); + Tcl_NewStringObj (REGISTER_NAME (regnum), -1)); } /* This implements the tcl command gdb_fetch_registers |