* 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
This commit is contained in:
Peter Schauer
1993-09-17 11:46:50 +00:00
parent 9d6323bace
commit 30d20d1545
3 changed files with 21 additions and 5 deletions

View File

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