summaryrefslogtreecommitdiff
path: root/src/common/symbols.h
diff options
context:
space:
mode:
authorGravatar Mathieu Vaillancourt2014-04-12 18:57:58 -0400
committerGravatar Mathieu Vaillancourt2014-04-12 19:04:31 -0400
commitd046cfbba1dd2bcdad4ace3be706dadf3f6cc288 (patch)
treed880f04c199bd08751b4f30a4eee5939d56e06cd /src/common/symbols.h
parentFixed GPLv2 license issue (diff)
downloadyuzu-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.h39
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
11class DebugInterface;
12
13struct 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
26typedef std::map<u32, TSymbol> TSymbolsMap;
27typedef std::pair<u32, TSymbol> TSymbolsPair;
28
29namespace 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