xdb progress; skeleton trace loading.

This commit is contained in:
Ben Vanik
2014-08-14 23:53:10 -07:00
parent bae26f7dfc
commit 21225b5917
22 changed files with 1236 additions and 18 deletions

View File

@@ -0,0 +1,50 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef XDB_SYM_SYMBOL_DATABASE_H_
#define XDB_SYM_SYMBOL_DATABASE_H_
#include <cstdint>
#include <string>
namespace xdb {
namespace sym {
class ObjectFile {
public:
std::string library;
std::string name;
};
enum class SymbolType {
FUNCTION,
VARIABLE,
};
class Symbol {
public:
uint32_t address;
ObjectFile* object_file;
std::string name;
SymbolType type;
bool is_inlined;
};
class SymbolDatabase {
public:
virtual Symbol* Lookup(uint32_t address) = 0;
protected:
SymbolDatabase() = default;
};
} // namespace sym
} // namespace xdb
#endif // XDB_SYM_SYMBOL_DATABASE_H_