Memory dump

bridged with qnx.development_tools
Post Reply
Armand Ciejak

Memory dump

Post by Armand Ciejak » Thu Sep 15, 2005 7:46 am

How to dump a memory region to a file with Momentics?

David Gibbs

Re: Memory dump

Post by David Gibbs » Thu Sep 15, 2005 5:20 pm

Armand Ciejak <armand.ciejak@free.fr> wrote:
How to dump a memory region to a file with Momentics?
What do you mean by a memory region? Do you mean an area of
physical memory, given a physical address and size? Or do you
mean a shared memory object, something in /dev/shmem? Or do you
mean in the debugger, in the Memory view, an area of memory you
are viewing?

For a shared memory region in /dev/shmem:
cat /dev/shmem/region > /tmp/myfilename

For an area of physical memory, you could write a little program:
ptr = mmap_device_memory(...);
fd = open(...);
write(fd, ptr, bytes);

From the Memory view, I don't know of a way. We should probably allow/
implement cut+paste from it, though.

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com

David Gibbs

Re: Memory dump

Post by David Gibbs » Thu Sep 15, 2005 6:03 pm

David Gibbs <dagibbs@qnx.com> wrote:
From the Memory view, I don't know of a way. We should probably allow/
implement cut+paste from it, though.
PR 21322 tracks a request for this.

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com

Armand Ciejak

Re: Memory dump

Post by Armand Ciejak » Thu Sep 22, 2005 8:36 am

That was my request: to be able to get data from the Memory view.

Thanks,

Armand

David Gibbs wrote:
David Gibbs <dagibbs@qnx.com> wrote:

From the Memory view, I don't know of a way. We should probably allow/
implement cut+paste from it, though.


PR 21322 tracks a request for this.

-David

Post Reply

Return to “qnx.development_tools”