vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / model / SymbolInfo.h
blob883d2b55249ce2daabb585266f6db12ac477073c
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SYMBOL_INFO_H
6 #define SYMBOL_INFO_H
8 #include <String.h>
10 #include "Types.h"
13 class SymbolInfo {
14 public:
15 SymbolInfo();
16 SymbolInfo(target_addr_t address,
17 target_size_t size, uint32 type,
18 const BString& name);
19 ~SymbolInfo();
21 void SetTo(target_addr_t address, target_size_t size,
22 uint32 type, const BString& name);
24 target_addr_t Address() const { return fAddress; }
25 target_size_t Size() const { return fSize; }
26 uint32 Type() const { return fType; }
27 const char* Name() const { return fName.String(); }
29 private:
30 target_addr_t fAddress;
31 target_size_t fSize;
32 uint32 fType;
33 BString fName;
37 #endif // SYMBOL_INFO_H