diff options
| author | 2014-04-12 18:57:58 -0400 | |
|---|---|---|
| committer | 2014-04-12 19:04:31 -0400 | |
| commit | d046cfbba1dd2bcdad4ace3be706dadf3f6cc288 (patch) | |
| tree | d880f04c199bd08751b4f30a4eee5939d56e06cd /src/common/symbols.h | |
| parent | Fixed GPLv2 license issue (diff) | |
| download | yuzu-d046cfbba1dd2bcdad4ace3be706dadf3f6cc288.tar.gz yuzu-d046cfbba1dd2bcdad4ace3be706dadf3f6cc288.tar.xz yuzu-d046cfbba1dd2bcdad4ace3be706dadf3f6cc288.zip | |
Add symbols map
Diffstat (limited to 'src/common/symbols.h')
| -rw-r--r-- | src/common/symbols.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/common/symbols.h b/src/common/symbols.h new file mode 100644 index 000000000..b76749654 --- /dev/null +++ b/src/common/symbols.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <map> | ||
| 8 | |||
| 9 | #include "common/common.h" | ||
| 10 | |||
| 11 | class DebugInterface; | ||
| 12 | |||
| 13 | struct TSymbol | ||
| 14 | { | ||
| 15 | TSymbol() : | ||
| 16 | address(0), | ||
| 17 | size(0), | ||
| 18 | type(0) | ||
| 19 | {} | ||
| 20 | u32 address; | ||
| 21 | std::string name; | ||
| 22 | u32 size; | ||
| 23 | u32 type; | ||
| 24 | }; | ||
| 25 | |||
| 26 | typedef std::map<u32, TSymbol> TSymbolsMap; | ||
| 27 | typedef std::pair<u32, TSymbol> TSymbolsPair; | ||
| 28 | |||
| 29 | namespace Symbols | ||
| 30 | { | ||
| 31 | bool HasSymbol(u32 _address); | ||
| 32 | |||
| 33 | void Add(u32 _address, const std::string& _name, u32 _size, u32 _type); | ||
| 34 | TSymbol GetSymbol(u32 _address); | ||
| 35 | const std::string& GetName(u32 _address); | ||
| 36 | void Remove(u32 _address); | ||
| 37 | void Clear(); | ||
| 38 | }; | ||
| 39 | |||