GDB (xrefs)
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.

Referenced by _initialize_dink32_rom(), and monitor_fetch_register().

#define MO_ADDR_BITS_REMOVE   0x100000

Definition at line 220 of file monitor.h.

Referenced by monitor_insert_breakpoint(), monitor_read_memory(), and monitor_write_memory().

#define MO_CLR_BREAK_1_BASED   0x20000

Definition at line 208 of file monitor.h.

Referenced by _initialize_dink32_rom(), and monitor_remove_breakpoint().

#define MO_CLR_BREAK_USES_ADDR   0x1
#define MO_EXACT_DUMPADDR   0x400000

Definition at line 230 of file monitor.h.

Referenced by monitor_read_memory().

#define MO_FILL_USES_ADDR   0x2

Definition at line 142 of file monitor.h.

Referenced by _initialize_dink32_rom(), init_dbug_cmds(), and monitor_write_memory().

#define MO_GETMEM_16_BOUNDARY   0x10000

Definition at line 204 of file monitor.h.

Referenced by _initialize_dink32_rom(), and monitor_read_memory().

#define MO_GETMEM_NEEDS_RANGE   0x8
#define MO_GETMEM_READ_SINGLE   0x10

Definition at line 155 of file monitor.h.

Referenced by monitor_read_memory().

#define MO_HANDLE_NL   0x20

Definition at line 159 of file monitor.h.

Referenced by _initialize_dink32_rom(), init_ppc_cmds(), and readchar().

#define MO_HAS_BLOCKWRITES   0x800000

Definition at line 238 of file monitor.h.

Referenced by monitor_xfer_memory().

#define MO_HEX_PREFIX   0x200
#define MO_NEED_REGDUMP_AFTER_CONT   0x4

Definition at line 147 of file monitor.h.

Referenced by monitor_resume().

#define MO_NO_ECHO_ON_OPEN   0x40

Definition at line 163 of file monitor.h.

Referenced by monitor_open().

#define MO_NO_ECHO_ON_SETMEM   0x800

Definition at line 183 of file monitor.h.

Referenced by monitor_write_memory().

#define MO_PRINT_PROGRAM_OUTPUT   0x200000

Definition at line 224 of file monitor.h.

Referenced by init_picobug_cmds(), monitor_wait(), and monitor_wait_filter().

#define MO_REGISTER_VALUE_FIRST   0x1000

Definition at line 187 of file monitor.h.

Referenced by init_m32r_cmds(), init_mon2000_cmds(), and monitor_store_register().

#define MO_RUN_FIRST_TIME   0x400

Definition at line 179 of file monitor.h.

Referenced by monitor_resume().

#define MO_SEND_BREAK_ON_STOP   0x80

Definition at line 167 of file monitor.h.

Referenced by monitor_stop().

#define MO_SETMEM_INTERACTIVE   0x8000

Definition at line 199 of file monitor.h.

Referenced by _initialize_dink32_rom(), and monitor_write_memory().

#define MO_SETREG_INTERACTIVE   0x4000

Definition at line 195 of file monitor.h.

Referenced by _initialize_dink32_rom(), and monitor_store_register().

#define MO_SREC_ACK   0x100

Definition at line 171 of file monitor.h.

Referenced by _initialize_dink32_rom(), and monitor_load().

#define MO_SREC_ACK_PLUS   0x40000

Definition at line 212 of file monitor.h.

Referenced by monitor_wait_srec_ack().

#define MO_SREC_ACK_ROTATE   0x80000

Definition at line 216 of file monitor.h.

Referenced by _initialize_dink32_rom(), and monitor_wait_srec_ack().

#define MONITOR_OPS_MAGIC   600925
#define SREC_SIZE   160

Definition at line 240 of file monitor.h.


Function Documentation

void init_monitor_ops ( struct target_ops )
void monitor_close ( void  )
int monitor_dump_reg_block ( struct regcache regcache,
char *  dump_cmd 
)
int monitor_expect ( char *  prompt,
char *  buf,
int  buflen 
)
int monitor_expect_prompt ( char *  buf,
int  buflen 
)
char* monitor_get_dev_name ( void  )

Definition at line 2319 of file monitor.c.

References dev_name.

void monitor_open ( char *  args,
struct monitor_ops ops,
int  from_tty 
)
void monitor_printf ( char *  ,
  ... 
)
void monitor_printf_noecho ( char *  ,
  ... 
)
int monitor_readchar ( void  )

Definition at line 394 of file monitor.c.

References _, error(), perror_with_name(), serial_readchar(), SERIAL_TIMEOUT, and timeout.

char* monitor_supply_register ( struct regcache regcache,
int  regno,
char *  valstr 
)
void monitor_write ( char *  buf,
int  buflen 
)

Definition at line 381 of file monitor.c.

References fprintf_unfiltered(), gdb_stderr, safe_strerror(), and serial_write().

Referenced by monitor_printf(), and monitor_printf_noecho().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines