File:  [Qemu by Fabrice Bellard] / qemu / gdbstub.h
Revision 1.1.1.7 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:33:12 2018 UTC (3 years, 1 month ago) by root
Branches: qemu, MAIN
CVS tags: qemu1001, qemu1000, qemu0151, qemu0150, qemu0141, qemu0140, HEAD
qemu 0.14.0

    1: #ifndef GDBSTUB_H
    2: #define GDBSTUB_H
    3: 
    4: #define DEFAULT_GDBSTUB_PORT "1234"
    5: 
    6: /* GDB breakpoint/watchpoint types */
    7: #define GDB_BREAKPOINT_SW        0
    8: #define GDB_BREAKPOINT_HW        1
    9: #define GDB_WATCHPOINT_WRITE     2
   10: #define GDB_WATCHPOINT_READ      3
   11: #define GDB_WATCHPOINT_ACCESS    4
   12: 
   13: #ifdef NEED_CPU_H
   14: typedef void (*gdb_syscall_complete_cb)(CPUState *env,
   15:                                         target_ulong ret, target_ulong err);
   16: 
   17: void gdb_do_syscall(gdb_syscall_complete_cb cb, const char *fmt, ...);
   18: int use_gdb_syscalls(void);
   19: void gdb_set_stop_cpu(CPUState *env);
   20: void gdb_exit(CPUState *, int);
   21: #ifdef CONFIG_USER_ONLY
   22: int gdb_queuesig (void);
   23: int gdb_handlesig (CPUState *, int);
   24: void gdb_signalled(CPUState *, int);
   25: void gdbserver_fork(CPUState *);
   26: #endif
   27: /* Get or set a register.  Returns the size of the register.  */
   28: typedef int (*gdb_reg_cb)(CPUState *env, uint8_t *buf, int reg);
   29: void gdb_register_coprocessor(CPUState *env,
   30:                               gdb_reg_cb get_reg, gdb_reg_cb set_reg,
   31:                               int num_regs, const char *xml, int g_pos);
   32: 
   33: #endif
   34: 
   35: #ifdef CONFIG_USER_ONLY
   36: int gdbserver_start(int);
   37: #else
   38: int gdbserver_start(const char *port);
   39: #endif
   40: 
   41: /* in gdbstub-xml.c, generated by scripts/feature_to_c.sh */
   42: extern const char *const xml_builtin[][2];
   43: 
   44: #endif

unix.superglobalmegacorp.com