OSDN Git Service

(LibGoblin)
[drdeamon64/drdeamon64.git] / libgoblin / drd64_libgoblin.h
1 /*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
2
3                          D r . D e a m o n  6 4
4                         for INTEL64(R), AMD64(R)
5         
6    Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
7
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
10
11  1. Redistributions of source code must retain the above copyright notice,
12     this list of conditions and the following disclaimer.
13  2. Redistributions in binary form must reproduce the above copyright
14     notice, this list of conditions and the following disclaimer in the
15     documentation and/or other materials provided with the distribution.
16
17 THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
18 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
30
31 /* File Info -----------------------------------------------------------
32 File: drd64_libgoblin.h
33 Function: Header 
34 Comment: 
35 ----------------------------------------------------------------------*/
36
37 #ifndef DRD64_HEADER_LIBGOBLIN_MAIN
38 #define DRD64_HEADER_LIBGOBLIN_MAIN
39
40 #include<stdio.h>
41 #include<stdlib.h>
42 #include<stddef.h>
43 #include<string.h>
44 #include<fcntl.h>
45 #include<unistd.h>
46 #include<assert.h>
47 #include<libgen.h>
48 #include<errno.h>
49 #include<sys/param.h>
50 #include<sys/limits.h>
51
52 #ifdef __FreeBSD__
53 #include<elf.h>
54 #include<dwarf.h>
55 #include<sys/stat.h>
56 #include<sys/mman.h>
57 #endif  /* __FREEBSD__ */
58
59 #ifdef __linux__
60 #include<elf.h>
61 #include<dwarf.h>
62 #include<sys/stat.h>
63 #include<sys/mman.h>
64 #endif  /* __FREEBSD__ */
65
66 #include"../include/drd64_types.h"
67 #include"../include/drd64_defines.h"
68 #include"../include/drd64_error.h"
69 #include"../include/drd64_conf.h"
70 #include"../include/libgoblin.h"
71 #include"../include/libfiletype.h"
72 #include"../include/libbrownie.h"
73 #include"drd64_libgoblin_section_defs.h"
74 #include"drd64_libgoblin_type_dwarf.h"
75 #include"drd64_libgoblin_type.h"
76 #include"drd64_libgoblin_proginfo.h"
77 #include"drd64_libgoblin_binfo.h"
78 #include"drd64_libgoblin_binaryfile.h"
79 #include"drd64_libgoblin_srcfile.h"
80 #include"drd64_libgoblin_checkbin.h"
81 #include"drd64_libgoblin_common.h"
82 #include"drd64_libgoblin_readbin.h"
83 #include"drd64_libgoblin_loadprog.h"
84 #include"drd64_libgoblin_section.h"
85 #include"drd64_libgoblin_objinfo.h"
86 #include"drd64_libgoblin_elf.h"
87 #include"drd64_libgoblin_elf_dynamic.h"
88 #include"drd64_libgoblin_elf_dynsym.h"
89 #include"drd64_libgoblin_elf_gnuver.h"
90 #include"drd64_libgoblin_elf_hash.h"
91 #include"drd64_libgoblin_elf_symtab.h"
92 #include"drd64_libgoblin_elf_rela.h"
93 #include"drd64_libgoblin_elf_proghdr.h"
94 #include"drd64_libgoblin_elf_section.h"
95 #include"drd64_libgoblin_elf32.h"
96 #include"drd64_libgoblin_dwarf_common.h"
97 #include"drd64_libgoblin_dwarf_abbrev.h"
98 #include"drd64_libgoblin_dwarf_ranges.h"
99 #include"drd64_libgoblin_dwarf_attrform.h"
100 #include"drd64_libgoblin_dwarf_info.h"
101 #include"drd64_libgoblin_dwarf_line.h"
102 #include"drd64_libgoblin_dwarf_oldline.h"
103 #include"drd64_libgoblin_dwarf_tag_compileunit.h"
104 #include"drd64_libgoblin_dwarf_tag_type.h"
105 #include"drd64_libgoblin_dwarf_tag_struct.h"
106 #include"drd64_libgoblin_dwarf_tag_parameter.h"
107 #include"drd64_libgoblin_dwarf_tag_function.h"
108 #include"drd64_libgoblin_dwarf_tag_array.h"
109 #include"drd64_libgoblin_dwarf_tag_class.h"
110 #include"drd64_libgoblin_dwarf_tag_exception.h"
111 #include"drd64_libgoblin_dwarf_tag_notclang.h"
112 #include"drd64_libgoblin_dwarf_tag_dispatch.h"
113 #include"drd64_libgoblin_dwarf.h"
114 #include"drd64_libgoblin_index_dwarfinfo.h"
115 #include"drd64_libgoblin_debug_dwarf_str.h"
116 #include"drd64_libgoblin_debug_dwarf.h"
117 #include"drd64_libgoblin_debug_elf.h"
118 #include"drd64_libgoblin_debug_objinfo.h"
119
120 // Defines LibGoblin SourceFileID for ErrorSystem ---
121 #define DRD64_SRCID_LIBGOBLIN_API                       0x01
122 #define DRD64_SRCID_LIBGOBLIN_PROGINFO          0x11
123 #define DRD64_SRCID_LIBGOBLIN_BINARYINFO        0x12
124 #define DRD64_SRCID_LIBGOBLIN_BINARYFILE        0x13
125 #define DRD64_SRCID_LIBGOBLIN_SRCFILE           0x14
126 #define DRD64_SRCID_LIBGOBLIN_OBJINFO           0x15
127
128 #endif  /* DRD64_HEADER_LIBGOBLIN_MAIN */
129
130 /* EOF of drd64_.h ----------------------------------- */