34 files changed:
#endif
#include "algorithm.h"
#endif
#include "algorithm.h"
-
-#include "log.h"
-#include "configuration.h"
+#include "replacements.h"
#include "binarybuffer.h"
#include "binarybuffer.h"
void init_mem_param(mem_param_t *param, u32 address, u32 size, enum param_direction direction)
{
void init_mem_param(mem_param_t *param, u32 address, u32 size, enum param_direction direction)
{
#include "config.h"
#endif
#include "config.h"
#endif
-#include "replacements.h"
-
-#include "log.h"
-#include "jtag.h"
-#include "binarybuffer.h"
-#include "time_support.h"
-#include "breakpoints.h"
-#include "fileio.h"
-
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#define AVR_JTAG_INS_LEN 4
+#define AVR_JTAG_INS_LEN 4
/* cli handling */
int avr_register_commands(struct command_context_s *cmd_ctx);
/* cli handling */
int avr_register_commands(struct command_context_s *cmd_ctx);
#ifndef AVRT_H
#define AVRT_H
#ifndef AVRT_H
#define AVRT_H
typedef struct mcu_jtag_s
{
jtag_tap_t *tap;
typedef struct mcu_jtag_s
{
jtag_tap_t *tap;
#include "config.h"
#endif
#include "config.h"
#endif
-#include <stdlib.h>
-
-#include "binarybuffer.h"
#include "target.h"
#include "log.h"
#include "target.h"
#include "log.h"
static char *breakpoint_type_strings[] =
{
"hardware",
static char *breakpoint_type_strings[] =
{
"hardware",
#include "config.h"
#endif
#include "config.h"
#endif
-#include "replacements.h"
-
-#include "armv7m.h"
-
-#include "register.h"
-#include "target.h"
#include "target_request.h"
#include "target_request.h"
-#include "log.h"
-#include "jtag.h"
-#include "arm_jtag.h"
-#include <stdlib.h>
-#include <string.h>
/* cli handling */
int cortex_a8_register_commands(struct command_context_s *cmd_ctx);
/* cli handling */
int cortex_a8_register_commands(struct command_context_s *cmd_ctx);
#include "config.h"
#endif
#include "config.h"
#endif
-#include "replacements.h"
-
-#include "armv7m.h"
-
-#include "register.h"
-#include "target.h"
#include "target_request.h"
#include "target_request.h"
-#include "log.h"
-#include "jtag.h"
-#include "arm_jtag.h"
-#include <stdlib.h>
-#include <string.h>
/* cli handling */
int cortex_m3_register_commands(struct command_context_s *cmd_ctx);
/* cli handling */
int cortex_m3_register_commands(struct command_context_s *cmd_ctx);
-#include "armv4_5.h"
-#include "arm7_9_common.h"
-
-#include "log.h"
-#include "arm_jtag.h"
-#include "types.h"
-#include "binarybuffer.h"
-#include "target.h"
-#include "register.h"
-#include "jtag.h"
-
-#include <stdlib.h>
#if 0
static bitfield_desc_t embeddedice_comms_ctrl_bitfield_desc[] =
#if 0
static bitfield_desc_t embeddedice_comms_ctrl_bitfield_desc[] =
#ifndef EMBEDDED_ICE_H
#define EMBEDDED_ICE_H
#ifndef EMBEDDED_ICE_H
#define EMBEDDED_ICE_H
-#include "target.h"
-#include "register.h"
-#include "arm_jtag.h"
#include "arm7_9_common.h"
enum
#include "arm7_9_common.h"
enum
#include "config.h"
#endif
#include "config.h"
#endif
#include "arm7_9_common.h"
#include "etb.h"
#include "arm7_9_common.h"
#include "etb.h"
-#include "etm.h"
-
-#include "log.h"
-#include "types.h"
-#include "binarybuffer.h"
-#include "target.h"
-#include "register.h"
-#include "jtag.h"
static char* etb_reg_list[] =
{
static char* etb_reg_list[] =
{
#ifndef ETB_H
#define ETB_H
#ifndef ETB_H
#define ETB_H
-#include "command.h"
-#include "target.h"
-#include "register.h"
-#include "arm_jtag.h"
-
-#include "etb.h"
#include "etm.h"
/* ETB registers */
#include "etm.h"
/* ETB registers */
#include "config.h"
#endif
#include "config.h"
#endif
#include "etm.h"
#include "etb.h"
#include "etm.h"
#include "etb.h"
#include "arm7_9_common.h"
#include "arm_disassembler.h"
#include "arm7_9_common.h"
#include "arm_disassembler.h"
-#include "arm_simulator.h"
-
-#include "log.h"
-#include "arm_jtag.h"
-#include "types.h"
-#include "binarybuffer.h"
-#include "target.h"
-#include "register.h"
-#include "jtag.h"
-#include "fileio.h"
-
-#include <stdlib.h>
/* ETM register access functionality
*
/* ETM register access functionality
*
#ifndef ETM_H
#define ETM_H
#ifndef ETM_H
#define ETM_H
-#include "target.h"
-#include "register.h"
/* ETM registers (V1.3 protocol) */
enum
{
/* ETM registers (V1.3 protocol) */
enum
{
etm_portmode_t portmode; /* normal, multiplexed or demultiplexed */
etmv1_tracemode_t tracemode; /* type of information the trace contains (data, addres, contextID, ...) */
armv4_5_state_t core_state; /* current core state (ARM, Thumb, Jazelle) */
etm_portmode_t portmode; /* normal, multiplexed or demultiplexed */
etmv1_tracemode_t tracemode; /* type of information the trace contains (data, addres, contextID, ...) */
armv4_5_state_t core_state; /* current core state (ARM, Thumb, Jazelle) */
- image_t *image; /* source for target opcodes */
+ struct image_s *image; /* source for target opcodes */
u32 pipe_index; /* current trace cycle */
u32 data_index; /* cycle holding next data packet */
int data_half; /* port half on a 16 bit port */
u32 pipe_index; /* current trace cycle */
u32 data_index; /* cycle holding next data packet */
int data_half; /* port half on a 16 bit port */
#include "config.h"
#endif
#include "config.h"
#endif
#include "arm7_9_common.h"
#include "arm7_9_common.h"
-#include "log.h"
-#include "types.h"
-#include "binarybuffer.h"
-#include "target.h"
-#include "register.h"
-#include "jtag.h"
-
-#include <stdlib.h>
static int handle_etm_dummy_config_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
{
static int handle_etm_dummy_config_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
{
#ifndef ETM_DUMMY_H
#define ETM_DUMMY_H
#ifndef ETM_DUMMY_H
#define ETM_DUMMY_H
-#include "command.h"
-#include "target.h"
-#include "register.h"
-#include "arm_jtag.h"
-
#include "etm.h"
extern etm_capture_driver_t etm_dummy_capture_driver;
#include "etm.h"
extern etm_capture_driver_t etm_dummy_capture_driver;
#endif
#include "arm926ejs.h"
#endif
#include "arm926ejs.h"
-#include "jtag.h"
-#include "log.h"
-#include <stdlib.h>
-#include <string.h>
int feroceon_examine(struct target_s *target);
int feroceon_target_create(struct target_s *target, Jim_Interp *interp);
int feroceon_examine(struct target_s *target);
int feroceon_target_create(struct target_s *target, Jim_Interp *interp);
#include "config.h"
#endif
#include "config.h"
#endif
-#include <stdlib.h>
-#include <string.h>
-#ifdef HAVE_ELF_H
-#include <elf.h>
-#endif
-
-
-#include "types.h"
-#include "replacements.h"
-#include "fileio.h"
-#include "target.h"
/* convert ELF header field to host endianness */
#define field16(elf,field)\
/* convert ELF header field to host endianness */
#define field16(elf,field)\
#ifndef IMAGE_H
#define IMAGE_H
#ifndef IMAGE_H
#define IMAGE_H
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
#ifdef HAVE_ELF_H
#include <elf.h>
#endif
#ifdef HAVE_ELF_H
#include <elf.h>
#endif
-#include "replacements.h"
-#include "fileio.h"
-#include "target.h"
#define IMAGE_MAX_ERROR_STRING (256)
#define IMAGE_MAX_SECTIONS (128)
#define IMAGE_MAX_ERROR_STRING (256)
#define IMAGE_MAX_SECTIONS (128)
typedef struct image_memory_s
{
typedef struct image_memory_s
{
+ struct target_s *target;
u8 *cache;
u32 cache_address;
} image_memory_t;
u8 *cache;
u32 cache_address;
} image_memory_t;
#endif
#include "mips32.h"
#endif
#include "mips32.h"
-#include "jtag.h"
-#include "log.h"
-#include <stdlib.h>
-#include <string.h>
char* mips32_core_reg_list[] =
{
char* mips32_core_reg_list[] =
{
#include "target.h"
#include "register.h"
#include "target.h"
#include "register.h"
#include "mips32_pracc.h"
#include "mips32_pracc.h"
#define MIPS32_COMMON_MAGIC 0xB320B320
/* offsets into mips32 core register cache */
#define MIPS32_COMMON_MAGIC 0xB320B320
/* offsets into mips32 core register cache */
typedef struct mips32_core_reg_s
{
u32 num;
typedef struct mips32_core_reg_s
{
u32 num;
+ struct target_s *target;
mips32_common_t *mips32_common;
} mips32_core_reg_t;
mips32_common_t *mips32_common;
} mips32_core_reg_t;
#include "config.h"
#endif
#include "config.h"
#endif
-#include <string.h>
-#include "log.h"
-#include "mips32.h"
#include "mips32_dmaacc.h"
#include "mips32_dmaacc.h"
/*
* The following logic shamelessly cloned from HairyDairyMaid's wrt54g_debrick
* to support the Broadcom BCM5352 SoC in the Linksys WRT54GL wireless router
/*
* The following logic shamelessly cloned from HairyDairyMaid's wrt54g_debrick
* to support the Broadcom BCM5352 SoC in the Linksys WRT54GL wireless router
#include "config.h"
#endif
#include "config.h"
#endif
-#include <string.h>
-#include "log.h"
#include "mips32.h"
#include "mips32_pracc.h"
#include "mips32.h"
#include "mips32_pracc.h"
#include "mips32.h"
#include "mips_ejtag.h"
#include "mips32.h"
#include "mips_ejtag.h"
-#include "binarybuffer.h"
-#include "log.h"
-#include "jtag.h"
-
-#include <stdlib.h>
int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_me_and_submit_patch)
{
int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_me_and_submit_patch)
{
#ifndef MIPS_EJTAG
#define MIPS_EJTAG
#ifndef MIPS_EJTAG
#define MIPS_EJTAG
#include "jtag.h"
/* tap instructions */
#include "jtag.h"
/* tap instructions */
#include "mips32.h"
#include "mips_m4k.h"
#include "mips32_dmaacc.h"
#include "mips32.h"
#include "mips_m4k.h"
#include "mips32_dmaacc.h"
-#include "jtag.h"
-#include "log.h"
-#include <stdlib.h>
-#include <string.h>
#ifndef MIPS_M4K_H
#define MIPS_M4K_H
#ifndef MIPS_M4K_H
#define MIPS_M4K_H
-#include "register.h"
-#include "target.h"
+#include "types.h"
+
+struct target_s;
#define MIPSM4K_COMMON_MAGIC 0xB321B321
#define MIPSM4K_COMMON_MAGIC 0xB321B321
mips32_common_t mips32_common;
} mips_m4k_common_t;
mips32_common_t mips32_common;
} mips_m4k_common_t;
-extern int mips_m4k_bulk_write_memory(target_t *target, u32 address, u32 count, u8 *buffer);
+extern int mips_m4k_bulk_write_memory(struct target_s *target, u32 address, u32 count, u8 *buffer);
extern void mips_m4k_enable_breakpoints(struct target_s *target);
extern int mips_m4k_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint);
extern void mips_m4k_enable_breakpoints(struct target_s *target);
extern int mips_m4k_set_breakpoint(struct target_s *target, breakpoint_t *breakpoint);
#include "config.h"
#endif
#include "config.h"
#endif
+// we must define _GNU_SOURCE to get strndup
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-#include <string.h>
-#include <errno.h>
-#include "etm.h"
-
-#include "log.h"
-#include "types.h"
-#include "binarybuffer.h"
-#include "target.h"
-#include "register.h"
-#include "jtag.h"
#include "arm7_9_common.h"
#include "arm7_9_common.h"
-#include "replacements.h"
static int oocd_trace_register_commands(struct command_context_s *cmd_ctx);
static int oocd_trace_register_commands(struct command_context_s *cmd_ctx);
#ifndef OOCD_TRACE_H
#define OOCD_TRACE_H
#ifndef OOCD_TRACE_H
#define OOCD_TRACE_H
#include "etm.h"
#include <termios.h>
#include "etm.h"
#include <termios.h>
#endif
#include "register.h"
#endif
#include "register.h"
-#include <string.h>
-#include <stdlib.h>
reg_arch_type_t *reg_arch_types = NULL;
reg_arch_type_t *reg_arch_types = NULL;
#define REGISTER_H
#include "types.h"
#define REGISTER_H
#include "types.h"
#include "config.h"
#endif
#include "config.h"
#endif
-#include "replacements.h"
-#include "log.h"
-#include "target.h"
#include "target_request.h"
#include "binarybuffer.h"
#include "target_request.h"
#include "binarybuffer.h"
-#include <stdlib.h>
-#include <string.h>
static command_t *target_request_cmd = NULL;
static int charmsg_mode = 0;
static command_t *target_request_cmd = NULL;
static int charmsg_mode = 0;
#include "config.h"
#endif
#include "config.h"
#endif
-#include "replacements.h"
#include "log.h"
#include "trace.h"
#include "target.h"
#include "log.h"
#include "trace.h"
#include "target.h"
-#include <stdlib.h>
-#include <string.h>
#include <inttypes.h>
int trace_point(target_t *target, u32 number)
#include <inttypes.h>
int trace_point(target_t *target, u32 number)
#ifndef TRACE_H
#define TRACE_H
#ifndef TRACE_H
#define TRACE_H
-#include "target.h"
-#include "command.h"
+struct target_s;
+struct command_context_s;
+
typedef struct trace_point_s
{
u32 address;
typedef struct trace_point_s
{
u32 address;
#include "config.h"
#endif
#include "config.h"
#endif
-#include "replacements.h"
-
#include "arm7_9_common.h"
#include "arm7_9_common.h"
-#include "register.h"
-#include "target.h"
-#include "armv4_5.h"
#include "arm_simulator.h"
#include "arm_disassembler.h"
#include "arm_simulator.h"
#include "arm_disassembler.h"
-#include "log.h"
-#include "jtag.h"
-#include "binarybuffer.h"
#include "time_support.h"
#include "time_support.h"
-#include "breakpoints.h"
-#include "fileio.h"
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <unistd.h>
-#include <errno.h>
-
/* cli handling */
int xscale_register_commands(struct command_context_s *cmd_ctx);
/* cli handling */
int xscale_register_commands(struct command_context_s *cmd_ctx);
#ifndef XSCALE_H
#define XSCALE_H
#ifndef XSCALE_H
#define XSCALE_H
-#include "target.h"
-#include "register.h"
#include "armv4_5.h"
#include "armv4_5_mmu.h"
#include "trace.h"
#include "armv4_5.h"
#include "armv4_5_mmu.h"
#include "trace.h"
#define XSCALE_COMMON_MAGIC 0x58534341
#define XSCALE_COMMON_MAGIC 0x58534341
typedef struct xscale_trace_s
{
trace_status_t capture_status; /* current state of capture run */
typedef struct xscale_trace_s
{
trace_status_t capture_status; /* current state of capture run */
- image_t *image; /* source for target opcodes */
+ struct image_s *image; /* source for target opcodes */
xscale_trace_data_t *data; /* linked list of collected trace data */
int buffer_enabled; /* whether trace buffer is enabled */
int buffer_fill; /* maximum number of trace runs to read (-1 for wrap-around) */
xscale_trace_data_t *data; /* linked list of collected trace data */
int buffer_enabled; /* whether trace buffer is enabled */
int buffer_fill; /* maximum number of trace runs to read (-1 for wrap-around) */
Linking to existing account procedure
If you already have an account and want to add another login method
you
MUST first sign in with your existing account and
then change URL to read
https://review.openocd.org/login/?link
to get to this page again but this time it'll work for linking. Thank you.
SSH host keys fingerprints
1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=.. |
|+o.. . |
|*.o . . |
|+B . . . |
|Bo. = o S |
|Oo.+ + = |
|oB=.* = . o |
| =+=.+ + E |
|. .=o . o |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)