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 xml-support.c xml-support.h


CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2013-05-30 17:41:39

Modified files:
	gdb            : ChangeLog xml-support.c xml-support.h 

Log message:
	fix up xml-support.c
	
	xml-support.c has a function that returns a cleanup via an out parameter.
	
	This changes this function to be a normal cleanup constructor --
	returning the cleanup directly and returning the other result via an
	out parameter.
	
	This is sort of a hack, but it lets the checker work here.
	
	I also noticed that gdb_xml_create_parser_and_cleanup does not need to
	be exported any more.
	
	* xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
	gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
	'old_chain' argument.  Add 'parser_result' argument.
	(gdb_xml_create_parser_and_cleanup): Remove old version.
	(gdb_xml_parse_quick): Update.
	(xml_process_xincludes): Update.
	* xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
	declare.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15673&r2=1.15674
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/xml-support.c.diff?cvsroot=src&r1=1.28&r2=1.29
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/xml-support.h.diff?cvsroot=src&r1=1.22&r2=1.23


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