forked from Imagelibrary/binutils-gdb
* 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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user