blob: 87b108f84254b8ab7e5ab939dda671d720d8186e [file] [log] [blame]
wdenk47d1a6e2002-11-03 00:01:44 +00001/*
2 * BedBug Functions
3 */
4
5#include <common.h>
6#include <command.h>
7#include <linux/ctype.h>
8#include <net.h>
wdenk8bde7f72003-06-27 21:31:46 +00009#include <bedbug/type.h>
wdenk47d1a6e2002-11-03 00:01:44 +000010#include <bedbug/bedbug.h>
11#include <bedbug/regs.h>
12#include <bedbug/ppc.h>
wdenk47d1a6e2002-11-03 00:01:44 +000013
Wolfgang Denkd87080b2006-03-31 18:32:53 +020014DECLARE_GLOBAL_DATA_PTR;
15
Wolfgang Denkd87080b2006-03-31 18:32:53 +020016extern void show_regs __P ((struct pt_regs *));
17extern int run_command __P ((const char *, int));
wdenk47d1a6e2002-11-03 00:01:44 +000018
Wolfgang Denkd87080b2006-03-31 18:32:53 +020019ulong dis_last_addr = 0; /* Last address disassembled */
20ulong dis_last_len = 20; /* Default disassembler length */
21CPU_DEBUG_CTX bug_ctx; /* Bedbug context structure */
wdenk47d1a6e2002-11-03 00:01:44 +000022
Wolfgang Denkd87080b2006-03-31 18:32:53 +020023
wdenk47d1a6e2002-11-03 00:01:44 +000024/* ======================================================================
25 * U-Boot's puts function does not append a newline, so the bedbug stuff
26 * will use this for the output of the dis/assembler.
27 * ====================================================================== */
28
Wolfgang Denkd87080b2006-03-31 18:32:53 +020029int bedbug_puts (const char *str)
wdenk47d1a6e2002-11-03 00:01:44 +000030{
Wolfgang Denkd87080b2006-03-31 18:32:53 +020031 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +000032
Wolfgang Denkd87080b2006-03-31 18:32:53 +020033 printf ("%s\r\n", str);
34 return 0;
35} /* bedbug_puts */
wdenk47d1a6e2002-11-03 00:01:44 +000036
Wolfgang Denkd87080b2006-03-31 18:32:53 +020037
38
wdenk47d1a6e2002-11-03 00:01:44 +000039/* ======================================================================
40 * Initialize the bug_ctx structure used by the bedbug debugger. This is
41 * specific to the CPU since each has different debug registers and
42 * settings.
43 * ====================================================================== */
44
Wolfgang Denkd87080b2006-03-31 18:32:53 +020045void bedbug_init (void)
wdenk47d1a6e2002-11-03 00:01:44 +000046{
Wolfgang Denkd87080b2006-03-31 18:32:53 +020047 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +000048
49#if defined(CONFIG_4xx)
Wolfgang Denkd87080b2006-03-31 18:32:53 +020050 void bedbug405_init (void);
51
52 bedbug405_init ();
wdenkd126bfb2003-04-10 11:18:18 +000053#elif defined(CONFIG_8xx)
Wolfgang Denkd87080b2006-03-31 18:32:53 +020054 void bedbug860_init (void);
55
56 bedbug860_init ();
wdenk47d1a6e2002-11-03 00:01:44 +000057#endif
58
59#if defined(CONFIG_MPC824X) || defined(CONFIG_MPC8260)
Wolfgang Denkd87080b2006-03-31 18:32:53 +020060 /* Processors that are 603e core based */
61 void bedbug603e_init (void);
wdenk47d1a6e2002-11-03 00:01:44 +000062
Wolfgang Denkd87080b2006-03-31 18:32:53 +020063 bedbug603e_init ();
wdenk47d1a6e2002-11-03 00:01:44 +000064#endif
65
Wolfgang Denkd87080b2006-03-31 18:32:53 +020066 return;
67} /* bedbug_init */
wdenk47d1a6e2002-11-03 00:01:44 +000068
Wolfgang Denkd87080b2006-03-31 18:32:53 +020069
70
wdenk47d1a6e2002-11-03 00:01:44 +000071/* ======================================================================
72 * Entry point from the interpreter to the disassembler. Repeated calls
73 * will resume from the last disassembled address.
74 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +020075int do_bedbug_dis (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +000076{
Wolfgang Denkd87080b2006-03-31 18:32:53 +020077 ulong addr; /* Address to start disassembly from */
78 ulong len; /* # of instructions to disassemble */
wdenk47d1a6e2002-11-03 00:01:44 +000079
Wolfgang Denkd87080b2006-03-31 18:32:53 +020080 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +000081
Wolfgang Denkd87080b2006-03-31 18:32:53 +020082 /* Setup to go from the last address if none is given */
83 addr = dis_last_addr;
84 len = dis_last_len;
wdenk47d1a6e2002-11-03 00:01:44 +000085
Wolfgang Denk47e26b12010-07-17 01:06:04 +020086 if (argc < 2)
87 return cmd_usage(cmdtp);
wdenk47d1a6e2002-11-03 00:01:44 +000088
Wolfgang Denkd87080b2006-03-31 18:32:53 +020089 if ((flag & CMD_FLAG_REPEAT) == 0) {
90 /* New command */
91 addr = simple_strtoul (argv[1], NULL, 16);
wdenk47d1a6e2002-11-03 00:01:44 +000092
Wolfgang Denkd87080b2006-03-31 18:32:53 +020093 /* If an extra param is given then it is the length */
94 if (argc > 2)
95 len = simple_strtoul (argv[2], NULL, 16);
96 }
wdenk47d1a6e2002-11-03 00:01:44 +000097
Wolfgang Denkd87080b2006-03-31 18:32:53 +020098 /* Run the disassembler */
99 disppc ((unsigned char *) addr, 0, len, bedbug_puts, F_RADHEX);
100
101 dis_last_addr = addr + (len * 4);
102 dis_last_len = len;
103 return 0;
104} /* do_bedbug_dis */
105
106U_BOOT_CMD (ds, 3, 1, do_bedbug_dis,
Peter Tyser2fb26042009-01-27 18:03:12 -0600107 "disassemble memory",
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200108 "ds <address> [# instructions]");
wdenk47d1a6e2002-11-03 00:01:44 +0000109
110/* ======================================================================
111 * Entry point from the interpreter to the assembler. Assembles
112 * instructions in consecutive memory locations until a '.' (period) is
113 * entered on a line by itself.
114 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200115int do_bedbug_asm (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000116{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200117 long mem_addr; /* Address to assemble into */
118 unsigned long instr; /* Machine code for text */
119 char prompt[15]; /* Prompt string for user input */
120 int asm_err; /* Error code from the assembler */
wdenk47d1a6e2002-11-03 00:01:44 +0000121
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200122 /* -------------------------------------------------- */
123 int rcode = 0;
wdenk47d1a6e2002-11-03 00:01:44 +0000124
Wolfgang Denk47e26b12010-07-17 01:06:04 +0200125 if (argc < 2)
126 return cmd_usage(cmdtp);
wdenk47d1a6e2002-11-03 00:01:44 +0000127
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200128 printf ("\nEnter '.' when done\n");
129 mem_addr = simple_strtoul (argv[1], NULL, 16);
wdenk47d1a6e2002-11-03 00:01:44 +0000130
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200131 while (1) {
132 putc ('\n');
133 disppc ((unsigned char *) mem_addr, 0, 1, bedbug_puts,
134 F_RADHEX);
wdenk47d1a6e2002-11-03 00:01:44 +0000135
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200136 sprintf (prompt, "%08lx: ", mem_addr);
137 readline (prompt);
138
139 if (console_buffer[0] && strcmp (console_buffer, ".")) {
140 if ((instr =
141 asmppc (mem_addr, console_buffer,
142 &asm_err)) != 0) {
143 *(unsigned long *) mem_addr = instr;
144 mem_addr += 4;
145 } else {
146 printf ("*** Error: %s ***\n",
147 asm_error_str (asm_err));
148 rcode = 1;
149 }
150 } else {
151 break;
152 }
153 }
154 return rcode;
155} /* do_bedbug_asm */
156
157U_BOOT_CMD (as, 2, 0, do_bedbug_asm,
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200158 "assemble memory", "as <address>");
wdenk47d1a6e2002-11-03 00:01:44 +0000159
160/* ======================================================================
161 * Used to set a break point from the interpreter. Simply calls into the
162 * CPU-specific break point set routine.
163 * ====================================================================== */
164
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200165int do_bedbug_break (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000166{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200167 /* -------------------------------------------------- */
168 if (bug_ctx.do_break)
169 (*bug_ctx.do_break) (cmdtp, flag, argc, argv);
170 return 0;
wdenk47d1a6e2002-11-03 00:01:44 +0000171
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200172} /* do_bedbug_break */
173
174U_BOOT_CMD (break, 3, 0, do_bedbug_break,
Peter Tyser2fb26042009-01-27 18:03:12 -0600175 "set or clear a breakpoint",
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200176 " - Set or clear a breakpoint\n"
177 "break <address> - Break at an address\n"
178 "break off <bp#> - Disable breakpoint.\n"
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200179 "break show - List breakpoints.");
wdenk47d1a6e2002-11-03 00:01:44 +0000180
181/* ======================================================================
182 * Called from the debug interrupt routine. Simply calls the CPU-specific
183 * breakpoint handling routine.
184 * ====================================================================== */
185
186void do_bedbug_breakpoint (struct pt_regs *regs)
187{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200188 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000189
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200190 if (bug_ctx.break_isr)
191 (*bug_ctx.break_isr) (regs);
wdenk47d1a6e2002-11-03 00:01:44 +0000192
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200193 return;
194} /* do_bedbug_breakpoint */
wdenk47d1a6e2002-11-03 00:01:44 +0000195
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200196
197
wdenk47d1a6e2002-11-03 00:01:44 +0000198/* ======================================================================
199 * Called from the CPU-specific breakpoint handling routine. Enter a
200 * mini main loop until the stopped flag is cleared from the breakpoint
201 * context.
202 *
203 * This handles the parts of the debugger that are common to all CPU's.
204 * ====================================================================== */
205
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200206void bedbug_main_loop (unsigned long addr, struct pt_regs *regs)
wdenk47d1a6e2002-11-03 00:01:44 +0000207{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200208 int len; /* Length of command line */
209 int flag; /* Command flags */
210 int rc = 0; /* Result from run_command */
211 char prompt_str[20]; /* Prompt string */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200212 static char lastcommand[CONFIG_SYS_CBSIZE] = { 0 }; /* previous command */
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200213 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000214
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200215 if (bug_ctx.clear)
216 (*bug_ctx.clear) (bug_ctx.current_bp);
wdenk47d1a6e2002-11-03 00:01:44 +0000217
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200218 printf ("Breakpoint %d: ", bug_ctx.current_bp);
219 disppc ((unsigned char *) addr, 0, 1, bedbug_puts, F_RADHEX);
wdenk47d1a6e2002-11-03 00:01:44 +0000220
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200221 bug_ctx.stopped = 1;
222 bug_ctx.regs = regs;
wdenk47d1a6e2002-11-03 00:01:44 +0000223
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200224 sprintf (prompt_str, "BEDBUG.%d =>", bug_ctx.current_bp);
wdenk47d1a6e2002-11-03 00:01:44 +0000225
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200226 /* A miniature main loop */
227 while (bug_ctx.stopped) {
228 len = readline (prompt_str);
wdenk47d1a6e2002-11-03 00:01:44 +0000229
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200230 flag = 0; /* assume no special flags for now */
wdenk47d1a6e2002-11-03 00:01:44 +0000231
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200232 if (len > 0)
233 strcpy (lastcommand, console_buffer);
234 else if (len == 0)
235 flag |= CMD_FLAG_REPEAT;
wdenk47d1a6e2002-11-03 00:01:44 +0000236
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200237 if (len == -1)
238 printf ("<INTERRUPT>\n");
239 else
240 rc = run_command (lastcommand, flag);
wdenk47d1a6e2002-11-03 00:01:44 +0000241
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200242 if (rc <= 0) {
243 /* invalid command or not repeatable, forget it */
244 lastcommand[0] = 0;
245 }
246 }
wdenk47d1a6e2002-11-03 00:01:44 +0000247
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200248 bug_ctx.regs = NULL;
249 bug_ctx.current_bp = 0;
wdenk47d1a6e2002-11-03 00:01:44 +0000250
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200251 return;
252} /* bedbug_main_loop */
wdenk47d1a6e2002-11-03 00:01:44 +0000253
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200254
255
wdenk47d1a6e2002-11-03 00:01:44 +0000256/* ======================================================================
257 * Interpreter command to continue from a breakpoint. Just clears the
258 * stopped flag in the context so that the breakpoint routine will
259 * return.
260 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200261int do_bedbug_continue (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000262{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200263 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000264
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200265 if (!bug_ctx.stopped) {
266 printf ("Not at a breakpoint\n");
267 return 1;
268 }
wdenk47d1a6e2002-11-03 00:01:44 +0000269
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200270 bug_ctx.stopped = 0;
271 return 0;
272} /* do_bedbug_continue */
273
274U_BOOT_CMD (continue, 1, 0, do_bedbug_continue,
Peter Tyser2fb26042009-01-27 18:03:12 -0600275 "continue from a breakpoint",
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200276 "");
wdenk47d1a6e2002-11-03 00:01:44 +0000277
278/* ======================================================================
279 * Interpreter command to continue to the next instruction, stepping into
280 * subroutines. Works by calling the find_next_addr() routine to compute
281 * the address passes control to the CPU-specific set breakpoint routine
282 * for the current breakpoint number.
283 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200284int do_bedbug_step (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000285{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200286 unsigned long addr; /* Address to stop at */
wdenk47d1a6e2002-11-03 00:01:44 +0000287
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200288 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000289
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200290 if (!bug_ctx.stopped) {
291 printf ("Not at a breakpoint\n");
292 return 1;
293 }
wdenk47d1a6e2002-11-03 00:01:44 +0000294
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200295 if (!find_next_address ((unsigned char *) &addr, FALSE, bug_ctx.regs))
296 return 1;
wdenk47d1a6e2002-11-03 00:01:44 +0000297
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200298 if (bug_ctx.set)
299 (*bug_ctx.set) (bug_ctx.current_bp, addr);
300
301 bug_ctx.stopped = 0;
302 return 0;
303} /* do_bedbug_step */
304
305U_BOOT_CMD (step, 1, 1, do_bedbug_step,
Peter Tyser2fb26042009-01-27 18:03:12 -0600306 "single step execution.",
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200307 "");
wdenk47d1a6e2002-11-03 00:01:44 +0000308
309/* ======================================================================
310 * Interpreter command to continue to the next instruction, stepping over
311 * subroutines. Works by calling the find_next_addr() routine to compute
312 * the address passes control to the CPU-specific set breakpoint routine
313 * for the current breakpoint number.
314 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200315int do_bedbug_next (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000316{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200317 unsigned long addr; /* Address to stop at */
wdenk47d1a6e2002-11-03 00:01:44 +0000318
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200319 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000320
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200321 if (!bug_ctx.stopped) {
322 printf ("Not at a breakpoint\n");
323 return 1;
324 }
wdenk47d1a6e2002-11-03 00:01:44 +0000325
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200326 if (!find_next_address ((unsigned char *) &addr, TRUE, bug_ctx.regs))
327 return 1;
wdenk47d1a6e2002-11-03 00:01:44 +0000328
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200329 if (bug_ctx.set)
330 (*bug_ctx.set) (bug_ctx.current_bp, addr);
331
332 bug_ctx.stopped = 0;
333 return 0;
334} /* do_bedbug_next */
335
336U_BOOT_CMD (next, 1, 1, do_bedbug_next,
Peter Tyser2fb26042009-01-27 18:03:12 -0600337 "single step execution, stepping over subroutines.",
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200338 "");
wdenk47d1a6e2002-11-03 00:01:44 +0000339
340/* ======================================================================
341 * Interpreter command to print the current stack. This assumes an EABI
342 * architecture, so it starts with GPR R1 and works back up the stack.
343 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200344int do_bedbug_stack (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000345{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200346 unsigned long sp; /* Stack pointer */
347 unsigned long func; /* LR from stack */
348 int depth; /* Stack iteration level */
349 int skip = 1; /* Flag to skip the first entry */
350 unsigned long top; /* Top of memory address */
wdenk47d1a6e2002-11-03 00:01:44 +0000351
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200352 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000353
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200354 if (!bug_ctx.stopped) {
355 printf ("Not at a breakpoint\n");
356 return 1;
357 }
wdenk47d1a6e2002-11-03 00:01:44 +0000358
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200359 top = gd->bd->bi_memstart + gd->bd->bi_memsize;
360 depth = 0;
wdenk47d1a6e2002-11-03 00:01:44 +0000361
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200362 printf ("Depth PC\n");
363 printf ("----- --------\n");
364 printf ("%5d %08lx\n", depth++, bug_ctx.regs->nip);
wdenk47d1a6e2002-11-03 00:01:44 +0000365
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200366 sp = bug_ctx.regs->gpr[1];
367 func = *(unsigned long *) (sp + 4);
wdenk47d1a6e2002-11-03 00:01:44 +0000368
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200369 while ((func < top) && (sp < top)) {
370 if (!skip)
371 printf ("%5d %08lx\n", depth++, func);
372 else
373 --skip;
wdenk47d1a6e2002-11-03 00:01:44 +0000374
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200375 sp = *(unsigned long *) sp;
376 func = *(unsigned long *) (sp + 4);
377 }
378 return 0;
379} /* do_bedbug_stack */
380
381U_BOOT_CMD (where, 1, 1, do_bedbug_stack,
Peter Tyser2fb26042009-01-27 18:03:12 -0600382 "Print the running stack.",
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200383 "");
wdenk47d1a6e2002-11-03 00:01:44 +0000384
385/* ======================================================================
386 * Interpreter command to dump the registers. Calls the CPU-specific
387 * show registers routine.
388 * ====================================================================== */
Wolfgang Denk54841ab2010-06-28 22:00:46 +0200389int do_bedbug_rdump (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
wdenk47d1a6e2002-11-03 00:01:44 +0000390{
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200391 /* -------------------------------------------------- */
wdenk47d1a6e2002-11-03 00:01:44 +0000392
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200393 if (!bug_ctx.stopped) {
394 printf ("Not at a breakpoint\n");
395 return 1;
396 }
wdenk47d1a6e2002-11-03 00:01:44 +0000397
Wolfgang Denkd87080b2006-03-31 18:32:53 +0200398 show_regs (bug_ctx.regs);
399 return 0;
400} /* do_bedbug_rdump */
401
402U_BOOT_CMD (rdump, 1, 1, do_bedbug_rdump,
Wolfgang Denka89c33d2009-05-24 17:06:54 +0200403 "Show registers.", "");
wdenk47d1a6e2002-11-03 00:01:44 +0000404/* ====================================================================== */
wdenk47d1a6e2002-11-03 00:01:44 +0000405
406
407/*
408 * Copyright (c) 2001 William L. Pitts
409 * All rights reserved.
410 *
411 * Redistribution and use in source and binary forms are freely
412 * permitted provided that the above copyright notice and this
413 * paragraph and the following disclaimer are duplicated in all
414 * such forms.
415 *
416 * This software is provided "AS IS" and without any express or
417 * implied warranties, including, without limitation, the implied
418 * warranties of merchantability and fitness for a particular
419 * purpose.
420 */