summaryrefslogtreecommitdiffstats
path: root/gdb/values.c
diff options
context:
space:
mode:
authorgdb-2.5.2 <gdb@fsf.org>1988-06-01 01:00:00 +0100
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:30 +0100
commit6368691e88d78f0bb6a46b74d7ed86118ac84e8b (patch)
tree73bf36a5f6dbef8284d2632e1490198cfc421867 /gdb/values.c
parent632ea0ccc5c4c3f9fc06881bfedfc4b075873941 (diff)
downloadppe42-binutils-6368691e88d78f0bb6a46b74d7ed86118ac84e8b.tar.gz
ppe42-binutils-6368691e88d78f0bb6a46b74d7ed86118ac84e8b.zip
gdb-2.5.2
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 93d9482453..8fa5af9c03 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -464,8 +464,7 @@ unpack_long (type, valaddr)
if (len == sizeof (long))
return * (unsigned long *) valaddr;
}
- else if (code == TYPE_CODE_INT
- || code == TYPE_CODE_MPTR)
+ else if (code == TYPE_CODE_INT)
{
if (len == sizeof (char))
return * (char *) valaddr;
@@ -485,6 +484,9 @@ unpack_long (type, valaddr)
if (len == sizeof (char *))
return (CORE_ADDR) * (char **) valaddr;
}
+ else if (code == TYPE_CODE_MEMBER)
+ error ("not impelmented: member types in unpack_long");
+
error ("Value not integer or pointer.");
}
OpenPOWER on IntegriCloud