4.104.114.84.95
Last change
on this file since e7f38e8 was
e7f38e8,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/19/03 at 11:54:00
|
2003-09-19 Ralf Corsepius <corsepiu@…>
- monitor/symbols.h: Convert to private header.
- monitor/monitor.h: Don't include symbols.h.
Add forward decls. for symbols from symbols.h.
- monitor/Makefile.am: Don't install symbols.h.
- monitor/mon-symbols.c: Include "symbols.h".
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * RTEMS monitor symbol table functions |
---|
3 | * |
---|
4 | * Description: |
---|
5 | * Entry points for symbol table routines. |
---|
6 | * |
---|
7 | * |
---|
8 | * |
---|
9 | * TODO: |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef _INCLUDE_SYMBOLS_H |
---|
15 | #define _INCLUDE_SYMBOLS_H |
---|
16 | |
---|
17 | #include <rtems/monitor.h> |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | struct _rtems_symbol_t { |
---|
24 | rtems_unsigned32 value; |
---|
25 | char *name; |
---|
26 | } ; |
---|
27 | |
---|
28 | #define SYMBOL_STRING_BLOCK_SIZE 4080 |
---|
29 | typedef struct rtems_symbol_string_block_s { |
---|
30 | struct rtems_symbol_string_block_s *next; |
---|
31 | char buffer[SYMBOL_STRING_BLOCK_SIZE]; |
---|
32 | } rtems_symbol_string_block_t; |
---|
33 | |
---|
34 | struct _rtems_symbol_table_t { |
---|
35 | |
---|
36 | rtems_unsigned32 sorted; /* are symbols sorted right now? */ |
---|
37 | rtems_unsigned32 growth_factor; /* % to grow by when needed */ |
---|
38 | rtems_unsigned32 next; /* next symbol slot to use when adding */ |
---|
39 | rtems_unsigned32 size; /* max # of symbols */ |
---|
40 | |
---|
41 | /* |
---|
42 | * Symbol list -- sorted by address (when we do a lookup) |
---|
43 | */ |
---|
44 | |
---|
45 | rtems_symbol_t *addresses; /* symbol array by address */ |
---|
46 | |
---|
47 | /* |
---|
48 | * String pool, unsorted, a list of blocks of string data |
---|
49 | */ |
---|
50 | |
---|
51 | rtems_symbol_string_block_t *string_buffer_head; |
---|
52 | rtems_symbol_string_block_t *string_buffer_current; |
---|
53 | rtems_unsigned32 strings_next; /* next byte to use in this block */ |
---|
54 | |
---|
55 | } ; |
---|
56 | |
---|
57 | #define rtems_symbol_name(sp) ((sp)->name) |
---|
58 | #define rtems_symbol_value(sp) ((sp)->value) |
---|
59 | |
---|
60 | #ifdef __cplusplus |
---|
61 | } |
---|
62 | #endif |
---|
63 | |
---|
64 | #endif /* ! _INCLUDE_SYMBOLS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.