OpenOCD
breakpoints.c File Reference
Include dependency graph for breakpoints.c:

Go to the source code of this file.

Functions

int breakpoint_add (struct target *target, target_addr_t address, uint32_t length, enum breakpoint_type type)
 
static int breakpoint_add_internal (struct target *target, target_addr_t address, uint32_t length, enum breakpoint_type type)
 
void breakpoint_clear_target (struct target *target)
 
static void breakpoint_clear_target_internal (struct target *target)
 
struct breakpointbreakpoint_find (struct target *target, target_addr_t address)
 
static void breakpoint_free (struct target *target, struct breakpoint *breakpoint_to_remove)
 
void breakpoint_remove (struct target *target, target_addr_t address)
 
void breakpoint_remove_all (struct target *target)
 
static void breakpoint_remove_all_internal (struct target *target)
 
static int breakpoint_remove_internal (struct target *target, target_addr_t address)
 
int context_breakpoint_add (struct target *target, uint32_t asid, uint32_t length, enum breakpoint_type type)
 
static int context_breakpoint_add_internal (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)
 
static int hybrid_breakpoint_add_internal (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, uint32_t value, uint32_t mask)
 
static int watchpoint_add_internal (struct target *target, target_addr_t address, uint32_t length, enum watchpoint_rw rw, uint32_t value, uint32_t mask)
 
void watchpoint_clear_target (struct target *target)
 
static void watchpoint_free (struct target *target, struct watchpoint *watchpoint_to_remove)
 
int watchpoint_hit (struct target *target, enum watchpoint_rw *rw, target_addr_t *address)
 
void watchpoint_remove (struct target *target, target_addr_t address)
 
static int watchpoint_remove_internal (struct target *target, target_addr_t address)
 

Variables

static int bpwp_unique_id
 
static const char *const breakpoint_type_strings []
 
static const char *const watchpoint_rw_strings []
 

Function Documentation

◆ breakpoint_add()

◆ breakpoint_add_internal()

◆ breakpoint_clear_target()

void breakpoint_clear_target ( struct target target)

◆ breakpoint_clear_target_internal()

static void breakpoint_clear_target_internal ( struct target target)
static

Definition at line 360 of file breakpoints.c.

References breakpoint_free(), target::breakpoints, LOG_DEBUG, and target_name().

Referenced by breakpoint_clear_target().

◆ breakpoint_find()

◆ breakpoint_free()

static void breakpoint_free ( struct target target,
struct breakpoint breakpoint_to_remove 
)
static

◆ breakpoint_remove()

◆ breakpoint_remove_all()

void breakpoint_remove_all ( struct target target)

◆ breakpoint_remove_all_internal()

static void breakpoint_remove_all_internal ( struct target target)
static

Definition at line 318 of file breakpoints.c.

References breakpoint_free(), target::breakpoints, and breakpoint::next.

Referenced by breakpoint_remove_all().

◆ breakpoint_remove_internal()

static int breakpoint_remove_internal ( struct target target,
target_addr_t  address 
)
static

◆ context_breakpoint_add()

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

◆ context_breakpoint_add_internal()

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

◆ hybrid_breakpoint_add()

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

◆ hybrid_breakpoint_add_internal()

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

◆ watchpoint_add()

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

◆ watchpoint_add_internal()

◆ watchpoint_clear_target()

void watchpoint_clear_target ( struct target target)

◆ watchpoint_free()

static void watchpoint_free ( struct target target,
struct watchpoint watchpoint_to_remove 
)
static

◆ watchpoint_hit()

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

◆ watchpoint_remove()

◆ watchpoint_remove_internal()

static int watchpoint_remove_internal ( struct target target,
target_addr_t  address 
)
static

Variable Documentation

◆ bpwp_unique_id

◆ breakpoint_type_strings

const char* const breakpoint_type_strings[]
static
Initial value:
= {
"hardware",
"software"
}

Definition at line 20 of file breakpoints.c.

Referenced by breakpoint_add_internal(), context_breakpoint_add_internal(), and hybrid_breakpoint_add_internal().

◆ watchpoint_rw_strings

const char* const watchpoint_rw_strings[]
static
Initial value:
= {
"read",
"write",
"access"
}

Definition at line 25 of file breakpoints.c.

Referenced by watchpoint_add_internal().