On 8/3/07, Bean <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have written a new command dump, it can hex dump content of file or memory.
>
> usage:
>
> dump [-s skip] [-n length] { FILE | (mem) }
>
> The output look just like command hexdump.
>
> If you use (mem) as filename, it will dump physical memory instead of
> file. when dumping memory, the default length is 256, but when dumping
> normal file, the default length is the whole file.
>
> Inside grub2, modules can call function dump directly:
>
> void dump(unsigned long base,char* buf, int len);

Thanks, I've been meaning to submit something like this for a long time. :)

The module I wrote actually had one more convenience feature: it keeps
a "position" pointer, and if you run the command again without an
address, it displays the memory immediately after the last dump.

-Hollis


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to