Memory dump

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

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 <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

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