* gdbtypes.c (replace_type): Fix typo that caused us to not update

length of the types referenced by the new type CV ring.
This commit is contained in:
Joel Brobecker 2007-02-28 19:42:08 +00:00
parent c5d07591f7
commit 787cbe146c
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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);