00001 /* 00002 * Copyright 2005 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2.1 of the GNU Lesser General Public License 00011 as published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU Lesser General Public 00025 License along with this program; if not, write the Free Software 00026 Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, 00027 USA. 00028 00029 Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane, 00030 Mountain View, CA 94043, or: 00031 00032 http://www.sgi.com 00033 00034 For further information regarding this notice, see: 00035 00036 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00037 00038 */ 00039 00040 #ifdef __MINGW32__ 00041 #include "translatetypes.h" 00042 #endif /* __MINGW32__ */ 00043 00044 #include "libdwarfdefs.h" 00045 00046 #define true 1 00047 #define false 0 00048 00049 /* to identify a cie */ 00050 #define DW_CIE_ID ~(0x0) 00051 #define DW_CIE_VERSION 1 /* DWARF2 */ 00052 #define DW_CIE_VERSION3 3 /* DWARF3 */ 00053 #define ABBREV_HASH_TABLE_SIZE 10 00054 00055 00056 /* 00057 These are allocation type codes for structs that 00058 are internal to the Libdwarf Consumer library. 00059 */ 00060 #define DW_DLA_ABBREV_LIST DW_DLA_ADDR + 1 00061 #define DW_DLA_CHAIN DW_DLA_ADDR + 2 00062 #define DW_DLA_CU_CONTEXT DW_DLA_ADDR + 3 00063 #define DW_DLA_FRAME DW_DLA_ADDR + 4 00064 #define DW_DLA_GLOBAL_CONTEXT DW_DLA_ADDR + 5 00065 #define DW_DLA_FILE_ENTRY DW_DLA_ADDR + 6 00066 #define DW_DLA_LINE_CONTEXT DW_DLA_ADDR + 7 00067 #define DW_DLA_LOC_CHAIN DW_DLA_ADDR + 8 00068 #define DW_DLA_HASH_TABLE DW_DLA_ADDR + 9 00069 #define DW_DLA_FUNC_CONTEXT DW_DLA_ADDR + 10 00070 #define DW_DLA_TYPENAME_CONTEXT DW_DLA_ADDR + 11 00071 #define DW_DLA_VAR_CONTEXT DW_DLA_ADDR + 12 00072 #define DW_DLA_WEAK_CONTEXT DW_DLA_ADDR + 13 00073 00074 /* Maximum number of allocation types for allocation routines. */ 00075 #define MAX_DW_DLA DW_DLA_WEAK_CONTEXT 00076 00077 /*Dwarf_Word is unsigned word usable for index, count in memory */ 00078 /*Dwarf_Sword is signed word usable for index, count in memory */ 00079 /* The are 32 or 64 bits depending if 64 bit longs or not, which 00080 ** fits the ILP32 and LP64 models 00081 ** These work equally well with ILP64. 00082 */ 00083 00084 typedef unsigned long Dwarf_Word; 00085 typedef signed long Dwarf_Sword; 00086 00087 typedef signed char Dwarf_Sbyte; 00088 typedef unsigned char Dwarf_Ubyte; 00089 typedef signed short Dwarf_Shalf; 00090 typedef Dwarf_Small *Dwarf_Byte_Ptr; 00091 00092 /* these 2 are fixed sizes which must not vary with the 00093 ** ILP32/LP64 model. Between these two, stay at 32 bit. 00094 */ 00095 typedef __uint32_t Dwarf_ufixed; 00096 typedef __int32_t Dwarf_sfixed; 00097 00098 /* 00099 In various places the code mistakenly associates 00100 forms 8 bytes long with Dwarf_Signed or Dwarf_Unsigned 00101 This is not a very portable assumption. 00102 The following should be used instead for 64 bit integers. 00103 */ 00104 typedef __uint32_t Dwarf_ufixed64; 00105 typedef __int32_t Dwarf_sfixed64; 00106 00107 00108 typedef struct Dwarf_Abbrev_List_s *Dwarf_Abbrev_List; 00109 typedef struct Dwarf_File_Entry_s *Dwarf_File_Entry; 00110 typedef struct Dwarf_CU_Context_s *Dwarf_CU_Context; 00111 typedef struct Dwarf_Hash_Table_s *Dwarf_Hash_Table; 00112 00113 00114 typedef struct Dwarf_Alloc_Hdr_s *Dwarf_Alloc_Hdr;
1.5.6