--- hatari/src/debug/symbols.h 2019/04/09 08:49:24 1.1.1.2 +++ hatari/src/debug/symbols.h 2019/04/09 08:55:32 1.1.1.5 @@ -1,8 +1,8 @@ /* * Hatari - symbols.h * - * This file is distributed under the GNU Public License, version 2 or at - * your option any later version. Read the file gpl.txt for details. + * This file is distributed under the GNU General Public License, version 2 + * or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_SYMBOLS_H @@ -31,10 +31,18 @@ extern bool Symbols_GetDspAddress(symtyp /* symbol address -> name search */ extern const char* Symbols_GetByCpuAddress(Uint32 addr); extern const char* Symbols_GetByDspAddress(Uint32 addr); +/* symbol address -> index */ +extern int Symbols_GetCpuAddressIndex(Uint32 addr); +extern int Symbols_GetDspAddressIndex(Uint32 addr); +/* how many symbols are loaded */ +extern int Symbols_CpuCount(void); +extern int Symbols_DspCount(void); +/* handlers for automatic program symbol loading */ +extern void Symbols_RemoveCurrentProgram(void); +extern void Symbols_ChangeCurrentProgram(const char *path); +extern void Symbols_LoadCurrentProgram(void); /* symbols/dspsymbols command parsing */ +extern char *Symbols_MatchCommand(const char *text, int state); extern int Symbols_Command(int nArgc, char *psArgs[]); -/* how many symbols are loaded */ -extern unsigned int Symbols_CpuCount(void); -extern unsigned int Symbols_DspCount(void); #endif