|
|
1.1 root 1: /*
2: * Hatari - symbols.h
3: *
1.1.1.3 root 4: * This file is distributed under the GNU General Public License, version 2
5: * or at your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
7:
8: #ifndef HATARI_SYMBOLS_H
9: #define HATARI_SYMBOLS_H
10:
11: typedef enum {
12: SYMTYPE_TEXT = 1,
13: SYMTYPE_DATA = 2,
14: SYMTYPE_BSS = 4,
15: SYMTYPE_ALL = SYMTYPE_TEXT|SYMTYPE_DATA|SYMTYPE_BSS
16: } symtype_t;
17:
18: extern const char Symbols_Description[];
19:
20: /* readline completion support functions for CPU */
21: extern char* Symbols_MatchCpuAddress(const char *text, int state);
22: extern char* Symbols_MatchCpuCodeAddress(const char *text, int state);
23: extern char* Symbols_MatchCpuDataAddress(const char *text, int state);
24: /* readline completion support functions for DSP */
25: extern char* Symbols_MatchDspAddress(const char *text, int state);
26: extern char* Symbols_MatchDspCodeAddress(const char *text, int state);
27: extern char* Symbols_MatchDspDataAddress(const char *text, int state);
28: /* symbol name -> address search */
29: extern bool Symbols_GetCpuAddress(symtype_t symtype, const char *name, Uint32 *addr);
30: extern bool Symbols_GetDspAddress(symtype_t symtype, const char *name, Uint32 *addr);
31: /* symbol address -> name search */
32: extern const char* Symbols_GetByCpuAddress(Uint32 addr);
33: extern const char* Symbols_GetByDspAddress(Uint32 addr);
1.1.1.3 root 34: /* symbol address -> index */
35: extern int Symbols_GetCpuAddressIndex(Uint32 addr);
36: extern int Symbols_GetDspAddressIndex(Uint32 addr);
37: /* how many symbols are loaded */
38: extern int Symbols_CpuCount(void);
39: extern int Symbols_DspCount(void);
1.1.1.4 root 40: /* handlers for automatic program symbol loading */
41: extern void Symbols_RemoveCurrentProgram(void);
1.1.1.5 ! root 42: extern void Symbols_ChangeCurrentProgram(const char *path);
1.1.1.4 root 43: extern void Symbols_LoadCurrentProgram(void);
1.1 root 44: /* symbols/dspsymbols command parsing */
1.1.1.4 root 45: extern char *Symbols_MatchCommand(const char *text, int state);
1.1 root 46: extern int Symbols_Command(int nArgc, char *psArgs[]);
47:
48: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.