#define OPENOCD_TARGET_TARGET_H
#include <helper/list.h>
#include "helper/replacements.h"
#include "helper/system.h"
#include <helper/types.h>
#include <jim.h>
reg
trace
command_context
command_invocation
breakpoint
watchpoint
mem_param
reg_param
target_list
gdb_fileio_info
target_state
TARGET_UNKNOWN
TARGET_RUNNING
TARGET_HALTED
TARGET_RESET
TARGET_DEBUG_RUNNING
target_reset_mode
RESET_UNKNOWN
RESET_RUN
RESET_HALT
RESET_INIT
target_debug_reason
DBG_REASON_DBGRQ
DBG_REASON_BREAKPOINT
DBG_REASON_WATCHPOINT
DBG_REASON_WPTANDBKPT
DBG_REASON_SINGLESTEP
DBG_REASON_NOTHALTED
DBG_REASON_EXIT
DBG_REASON_EXC_CATCH
DBG_REASON_UNDEFINED
target_endianness
TARGET_ENDIAN_UNKNOWN
TARGET_BIG_ENDIAN
TARGET_LITTLE_ENDIAN
working_area
address
size
free
backup
user
next
gdb_service
target
core
backoff_timer
times
count
target_register_class
REG_CLASS_ALL
REG_CLASS_GENERAL
target
target_type
type
cmd_name
jtag_tap
tap
coreid
defer_examine
examined
running_alg
target_event_action
event_action
reset_halt
working_area
working_area_virt_spec
working_area_virt
working_area_phys_spec
working_area_phys
working_area_size
backup_working_area
working_areas
debug_reason
endianness
state
reg_cache
reg_cache
breakpoints
watchpoints
trace_info
debug_msg_receiver
dbgmsg
dbg_msg_enabled
arch_info
private_config
next
verbose_halt_msg
halt_issued
halt_issued_time
dbgbase_set
dbgbase
has_dap
dap_configured
tap_configured
rtos
rtos
rtos_auto_detect
backoff
smp
frozen
report_flash_progress
smp_targets
smp_halt_event_postponed
gdb_service
fileio_info
first_reset
gdb_port_override
gdb_sign_extends_addresses
ignored_breakpoint_address_bits
gdb_max_connections
semihosting
semihosting
target_list
lh
target
gdb_fileio_info
identifier
param_1
param_2
param_3
param_4
target_endianness(const struct target *)
target_name(const struct target *)
debug_reason_name(const struct target *);
target_event
TARGET_EVENT_GDB_HALT
TARGET_EVENT_HALTED
TARGET_EVENT_RESUMED
TARGET_EVENT_RESUME_START
TARGET_EVENT_RESUME_END
TARGET_EVENT_STEP_START
TARGET_EVENT_STEP_END
TARGET_EVENT_GDB_START
TARGET_EVENT_GDB_END
TARGET_EVENT_RESET_START
TARGET_EVENT_RESET_ASSERT_PRE
TARGET_EVENT_RESET_ASSERT
TARGET_EVENT_RESET_ASSERT_POST
TARGET_EVENT_RESET_DEASSERT_PRE
TARGET_EVENT_RESET_DEASSERT_POST
TARGET_EVENT_RESET_INIT
TARGET_EVENT_RESET_END
TARGET_EVENT_DEBUG_HALTED
TARGET_EVENT_DEBUG_RESUMED
TARGET_EVENT_EXAMINE_START
TARGET_EVENT_EXAMINE_FAIL
TARGET_EVENT_EXAMINE_END
TARGET_EVENT_GDB_ATTACH
TARGET_EVENT_GDB_DETACH
TARGET_EVENT_GDB_FLASH_ERASE_START
TARGET_EVENT_GDB_FLASH_ERASE_END
TARGET_EVENT_GDB_FLASH_WRITE_START
TARGET_EVENT_GDB_FLASH_WRITE_END
TARGET_EVENT_TRACE_CONFIG
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X100
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X101
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X102
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X103
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X104
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X105
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X106
TARGET_EVENT_SEMIHOSTING_USER_CMD_0X107
target_event_action
event
interp
body
next
target_has_event_action(const struct target *, enum target_event);
target_event_callback
callback
priv
next
target_reset_callback
list
priv
callback
target_trace_callback
list
priv
callback
target_timer_type
TARGET_TIMER_TYPE_ONESHOT
TARGET_TIMER_TYPE_PERIODIC
target_timer_callback
callback
time_ms
type
removed
when
priv
next
target_memory_check_block
address
size
result
target_register_commands(struct command_context *);
target_examine();
target_register_event_callback(int (*)(struct target *, enum target_event, void *), void *);
target_unregister_event_callback(int (*)(struct target *, enum target_event, void *), void *);
target_register_reset_callback(int (*)(struct target *, enum target_reset_mode, void *), void *);
target_unregister_reset_callback(int (*)(struct target *, enum target_reset_mode, void *), void *);
target_register_trace_callback(int (*)(struct target *, size_t, uint8_t *, void *), void *);
target_unregister_trace_callback(int (*)(struct target *, size_t, uint8_t *, void *), void *);
target_poll(struct target *);
target_resume(struct target *, int, target_addr_t, int, int);
target_halt(struct target *);
target_call_event_callbacks(struct target *, enum target_event);
target_call_reset_callbacks(struct target *, enum target_reset_mode);
target_call_trace_callbacks(struct target *, size_t, uint8_t *);
target_register_timer_callback(int (*)(void *), unsigned int, enum target_timer_type, void *);
target_unregister_timer_callback(int (*)(void *), void *);
target_call_timer_callbacks();
target_call_timer_callbacks_now();
target_timer_next_event();
get_current_target(struct command_context *);
get_current_target_or_null(struct command_context *);
get_target(const char *);
target_type_name(const struct target *);
target_examine_one(struct target *);
target_was_examined(const struct target *)
target_set_examined(struct target *)
target_add_breakpoint(struct target *, struct breakpoint *);
target_add_context_breakpoint(struct target *, struct breakpoint *);
target_add_hybrid_breakpoint(struct target *, struct breakpoint *);
target_remove_breakpoint(struct target *, struct breakpoint *);
target_add_watchpoint(struct target *, struct watchpoint *);
target_remove_watchpoint(struct target *, struct watchpoint *);
target_hit_watchpoint(struct target *, struct watchpoint **);
target_get_gdb_arch(const struct target *);
target_get_gdb_reg_list(struct target *, struct reg ***, int *, enum target_register_class);
target_get_gdb_reg_list_noread(struct target *, struct reg ***, int *, enum target_register_class);
target_supports_gdb_connection(const struct target *);
target_step(struct target *, int, target_addr_t, int);
target_run_algorithm(struct target *, int, struct mem_param *, int, struct reg_param *, target_addr_t, target_addr_t, unsigned int, void *);
target_start_algorithm(struct target *, int, struct mem_param *, int, struct reg_param *, target_addr_t, target_addr_t, void *);
target_wait_algorithm(struct target *, int, struct mem_param *, int, struct reg_param *, target_addr_t, unsigned int, void *);
target_run_flash_async_algorithm(struct target *, const uint8_t *, uint32_t, int, int, struct mem_param *, int, struct reg_param *, uint32_t, uint32_t, uint32_t, uint32_t, void *);
target_run_read_async_algorithm(struct target *, uint8_t *, uint32_t, int, int, struct mem_param *, int, struct reg_param *, uint32_t, uint32_t, uint32_t, uint32_t, void *);
target_read_memory(struct target *, target_addr_t, uint32_t, uint32_t, uint8_t *);
target_read_phys_memory(struct target *, target_addr_t, uint32_t, uint32_t, uint8_t *);
target_write_memory(struct target *, target_addr_t, uint32_t, uint32_t, const uint8_t *);
target_write_phys_memory(struct target *, target_addr_t, uint32_t, uint32_t, const uint8_t *);
target_write_buffer(struct target *, target_addr_t, uint32_t, const uint8_t *);
target_read_buffer(struct target *, target_addr_t, uint32_t, uint8_t *);
target_checksum_memory(struct target *, target_addr_t, uint32_t, uint32_t *);
target_blank_check_memory(struct target *, struct target_memory_check_block *, int, uint8_t);
target_wait_state(struct target *, enum target_state, unsigned int);
target_get_gdb_fileio_info(struct target *, struct gdb_fileio_info *);
target_gdb_fileio_end(struct target *, int, int, bool);
target_address_max(struct target *);
target_address_bits(struct target *);
target_data_bits(struct target *);
target_state_name(const struct target *);
target_event_name(enum target_event);
target_reset_mode_name(enum target_reset_mode);
target_alloc_working_area(struct target *, uint32_t, struct working_area **);
target_alloc_working_area_try(struct target *, uint32_t, struct working_area **);
target_free_working_area(struct target *, struct working_area *);
target_free_all_working_areas(struct target *);
target_get_working_area_avail(struct target *);
target_quit();
all_targets;
target_buffer_get_u64(struct target *, const uint8_t *);
target_buffer_get_u32(struct target *, const uint8_t *);
target_buffer_get_u24(struct target *, const uint8_t *);
target_buffer_get_u16(struct target *, const uint8_t *);
target_buffer_set_u64(struct target *, uint8_t *, uint64_t);
target_buffer_set_u32(struct target *, uint8_t *, uint32_t);
target_buffer_set_u24(struct target *, uint8_t *, uint32_t);
target_buffer_set_u16(struct target *, uint8_t *, uint16_t);
target_buffer_get_u64_array(struct target *, const uint8_t *, uint32_t, uint64_t *);
target_buffer_get_u32_array(struct target *, const uint8_t *, uint32_t, uint32_t *);
target_buffer_get_u16_array(struct target *, const uint8_t *, uint32_t, uint16_t *);
target_buffer_set_u64_array(struct target *, uint8_t *, uint32_t, const uint64_t *);
target_buffer_set_u32_array(struct target *, uint8_t *, uint32_t, const uint32_t *);
target_buffer_set_u16_array(struct target *, uint8_t *, uint32_t, const uint16_t *);
target_read_u64(struct target *, target_addr_t, uint64_t *);
target_read_u32(struct target *, target_addr_t, uint32_t *);
target_read_u16(struct target *, target_addr_t, uint16_t *);
target_read_u8(struct target *, target_addr_t, uint8_t *);
target_write_u64(struct target *, target_addr_t, uint64_t);
target_write_u32(struct target *, target_addr_t, uint32_t);
target_write_u16(struct target *, target_addr_t, uint16_t);
target_write_u8(struct target *, target_addr_t, uint8_t);
target_write_phys_u64(struct target *, target_addr_t, uint64_t);
target_write_phys_u32(struct target *, target_addr_t, uint32_t);
target_write_phys_u16(struct target *, target_addr_t, uint16_t);
target_write_phys_u8(struct target *, target_addr_t, uint8_t);
target_arch_state(struct target *);
target_handle_event(struct target *, enum target_event);
target_handle_md_output(struct command_invocation *, struct target *, target_addr_t, unsigned int, unsigned int, const uint8_t *);
target_profiling_default(struct target *, uint32_t *, uint32_t, uint32_t *, uint32_t);
#define ERROR_TARGET_INVALID
#define ERROR_TARGET_INIT_FAILED
#define ERROR_TARGET_TIMEOUT
#define ERROR_TARGET_NOT_HALTED
#define ERROR_TARGET_FAILURE
#define ERROR_TARGET_UNALIGNED_ACCESS
#define ERROR_TARGET_DATA_ABORT
#define ERROR_TARGET_RESOURCE_NOT_AVAILABLE
#define ERROR_TARGET_TRANSLATION_FAULT
#define ERROR_TARGET_NOT_RUNNING
#define ERROR_TARGET_NOT_EXAMINED
#define ERROR_TARGET_DUPLICATE_BREAKPOINT
#define ERROR_TARGET_ALGO_EXIT
#define ERROR_TARGET_SIZE_NOT_SUPPORTED
#define ERROR_TARGET_PACKING_NOT_SUPPORTED
#define ERROR_TARGET_HALTED_DO_RESUME
get_target_reset_nag();
#define TARGET_DEFAULT_POLLING_INTERVAL
target_debug_reason_str(enum target_debug_reason);