diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-04-14 08:47:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-04-14 08:47:42 +0000 |
commit | 1947a811e8cffe901c07f038495c09b7cc8fb79a (patch) | |
tree | 618f6185fc03b2bb1458fccc5683cc552ad95948 /gdb | |
parent | adb616d7c2955d49873edcd34faf85d36fe0030c (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cp-valprint.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51a5b3c..536b26f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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, 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); |