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 259 of file replacements.h.
#define EI_DATA 5 /* Data encoding byte index */ |
Definition at line 263 of file replacements.h.
#define EI_NIDENT 16 |
Definition at line 237 of file replacements.h.
#define ELFCLASS32 1 /* 32-bit objects */ |
Definition at line 260 of file replacements.h.
#define ELFCLASS64 2 /* 64-bit objects */ |
Definition at line 261 of file replacements.h.
#define ELFDATA2LSB 1 /* 2's complement, little endian */ |
Definition at line 264 of file replacements.h.
#define ELFDATA2MSB 2 /* 2's complement, big endian */ |
Definition at line 265 of file replacements.h.
#define ELFMAG "\177ELF" |
Definition at line 256 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 278 of file replacements.h.
#define SELFMAG 4 |
Definition at line 257 of file replacements.h.
typedef uint32_t Elf32_Addr |
Definition at line 231 of file replacements.h.
typedef uint16_t Elf32_Half |
Definition at line 232 of file replacements.h.
typedef uint32_t Elf32_Off |
Definition at line 233 of file replacements.h.
typedef uint32_t Elf32_Size |
Definition at line 235 of file replacements.h.
typedef uint32_t Elf32_Word |
Definition at line 234 of file replacements.h.
typedef uint64_t Elf64_Addr |
Definition at line 284 of file replacements.h.
typedef uint16_t Elf64_Half |
Definition at line 285 of file replacements.h.
typedef uint64_t Elf64_Off |
Definition at line 286 of file replacements.h.
typedef uint32_t Elf64_Word |
Definition at line 287 of file replacements.h.
typedef uint64_t Elf64_Xword |
Definition at line 288 of file replacements.h.
void* clear_malloc | ( | size_t | size | ) |
Definition at line 22 of file replacements.c.
References size.
|
inlinestatic |
Definition at line 185 of file replacements.h.
Referenced by add_connection(), add_service(), 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 30 of file replacements.c.
References size.
int gettimeofday | ( | struct timeval * | tv, |
struct timezone * | tz | ||
) |
|
inlinestatic |
Definition at line 176 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 194 of file replacements.h.
Referenced by remote_bitbang_fill_buf().
|
inlinestatic |
Definition at line 205 of file replacements.h.
Referenced by add_service(), remote_bitbang_fill_buf(), and remote_bitbang_init().
|
inlinestatic |
Definition at line 216 of file replacements.h.
Referenced by check_pending(), and server_loop().
char* strndup | ( | const char * | s, |
size_t | n | ||
) |
Definition at line 111 of file replacements.c.
References NULL, and strnlen().
Referenced by adapter_usb_location_equal(), decode_xfer_read(), gdb_get_char_inner(), gdb_get_registers_packet(), jim_arc_add_reg(), and str_to_buf().
size_t strnlen | ( | const char * | s, |
size_t | maxlen | ||
) |
Definition at line 103 of file replacements.c.
Referenced by adapter_usb_location_equal(), and strndup().
|
inlinestatic |
Definition at line 167 of file replacements.h.
Referenced by connection_write(), jtag_vpi_send_cmd(), and remote_bitbang_flush().