OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | Elf32_Ehdr |
struct | Elf32_Phdr |
struct | Elf64_Ehdr |
struct | Elf64_Phdr |
struct | timeval |
Macros | |
#define | _TIMEVAL_DEFINED |
#define | EI_CLASS 4 /* File class byte index */ |
#define | EI_DATA 5 /* Data encoding byte index */ |
#define | EI_NIDENT 16 |
#define | ELFCLASS32 1 /* 32-bit objects */ |
#define | ELFCLASS64 2 /* 64-bit objects */ |
#define | ELFDATA2LSB 1 /* 2's complement, little endian */ |
#define | ELFDATA2MSB 2 /* 2's complement, big endian */ |
#define | ELFMAG "\177ELF" |
#define | ENOTSUP 134 /* Not supported */ |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | O_BINARY 0 |
#define | PT_LOAD 1 /* Loadable program segment */ |
#define | SELFMAG 4 |
Typedefs | |
typedef uint32_t | Elf32_Addr |
typedef uint16_t | Elf32_Half |
typedef uint32_t | Elf32_Off |
typedef uint32_t | Elf32_Size |
typedef uint32_t | Elf32_Word |
typedef uint64_t | Elf64_Addr |
typedef uint16_t | Elf64_Half |
typedef uint64_t | Elf64_Off |
typedef uint32_t | Elf64_Word |
typedef uint64_t | Elf64_Xword |
Functions | |
void * | clear_malloc (size_t size) |
static int | close_socket (int sock) |
void * | fill_malloc (size_t size) |
int | gettimeofday (struct timeval *tv, struct timezone *tz) |
static int | read_socket (int handle, void *buffer, unsigned int count) |
static void | socket_block (int fd) |
static void | socket_nonblock (int fd) |
static int | socket_select (int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) |
char * | strndup (const char *s, size_t n) |
size_t | strnlen (const char *s, size_t maxlen) |
static int | write_socket (int handle, const void *buffer, unsigned int count) |
#define _TIMEVAL_DEFINED |
Definition at line 43 of file replacements.h.
#define EI_CLASS 4 /* File class byte index */ |
Definition at line 258 of file replacements.h.
#define EI_DATA 5 /* Data encoding byte index */ |
Definition at line 262 of file replacements.h.
#define EI_NIDENT 16 |
Definition at line 236 of file replacements.h.
#define ELFCLASS32 1 /* 32-bit objects */ |
Definition at line 259 of file replacements.h.
#define ELFCLASS64 2 /* 64-bit objects */ |
Definition at line 260 of file replacements.h.
#define ELFDATA2LSB 1 /* 2's complement, little endian */ |
Definition at line 263 of file replacements.h.
#define ELFDATA2MSB 2 /* 2's complement, big endian */ |
Definition at line 264 of file replacements.h.
#define ELFMAG "\177ELF" |
Definition at line 255 of file replacements.h.
#define ENOTSUP 134 /* Not supported */ |
Definition at line 31 of file replacements.h.
#define MAX | ( | a, | |
b | |||
) | (((a) > (b)) ? (a) : (b)) |
Definition at line 25 of file replacements.h.
#define MIN | ( | a, | |
b | |||
) | (((a) < (b)) ? (a) : (b)) |
Definition at line 22 of file replacements.h.
#define O_BINARY 0 |
Definition at line 37 of file replacements.h.
#define PT_LOAD 1 /* Loadable program segment */ |
Definition at line 277 of file replacements.h.
#define SELFMAG 4 |
Definition at line 256 of file replacements.h.
typedef uint32_t Elf32_Addr |
Definition at line 230 of file replacements.h.
typedef uint16_t Elf32_Half |
Definition at line 231 of file replacements.h.
typedef uint32_t Elf32_Off |
Definition at line 232 of file replacements.h.
typedef uint32_t Elf32_Size |
Definition at line 234 of file replacements.h.
typedef uint32_t Elf32_Word |
Definition at line 233 of file replacements.h.
typedef uint64_t Elf64_Addr |
Definition at line 283 of file replacements.h.
typedef uint16_t Elf64_Half |
Definition at line 284 of file replacements.h.
typedef uint64_t Elf64_Off |
Definition at line 285 of file replacements.h.
typedef uint32_t Elf64_Word |
Definition at line 286 of file replacements.h.
typedef uint64_t Elf64_Xword |
Definition at line 287 of file replacements.h.
void* clear_malloc | ( | size_t | size | ) |
Definition at line 30 of file replacements.c.
References size.
|
inlinestatic |
Definition at line 184 of file replacements.h.
Referenced by add_connection(), add_service(), esp32_apptrace_tcp_dest_cleanup(), esp32_apptrace_tcp_dest_init(), jtag_vpi_quit(), remote_bitbang_quit(), remove_connection(), remove_service(), server_loop(), stlink_tcp_close(), vdebug_init(), vdebug_quit(), and vdebug_socket_open().
void* fill_malloc | ( | size_t | size | ) |
Definition at line 38 of file replacements.c.
References size.
int gettimeofday | ( | struct timeval * | tv, |
struct timezone * | tz | ||
) |
|
inlinestatic |
Definition at line 175 of file replacements.h.
Referenced by connection_read(), gdb_get_char_inner(), jtag_vpi_receive_cmd(), and remote_bitbang_fill_buf().
|
inlinestatic |
Definition at line 193 of file replacements.h.
Referenced by remote_bitbang_fill_buf().
|
inlinestatic |
Definition at line 204 of file replacements.h.
Referenced by add_service(), remote_bitbang_fill_buf(), and remote_bitbang_init().
|
inlinestatic |
Definition at line 215 of file replacements.h.
Referenced by check_pending(), and server_loop().
char* strndup | ( | const char * | s, |
size_t | n | ||
) |
Definition at line 115 of file replacements.c.
References NULL, and strnlen().
Referenced by adapter_usb_location_equal(), decode_xfer_read(), gdb_get_char_inner(), and gdb_get_registers_packet().
size_t strnlen | ( | const char * | s, |
size_t | maxlen | ||
) |
Definition at line 107 of file replacements.c.
Referenced by adapter_usb_location_equal(), and strndup().
|
inlinestatic |
Definition at line 166 of file replacements.h.
Referenced by connection_write(), esp32_apptrace_tcp_dest_write(), jtag_vpi_send_cmd(), and remote_bitbang_flush().