grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New command dump


From: Hollis Blanchard
Subject: Re: New command dump
Date: Sun, 5 Aug 2007 13:39:04 -0500

On 8/3/07, Bean <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]