if (hp_som_som_object_present)
if (deprecated_hp_som_som_object_present)
cp_print_class_method (char *valaddr,		       struct type *type,		       struct ui_file *stream){  struct type *domain;  struct fn_field *f = NULL;  int j = 0;  int len2;  int offset;  char *kind = "";  CORE_ADDR addr;  struct symbol *sym;  unsigned len;  unsigned int i;  struct type *target_type = check_typedef (TYPE_TARGET_TYPE (type));  domain = TYPE_DOMAIN_TYPE (target_type);  if (domain == (struct type *) NULL)    {      fprintf_filtered (stream, "<unknown>");      return;    }  addr = unpack_pointer (type, valaddr);  if (METHOD_PTR_IS_VIRTUAL (addr))    {      offset = METHOD_PTR_TO_VOFFSET (addr);      len = TYPE_NFN_FIELDS (domain);      for (i = 0; i < len; i++)	{	  f = TYPE_FN_FIELDLIST1 (domain, i);	  len2 = TYPE_FN_FIELDLIST_LENGTH (domain, i);	  check_stub_method_group (domain, i);	  for (j = 0; j < len2; j++)	    {	      if (TYPE_FN_FIELD_VOFFSET (f, j) == offset)		{		  kind = "virtual ";		  goto common;		}	    }	}    }  else    {      sym = find_pc_function (addr);      if (sym == 0)	{	  /* 1997-08-01 Currently unsupported with HP aCC */	  if (hp_som_som_object_present)	    {	      fputs_filtered ("?? <not supported with HP aCC>", stream);	      return;	    }	  error ("invalid pointer to member function");	}      len = TYPE_NFN_FIELDS (domain);      for (i = 0; i < len; i++)	{	  f = TYPE_FN_FIELDLIST1 (domain, i);	  len2 = TYPE_FN_FIELDLIST_LENGTH (domain, i);	  check_stub_method_group (domain, i);	  for (j = 0; j < len2; j++)	    {	      if (strcmp (DEPRECATED_SYMBOL_NAME (sym), TYPE_FN_FIELD_PHYSNAME (f, j))		  == 0)		goto common;	    }	}    } common:  if (i < len)    {      char *demangled_name;      fprintf_filtered (stream, "&");      fputs_filtered (kind, stream);      demangled_name = cplus_demangle (TYPE_FN_FIELD_PHYSNAME (f, j),				       DMGL_ANSI | DMGL_PARAMS);      if (demangled_name == NULL)	fprintf_filtered (stream, "<badly mangled name %s>",			  TYPE_FN_FIELD_PHYSNAME (f, j));      else	{	  fputs_filtered (demangled_name, stream);	  xfree (demangled_name);	}    }  else    {      fprintf_filtered (stream, "(");      type_print (type, "", stream, -1);      fprintf_filtered (stream, ") %d", (int) addr >> 3);    }}