all repos — mgba @ 41211639ba654e54ad1a1212682e4f829f3aad33

mGBA Game Boy Advance Emulator

include/mgba/internal/debugger/symbols.h (view raw)

 1/* Copyright (c) 2013-2017 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef DEBUGGER_SYMBOLS_H
 7#define DEBUGGER_SYMBOLS_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13struct mDebuggerSymbols;
14
15struct mDebuggerSymbols* mDebuggerSymbolTableCreate(void);
16void mDebuggerSymbolTableDestroy(struct mDebuggerSymbols*);
17
18bool mDebuggerSymbolLookup(const struct mDebuggerSymbols*, const char* name, int32_t* value, int* segment);
19const char* mDebuggerSymbolReverseLookup(const struct mDebuggerSymbols*, int32_t value, int segment);
20
21void mDebuggerSymbolAdd(struct mDebuggerSymbols*, const char* name, int32_t value, int segment);
22void mDebuggerSymbolRemove(struct mDebuggerSymbols*, const char* name);
23
24struct VFile;
25void mDebuggerLoadARMIPSSymbols(struct mDebuggerSymbols*, struct VFile* vf);
26
27CXX_GUARD_END
28
29#endif