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 gdb_breakpointset_gdb_breakpoint (char z_type, CORE_ADDR addr, int kind, int *err)
 
int delete_gdb_breakpoint (char z_type, CORE_ADDR addr, int kind)
 
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)
 
int single_step_breakpoint_inserted_here (CORE_ADDR addr)
 
void clear_breakpoint_conditions_and_commands (struct gdb_breakpoint *bp)
 
int add_breakpoint_condition (struct gdb_breakpoint *bp, const char **condition)
 
int add_breakpoint_commands (struct gdb_breakpoint *bp, const 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_single_step_breakpoint (CORE_ADDR stop_at, ptid_t ptid)
 
void delete_single_step_breakpoints (struct thread_info *thread)
 
void reinsert_single_step_breakpoints (struct thread_info *thread)
 
void uninsert_single_step_breakpoints (struct thread_info *thread)
 
void reinsert_breakpoints_at (CORE_ADDR where)
 
int has_single_step_breakpoints (struct thread_info *thread)
 
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 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 thread_info *child_thread, const struct thread_info *parent_thread)
 

Macro Definition Documentation

◆ Z_PACKET_ACCESS_WP

#define Z_PACKET_ACCESS_WP   '4'

◆ Z_PACKET_HW_BP

#define Z_PACKET_HW_BP   '1'

◆ Z_PACKET_READ_WP

#define Z_PACKET_READ_WP   '3'

◆ Z_PACKET_SW_BP

#define Z_PACKET_SW_BP   '0'

◆ Z_PACKET_WRITE_WP

#define Z_PACKET_WRITE_WP   '2'

Enumeration Type Documentation

◆ raw_bkpt_type

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 41 of file mem-break.h.

Function Documentation

◆ add_breakpoint_commands()

int add_breakpoint_commands ( struct gdb_breakpoint bp,
const char **  commands,
int  persist 
)

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

References add_commands_to_breakpoint(), gdb_parse_agent_expr(), and warning().

Referenced by process_point_options().

◆ add_breakpoint_condition()

int add_breakpoint_condition ( struct gdb_breakpoint bp,
const char **  condition 
)

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

References add_condition_to_breakpoint(), gdb_parse_agent_expr(), and warning().

Referenced by process_point_options().

◆ any_persistent_commands()

int any_persistent_commands ( void  )

◆ breakpoint_here()

int breakpoint_here ( CORE_ADDR  addr)

◆ breakpoint_inserted_here()

int breakpoint_inserted_here ( CORE_ADDR  addr)

◆ check_breakpoints()

void check_breakpoints ( CORE_ADDR  stop_pc)

◆ check_mem_read()

void check_mem_read ( CORE_ADDR  mem_addr,
unsigned char *  buf,
int  mem_len 
)

◆ check_mem_write()

void check_mem_write ( CORE_ADDR  mem_addr,
unsigned char *  buf,
const unsigned char *  myaddr,
int  mem_len 
)

◆ clear_breakpoint_conditions_and_commands()

void clear_breakpoint_conditions_and_commands ( struct gdb_breakpoint bp)

◆ clone_all_breakpoints()

void clone_all_breakpoints ( struct thread_info child_thread,
const struct thread_info parent_thread 
)

◆ delete_all_breakpoints()

void delete_all_breakpoints ( void  )

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

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

◆ delete_breakpoint()

int delete_breakpoint ( struct breakpoint bkpt)

◆ delete_fast_tracepoint_jump()

int delete_fast_tracepoint_jump ( struct fast_tracepoint_jump todel)

◆ delete_gdb_breakpoint()

int delete_gdb_breakpoint ( char  z_type,
CORE_ADDR  addr,
int  kind 
)

◆ delete_single_step_breakpoints()

void delete_single_step_breakpoints ( struct thread_info thread)

◆ fast_tracepoint_jump_here()

int fast_tracepoint_jump_here ( CORE_ADDR  )

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

References find_fast_tracepoint_jump_at().

Referenced by need_step_over_p().

◆ free_all_breakpoints()

void free_all_breakpoints ( struct process_info proc)

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

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

Referenced by remove_process().

◆ gdb_breakpoint_here()

int gdb_breakpoint_here ( CORE_ADDR  where)

◆ gdb_condition_true_at_breakpoint()

int gdb_condition_true_at_breakpoint ( CORE_ADDR  where)

◆ gdb_no_commands_at_breakpoint()

int gdb_no_commands_at_breakpoint ( CORE_ADDR  where)

◆ hardware_breakpoint_inserted_here()

int hardware_breakpoint_inserted_here ( CORE_ADDR  addr)

◆ has_single_step_breakpoints()

int has_single_step_breakpoints ( struct thread_info thread)

◆ inc_ref_fast_tracepoint_jump()

void inc_ref_fast_tracepoint_jump ( struct fast_tracepoint_jump jp)

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

References fast_tracepoint_jump::refcount.

Referenced by clone_fast_tracepoint().

◆ insert_memory_breakpoint()

int insert_memory_breakpoint ( struct raw_breakpoint bp)

◆ mark_breakpoints_out()

void mark_breakpoints_out ( struct process_info proc)

◆ raw_bkpt_type_to_target_hw_bp_type()

enum target_hw_bp_type raw_bkpt_type_to_target_hw_bp_type ( enum raw_bkpt_type  raw_type)

◆ reinsert_all_breakpoints()

void reinsert_all_breakpoints ( void  )

◆ reinsert_breakpoints_at()

void reinsert_breakpoints_at ( CORE_ADDR  where)

◆ reinsert_fast_tracepoint_jumps_at()

void reinsert_fast_tracepoint_jumps_at ( CORE_ADDR  where)

◆ reinsert_single_step_breakpoints()

void reinsert_single_step_breakpoints ( struct thread_info thread)

◆ remove_memory_breakpoint()

int remove_memory_breakpoint ( struct raw_breakpoint bp)

◆ run_breakpoint_commands()

void run_breakpoint_commands ( CORE_ADDR  where)

Definition at line 1461 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().

◆ set_breakpoint_at()

struct breakpoint* set_breakpoint_at ( CORE_ADDR  where,
int(*)(CORE_ADDR handler 
)

◆ set_fast_tracepoint_jump()

struct fast_tracepoint_jump* set_fast_tracepoint_jump ( CORE_ADDR  where,
unsigned char *  insn,
ULONGEST  length 
)

◆ set_gdb_breakpoint()

struct gdb_breakpoint* set_gdb_breakpoint ( char  z_type,
CORE_ADDR  addr,
int  kind,
int *  err 
)

◆ set_single_step_breakpoint()

void set_single_step_breakpoint ( CORE_ADDR  stop_at,
ptid_t  ptid 
)

◆ single_step_breakpoint_inserted_here()

int single_step_breakpoint_inserted_here ( CORE_ADDR  addr)

◆ software_breakpoint_inserted_here()

int software_breakpoint_inserted_here ( CORE_ADDR  addr)

◆ uninsert_all_breakpoints()

void uninsert_all_breakpoints ( void  )

◆ uninsert_breakpoints_at()

void uninsert_breakpoints_at ( CORE_ADDR  where)

◆ uninsert_fast_tracepoint_jumps_at()

void uninsert_fast_tracepoint_jumps_at ( CORE_ADDR  pc)

◆ uninsert_single_step_breakpoints()

void uninsert_single_step_breakpoints ( struct thread_info thread)

◆ validate_breakpoints()

void validate_breakpoints ( void  )

◆ Z_packet_to_raw_bkpt_type()

enum raw_bkpt_type Z_packet_to_raw_bkpt_type ( char  z_type)