]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdbtypes.c (replace_type): Fix typo that caused us to not update
authorJoel Brobecker <brobecker@gnat.com>
Wed, 28 Feb 2007 19:42:08 +0000 (19:42 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 28 Feb 2007 19:42:08 +0000 (19:42 +0000)
        length of the types referenced by the new type CV ring.

gdb/ChangeLog
gdb/gdbtypes.c

index 250bc494b822b459044cf47f9f4407be37670fb8..53a2881473ecaac9191b998b1bf0e13f2cda77d3 100644 (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
index 30b53623e99d2118a68dfe84cf15e9e90d32e139..f21555845142c27eda6220d43cad2714e220834d 100644 (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);