diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2003-03-02 10:23:09 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2003-03-02 10:23:09 +0000 |
commit | 9f556f0ce1872034b4c36e80c15e8cd4d6610568 (patch) | |
tree | 174057048a4db285da4f19d033dc27de28797ef0 | |
parent | 23f792f935498efbf30a5ca03e90a7cb77fc9d74 (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arch-utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d82575c2605..09755387207 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-03-02 Stephane Carrez <stcarrez@nerim.fr> + + * 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. + 2003-03-01 Andrew Cagney <cagney@redhat.com> * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename 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; } |