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
27
__BEGIN_DECLS
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
;
43
vaddr_t
low
,
high
;
44
uhalf
flags
;
45
uhalf
isa
;
46
}
unit_line_t
;
47
48
49
/* unit_t type */
50
typedef
struct
unit_t
{
51
const
char
*
name
;
52
uword
length
;
53
uword
low
,
high
;
54
unit_line_t
*
lines
;
55
}
unit_t
;
56
57
58
/* segment_t type */
59
typedef
struct
segment_t
{
60
struct
segment_t
*
next
;
61
vaddr_t
low
,
high
;
62
unit_line_t
**
locs
;
63
}
segment_t
;
64
65
66
/* dwarf_line_map_t type */
67
struct
gel_line_map_t
{
68
gel_hash_t
units
;
69
vaddr_t
base
;
70
uword
step
;
71
segment_t
*
segs
;
72
};
73
74
/* functions */
75
int
gel_init_line_map_segs
(
gel_file_t
*file,
gel_line_map_t
*map,
int
step);
76
77
__END_DECLS
78
79
#endif
/* GEL_DEBUG_H */
common.h
__END_DECLS
#define __END_DECLS
Definition:
common.h:29
__BEGIN_DECLS
#define __BEGIN_DECLS
Definition:
common.h:28
segment_t
struct segment_t segment_t
byte
int8_t byte
Definition:
debug.h:35
unit_line_t
struct unit_line_t unit_line_t
uword
uint32_t uword
Definition:
debug.h:31
uhalf
uint16_t uhalf
Definition:
debug.h:33
half
int16_t half
Definition:
debug.h:32
gel_init_line_map_segs
int gel_init_line_map_segs(gel_file_t *file, gel_line_map_t *map, int step)
Definition:
debug_line.c:418
word
__BEGIN_DECLS typedef int32_t word
Definition:
debug.h:30
unit_t
struct unit_t unit_t
ubyte
uint8_t ubyte
Definition:
debug.h:37
gel.h
gel_file_info_t
Definition:
file.h:31
gel_line_map_t
Definition:
debug.h:67
gel_line_map_t::units
gel_hash_t units
Definition:
debug.h:68
gel_line_map_t::step
uword step
Definition:
debug.h:70
gel_line_map_t::base
vaddr_t base
Definition:
debug.h:69
gel_line_map_t::segs
segment_t * segs
Definition:
debug.h:71
segment_t
Definition:
debug.h:59
segment_t::low
vaddr_t low
Definition:
debug.h:61
segment_t::high
vaddr_t high
Definition:
debug.h:61
segment_t::locs
unit_line_t ** locs
Definition:
debug.h:62
segment_t::next
struct segment_t * next
Definition:
debug.h:60
unit_line_t
Definition:
debug.h:40
unit_line_t::high
vaddr_t high
Definition:
debug.h:43
unit_line_t::unit
struct unit_t * unit
Definition:
debug.h:41
unit_line_t::seg
struct segment_t * seg
Definition:
debug.h:42
unit_line_t::isa
uhalf isa
Definition:
debug.h:45
unit_line_t::flags
uhalf flags
Definition:
debug.h:44
unit_line_t::low
vaddr_t low
Definition:
debug.h:43
unit_t
Definition:
debug.h:50
unit_t::high
uword high
Definition:
debug.h:53
unit_t::length
uword length
Definition:
debug.h:52
unit_t::lines
unit_line_t * lines
Definition:
debug.h:54
unit_t::name
const char * name
Definition:
debug.h:51
unit_t::low
uword low
Definition:
debug.h:53
vaddr_t
uint32_t vaddr_t
Definition:
types.h:36
util.h
gel_hash_t
struct hashage * gel_hash_t
Definition:
util.h:44
src
debug.h
Generated by
1.9.1