pro_die.c revision 49d3bc91e27cd871b950d56c01398fa2f2e12ab4
/*
Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope that it would be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Further, this software is distributed without any warranty that it is
free of the rightful claim of any third person regarding infringement
or the like. Any license provided herein, whether implied or
otherwise, applies only to this software file. Patent licenses, if
any, provided herein do not apply to combinations of this program with
other software, or any other product whatsoever.
You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
USA.
Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky,
Mountain View, CA 94043, or:
For further information regarding this notice, see:
*/
#include "config.h"
#include "libdwarfdefs.h"
#include <stdio.h>
#include <string.h>
#include "pro_incl.h"
#include "pro_die.h"
#ifndef R_MIPS_NONE
#define R_MIPS_NONE 0
#endif
/* adds an attribute to a die */
/*----------------------------------------------------------------------------
This function creates a new die.
tag: tag of the new die to be created
parent,child,left,right: specify neighbors of the new die. Only
one of these may be non-null
-----------------------------------------------------------------------------*/
{
new_die = (Dwarf_P_Die)
}
ret_die =
return ret_die;
}
/*----------------------------------------------------------------------------
This function links up a die to specified neighbors
parent,child,left,right: specify neighbors of the new die. Only
one of these may be non-null
-----------------------------------------------------------------------------*/
{
int n_nulls; /* to count # of non null neighbors */
n_nulls = 0;
n_nulls++;
*/
} else
}
n_nulls++;
} else
}
n_nulls++;
insert */
/* add parent pointer */
} else
}
n_nulls++;
} else
}
}
return new_die;
}
/*----------------------------------------------------------------------------
This function adds a die to dbg struct. It should be called using
the root of all the dies.
-----------------------------------------------------------------------------*/
{
}
}
return 0;
}
int
{
/* Add AT_stmt_list attribute */
}
}
{
Dwarf_Unsigned du = 0;
}
return 0;
}
/*-----------------------------------------------------------------------------
Add AT_name attribute to die
------------------------------------------------------------------------------*/
{
}
}
/* fill in the information */
/* assume that form is string, no debug_str yet */
new_attr->ar_reloc_len = 0;
}
/* add attribute to the die */
return new_attr;
}
/*-----------------------------------------------------------------------------
Add AT_comp_dir attribute to die
------------------------------------------------------------------------------*/
char *current_working_directory,
Dwarf_Error * error)
{
}
}
/* fill in the information */
/* assume that form is string, no debug_str yet */
new_attr->ar_reloc_len = 0;
}
/* add attribute to the die */
return new_attr;
}
int
{
}
}
/* fill in the information */
}
{
}
return 0;
}
int
{
}
}
/* fill in the information */
}
{
}
return 0;
}
void
{
if (die->di_last_attr) {
} else {
}
}