Is it possible to load a file full of binary data into GDB when GDB is debugging a core file?

Posted by efunneko on Stack Overflow See other posts from Stack Overflow or by efunneko
Published on 2010-05-25T21:30:24Z Indexed on 2010/05/25 23:11 UTC
Read the original article Hit count: 164

Filed under:
|
|

I am debugging a crash using GDB and a core file. A large portion of the memory space is mmapped into the process. That portion of the memory is not saved into the core file. I have a file that contains all the data in that mmapped memory.

I would like to find a way to load the data from that file into GDB at a certain offset so that I can display datastructures within that address space. Is this possible?

Note that I have tried the 'restore' command in GDB and it does not work when debugging a core file.

Perhaps there are tools that allow a core file to have additional data appended to it?

© Stack Overflow or respective owner

Related posts about c++

Related posts about debug