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

Go to the source code of this file.

Functions

static int calcaddr_physfromlin (struct target *t, target_addr_t addr, target_addr_t *physaddr)
 
 COMMAND_HANDLER (handle_iod_command)
 
 COMMAND_HANDLER (handle_iow_command)
 
static void handle_iod_output (struct command_invocation *cmd, struct target *target, uint32_t address, unsigned int size, unsigned int count, const uint8_t *buffer)
 
static int read_hw_reg_to_cache (struct target *t, int num)
 
static int read_mem (struct target *t, uint32_t size, uint32_t addr, uint8_t *buf)
 
static int read_phys_mem (struct target *t, uint32_t phys_address, uint32_t size, uint32_t count, uint8_t *buffer)
 
static int set_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int set_debug_regs (struct target *t, uint32_t address, uint8_t bp_num, uint8_t bp_type, uint8_t bp_length)
 
static int set_hwbp (struct target *t, struct breakpoint *bp)
 
static int set_swbp (struct target *t, struct breakpoint *bp)
 
static int set_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int target_fill_io (struct target *target, uint32_t address, unsigned int data_size, uint32_t b)
 
static int unset_breakpoint (struct target *target, struct breakpoint *breakpoint)
 
static int unset_debug_regs (struct target *t, uint8_t bp_num)
 
static int unset_hwbp (struct target *t, struct breakpoint *bp)
 
static int unset_swbp (struct target *t, struct breakpoint *bp)
 
static int unset_watchpoint (struct target *target, struct watchpoint *watchpoint)
 
static int write_hw_reg_from_cache (struct target *t, int num)
 
static int write_mem (struct target *t, uint32_t size, uint32_t addr, const uint8_t *buf)
 
static int write_phys_mem (struct target *t, uint32_t phys_address, uint32_t size, uint32_t count, const uint8_t *buffer)
 
int x86_32_common_add_breakpoint (struct target *t, struct breakpoint *bp)
 
int x86_32_common_add_watchpoint (struct target *t, struct watchpoint *wp)
 
int x86_32_common_init_arch_info (struct target *t, struct x86_32_common *x86_32)
 
int x86_32_common_mmu (struct target *t, int *enabled)
 
int x86_32_common_read_io (struct target *t, uint32_t addr, uint32_t size, uint8_t *buf)
 
int x86_32_common_read_memory (struct target *t, target_addr_t addr, uint32_t size, uint32_t count, uint8_t *buf)
 
int x86_32_common_read_phys_mem (struct target *t, target_addr_t phys_address, uint32_t size, uint32_t count, uint8_t *buffer)
 
int x86_32_common_remove_breakpoint (struct target *t, struct breakpoint *bp)
 
int x86_32_common_remove_watchpoint (struct target *t, struct watchpoint *wp)
 
void x86_32_common_reset_breakpoints_watchpoints (struct target *t)
 
int x86_32_common_virt2phys (struct target *t, target_addr_t address, target_addr_t *physical)
 
int x86_32_common_write_io (struct target *t, uint32_t addr, uint32_t size, const uint8_t *buf)
 
int x86_32_common_write_memory (struct target *t, target_addr_t addr, uint32_t size, uint32_t count, const uint8_t *buf)
 
int x86_32_common_write_phys_mem (struct target *t, target_addr_t phys_address, uint32_t size, uint32_t count, const uint8_t *buffer)
 
int x86_32_get_gdb_reg_list (struct target *t, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class)
 

Variables

const struct command_registration x86_32_command_handlers []
 
static const struct command_registration x86_32_exec_command_handlers []
 

Function Documentation

◆ calcaddr_physfromlin()

◆ COMMAND_HANDLER() [1/2]

◆ COMMAND_HANDLER() [2/2]

COMMAND_HANDLER ( handle_iow_command  )

◆ handle_iod_output()

static void handle_iod_output ( struct command_invocation cmd,
struct target target,
uint32_t  address,
unsigned int  size,
unsigned int  count,
const uint8_t *  buffer 
)
static

◆ read_hw_reg_to_cache()

◆ read_mem()

◆ read_phys_mem()

static int read_phys_mem ( struct target t,
uint32_t  phys_address,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
static

◆ set_breakpoint()

static int set_breakpoint ( struct target target,
struct breakpoint breakpoint 
)
static

◆ set_debug_regs()

static int set_debug_regs ( struct target t,
uint32_t  address,
uint8_t  bp_num,
uint8_t  bp_type,
uint8_t  bp_length 
)
static

◆ set_hwbp()

◆ set_swbp()

◆ set_watchpoint()

◆ target_fill_io()

static int target_fill_io ( struct target target,
uint32_t  address,
unsigned int  data_size,
uint32_t  b 
)
static

◆ unset_breakpoint()

static int unset_breakpoint ( struct target target,
struct breakpoint breakpoint 
)
static

◆ unset_debug_regs()

◆ unset_hwbp()

◆ unset_swbp()

◆ unset_watchpoint()

◆ write_hw_reg_from_cache()

◆ write_mem()

static int write_mem ( struct target t,
uint32_t  size,
uint32_t  addr,
const uint8_t *  buf 
)
static

◆ write_phys_mem()

static int write_phys_mem ( struct target t,
uint32_t  phys_address,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)
static

◆ x86_32_common_add_breakpoint()

int x86_32_common_add_breakpoint ( struct target t,
struct breakpoint bp 
)

◆ x86_32_common_add_watchpoint()

int x86_32_common_add_watchpoint ( struct target t,
struct watchpoint wp 
)

Definition at line 841 of file x86_32_common.c.

References check_not_halted(), and set_watchpoint().

◆ x86_32_common_init_arch_info()

◆ x86_32_common_mmu()

int x86_32_common_mmu ( struct target t,
int *  enabled 
)

Definition at line 99 of file x86_32_common.c.

References ERROR_OK.

◆ x86_32_common_read_io()

◆ x86_32_common_read_memory()

◆ x86_32_common_read_phys_mem()

int x86_32_common_read_phys_mem ( struct target t,
target_addr_t  phys_address,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)

◆ x86_32_common_remove_breakpoint()

int x86_32_common_remove_breakpoint ( struct target t,
struct breakpoint bp 
)

◆ x86_32_common_remove_watchpoint()

int x86_32_common_remove_watchpoint ( struct target t,
struct watchpoint wp 
)

◆ x86_32_common_reset_breakpoints_watchpoints()

◆ x86_32_common_virt2phys()

int x86_32_common_virt2phys ( struct target t,
target_addr_t  address,
target_addr_t physical 
)

◆ x86_32_common_write_io()

◆ x86_32_common_write_memory()

◆ x86_32_common_write_phys_mem()

◆ x86_32_get_gdb_reg_list()

int x86_32_get_gdb_reg_list ( struct target t,
struct reg **  reg_list[],
int *  reg_list_size,
enum target_register_class  reg_class 
)

Variable Documentation

◆ x86_32_command_handlers

const struct command_registration x86_32_command_handlers[]
Initial value:
= {
{
.name = "x86_32",
.mode = COMMAND_ANY,
.help = "x86_32 target commands",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42
static const struct command_registration x86_32_exec_command_handlers[]

Definition at line 1451 of file x86_32_common.c.

◆ x86_32_exec_command_handlers

const struct command_registration x86_32_exec_command_handlers[]
static

Definition at line 1451 of file x86_32_common.c.