From: Corinna Vinschen Date: Mon, 14 Apr 2003 08:47:42 +0000 (+0000) Subject: * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1947a811e8cffe901c07f038495c09b7cc8fb79a;p=binutils-gdb.git * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with actually incoming type. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51a5b3c3d54..536b26fc74b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-04-14 Corinna Vinschen + + * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with + actually incoming type. + 2003-04-13 Andrew Cagney * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc, diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 69f1b15c285..9a32e9c80b9 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -87,7 +87,7 @@ cp_print_class_method (char *valaddr, fprintf_filtered (stream, ""); 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);