OpenOCD
breakpoints.h File Reference
Include dependency graph for breakpoints.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  breakpoint
 
struct  watchpoint
 

Macros

#define ERROR_BREAKPOINT_NOT_FOUND   (-1600)
 
#define ERROR_WATCHPOINT_NOT_FOUND   (-1601)
 
#define WATCHPOINT_IGNORE_DATA_VALUE_MASK   (~(uint64_t)0)
 

Enumerations

enum  breakpoint_type { BKPT_HARD , BKPT_SOFT }
 
enum  watchpoint_rw { WPT_READ = 0 , WPT_WRITE = 1 , WPT_ACCESS = 2 }
 

Functions

int breakpoint_add (struct target *target, target_addr_t address, uint32_t length, enum breakpoint_type type)
 
int breakpoint_clear_target (struct target *target)
 
struct breakpointbreakpoint_find (struct target *target, target_addr_t address)
 
static void breakpoint_hw_set (struct breakpoint *breakpoint, unsigned int hw_number)
 
int breakpoint_remove (struct target *target, target_addr_t address)
 
int breakpoint_remove_all (struct target *target)
 
int context_breakpoint_add (struct target *target, uint32_t asid, uint32_t length, enum breakpoint_type type)
 
int hybrid_breakpoint_add (struct target *target, target_addr_t address, uint32_t asid, uint32_t length, enum breakpoint_type type)
 
int watchpoint_add (struct target *target, target_addr_t address, uint32_t length, enum watchpoint_rw rw, uint64_t value, uint64_t mask)
 
int watchpoint_clear_target (struct target *target)
 
int watchpoint_hit (struct target *target, enum watchpoint_rw *rw, target_addr_t *address)
 
int watchpoint_remove (struct target *target, target_addr_t address)
 
int watchpoint_remove_all (struct target *target)
 
static void watchpoint_set (struct watchpoint *watchpoint, unsigned int number)
 

Macro Definition Documentation

◆ ERROR_BREAKPOINT_NOT_FOUND

#define ERROR_BREAKPOINT_NOT_FOUND   (-1600)

Definition at line 88 of file breakpoints.h.

◆ ERROR_WATCHPOINT_NOT_FOUND

#define ERROR_WATCHPOINT_NOT_FOUND   (-1601)

Definition at line 89 of file breakpoints.h.

◆ WATCHPOINT_IGNORE_DATA_VALUE_MASK

#define WATCHPOINT_IGNORE_DATA_VALUE_MASK   (~(uint64_t)0)

Definition at line 39 of file breakpoints.h.

Enumeration Type Documentation

◆ breakpoint_type

Enumerator
BKPT_HARD 
BKPT_SOFT 

Definition at line 17 of file breakpoints.h.

◆ watchpoint_rw

Enumerator
WPT_READ 
WPT_WRITE 
WPT_ACCESS 

Definition at line 22 of file breakpoints.h.

Function Documentation

◆ breakpoint_add()

◆ breakpoint_clear_target()

int breakpoint_clear_target ( struct target target)

◆ breakpoint_find()

◆ breakpoint_hw_set()

◆ breakpoint_remove()

◆ breakpoint_remove_all()

int breakpoint_remove_all ( struct target target)

Definition at line 458 of file breakpoints.c.

References BREAKPOINT, and breakpoint_watchpoint_remove_all().

Referenced by COMMAND_HANDLER(), and target_destroy().

◆ context_breakpoint_add()

int context_breakpoint_add ( struct target target,
uint32_t  asid,
uint32_t  length,
enum breakpoint_type  type 
)

◆ hybrid_breakpoint_add()

int hybrid_breakpoint_add ( struct target target,
target_addr_t  address,
uint32_t  asid,
uint32_t  length,
enum breakpoint_type  type 
)

◆ watchpoint_add()

int watchpoint_add ( struct target target,
target_addr_t  address,
uint32_t  length,
enum watchpoint_rw  rw,
uint64_t  value,
uint64_t  mask 
)

◆ watchpoint_clear_target()

int watchpoint_clear_target ( struct target target)

◆ watchpoint_hit()

int watchpoint_hit ( struct target target,
enum watchpoint_rw rw,
target_addr_t address 
)

◆ watchpoint_remove()

◆ watchpoint_remove_all()

int watchpoint_remove_all ( struct target target)

Definition at line 463 of file breakpoints.c.

References breakpoint_watchpoint_remove_all(), and WATCHPOINT.

Referenced by COMMAND_HANDLER(), and target_destroy().

◆ watchpoint_set()