Update documentation of function copy_type_recursive
authorPatrick Palka <patrick@parcs.ath.cx>
Sat, 29 Aug 2015 22:16:40 +0000 (18:16 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Thu, 3 Sep 2015 00:50:46 +0000 (20:50 -0400)
Following commit 8f57eec2fb3 ("Use gdbarch obstack to allocate types in
alloc_type_arch") it is no longer the case that the type returned by
copy_type_recursive is allocated using malloc.  Because the function
uses alloc_type_arch internally, the new type is now allocated on the
gdbarch associated with the type, and is thus owned by that gdbarch.

gdb/ChangeLog:

* gdbtypes.c (copy_type_recursive): Update documentation.

gdb/ChangeLog
gdb/gdbtypes.c

index b0544387e87dbe327fb729e141d842b7f21163f3..11997e6c1b26738cad3c53f0311b89bdee9c9be0 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * gdbtypes.c (copy_type_recursive): Update documentation.
+
 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
index 8204d39d18504a0a81c0349509ea7836605295b4..7a18bed04f332c218aa7b686ce6d27b8d261d89c 100644 (file)
@@ -4356,9 +4356,9 @@ copy_dynamic_prop_list (struct obstack *objfile_obstack,
 }
 
 /* Recursively copy (deep copy) TYPE, if it is associated with
-   OBJFILE.  Return a new type allocated using malloc, a saved type if
-   we have already visited TYPE (using COPIED_TYPES), or TYPE if it is
-   not associated with OBJFILE.  */
+   OBJFILE.  Return a new type owned by the gdbarch associated with the type, a
+   saved type if we have already visited TYPE (using COPIED_TYPES), or TYPE if
+   it is not associated with OBJFILE.  */
 
 struct type *
 copy_type_recursive (struct objfile *objfile, 
This page took 0.031922 seconds and 4 git commands to generate.