This class creates a break condition.
[Type]
class BreakCondition:
Address = ""
Data = None
AccessSize = None
BreakType = BreakType.Hardware
|
[Variable]
|
|
Address
|
Specify the address at which to set a break.
Must be specified.
|
Data
|
Specify the number to set as a break condition for the data.
If "None" is specified, then the data condition is ignored.
|
AccessSize
|
Specify the access size (8, 16, 32, or 64).
If "None" is specified, then all access sizes will be specified.
|
BreakType
|
Specify the break type.
The break types that can be specified are shown below.
|
|
|
BreakType.Software
|
Software break (except a simulator)
|
BreakType.Hardware
|
Hardware break (default)
|
BreakType.Read
|
Data read break
|
BreakType.Write
|
Data write break
|
BreakType.Access
|
Data access break
|
[Detailed description]
- | "BreakCondition" is in class format, and the break condition is set in the variable.
In order to create a break condition, create an instance, and set conditions for that instance. |
[Example of use]
>>>executeBreak = BreakCondition() ... Create instance
>>>executeBreak.Address = "main"
>>>executeBreak.BreakType = BreakType.Software
>>>debugger.Breakpoint.Set(executeBreak) ... Specify function in which to set the break point in parameter
>>>
>>>dataBreak = BreakCondition() ... Create instance
>>>dataBreak.Address = "chData"
>>>dataBreak.Data = 0x10
>>>dataBreak.BreakType = BreakType.Access
>>>debugger.Breakpoint.Set(dataBreak) ... Specify function in which to set the break point in parameter
>>>
>>>executeBreak.Address = "sub + 0x10" ... Reuse break condition
>>>debugger.Breakpoint.Set(executeBreak) ... Specify function in which to set the break point in parameter
>>>
|