diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-02-28 19:42:08 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-02-28 19:42:08 +0000 |
commit | 787cbe146ccf6eb5a45fe19fab0cad0ecf46af41 (patch) | |
tree | 01843ed4272ac77399a09028e6b9a3e7a7018d0a | |
parent | c5d07591f70f3527889131bb7f6750755d97a043 (diff) | |
download | gdb-787cbe146ccf6eb5a45fe19fab0cad0ecf46af41.zip gdb-787cbe146ccf6eb5a45fe19fab0cad0ecf46af41.tar.gz gdb-787cbe146ccf6eb5a45fe19fab0cad0ecf46af41.tar.bz2 |
* gdbtypes.c (replace_type): Fix typo that caused us to not update
length of the types referenced by the new type CV ring.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 250bc49..53a2881 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-02-28 Joel Brobecker <brobecker@adacore.com> + + * gdbtypes.c (replace_type): Fix typo that caused us to not update + length of the types referenced by the new type CV ring. + 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com> * frame.c (frame_pop, frame_observer_target_changed): Call diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 30b5362..f215558 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -636,7 +636,7 @@ replace_type (struct type *ntype, struct type *type) call replace_type(). */ gdb_assert (TYPE_ADDRESS_CLASS_ALL (chain) == 0); - TYPE_LENGTH (ntype) = TYPE_LENGTH (type); + TYPE_LENGTH (chain) = TYPE_LENGTH (type); chain = TYPE_CHAIN (chain); } while (ntype != chain); |