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-04-01 17:03:24

Modified files:
	gdb            : ChangeLog ada-lang.c 

Log message:
	[Ada] fix printing slice of array defined as typedef
	
	A change we are making in the compiler to help preserve useful
	types when using -feliminate-unused-debug-types exposed a small
	hole in our value-printing code.
	
	One example of the problem happens when trying to print a slice
	of an array pointer.  If the variable is defined as a pointer to
	the typedef of an array, then we fail to print the slice, like so:
	
	(gdb) p arr_ptr(1..2)
	cannot take slice of non-array
	
	gdb/ChangeLog:
	
	* ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
	(ada_value_slice, empty_array, to_fixed_array_type): Deal with
	typedefs.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12890&r2=1.12891
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-lang.c.diff?cvsroot=src&r1=1.293&r2=1.294


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