FreeBSD/contrib/binutils/binutils/readelf.c
/* Record the fact that the user wants the contents of section number
   SECTION to be displayed using the method(s) encoded as flags bits
   in TYPE.  Note, TYPE can be zero if we are creating the array for
   the first time.  */
Record the fact that the user wants the contents of section number
SECTION to be displayed using the method(s) encoded as flags bits
in TYPE.  Note, TYPE can be zero if we are creating the array for
the first time.
Record the fact that the user wants the contents of section number SECTION to be displayed using the method ( s ) encoded as flags bits in TYPE . Note TYPE can be zero if we are creating the array for the first time .
static void
request_dump (unsigned int section, int type)
{
  if (section >= num_dump_sects)
    {
      char *new_dump_sects;
      new_dump_sects = calloc (section + 1, 1);
      if (new_dump_sects == NULL)
	error (_("Out of memory allocating dump request table.\n"));
      else
	{
	  memcpy (new_dump_sects, dump_sects, num_dump_sects);
	  free (dump_sects);
	  dump_sects = new_dump_sects;
	  num_dump_sects = section + 1;
	}
    }
  if (dump_sects)
    dump_sects[section] |= type;
  return;
}
static void request_dump ( unsigned int section , int type ) { if ( section >= num_dump_sects ) { char * new_dump_sects ; new_dump_sects = calloc ( section + 1 , 1 ) ; if ( new_dump_sects == NULL ) error ( _ ( " \n " ) ) ; else { memcpy ( new_dump_sects , dump_sects , num_dump_sects ) ; free ( dump_sects ) ; dump_sects = new_dump_sects ; num_dump_sects = section + 1 ; } } if ( dump_sects ) dump_sects [ section ] |= type ; return ; }
Record the fact that the user wants the contents of section number
SECTION to be displayed using the method(s) encoded as flags bits
in TYPE.
Record the fact that the user wants the contents of section number SECTION to be displayed using the method ( s ) encoded as flags bits in TYPE .
/* Copy current flag settings.  */