xref: /haiku/headers/private/debugger/model/ReturnValueInfo.h (revision 56430ad8002b8fd1ac69b590e9cc130de6d9e852)
1 /*
2  * Copyright 2013, Rene Gollent, rene@gollent.com.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef RETURN_VALUE_INFO_H
6 #define RETURN_VALUE_INFO_H
7 
8 
9 #include "ObjectList.h"
10 #include "Referenceable.h"
11 #include "Types.h"
12 
13 
14 class CpuState;
15 
16 
17 class ReturnValueInfo : public BReferenceable {
18 public:
19 								ReturnValueInfo();
20 								ReturnValueInfo(target_addr_t address,
21 									CpuState* state);
22 								~ReturnValueInfo();
23 
24 			void				SetTo(target_addr_t address, CpuState* state);
25 
26 			target_addr_t		SubroutineAddress() const
27 									{ return fAddress; }
28 			CpuState* 			State() const	{ return fState; }
29 
30 private:
31 			target_addr_t		fAddress;
32 			CpuState*			fState;
33 };
34 
35 
36 typedef BObjectList<ReturnValueInfo> ReturnValueInfoList;
37 
38 
39 #endif	// RETURN_VALUE_INFO_H
40