GEL  0.99
dwarf_line.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  * Copyright (c) 2005-07, IRIT- UPS
4  *
5  * GEL 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  * GEL 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 GEL; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef GEL_DWARF_LINE_H
21 #define GEL_DWARF_LINE_H
22 
28 #include <gel/common.h>
29 #include <gel/gel.h>
30 #include <gel/debug_line.h>
31 
32 
34 
35 /* Strings */
36 #define DWARF_DEBUG_LINE_NAME ".debug_line"
37 
38 
39 /* Line types (for compatibility with older versions) */
40 typedef struct gel_line_map_t dwarf_line_map_t;
41 typedef struct gel_line_iter_t dwarf_line_iter_t;
42 typedef struct gel_addr_iter_t dwarf_addr_iter_t;
43 typedef struct gel_location_t dwarf_location_t;
44 
45 
46 /* Line primitives */
48 #define dwarf_delete_line_map(map) gel_delete_line_map(map)
49 #define dwarf_line_from_address(map, addr, file, line) gel_line_from_address(map, addr, file, line)
50 #define dwarf_address_from_line(map, file, line) gel_address_from_line(map, file, line)
51 
52 /* Iterators */
53 #define dwarf_first_line(iter, map) gel_first_line(iter, map)
54 #define dwarf_next_line(iter) gel_next_line(iter)
55 #define dwarf_first_addr(iter, map) gel_first_addr(iter, map)
56 #define dwarf_next_addr(iter) gel_next_addr(iter)
57 
59 
60 #endif // GEL_DWARF_LINE_H
#define __END_DECLS
Definition: common.h:29
#define __BEGIN_DECLS
Definition: common.h:28
struct gel_addr_iter_t dwarf_addr_iter_t
Definition: dwarf_line.h:42
struct gel_line_iter_t dwarf_line_iter_t
Definition: dwarf_line.h:41
struct gel_location_t dwarf_location_t
Definition: dwarf_line.h:43
dwarf_line_map_t * dwarf_new_line_map(gel_file_t *file, gel_sect_t *section)
Definition: dwarf_line.c:1108
typedef__BEGIN_DECLS struct gel_sect_s gel_sect_t
Definition: sect.h:31
Definition: debug_line.h:49
Definition: file.h:31
Definition: debug_line.h:41
Definition: debug.h:67
Definition: debug_line.h:56
const char * file
Definition: debug_line.h:57