This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/gdb ChangeLog ada-lang.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]