aboutsummaryrefslogtreecommitdiffstats
path: root/debuggerd/symbol_table.h
blob: 7f41f915175b07b0e1618d825050e8fea753c6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SYMBOL_TABLE_H
#define SYMBOL_TABLE_H

struct symbol {
    unsigned int addr;
    unsigned int size;
    char *name;
};

struct symbol_table {
    struct symbol *symbols;
    int num_symbols;
    char *name;
};

struct symbol_table *symbol_table_create(const char *filename);
void symbol_table_free(struct symbol_table *table);
const struct symbol *symbol_table_lookup(struct symbol_table *table, unsigned int addr);

#endif