* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with

actually incoming type.
This commit is contained in:
Corinna Vinschen 2003-04-14 08:47:42 +00:00
parent adb616d7c2
commit 1947a811e8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-04-14 Corinna Vinschen <vinschen@redhat.com>
* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
actually incoming type.
2003-04-13 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,

View File

@ -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);