summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2003-03-02 10:23:09 +0000
committerStephane Carrez <stcarrez@nerim.fr>2003-03-02 10:23:09 +0000
commit9f556f0ce1872034b4c36e80c15e8cd4d6610568 (patch)
tree174057048a4db285da4f19d033dc27de28797ef0 /gdb/arch-utils.c
parent23f792f935498efbf30a5ca03e90a7cb77fc9d74 (diff)
downloadgdb-9f556f0ce1872034b4c36e80c15e8cd4d6610568.tar.gz
* arch-utils.c (generic_register_byte): Fix to use the loop index
and not regnum when summing the size of all registers up to regnum.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index d1d49fd68d6..1016ba104a5 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -460,7 +460,7 @@ generic_register_byte (int regnum)
byte = 0;
for (i = 0; i < regnum; i++)
{
- byte += generic_register_size (regnum);
+ byte += generic_register_size (i);
}
return byte;
}