diff packages/redboot/current/src/main.c @ 186:d60da272beeb

Merge from eCos master repository on 2001-10-05-06:43:03-BST
author jlarmour
date Fri, 05 Oct 2001 15:31:48 +0000
parents 9160a8005d76
children 678094f34118
line wrap: on
line diff
--- a/packages/redboot/current/src/main.c
+++ b/packages/redboot/current/src/main.c
@@ -90,6 +90,11 @@ RedBoot_cmd("dump",
             "-b <location> [-l <length>]",
             do_dump 
     );
+RedBoot_cmd("x", 
+            "Display (hex dump) a range of memory", 
+            "-b <location> [-l <length>]",
+            do_x 
+    );
 RedBoot_cmd("cksum", 
             "Compute a 32bit checksum [POSIX algorithm] for a range of memory", 
             "-b <location> -l <length>",
@@ -430,6 +435,13 @@ do_dump(int argc, char *argv[])
     _len = len;
 }
 
+// Simple alias for the dump command
+void
+do_x(int argc, char *argv[])
+{
+    do_dump(argc, argv);
+}
+
 void
 do_cksum(int argc, char *argv[])
 {