This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: fix crash-causing bug in copy_type_recursive
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 10 Nov 2008 13:52:44 -0700
- Subject: Re: RFA: fix crash-causing bug in copy_type_recursive
- References: <m3iqqvjrou.fsf@fleche.redhat.com> <200811102046.13626.pedro@codesourcery.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
>> + memset (TYPE_FIELDS (new_type), 0, sizeof (struct field) * nfields);
Pedro> Or xzalloc, or xcalloc, or XCALLOC even.
I would have done this, but all other initializations of this field
use xmalloc + memset. So, I opted for consistency.
Tom