GDB (xrefs)
Classes | Macros | Functions | Variables
x86-dregs.h File Reference
#include "break-common.h"

Go to the source code of this file.

Classes

struct  x86_dr_low_type
 
struct  x86_debug_reg_state
 

Macros

#define DR_FIRSTADDR   0
 
#define DR_LASTADDR   3
 
#define DR_NADDR   4 /* The number of debug address registers. */
 
#define DR_STATUS   6 /* Index of debug status register (DR6). */
 
#define DR_CONTROL   7 /* Index of debug control register (DR7). */
 
#define ALL_DEBUG_ADDRESS_REGISTERS(i)   for (i = DR_FIRSTADDR; i <= DR_LASTADDR; i++)
 

Functions

struct x86_debug_reg_statex86_debug_reg_state (pid_t pid)
 
int x86_dr_insert_watchpoint (struct x86_debug_reg_state *state, enum target_hw_bp_type type, CORE_ADDR addr, int len)
 
int x86_dr_remove_watchpoint (struct x86_debug_reg_state *state, enum target_hw_bp_type type, CORE_ADDR addr, int len)
 
int x86_dr_region_ok_for_watchpoint (struct x86_debug_reg_state *state, CORE_ADDR addr, int len)
 
int x86_dr_stopped_data_address (struct x86_debug_reg_state *state, CORE_ADDR *addr_p)
 
int x86_dr_stopped_by_watchpoint (struct x86_debug_reg_state *state)
 

Variables

struct x86_dr_low_type x86_dr_low
 

Macro Definition Documentation

#define ALL_DEBUG_ADDRESS_REGISTERS (   i)    for (i = DR_FIRSTADDR; i <= DR_LASTADDR; i++)
#define DR_CONTROL   7 /* Index of debug control register (DR7). */
#define DR_FIRSTADDR   0
#define DR_LASTADDR   3
#define DR_NADDR   4 /* The number of debug address registers. */

Definition at line 71 of file x86-dregs.h.

Referenced by x86_dr_region_ok_for_watchpoint(), and x86_insert_aligned_watchpoint().

#define DR_STATUS   6 /* Index of debug status register (DR6). */

Function Documentation

struct x86_debug_reg_state* x86_debug_reg_state ( pid_t  pid)
int x86_dr_insert_watchpoint ( struct x86_debug_reg_state state,
enum target_hw_bp_type  type,
CORE_ADDR  addr,
int  len 
)
int x86_dr_region_ok_for_watchpoint ( struct x86_debug_reg_state state,
CORE_ADDR  addr,
int  len 
)

Definition at line 554 of file x86-dregs.c.

References DR_NADDR, hw_write, WP_COUNT, and x86_handle_nonaligned_watchpoint().

Referenced by x86_region_ok_for_watchpoint().

int x86_dr_remove_watchpoint ( struct x86_debug_reg_state state,
enum target_hw_bp_type  type,
CORE_ADDR  addr,
int  len 
)
int x86_dr_stopped_by_watchpoint ( struct x86_debug_reg_state state)

Definition at line 651 of file x86-dregs.c.

References x86_dr_stopped_data_address().

Referenced by x86_stopped_by_watchpoint().

int x86_dr_stopped_data_address ( struct x86_debug_reg_state state,
CORE_ADDR addr_p 
)

Variable Documentation

struct x86_dr_low_type x86_dr_low