GEL  0.99
debug.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * Copyright (c) 2011, IRIT- UPS
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 #ifndef GEL_DEBUG_H
20 #define GEL_DEBUG_H
21 
22 #include <gel/common.h>
23 #include <gel/gel.h>
24 #include <gel/util.h>
25 #include <stdint.h>
26 
28 
29 /* Internal types */
30 typedef int32_t word;
31 typedef uint32_t uword;
32 typedef int16_t half;
33 typedef uint16_t uhalf;
34 #if !defined(__WIN32) && !defined(__WIN64)
35  typedef int8_t byte;
36 #endif
37 typedef uint8_t ubyte;
38 
39 /* unit_line_t type */
40 typedef struct unit_line_t {
41  struct unit_t *unit;
42  struct segment_t *seg;
47 
48 
49 /* unit_t type */
50 typedef struct unit_t {
51  const char *name;
56 
57 
58 /* segment_t type */
59 typedef struct segment_t {
60  struct segment_t *next;
64 
65 
66 /* dwarf_line_map_t type */
72 };
73 
74 /* functions */
75 int gel_init_line_map_segs(gel_file_t *file, gel_line_map_t *map, int step);
76 
78 
79 #endif /* GEL_DEBUG_H */
#define __END_DECLS
Definition: common.h:29
#define __BEGIN_DECLS
Definition: common.h:28
struct segment_t segment_t
int8_t byte
Definition: debug.h:35
struct unit_line_t unit_line_t
uint32_t uword
Definition: debug.h:31
uint16_t uhalf
Definition: debug.h:33
int16_t half
Definition: debug.h:32
int gel_init_line_map_segs(gel_file_t *file, gel_line_map_t *map, int step)
Definition: debug_line.c:418
__BEGIN_DECLS typedef int32_t word
Definition: debug.h:30
struct unit_t unit_t
uint8_t ubyte
Definition: debug.h:37
Definition: file.h:31
Definition: debug.h:67
gel_hash_t units
Definition: debug.h:68
uword step
Definition: debug.h:70
vaddr_t base
Definition: debug.h:69
segment_t * segs
Definition: debug.h:71
Definition: debug.h:59
vaddr_t low
Definition: debug.h:61
vaddr_t high
Definition: debug.h:61
unit_line_t ** locs
Definition: debug.h:62
struct segment_t * next
Definition: debug.h:60
Definition: debug.h:40
vaddr_t high
Definition: debug.h:43
struct unit_t * unit
Definition: debug.h:41
struct segment_t * seg
Definition: debug.h:42
uhalf isa
Definition: debug.h:45
uhalf flags
Definition: debug.h:44
vaddr_t low
Definition: debug.h:43
Definition: debug.h:50
uword high
Definition: debug.h:53
uword length
Definition: debug.h:52
unit_line_t * lines
Definition: debug.h:54
const char * name
Definition: debug.h:51
uword low
Definition: debug.h:53
uint32_t vaddr_t
Definition: types.h:36
struct hashage * gel_hash_t
Definition: util.h:44