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-typeprint.c testsuite/Ch ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-07-01 18:27:12

Modified files:
	gdb            : ChangeLog ada-typeprint.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.ada: packed_array.exp 

Log message:
	Fix ada array bounds display
	
	Array bounds were not correctly displayed when the SHOW parameter of
	print_type functions is set to -1.  This shows up in the following
	type of situation, where we have a declaration as follow:
	
	Anon_Array_Int_Obj : array (1..10) of Integer := (others => 8);
	
	In GDB/MI mode, trying to print the type info for our array object
	yields:
	
	(gdb) -var-create ai 0 Anon_Array_Int_Obj
	(gdb) -var-info-type ai
	^done,type="array (...) of integer"
	
	The actual bounds are missing.  Contrast this with what happens
	when in GDB/CLI mode:
	
	(gdb) ptype Anon_Array_Int_Obj
	type = array (1 .. 10) of integer
	
	This patch fixes array type printing accordingly. And as it turns
	out, it also improves the output for one of the tests already present,
	so it shows that it's not just the GDB/MI mode that's affected.
	
	gdb/ChangeLog (Jean-Charles Delay):
	
	* ada-typeprint.c (print_array_type): removed if condition on show
	being negative for bounds printing.
	
	gdb/testsuite/ChangeLog (Jean-Charles Delay):
	
	* gdb.ada/packed_array.exp: fixed expected output.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13139&r2=1.13140
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-typeprint.c.diff?cvsroot=src&r1=1.40&r2=1.41
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2768&r2=1.2769
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/packed_array.exp.diff?cvsroot=src&r1=1.16&r2=1.17


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