Annotation of hatari/src/debug/symbols.h, revision 1.1.1.6

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 {
1.1.1.6 ! root       12:        SYMTYPE_TEXT = 1,  /* Needs to be smallest number for sorting! */
1.1       root       13:        SYMTYPE_DATA = 2,
                     14:        SYMTYPE_BSS  = 4,
1.1.1.6 ! root       15:        SYMTYPE_ABS  = 8,
        !            16:        SYMTYPE_ALL  = SYMTYPE_TEXT|SYMTYPE_DATA|SYMTYPE_BSS|SYMTYPE_ABS
1.1       root       17: } symtype_t;
                     18: 
                     19: extern const char Symbols_Description[];
                     20: 
                     21: /* readline completion support functions for CPU */
                     22: extern char* Symbols_MatchCpuAddress(const char *text, int state);
                     23: extern char* Symbols_MatchCpuCodeAddress(const char *text, int state);
                     24: extern char* Symbols_MatchCpuDataAddress(const char *text, int state);
                     25: /* readline completion support functions for DSP */
                     26: extern char* Symbols_MatchDspAddress(const char *text, int state);
                     27: extern char* Symbols_MatchDspCodeAddress(const char *text, int state);
                     28: extern char* Symbols_MatchDspDataAddress(const char *text, int state);
                     29: /* symbol name -> address search */
                     30: extern bool Symbols_GetCpuAddress(symtype_t symtype, const char *name, Uint32 *addr);
                     31: extern bool Symbols_GetDspAddress(symtype_t symtype, const char *name, Uint32 *addr);
                     32: /* symbol address -> name search */
1.1.1.6 ! root       33: extern const char* Symbols_GetByCpuAddress(Uint32 addr, symtype_t symtype);
        !            34: extern const char* Symbols_GetByDspAddress(Uint32 addr, symtype_t symtype);
        !            35: /* TEXT symbol address -> index */
        !            36: extern int Symbols_GetCpuCodeIndex(Uint32 addr);
        !            37: extern int Symbols_GetDspCodeIndex(Uint32 addr);
        !            38: /* how many TEXT symbols are loaded */
        !            39: extern int Symbols_CpuCodeCount(void);
        !            40: extern int Symbols_DspCodeCount(void);
1.1.1.4   root       41: /* handlers for automatic program symbol loading */
                     42: extern void Symbols_RemoveCurrentProgram(void);
1.1.1.5   root       43: extern void Symbols_ChangeCurrentProgram(const char *path);
1.1.1.4   root       44: extern void Symbols_LoadCurrentProgram(void);
1.1       root       45: /* symbols/dspsymbols command parsing */
1.1.1.4   root       46: extern char *Symbols_MatchCommand(const char *text, int state);
1.1       root       47: extern int Symbols_Command(int nArgc, char *psArgs[]);
                     48: 
                     49: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.