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 c-valprint.c valprint.c test ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	kseitz@sourceware.org	2012-11-10 20:19:01

Modified files:
	gdb            : ChangeLog c-valprint.c valprint.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.base: printcmds.c printcmds.exp wchar.c 
	                        wchar.exp 

Log message:
	PR gdb/14288
	* c-valprint.c (c_val_print): For character arrays
	with "print null" option on, print ellipses if
	the output is truncated and the next character is not \000.
	* valprint.c (MAX_WCHARS): Define.
	(WCHAR_BUFLEN): Likewise.
	(WCHAR_BUFLEN_MAX): Likewise.
	(struct converted_character): New structure.
	(count_next_character): New function.
	(print_converted_chars_to_obstack): New function.
	(generic_printstr): Rewrite using count_next_character
	and print_converted_chars_to_obstack.
	
	* gdb.base/printcmds.c: Add invalid_XXX globals
	for repeated byte tests.
	* gdb.base/printcmds.exp (test_repeat_bytes): New procedure.
	* gdb.base/wchar.c (main): Add and construct a wchar_t
	array with repeated characters.
	* gdb.base/wchar.exp: Add repeated character tests.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14812&r2=1.14813
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-valprint.c.diff?cvsroot=src&r1=1.98&r2=1.99
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/valprint.c.diff?cvsroot=src&r1=1.129&r2=1.130
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3450&r2=1.3451
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.c.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.exp.diff?cvsroot=src&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/wchar.c.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/wchar.exp.diff?cvsroot=src&r1=1.2&r2=1.3


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