OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [libmisc/] [monitor/] [symbols.h] - Blame information for rev 279

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  RTEMS monitor symbol table functions
3
 *
4
 *  Description:
5
 *      Entry points for symbol table routines.
6
 *
7
 *
8
 *
9
 *  TODO:
10
 *
11
 *  $Id: symbols.h,v 1.2 2001-09-27 12:01:43 chris Exp $
12
 */
13
 
14
#ifndef _INCLUDE_SYMBOLS_H
15
#define _INCLUDE_SYMBOLS_H
16
 
17
#ifdef __cplusplus
18
extern "C" {
19
#endif
20
 
21
typedef struct {
22
    rtems_unsigned32 value;
23
    char            *name;
24
} rtems_symbol_t;
25
 
26
#define SYMBOL_STRING_BLOCK_SIZE 4080
27
typedef struct rtems_symbol_string_block_s {
28
    struct rtems_symbol_string_block_s *next;
29
    char   buffer[SYMBOL_STRING_BLOCK_SIZE];
30
} rtems_symbol_string_block_t;
31
 
32
typedef struct {
33
 
34
    rtems_unsigned32 sorted;          /* are symbols sorted right now? */
35
    rtems_unsigned32 growth_factor;   /* % to grow by when needed */
36
    rtems_unsigned32 next;            /* next symbol slot to use when adding */
37
    rtems_unsigned32 size;            /* max # of symbols */
38
 
39
    /*
40
     * Symbol list -- sorted by address (when we do a lookup)
41
     */
42
 
43
    rtems_symbol_t  *addresses;         /* symbol array by address */
44
 
45
    /*
46
     * String pool, unsorted, a list of blocks of string data
47
     */
48
 
49
    rtems_symbol_string_block_t *string_buffer_head;
50
    rtems_symbol_string_block_t *string_buffer_current;
51
    rtems_unsigned32 strings_next;      /* next byte to use in this block */
52
 
53
} rtems_symbol_table_t;
54
 
55
#define rtems_symbol_name(sp)   ((sp)->name)
56
#define rtems_symbol_value(sp)  ((sp)->value)
57
 
58
#ifdef __cplusplus
59
}
60
#endif
61
 
62
#endif /* ! _INCLUDE_SYMBOLS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.