GDB (API)
Classes | Defines | Functions
/home/stan/gdb/src/gdb/monitor.h File Reference

Go to the source code of this file.

Classes

struct  memrw_cmd
struct  regrw_cmd
struct  monitor_ops

Defines

#define MONITOR_OPS_MAGIC   600925
#define MO_CLR_BREAK_USES_ADDR   0x1
#define MO_FILL_USES_ADDR   0x2
#define MO_NEED_REGDUMP_AFTER_CONT   0x4
#define MO_GETMEM_NEEDS_RANGE   0x8
#define MO_GETMEM_READ_SINGLE   0x10
#define MO_HANDLE_NL   0x20
#define MO_NO_ECHO_ON_OPEN   0x40
#define MO_SEND_BREAK_ON_STOP   0x80
#define MO_SREC_ACK   0x100
#define MO_HEX_PREFIX   0x200
#define MO_RUN_FIRST_TIME   0x400
#define MO_NO_ECHO_ON_SETMEM   0x800
#define MO_REGISTER_VALUE_FIRST   0x1000
#define MO_32_REGS_PAIRED   0x2000
#define MO_SETREG_INTERACTIVE   0x4000
#define MO_SETMEM_INTERACTIVE   0x8000
#define MO_GETMEM_16_BOUNDARY   0x10000
#define MO_CLR_BREAK_1_BASED   0x20000
#define MO_SREC_ACK_PLUS   0x40000
#define MO_SREC_ACK_ROTATE   0x80000
#define MO_ADDR_BITS_REMOVE   0x100000
#define MO_PRINT_PROGRAM_OUTPUT   0x200000
#define MO_EXACT_DUMPADDR   0x400000
#define MO_HAS_BLOCKWRITES   0x800000
#define SREC_SIZE   160

Functions

void monitor_open (char *args, struct monitor_ops *ops, int from_tty)
void monitor_close (void)
char * monitor_supply_register (struct regcache *regcache, int regno, char *valstr)
int monitor_expect (char *prompt, char *buf, int buflen)
int monitor_expect_prompt (char *buf, int buflen)
void monitor_printf (char *,...)
void monitor_printf_noecho (char *,...)
void monitor_write (char *buf, int buflen)
int monitor_readchar (void)
char * monitor_get_dev_name (void)
void init_monitor_ops (struct target_ops *)
int monitor_dump_reg_block (struct regcache *regcache, char *dump_cmd)

Define Documentation

#define MO_32_REGS_PAIRED   0x2000

Definition at line 191 of file monitor.h.

#define MO_ADDR_BITS_REMOVE   0x100000

Definition at line 220 of file monitor.h.

#define MO_CLR_BREAK_1_BASED   0x20000

Definition at line 208 of file monitor.h.

#define MO_CLR_BREAK_USES_ADDR   0x1

Definition at line 137 of file monitor.h.

#define MO_EXACT_DUMPADDR   0x400000

Definition at line 230 of file monitor.h.

#define MO_FILL_USES_ADDR   0x2

Definition at line 142 of file monitor.h.

#define MO_GETMEM_16_BOUNDARY   0x10000

Definition at line 204 of file monitor.h.

#define MO_GETMEM_NEEDS_RANGE   0x8

Definition at line 151 of file monitor.h.

#define MO_GETMEM_READ_SINGLE   0x10

Definition at line 155 of file monitor.h.

#define MO_HANDLE_NL   0x20

Definition at line 159 of file monitor.h.

#define MO_HAS_BLOCKWRITES   0x800000

Definition at line 238 of file monitor.h.

#define MO_HEX_PREFIX   0x200

Definition at line 175 of file monitor.h.

#define MO_NEED_REGDUMP_AFTER_CONT   0x4

Definition at line 147 of file monitor.h.

#define MO_NO_ECHO_ON_OPEN   0x40

Definition at line 163 of file monitor.h.

#define MO_NO_ECHO_ON_SETMEM   0x800

Definition at line 183 of file monitor.h.

#define MO_PRINT_PROGRAM_OUTPUT   0x200000

Definition at line 224 of file monitor.h.

#define MO_REGISTER_VALUE_FIRST   0x1000

Definition at line 187 of file monitor.h.

#define MO_RUN_FIRST_TIME   0x400

Definition at line 179 of file monitor.h.

#define MO_SEND_BREAK_ON_STOP   0x80

Definition at line 167 of file monitor.h.

#define MO_SETMEM_INTERACTIVE   0x8000

Definition at line 199 of file monitor.h.

#define MO_SETREG_INTERACTIVE   0x4000

Definition at line 195 of file monitor.h.

#define MO_SREC_ACK   0x100

Definition at line 171 of file monitor.h.

#define MO_SREC_ACK_PLUS   0x40000

Definition at line 212 of file monitor.h.

#define MO_SREC_ACK_ROTATE   0x80000

Definition at line 216 of file monitor.h.

#define MONITOR_OPS_MAGIC   600925

Definition at line 130 of file monitor.h.

#define SREC_SIZE   160

Definition at line 240 of file monitor.h.


Function Documentation

void init_monitor_ops ( struct target_ops )

Definition at line 2390 of file monitor.c.

void monitor_close ( void  )

Definition at line 856 of file monitor.c.

int monitor_dump_reg_block ( struct regcache *  regcache,
char *  dump_cmd 
)

Definition at line 1291 of file monitor.c.

int monitor_expect ( char *  prompt,
char *  buf,
int  buflen 
)

Definition at line 502 of file monitor.c.

int monitor_expect_prompt ( char *  buf,
int  buflen 
)

Definition at line 653 of file monitor.c.

char* monitor_get_dev_name ( void  )

Definition at line 2319 of file monitor.c.

void monitor_open ( char *  args,
struct monitor_ops ops,
int  from_tty 
)

Definition at line 715 of file monitor.c.

void monitor_printf ( char *  ,
  ... 
)

Definition at line 343 of file monitor.c.

void monitor_printf_noecho ( char *  ,
  ... 
)

Definition at line 313 of file monitor.c.

int monitor_readchar ( void  )

Definition at line 394 of file monitor.c.

char* monitor_supply_register ( struct regcache *  regcache,
int  regno,
char *  valstr 
)

Definition at line 888 of file monitor.c.

void monitor_write ( char *  buf,
int  buflen 
)

Definition at line 381 of file monitor.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines