projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
at91: define matrix registers bit fields
[oweals/u-boot.git]
/
common
/
cmd_bedbug.c
diff --git
a/common/cmd_bedbug.c
b/common/cmd_bedbug.c
index 1c3547a1fcc680247d4401c244d7ef55b4f22916..8be1c25fd7a2006bc296bb525155cae4221f4ffc 100644
(file)
--- a/
common/cmd_bedbug.c
+++ b/
common/cmd_bedbug.c
@@
-13,12
+13,6
@@
DECLARE_GLOBAL_DATA_PTR;
DECLARE_GLOBAL_DATA_PTR;
-#if defined(CONFIG_CMD_BEDBUG)
-
-#ifndef MAX
-#define MAX(a,b) ((a) > (b) ? (a) : (b))
-#endif
-
extern void show_regs __P ((struct pt_regs *));
extern int run_command __P ((const char *, int));
extern char console_buffer[];
extern void show_regs __P ((struct pt_regs *));
extern int run_command __P ((const char *, int));
extern char console_buffer[];
@@
-91,7
+85,7
@@
int do_bedbug_dis (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
len = dis_last_len;
if (argc < 2) {
len = dis_last_len;
if (argc < 2) {
-
printf ("Usage:\n%s\n", cmdtp->usage
);
+
cmd_usage(cmdtp
);
return 1;
}
return 1;
}
@@
-113,8
+107,8
@@
int do_bedbug_dis (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_dis */
U_BOOT_CMD (ds, 3, 1, do_bedbug_dis,
} /* do_bedbug_dis */
U_BOOT_CMD (ds, 3, 1, do_bedbug_dis,
- "d
s - disassemble memory\n
",
- "ds <address> [# instructions]
\n
");
+ "d
isassemble memory
",
+ "ds <address> [# instructions]");
\f
/* ======================================================================
* Entry point from the interpreter to the assembler. Assembles
\f
/* ======================================================================
* Entry point from the interpreter to the assembler. Assembles
@@
-132,7
+126,7
@@
int do_bedbug_asm (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
int rcode = 0;
if (argc < 2) {
int rcode = 0;
if (argc < 2) {
-
printf ("Usage:\n%s\n", cmdtp->usage
);
+
cmd_usage(cmdtp
);
return 1;
}
return 1;
}
@@
-166,7
+160,7
@@
int do_bedbug_asm (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_asm */
U_BOOT_CMD (as, 2, 0, do_bedbug_asm,
} /* do_bedbug_asm */
U_BOOT_CMD (as, 2, 0, do_bedbug_asm,
- "as
- assemble memory\n", "as <address>\n
");
+ "as
semble memory", "as <address>
");
\f
/* ======================================================================
* Used to set a break point from the interpreter. Simply calls into the
\f
/* ======================================================================
* Used to set a break point from the interpreter. Simply calls into the
@@
-183,11
+177,11
@@
int do_bedbug_break (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_break */
U_BOOT_CMD (break, 3, 0, do_bedbug_break,
} /* do_bedbug_break */
U_BOOT_CMD (break, 3, 0, do_bedbug_break,
- "
break - set or clear a breakpoint\n
",
+ "
set or clear a breakpoint
",
" - Set or clear a breakpoint\n"
"break <address> - Break at an address\n"
"break off <bp#> - Disable breakpoint.\n"
" - Set or clear a breakpoint\n"
"break <address> - Break at an address\n"
"break off <bp#> - Disable breakpoint.\n"
- "break show - List breakpoints.
\n
");
+ "break show - List breakpoints.");
\f
/* ======================================================================
* Called from the debug interrupt routine. Simply calls the CPU-specific
\f
/* ======================================================================
* Called from the debug interrupt routine. Simply calls the CPU-specific
@@
-220,7
+214,7
@@
void bedbug_main_loop (unsigned long addr, struct pt_regs *regs)
int flag; /* Command flags */
int rc = 0; /* Result from run_command */
char prompt_str[20]; /* Prompt string */
int flag; /* Command flags */
int rc = 0; /* Result from run_command */
char prompt_str[20]; /* Prompt string */
- static char lastcommand[C
FG_CBSIZE] = { 0 };
/* previous command */
+ static char lastcommand[C
ONFIG_SYS_CBSIZE] = { 0 };
/* previous command */
/* -------------------------------------------------- */
if (bug_ctx.clear)
/* -------------------------------------------------- */
if (bug_ctx.clear)
@@
-283,8
+277,8
@@
int do_bedbug_continue (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_continue */
U_BOOT_CMD (continue, 1, 0, do_bedbug_continue,
} /* do_bedbug_continue */
U_BOOT_CMD (continue, 1, 0, do_bedbug_continue,
- "continue
- continue from a breakpoint\n
",
- "
- continue from a breakpoint.\n
");
+ "continue
from a breakpoint
",
+ "");
\f
/* ======================================================================
* Interpreter command to continue to the next instruction, stepping into
\f
/* ======================================================================
* Interpreter command to continue to the next instruction, stepping into
@@
-314,8
+308,8
@@
int do_bedbug_step (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_step */
U_BOOT_CMD (step, 1, 1, do_bedbug_step,
} /* do_bedbug_step */
U_BOOT_CMD (step, 1, 1, do_bedbug_step,
- "s
tep - single step execution.\n
",
- "
- single step execution.\n
");
+ "s
ingle step execution.
",
+ "");
\f
/* ======================================================================
* Interpreter command to continue to the next instruction, stepping over
\f
/* ======================================================================
* Interpreter command to continue to the next instruction, stepping over
@@
-345,8
+339,8
@@
int do_bedbug_next (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_next */
U_BOOT_CMD (next, 1, 1, do_bedbug_next,
} /* do_bedbug_next */
U_BOOT_CMD (next, 1, 1, do_bedbug_next,
- "
next - single step execution, stepping over subroutines.\n
",
- "
- single step execution, stepping over subroutines.\n
");
+ "
single step execution, stepping over subroutines.
",
+ "");
\f
/* ======================================================================
* Interpreter command to print the current stack. This assumes an EABI
\f
/* ======================================================================
* Interpreter command to print the current stack. This assumes an EABI
@@
-390,8
+384,8
@@
int do_bedbug_stack (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_stack */
U_BOOT_CMD (where, 1, 1, do_bedbug_stack,
} /* do_bedbug_stack */
U_BOOT_CMD (where, 1, 1, do_bedbug_stack,
- "
where - Print the running stack.\n
",
- "
- Print the running stack.\n
");
+ "
Print the running stack.
",
+ "");
\f
/* ======================================================================
* Interpreter command to dump the registers. Calls the CPU-specific
\f
/* ======================================================================
* Interpreter command to dump the registers. Calls the CPU-specific
@@
-411,9
+405,8
@@
int do_bedbug_rdump (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
} /* do_bedbug_rdump */
U_BOOT_CMD (rdump, 1, 1, do_bedbug_rdump,
} /* do_bedbug_rdump */
U_BOOT_CMD (rdump, 1, 1, do_bedbug_rdump,
- "
rdump - Show registers.\n", " - Show registers.\n
");
+ "
Show registers.", "
");
/* ====================================================================== */
/* ====================================================================== */
-#endif
/*
/*