if (current_target.to_sections == old_value) { current_target.to_sections = target->to_sections; current_target.to_sections_end = target->to_sections_end; }
target_resize_to_sections (struct target_ops *target, int num_added){  struct target_ops **t;  struct section_table *old_value;  int old_count;  old_value = target->to_sections;  if (target->to_sections)    {      old_count = target->to_sections_end - target->to_sections;      target->to_sections = (struct section_table *)	xrealloc ((char *) target->to_sections,		  (sizeof (struct section_table)) * (num_added + old_count));    }  else    {      old_count = 0;      target->to_sections = (struct section_table *)	xmalloc ((sizeof (struct section_table)) * num_added);    }  target->to_sections_end = target->to_sections + (num_added + old_count);  /* Check to see if anyone else was pointing to this structure.     If old_value was null, then no one was. */       if (old_value)    {      for (t = target_structs; t < target_structs + target_struct_size;	   ++t)	{	  if ((*t)->to_sections == old_value)	    {	      (*t)->to_sections = target->to_sections;	      (*t)->to_sections_end = target->to_sections_end;	    }	}    }    return old_count;}