xref: /haiku/src/kits/debugger/model/SymbolInfo.cpp (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include "SymbolInfo.h"
7 
8 
9 SymbolInfo::SymbolInfo()
10 	:
11 	fAddress(0),
12 	fSize(0),
13 	fType(0),
14 	fName()
15 {
16 }
17 
18 
19 SymbolInfo::SymbolInfo(target_addr_t address, target_size_t size, uint32 type,
20 	const BString& name)
21 	:
22 	fAddress(address),
23 	fSize(size),
24 	fType(type),
25 	fName(name)
26 {
27 }
28 
29 
30 SymbolInfo::~SymbolInfo()
31 {
32 }
33 
34 
35 void
36 SymbolInfo::SetTo(target_addr_t address, target_size_t size, uint32 type,
37 	const BString& name)
38 {
39 	fAddress = address;
40 	fSize = size;
41 	fType = type;
42 	fName = name;
43 }
44