mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-14 15:50:34 +00:00
* gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
obstack.
This commit is contained in:
parent
e6a1410132
commit
d87ecdfba2
@ -1,3 +1,8 @@
|
||||
2008-08-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
|
||||
obstack.
|
||||
|
||||
2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
|
||||
|
@ -2928,7 +2928,7 @@ copy_type_recursive (struct objfile *objfile,
|
||||
|
||||
/* We must add the new type to the hash table immediately, in case
|
||||
we encounter this type again during a recursive call below. */
|
||||
stored = xmalloc (sizeof (struct type_pair));
|
||||
stored = obstack_alloc (&objfile->objfile_obstack, sizeof (struct type_pair));
|
||||
stored->old = type;
|
||||
stored->new = new_type;
|
||||
*slot = stored;
|
||||
|
Loading…
Reference in New Issue
Block a user