[patch] ada: Fix rashes on gdbarch garbage

Jan Kratochvil jan.kratochvil@redhat.com
Mon Mar 21 15:39:00 GMT 2011


Hi Joel,

On Mon, 21 Mar 2011 15:47:16 +0100, Joel Brobecker wrote:
> To prevent any further fields from being undefined, I have also
> checked the following patch in.
> 
> gdb/ChangeLog:
> 
> 	* ada-lang.c (replace_operator_with_call): Use xzalloc instead
> 	of xmalloc.

The downside is valgrind will no longer complain like it did in the reported
case.  Still I agree it is probably better for users this way.


Thanks,
Jan



More information about the Gdb-patches mailing list