|
Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
|
#include "config.h"#include <errno.h>#include <ctype.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <sys/mman.h>#include "common.h"#include "arch.h"#include "arch_x86.h"#include "arch_x86_64.h"#include "regcache.h"#include "target_api.h"#include "target.h"#include "target_gdb.h"#include "target_gdb_rsp.h"Go to the source code of this file.
Data Structures | |
| struct | gdb_helper_qemu_state |
Macros | |
| #define | GDB_MAX_IO 1024 |
Functions | |
| int | gdb_helper_qemu_addr_v2p (struct target *target, tid_t tid, ADDR pgd, ADDR vaddr, ADDR *paddr) |
| unsigned char * | gdb_helper_qemu_read_tid (struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long length, unsigned char *buf) |
| int | gdb_helper_qemu_init (struct target *target) |
| int | __recv_til_block (int fd, char *buf, unsigned int len, int blockfirst) |
| int | gdb_helper_qemu_attach (struct target *target) |
| int | gdb_helper_qemu_handle_exception_any (struct target *target) |
| int | gdb_helper_qemu_handle_exception_ours (struct target *target) |
| int | gdb_helper_qemu_handle_pause (struct target *target) |
| int | gdb_helper_qemu_load_machine (struct target *target, struct regcache *regcache) |
| unsigned char * | gdb_helper_qemu_read_tid_mem_path (struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long length, unsigned char *buf) |
| unsigned long | gdb_helper_qemu_write_tid_mem_path (struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long length, unsigned char *buf) |
| unsigned char * | gdb_helper_qemu_read_v_str (struct target *target, tid_t tid, ADDR pgd, ADDR addr) |
| unsigned long | gdb_helper_qemu_write_tid (struct target *target, tid_t tid, ADDR pgd, ADDR addr, unsigned long length, unsigned char *buf) |
| unsigned char * | gdb_helper_qemu_read_phys_str (struct target *target, ADDR addr) |
| unsigned char * | gdb_helper_qemu_read_phys (struct target *target, ADDR paddr, unsigned long length, unsigned char *buf) |
| unsigned long | gdb_helper_qemu_write_phys (struct target *target, ADDR paddr, unsigned long length, unsigned char *buf) |
| int | gdb_helper_qemu_fini (struct target *target) |
Variables | |
| struct gdb_helper_ops | gdb_helper_ops_qemu |
| #define GDB_MAX_IO 1024 |
Definition at line 725 of file target_gdb_helper_qemu.c.
| int __recv_til_block | ( | int | fd, |
| char * | buf, | ||
| unsigned int | len, | ||
| int | blockfirst | ||
| ) |
Definition at line 136 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_addr_v2p | ( | struct target * | target, |
| tid_t | tid, | ||
| ADDR | pgd, | ||
| ADDR | vaddr, | ||
| ADDR * | paddr | ||
| ) |
Definition at line 891 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_attach | ( | struct target * | target | ) |
Definition at line 193 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_fini | ( | struct target * | target | ) |
Definition at line 1048 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_handle_exception_any | ( | struct target * | target | ) |
Definition at line 312 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_handle_exception_ours | ( | struct target * | target | ) |
Definition at line 316 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_handle_pause | ( | struct target * | target | ) |
Definition at line 331 of file target_gdb_helper_qemu.c.
| int gdb_helper_qemu_init | ( | struct target * | target | ) |
Definition at line 76 of file target_gdb_helper_qemu.c.
Definition at line 346 of file target_gdb_helper_qemu.c.
| unsigned char* gdb_helper_qemu_read_phys | ( | struct target * | target, |
| ADDR | paddr, | ||
| unsigned long | length, | ||
| unsigned char * | buf | ||
| ) |
Definition at line 980 of file target_gdb_helper_qemu.c.
Definition at line 940 of file target_gdb_helper_qemu.c.
| unsigned char * gdb_helper_qemu_read_tid | ( | struct target * | target, |
| tid_t | tid, | ||
| ADDR | pgd, | ||
| ADDR | addr, | ||
| unsigned long | length, | ||
| unsigned char * | buf | ||
| ) |
Definition at line 737 of file target_gdb_helper_qemu.c.
| unsigned char* gdb_helper_qemu_read_tid_mem_path | ( | struct target * | target, |
| tid_t | tid, | ||
| ADDR | pgd, | ||
| ADDR | addr, | ||
| unsigned long | length, | ||
| unsigned char * | buf | ||
| ) |
Definition at line 487 of file target_gdb_helper_qemu.c.
| unsigned char* gdb_helper_qemu_read_v_str | ( | struct target * | target, |
| tid_t | tid, | ||
| ADDR | pgd, | ||
| ADDR | addr | ||
| ) |
Definition at line 665 of file target_gdb_helper_qemu.c.
| unsigned long gdb_helper_qemu_write_phys | ( | struct target * | target, |
| ADDR | paddr, | ||
| unsigned long | length, | ||
| unsigned char * | buf | ||
| ) |
Definition at line 1017 of file target_gdb_helper_qemu.c.
| unsigned long gdb_helper_qemu_write_tid | ( | struct target * | target, |
| tid_t | tid, | ||
| ADDR | pgd, | ||
| ADDR | addr, | ||
| unsigned long | length, | ||
| unsigned char * | buf | ||
| ) |
Definition at line 820 of file target_gdb_helper_qemu.c.
| unsigned long gdb_helper_qemu_write_tid_mem_path | ( | struct target * | target, |
| tid_t | tid, | ||
| ADDR | pgd, | ||
| ADDR | addr, | ||
| unsigned long | length, | ||
| unsigned char * | buf | ||
| ) |
Definition at line 593 of file target_gdb_helper_qemu.c.
| struct gdb_helper_ops gdb_helper_ops_qemu |
Definition at line 1077 of file target_gdb_helper_qemu.c.
1.8.5