btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / ReturnValueInfo.h
blob4cf5d9867fa4f0b8ddc64289d15766e6b26d4b35
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
9 #include "ObjectList.h"
10 #include "Referenceable.h"
11 #include "Types.h"
14 class CpuState;
17 class ReturnValueInfo : public BReferenceable {
18 public:
19 ReturnValueInfo();
20 ReturnValueInfo(target_addr_t address,
21 CpuState* state);
22 ~ReturnValueInfo();
24 void SetTo(target_addr_t address, CpuState* state);
26 target_addr_t SubroutineAddress() const
27 { return fAddress; }
28 CpuState* State() const { return fState; }
30 private:
31 target_addr_t fAddress;
32 CpuState* fState;
36 typedef BObjectList<ReturnValueInfo> ReturnValueInfoList;
39 #endif // RETURN_VALUE_INFO_H