* gdbtypes.c (copy_type_recursive): Clear new fields.
This commit is contained in:
parent
b03a6ea40e
commit
de8ee0e21e
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-11-10 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* gdbtypes.c (copy_type_recursive): Clear new fields.
|
||||
|
||||
2008-11-10 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* cli/cli-cmds.c (source_script): Clean up full_pathname. Run
|
||||
|
|
|
@ -2977,6 +2977,7 @@ copy_type_recursive (struct objfile *objfile,
|
|||
|
||||
nfields = TYPE_NFIELDS (type);
|
||||
TYPE_FIELDS (new_type) = xmalloc (sizeof (struct field) * nfields);
|
||||
memset (TYPE_FIELDS (new_type), 0, sizeof (struct field) * nfields);
|
||||
for (i = 0; i < nfields; i++)
|
||||
{
|
||||
TYPE_FIELD_ARTIFICIAL (new_type, i) =
|
||||
|
|
Loading…
Reference in a new issue