Bill Richardson
248e1a8a31
md console command can dump memory in more formats
This adds optional format designations to the "md" console
command. By default it dumps memory in 32-bit words, but with
this change it can also display 16-bit words, bytes, and strings.
BUG=none
BRANCH=none
TEST=manual
For example:
> md 0x5c400 32
0005C400: 6d6d6f63 20646e61 75626564 756f2067
0005C410: 74757074 646f6d20 6f6e0065 6c616d72
0005C420: 65766500 70007972 6d617261 41550073
0005C430: 69205452 6974696e 7a696c61 61206465
0005C440: 72657466 73797320 706d756a 2d0a0a00
0005C450: 55202d2d 20545241 74696e69 696c6169
0005C460: 2064657a 65746661 65722072 746f6f62
0005C470: 2d2d2d20 525b000a 74657365 75616320
> md .h 0x5c400 32
0005C400: 6f63 6d6d 6e61 2064 6564 7562 2067 756f
0005C410: 7074 7475 6d20 646f 0065 6f6e 6d72 6c61
0005C420: 6500 6576 7972 7000 7261 6d61 0073 4155
0005C430: 5452 6920 696e 6974 6c61 7a69 6465 6120
> md .b 0x5c400 32
0005C400: 63 6f 6d 6d 61 6e 64 20 64 65 62 75 67 20 6f 75
0005C410: 74 70 75 74 20 6d 6f 64 65 00 6e 6f 72 6d 61 6c
> md .s 0x5c400 32
0005C400: command debug output mode\x00normal
>
Change-Id: Ic0dec9a1a3942acc66c88f46c5b02a80a8110817
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/300020
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2015-09-16 14:49:59 -07:00
..
2015-07-28 21:31:38 +00:00
2013-12-20 05:07:58 +00:00
2015-09-10 12:35:37 -07:00
2014-05-21 20:32:17 +00:00
2013-09-27 23:07:21 +00:00
2014-06-15 01:45:21 +00:00
2015-06-04 19:33:00 +00:00
2015-09-15 11:02:43 -07:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2015-09-08 13:49:09 -07:00
2015-09-09 11:17:45 -07:00
2015-06-10 19:48:08 +00:00
2015-07-14 22:39:36 +00:00
2015-08-13 21:41:18 +00:00
2014-05-21 20:32:17 +00:00
2014-11-18 05:19:47 +00:00
2015-05-19 02:46:27 +00:00
2015-07-25 08:47:31 +00:00
2015-01-17 23:19:58 +00:00
2014-08-29 02:57:00 +00:00
2014-08-08 03:11:38 +00:00
2015-07-17 03:17:50 +00:00
2015-05-28 03:18:06 +00:00
2015-07-28 21:31:38 +00:00
2015-09-16 14:49:31 -07:00
2015-07-17 03:17:50 +00:00
2015-09-16 14:49:33 -07:00
2015-09-16 14:49:32 -07:00
2015-08-29 01:34:15 -07:00
2015-07-25 14:49:31 +00:00
2015-07-13 18:43:56 +00:00
2015-01-07 08:45:38 +00:00
2015-07-29 06:38:45 +00:00
2015-07-28 21:31:38 +00:00
2014-10-24 01:37:58 +00:00
2014-03-06 21:33:09 +00:00
2015-08-22 01:37:51 +00:00
2015-01-30 05:11:06 +00:00
2015-07-17 03:18:03 +00:00
2015-08-28 18:09:06 -07:00
2015-08-31 22:59:52 -07:00
2015-08-28 18:09:06 -07:00
2013-03-22 11:24:29 -07:00
2015-08-21 00:49:26 +00:00
2014-01-14 09:19:45 +00:00
2015-01-14 21:49:36 +00:00
2015-08-10 20:42:18 +00:00
2015-07-23 22:38:06 +00:00
2015-08-21 00:49:26 +00:00
2015-09-08 18:43:47 -07:00
2015-09-15 17:56:17 -07:00
2015-09-16 14:49:59 -07:00
2015-05-28 23:02:18 +00:00
2015-08-22 01:37:55 +00:00
2015-09-11 13:50:56 -07:00
2013-08-02 18:22:57 -07:00
2015-04-14 01:15:43 +00:00
2015-05-27 02:39:41 +00:00
2015-06-10 18:24:05 +00:00
2015-06-10 18:24:05 +00:00
2014-05-21 20:32:17 +00:00
2015-07-15 02:06:48 +00:00
2015-06-04 01:15:55 +00:00
2015-02-10 23:07:14 +00:00
2015-04-10 23:29:27 +00:00
2012-07-26 16:25:34 -07:00
2013-11-05 02:32:40 +00:00
2013-10-23 20:07:25 +00:00
2015-06-11 00:08:49 +00:00
2015-07-15 21:57:36 +00:00
2014-11-15 06:00:02 +00:00
2015-09-16 14:49:31 -07:00
2014-05-17 20:14:17 +00:00
2013-12-19 00:12:28 +00:00
2015-02-24 00:27:42 +00:00
2015-02-04 23:32:42 +00:00
2015-09-16 14:49:33 -07:00
2015-09-16 14:49:33 -07:00
2014-05-21 20:32:17 +00:00
2015-09-16 14:49:32 -07:00
2015-01-14 03:15:41 +00:00
2014-01-08 03:49:36 +00:00
2015-01-14 03:15:41 +00:00
2014-05-21 20:32:17 +00:00
2015-09-08 10:38:20 -07:00
2015-08-22 01:37:25 +00:00
2015-08-08 04:26:40 +00:00
2015-09-03 04:24:34 -07:00
2015-09-16 14:49:32 -07:00
2015-09-15 12:21:35 -07:00
2015-09-16 14:49:47 -07:00
2014-05-21 20:32:17 +00:00
2014-08-23 02:42:21 +00:00
2015-01-08 00:38:13 +00:00
2015-09-16 14:49:32 -07:00
2015-05-19 02:46:27 +00:00
2014-02-22 00:50:37 +00:00