* cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 14 Apr 2003 08:47:42 +0000 (08:47 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 14 Apr 2003 08:47:42 +0000 (08:47 +0000)
actually incoming type.

gdb/ChangeLog
gdb/cp-valprint.c

index 51a5b3c3d5401868a1966aaf95815151adc3ecc2..536b26fc74bd861c807e66caea1fa42e934e4865 100644 (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,
index 69f1b15c285b9285a614dc42617bd5d12ea53643..9a32e9c80b930c3db7e39f50503faf4a9c7e5780 100644 (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);