From 1947a811e8cffe901c07f038495c09b7cc8fb79a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 14 Apr 2003 08:47:42 +0000 Subject: [PATCH] * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with actually incoming type. --- gdb/ChangeLog | 5 +++++ gdb/cp-valprint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- 2.30.2