This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb ChangeLog valops.c
- To: gdb-cvs at sourceware dot cygnus dot com
- Subject: src/gdb ChangeLog valops.c
- From: taylor at sourceware dot cygnus dot com
- Date: 6 Feb 2001 18:07:48 -0000
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