diff options
Diffstat (limited to 'usr/src/tools/ctf/dwarf/common/dwarf_global.h')
-rw-r--r-- | usr/src/tools/ctf/dwarf/common/dwarf_global.h | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/usr/src/tools/ctf/dwarf/common/dwarf_global.h b/usr/src/tools/ctf/dwarf/common/dwarf_global.h index a0c7382bf8..c2bc2cdcc3 100644 --- a/usr/src/tools/ctf/dwarf/common/dwarf_global.h +++ b/usr/src/tools/ctf/dwarf/common/dwarf_global.h @@ -1,6 +1,6 @@ /* - Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. + Copyright (C) 2000,2004,2005 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License @@ -17,12 +17,12 @@ 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, + 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., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, USA. - Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, + Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane, Mountain View, CA 94043, or: http://www.sgi.com @@ -43,24 +43,25 @@ typedef struct Dwarf_Global_Context_s *Dwarf_Global_Context; Essentially, they contain the context for a set of pubnames belonging to a compilation-unit. - This is also used for the sgi-specific weaknames, typenames, varnames, funcnames data: the structs for those are incomplete and instances of this are used instead. + Also used for DWARF3 .debug_pubtypes. + */ struct Dwarf_Global_Context_s { - /* - Length in .debug_pubnames of a set of pubnames for a + /* Length in .debug_pubnames (etc) of a set of names for a compilation-unit. Dwarf_Word pu_length; The value is not made available outside libdwarf and not used inside, so no need to record it. */ - /* for this context, size of a length. 4 or 8 */ + /* For this context, size of a length. 4 or 8 */ unsigned char pu_length_size; - /* for this CU, size of the extension 0 except for dwarf2 extension + + /* For this CU, size of the extension 0 except for dwarf2 extension 64bit, in which case is 4. */ unsigned char pu_extension_size; @@ -99,6 +100,25 @@ int _dwarf_internal_get_pubnames_like_data(Dwarf_Debug dbg, Dwarf_Global ** globals, Dwarf_Signed * return_count, Dwarf_Error * error, - int allocation_code, + int context_code, + int global_code, int length_err_num, int version_err_num); + +void +_dwarf_internal_globals_dealloc( Dwarf_Debug dbg, Dwarf_Global *dwgl, + Dwarf_Signed count, + int context_code, + int global_code, + int list_code); + + +#ifdef __sgi /* __sgi should only be defined for IRIX/MIPS. */ +void _dwarf_fix_up_offset_irix(Dwarf_Debug dbg, + Dwarf_Unsigned *varp, + char *caller_site_name); +#define FIX_UP_OFFSET_IRIX_BUG(ldbg,var,name) _dwarf_fix_up_offset_irix(ldbg,&var,name) +#else +#define FIX_UP_OFFSET_IRIX_BUG(ldbg,var,name) +#endif + |