2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2013-2014, Rene Gollent, rene@gollent.com.
4 * Distributed under the terms of the MIT License.
6 #ifndef BREAKPOINT_SETTING_H
7 #define BREAKPOINT_SETTING_H
12 #include <ObjectList.h>
14 #include "SourceLocation.h"
20 class UserBreakpointLocation
;
23 class BreakpointSetting
{
27 const BreakpointSetting
& other
);
30 status_t
SetTo(const UserBreakpointLocation
& location
,
31 bool enabled
, bool hidden
,
32 const BString
& conditionExpression
);
33 status_t
SetTo(const BMessage
& archive
);
34 status_t
WriteTo(BMessage
& archive
) const;
36 FunctionID
* GetFunctionID() const { return fFunctionID
; }
37 const BString
& SourceFile() const { return fSourceFile
; }
38 SourceLocation
GetSourceLocation() const
39 { return fSourceLocation
; }
40 target_addr_t
RelativeAddress() const
41 { return fRelativeAddress
; }
43 bool IsEnabled() const { return fEnabled
; }
44 bool IsHidden() const { return fHidden
; }
46 const BString
& Condition() const
47 { return fConditionExpression
; }
49 BreakpointSetting
& operator=(const BreakpointSetting
& other
);
55 FunctionID
* fFunctionID
;
57 SourceLocation fSourceLocation
;
58 target_addr_t fRelativeAddress
;
61 BString fConditionExpression
;
65 #endif // BREAKPOINT_SETTING_H