GDBserver
Macros | Enumerations | Functions
mem-break.h File Reference
#include "break-common.h"

Go to the source code of this file.

Macros

#define Z_PACKET_SW_BP   '0'
 
#define Z_PACKET_HW_BP   '1'
 
#define Z_PACKET_WRITE_WP   '2'
 
#define Z_PACKET_READ_WP   '3'
 
#define Z_PACKET_ACCESS_WP   '4'
 

Enumerations

enum  raw_bkpt_type {
  raw_bkpt_type_sw, raw_bkpt_type_hw, raw_bkpt_type_write_wp, raw_bkpt_type_read_wp,
  raw_bkpt_type_access_wp
}
 

Functions

enum raw_bkpt_type Z_packet_to_raw_bkpt_type (char z_type)
 
enum target_hw_bp_type raw_bkpt_type_to_target_hw_bp_type (enum raw_bkpt_type raw_type)
 
struct breakpointset_gdb_breakpoint (char z_type, CORE_ADDR addr, int size, int *err)
 
int delete_gdb_breakpoint (char z_type, CORE_ADDR addr, int size)
 
int breakpoint_here (CORE_ADDR addr)
 
int breakpoint_inserted_here (CORE_ADDR addr)
 
int software_breakpoint_inserted_here (CORE_ADDR addr)
 
int hardware_breakpoint_inserted_here (CORE_ADDR addr)
 
void clear_breakpoint_conditions_and_commands (struct breakpoint *bp)
 
int add_breakpoint_condition (struct breakpoint *bp, char **condition)
 
int add_breakpoint_commands (struct breakpoint *bp, char **commands, int persist)
 
int any_persistent_commands (void)
 
int gdb_condition_true_at_breakpoint (CORE_ADDR where)
 
int gdb_no_commands_at_breakpoint (CORE_ADDR where)
 
void run_breakpoint_commands (CORE_ADDR where)
 
int gdb_breakpoint_here (CORE_ADDR where)
 
struct breakpointset_breakpoint_at (CORE_ADDR where, int(*handler)(CORE_ADDR))
 
int delete_breakpoint (struct breakpoint *bkpt)
 
void set_reinsert_breakpoint (CORE_ADDR stop_at)
 
void delete_reinsert_breakpoints (void)
 
void reinsert_breakpoints_at (CORE_ADDR where)
 
void uninsert_breakpoints_at (CORE_ADDR where)
 
void reinsert_all_breakpoints (void)
 
void uninsert_all_breakpoints (void)
 
void check_breakpoints (CORE_ADDR stop_pc)
 
void check_mem_read (CORE_ADDR mem_addr, unsigned char *buf, int mem_len)
 
void check_mem_write (CORE_ADDR mem_addr, unsigned char *buf, const unsigned char *myaddr, int mem_len)
 
void set_breakpoint_data (const unsigned char *bp_data, int bp_len)
 
void delete_all_breakpoints (void)
 
void mark_breakpoints_out (struct process_info *proc)
 
void free_all_breakpoints (struct process_info *proc)
 
void validate_breakpoints (void)
 
struct fast_tracepoint_jumpset_fast_tracepoint_jump (CORE_ADDR where, unsigned char *insn, ULONGEST length)
 
void inc_ref_fast_tracepoint_jump (struct fast_tracepoint_jump *jp)
 
int delete_fast_tracepoint_jump (struct fast_tracepoint_jump *todel)
 
int fast_tracepoint_jump_here (CORE_ADDR)
 
void uninsert_fast_tracepoint_jumps_at (CORE_ADDR pc)
 
void reinsert_fast_tracepoint_jumps_at (CORE_ADDR where)
 
int insert_memory_breakpoint (struct raw_breakpoint *bp)
 
int remove_memory_breakpoint (struct raw_breakpoint *bp)
 
void clone_all_breakpoints (struct breakpoint **new_bkpt_list, struct raw_breakpoint **new_raw_bkpt_list, const struct breakpoint *src)
 

Macro Definition Documentation

#define Z_PACKET_ACCESS_WP   '4'
#define Z_PACKET_HW_BP   '1'
#define Z_PACKET_READ_WP   '3'
#define Z_PACKET_SW_BP   '0'
#define Z_PACKET_WRITE_WP   '2'

Enumeration Type Documentation

Enumerator
raw_bkpt_type_sw 
raw_bkpt_type_hw 
raw_bkpt_type_write_wp 
raw_bkpt_type_read_wp 
raw_bkpt_type_access_wp 

Definition at line 40 of file mem-break.h.

Function Documentation

int add_breakpoint_commands ( struct breakpoint bp,
char **  commands,
int  persist 
)

Definition at line 1282 of file mem-break.c.

References add_commands_to_breakpoint(), and gdb_parse_agent_expr().

Referenced by process_point_options().

int add_breakpoint_condition ( struct breakpoint bp,
char **  condition 
)

Definition at line 1183 of file mem-break.c.

References add_condition_to_breakpoint(), and gdb_parse_agent_expr().

Referenced by process_point_options().

int any_persistent_commands ( void  )
int breakpoint_here ( CORE_ADDR  addr)
int breakpoint_inserted_here ( CORE_ADDR  addr)
void check_breakpoints ( CORE_ADDR  stop_pc)
void check_mem_read ( CORE_ADDR  mem_addr,
unsigned char *  buf,
int  mem_len 
)
void check_mem_write ( CORE_ADDR  mem_addr,
unsigned char *  buf,
const unsigned char *  myaddr,
int  mem_len 
)
void clear_breakpoint_conditions_and_commands ( struct breakpoint bp)
void clone_all_breakpoints ( struct breakpoint **  new_bkpt_list,
struct raw_breakpoint **  new_raw_bkpt_list,
const struct breakpoint src 
)

Definition at line 2003 of file mem-break.c.

References APPEND_TO_LIST, clone_one_breakpoint(), breakpoint::next, and breakpoint::raw.

Referenced by handle_extended_wait().

void delete_all_breakpoints ( void  )

Definition at line 1898 of file mem-break.c.

References process_info::breakpoints, current_process(), and delete_breakpoint_1().

int delete_breakpoint ( struct breakpoint bkpt)
int delete_fast_tracepoint_jump ( struct fast_tracepoint_jump todel)
int delete_gdb_breakpoint ( char  z_type,
CORE_ADDR  addr,
int  size 
)
void delete_reinsert_breakpoints ( void  )
int fast_tracepoint_jump_here ( CORE_ADDR  )

Definition at line 492 of file mem-break.c.

References find_fast_tracepoint_jump_at().

Referenced by need_step_over_p().

void free_all_breakpoints ( struct process_info proc)

Definition at line 1921 of file mem-break.c.

References process_info::breakpoints, delete_breakpoint_1(), and mark_breakpoints_out().

Referenced by remove_process().

int gdb_breakpoint_here ( CORE_ADDR  where)
int gdb_condition_true_at_breakpoint ( CORE_ADDR  where)
int gdb_no_commands_at_breakpoint ( CORE_ADDR  where)
int hardware_breakpoint_inserted_here ( CORE_ADDR  addr)
void inc_ref_fast_tracepoint_jump ( struct fast_tracepoint_jump jp)

Definition at line 562 of file mem-break.c.

References fast_tracepoint_jump::refcount.

Referenced by clone_fast_tracepoint().

int insert_memory_breakpoint ( struct raw_breakpoint bp)
void mark_breakpoints_out ( struct process_info proc)
enum target_hw_bp_type raw_bkpt_type_to_target_hw_bp_type ( enum raw_bkpt_type  raw_type)
void reinsert_all_breakpoints ( void  )
void reinsert_breakpoints_at ( CORE_ADDR  where)
void reinsert_fast_tracepoint_jumps_at ( CORE_ADDR  where)
int remove_memory_breakpoint ( struct raw_breakpoint bp)
void run_breakpoint_commands ( CORE_ADDR  where)

Definition at line 1374 of file mem-break.c.

References run_breakpoint_commands_z_type(), Z_PACKET_HW_BP, and Z_PACKET_SW_BP.

Referenced by linux_wait_1().

struct breakpoint* set_breakpoint_at ( CORE_ADDR  where,
int(*)(CORE_ADDR handler 
)
void set_breakpoint_data ( const unsigned char *  bp_data,
int  bp_len 
)

Definition at line 1592 of file mem-break.c.

References breakpoint_data, and breakpoint_len.

Referenced by initialize_low().

struct fast_tracepoint_jump* set_fast_tracepoint_jump ( CORE_ADDR  where,
unsigned char *  insn,
ULONGEST  length 
)
struct breakpoint* set_gdb_breakpoint ( char  z_type,
CORE_ADDR  addr,
int  size,
int *  err 
)
void set_reinsert_breakpoint ( CORE_ADDR  stop_at)

Definition at line 1393 of file mem-break.c.

References reinsert_breakpoint, set_breakpoint_at(), and breakpoint::type.

Referenced by start_step_over().

int software_breakpoint_inserted_here ( CORE_ADDR  addr)
void uninsert_all_breakpoints ( void  )
void uninsert_breakpoints_at ( CORE_ADDR  where)
void uninsert_fast_tracepoint_jumps_at ( CORE_ADDR  pc)
void validate_breakpoints ( void  )
enum raw_bkpt_type Z_packet_to_raw_bkpt_type ( char  z_type)