2009-06-20 21:20:49 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef SYMBOL_INFO_H
|
|
|
|
#define SYMBOL_INFO_H
|
|
|
|
|
|
|
|
#include <String.h>
|
|
|
|
|
2009-06-30 02:38:15 +04:00
|
|
|
#include "Types.h"
|
2009-06-20 21:20:49 +04:00
|
|
|
|
|
|
|
|
|
|
|
class SymbolInfo {
|
|
|
|
public:
|
2009-07-03 18:23:19 +04:00
|
|
|
SymbolInfo();
|
2009-06-20 21:20:49 +04:00
|
|
|
SymbolInfo(target_addr_t address,
|
|
|
|
target_size_t size, uint32 type,
|
|
|
|
const BString& name);
|
|
|
|
~SymbolInfo();
|
|
|
|
|
2009-07-03 18:23:19 +04:00
|
|
|
void SetTo(target_addr_t address, target_size_t size,
|
|
|
|
uint32 type, const BString& name);
|
|
|
|
|
2009-06-20 21:20:49 +04:00
|
|
|
target_addr_t Address() const { return fAddress; }
|
|
|
|
target_size_t Size() const { return fSize; }
|
|
|
|
uint32 Type() const { return fType; }
|
|
|
|
const char* Name() const { return fName.String(); }
|
|
|
|
|
|
|
|
private:
|
|
|
|
target_addr_t fAddress;
|
|
|
|
target_size_t fSize;
|
|
|
|
uint32 fType;
|
|
|
|
BString fName;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // SYMBOL_INFO_H
|