aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-09-17 11:46:50 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-09-17 11:46:50 +0000
commit30d20d15456466459d4ec80a14667bff20fb5338 (patch)
tree1108dc7c60ba4837c48333d2cea12139fc7fdc36 /gdb/cp-valprint.c
parent9d6323bace25ea5a6a3f7e403271511071952716 (diff)
downloadgdb-30d20d15456466459d4ec80a14667bff20fb5338.zip
gdb-30d20d15456466459d4ec80a14667bff20fb5338.tar.gz
gdb-30d20d15456466459d4ec80a14667bff20fb5338.tar.bz2
* findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
the xor and subtract. Otherwise it will not sign extend if the type of LONGEST is larger than int. * cp-valprint.c (cp_print_class_method): Inhibit core dump if domain is an undefined cross reference. * valops.c (call_function_by_hand): Set real_pc to correct
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index f5cb15e..a3a5c58 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -78,7 +78,13 @@ cp_print_class_method (valaddr, type, stream)
unsigned len;
unsigned int i;
+ check_stub_type (TYPE_TARGET_TYPE (type));
domain = TYPE_DOMAIN_TYPE (TYPE_TARGET_TYPE (type));
+ if (domain == (struct type *)NULL)
+ {
+ fprintf_filtered (stream, "<unknown>");
+ return;
+ }
addr = unpack_pointer (lookup_pointer_type (builtin_type_void), valaddr);
if (METHOD_PTR_IS_VIRTUAL (addr))
{