summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-07 19:09:23 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-07 19:09:23 +0200
commit0fa7401d334a7771d5c064572083e389b695a54b (patch)
tree0ca3db0db99e7b117934f5badcf8ecfaa8844627
parent681d4080940819dc522e61369f199577c2819367 (diff)
Restore db_help_cmd
* ddb/db_command.c (db_help_cmd): Restore function.
-rw-r--r--ddb/db_command.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ddb/db_command.c b/ddb/db_command.c
index c032172..5e53b28 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -337,6 +337,7 @@ struct db_command db_show_cmds[] = {
{ (char *)0, }
};
+void db_help_cmd();
extern void db_stack_trace_cmd();
extern void db_reset_cpu();
@@ -393,6 +394,18 @@ struct db_command *ptr;
struct db_command *db_last_command = 0;
+void
+db_help_cmd()
+{
+ struct db_command *cmd = db_command_table;
+
+ while (cmd->name != 0) {
+ db_printf("%-12s", cmd->name);
+ db_end_line();
+ cmd++;
+ }
+}
+
int (*ddb_display)();
void