diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-13 23:31:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-13 23:31:14 +0000 |
commit | a728f04251098dd0e74a2aea1e4d8e841e7fb404 (patch) | |
tree | 2708491f02c795e429a65713e51c466ddf016565 /gdb/tui | |
parent | 060d22b0d0cbc7786f83c236ed9812343530dc80 (diff) | |
download | gdb-a728f04251098dd0e74a2aea1e4d8e841e7fb404.zip gdb-a728f04251098dd0e74a2aea1e4d8e841e7fb404.tar.gz gdb-a728f04251098dd0e74a2aea1e4d8e841e7fb404.tar.bz2 |
Eliminate ARCH_NUM_REGS.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tui/tuiRegs.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index 0265da7..53623b0 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,3 +1,7 @@ +2001-03-08 Andrew Cagney <ac131313@redhat.com> + + * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS. + 2001-03-06 Kevin Buettner <kevinb@redhat.com> * tui-file.h: Update/correct copyright notice. diff --git a/gdb/tui/tuiRegs.c b/gdb/tui/tuiRegs.c index b0f55ef..b3ec49b 100644 --- a/gdb/tui/tuiRegs.c +++ b/gdb/tui/tuiRegs.c @@ -717,7 +717,7 @@ _tuiSetSpecialRegsContent (refreshValuesOnly) endRegNum = FP0_REGNUM - 1; #if 0 endRegNum = (-1); - for (i = START_SPECIAL_REGS; (i < ARCH_NUM_REGS && endRegNum < 0); i++) + for (i = START_SPECIAL_REGS; (i < NUM_REGS && endRegNum < 0); i++) if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT) endRegNum = i - 1; #endif @@ -750,7 +750,7 @@ _tuiSetGeneralAndSpecialRegsContent (refreshValuesOnly) endRegNum = FP0_REGNUM - 1; #if 0 endRegNum = (-1); - for (i = 0; (i < ARCH_NUM_REGS && endRegNum < 0); i++) + for (i = 0; (i < NUM_REGS && endRegNum < 0); i++) if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT) endRegNum = i - 1; #endif @@ -781,12 +781,12 @@ _tuiSetFloatRegsContent (dpyType, refreshValuesOnly) startRegNum = FP0_REGNUM; #if 0 startRegNum = (-1); - for (i = ARCH_NUM_REGS - 1; (i >= 0 && startRegNum < 0); i--) + for (i = NUM_REGS - 1; (i >= 0 && startRegNum < 0); i--) if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) != TYPE_CODE_FLT) startRegNum = i + 1; #endif ret = _tuiSetRegsContent (startRegNum, - ARCH_NUM_REGS - 1, + NUM_REGS - 1, selected_frame, dpyType, refreshValuesOnly); |