src/gdb ChangeLog ada-lang.c

brobecke@sourceware.org brobecke@sourceware.org
Wed Dec 14 20:25:00 GMT 2011


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-12-14 20:25:00

Modified files:
	gdb            : ChangeLog ada-lang.c 

Log message:
	fix uninitialized field in ada-lang.c (struct match_data)
	
	Field found_sym in add_nonlocal_symbols's struct match_data is
	used uninitialized.  Rather than adding the initialization of
	this field (to zero), we set the entire structure to zero first,
	and then set the fields that need to be initialized to non-zero
	next.
	
	gdb/ChangeLog:
	
	* ada-lang.c (add_nonlocal_symbols): Initialize data to
	all zeros.  Remove setting of data.arg_sym to NULL.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13622&r2=1.13623
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-lang.c.diff?cvsroot=src&r1=1.323&r2=1.324



More information about the Gdb-cvs mailing list