GNU Binutils with patches for OS216
Revision | eed8b28a07c32f835dfb4ff21fb9c0bf33c738df (tree) |
---|---|
Zeit | 2015-09-03 09:50:46 |
Autor | Patrick Palka <patrick@parc...> |
Commiter | Patrick Palka |
Update documentation of function copy_type_recursive
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.
@@ -1,3 +1,7 @@ | ||
1 | +2015-09-02 Patrick Palka <patrick@parcs.ath.cx> | |
2 | + | |
3 | + * gdbtypes.c (copy_type_recursive): Update documentation. | |
4 | + | |
1 | 5 | 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
2 | 6 | |
3 | 7 | * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc' |
@@ -4356,9 +4356,9 @@ copy_dynamic_prop_list (struct obstack *objfile_obstack, | ||
4356 | 4356 | } |
4357 | 4357 | |
4358 | 4358 | /* Recursively copy (deep copy) TYPE, if it is associated with |
4359 | - OBJFILE. Return a new type allocated using malloc, a saved type if | |
4360 | - we have already visited TYPE (using COPIED_TYPES), or TYPE if it is | |
4361 | - not associated with OBJFILE. */ | |
4359 | + OBJFILE. Return a new type owned by the gdbarch associated with the type, a | |
4360 | + saved type if we have already visited TYPE (using COPIED_TYPES), or TYPE if | |
4361 | + it is not associated with OBJFILE. */ | |
4362 | 4362 | |
4363 | 4363 | struct type * |
4364 | 4364 | copy_type_recursive (struct objfile *objfile, |