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 ada-lang.c ChangeLog


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2010-04-20 22:40:37

Modified files:
	gdb            : ada-lang.c ChangeLog 

Log message:
	[AVR] inferior call of subprogram with pointer as argument
	
	On AVR, the gdb view of an address is different from the machine view of the
	same address.  We need to use special machinery implemented by value_pointer
	to take the pointer of a value.
	
	For instance, considering the following function...
	
	procedure Trace (Unit    : T; Message : String);
	
	... where T is an access Integer (a pointer to an integer), call to this
	function currently triggers the following warnings:
	
	(gdb) call debug.trace (me, "You")
	warning: Value does not fit in 16 bits.
	warning: Value does not fit in 16 bits.
	Tracing message: You
	
	It could have been worse if Trace actually tried to dereference the Unit
	argument...
	
	gdb/ChangeLog (from Tristan Gingold):
	
	* ada-lang.c (value_pointer): New function.
	(make_array_descriptor): Call value_pointer to convert addresses to
	pointers.
	
	Tested on avr and x86_64-linux.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-lang.c.diff?cvsroot=src&r1=1.255&r2=1.256
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11656&r2=1.11657


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