10 * Define the monitor command strings. Since these are passed directly
11 * through to a printf style function, we need can include formatting
12 * strings. We also need a CR or LF on the end.
15 struct target_ops w89k_ops = {
17 "WinBond's debug monitor for the W89k Eval board",
18 "Debug on a WinBond W89K eval board.\n\
19 Specify the serial device it is connected to (e.g. /dev/ttya).",
26 monitor_fetch_register,
27 monitor_store_register,
28 monitor_prepare_to_store,
29 monitor_xfer_inferior_memory,
31 monitor_insert_breakpoint,
32 monitor_remove_breakpoint, /* Breakpoints */
37 0, /* Terminal handling */
39 monitor_load, /* load */
40 0, /* lookup_symbol */
41 monitor_create_inferior,
42 monitor_mourn_inferior,
44 0, /* notice_signals */
51 1, /* all mem, mem, stack, regs, exec */
53 0, /* Section pointers */
54 OPS_MAGIC, /* Always the last thing */
57 struct monitor_ops w89k_cmds = {
58 "\r", /* monitor init string */
59 "G\r", /* execute or usually GO command */
60 "G\r", /* continue command */
61 "T\r", /* single step */
62 "BP %x\r", /* set a breakpoint */
63 "BC %x\r", /* clear a breakpoint */
64 "E %x %x\r", /* set memory to a value */
65 "D %x\r", /* display memory */
66 "", /* prompt memory commands use */
67 "R %s %x\r", /* set a register */
68 "", /* delimiter between registers */
69 "R %s\r", /* read a register */
70 "L\r", /* download command */
71 "ROM>", /* monitor command prompt */
72 "", /* end-of-command delimitor */
73 "", /* optional command terminator */
74 &w89k_ops /* target operations */
78 w89k_open(args, from_tty)
82 push_target (&w89k_ops);
83 push_monitor (&w89k_cmds);
84 general_open (args, "w89k", from_tty);
90 add_target (&w89k_ops);