src/gdb ChangeLog valops.c

taylor@sourceware.cygnus.com taylor@sourceware.cygnus.com
Tue Feb 6 10:07:00 GMT 2001


CVSROOT:	/cvs/src
Module name:	src
Changes by:	taylor@sources.redhat.com	2001-02-06 10:07:48

Modified files:
	gdb            : ChangeLog valops.c 

Log message:
	* valops.c (value_cast): If casting a scalar to a pointer, do not
	issue a message about truncation unless it exceeds the length of
	an address, not the length of a pointer.  This is because what the
	user gives us is an address, not a pointer, and we will ultimately
	convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
	to a pointer.  This allows things like "print *(int *)0x01000234"
	to work without generating a misleading message on a target having
	two byte pointers and four byte addresses.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.934&r2=1.935
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/valops.c.diff?cvsroot=src&r1=1.29&r2=1.30



More information about the Gdb-cvs mailing list