aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-04-14 08:47:42 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-04-14 08:47:42 +0000
commit1947a811e8cffe901c07f038495c09b7cc8fb79a (patch)
tree618f6185fc03b2bb1458fccc5683cc552ad95948 /gdb/cp-valprint.c
parentadb616d7c2955d49873edcd34faf85d36fe0030c (diff)
downloadgdb-1947a811e8cffe901c07f038495c09b7cc8fb79a.zip
gdb-1947a811e8cffe901c07f038495c09b7cc8fb79a.tar.gz
gdb-1947a811e8cffe901c07f038495c09b7cc8fb79a.tar.bz2
* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
actually incoming type.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 69f1b15..9a32e9c 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -87,7 +87,7 @@ cp_print_class_method (char *valaddr,
fprintf_filtered (stream, "<unknown>");
return;
}
- addr = unpack_pointer (lookup_pointer_type (builtin_type_void), valaddr);
+ addr = unpack_pointer (type, valaddr);
if (METHOD_PTR_IS_VIRTUAL (addr))
{
offset = METHOD_PTR_TO_VOFFSET (addr);