is it possible to write core files manually? lets assume I have a binary memory dump of stack, heap, code and all the processor registers.
is it possible to create a core file that would look to GDB as if a real process has crashed and generated this core file?
The main usage for this is that I am running a VM on assembley code. Lets assume the architecture is PPC. when I encounter a problem I want to be able to write a core file that is readable by GDB on Linux to help debug the problem.
I am not sure what is the diffrence between ELF format core file and other formats. but what I am trying to find out is if its possible to write a module that gets data segment, code segment, stack segment and registers and produces a readable core file for GDB and if so, how complicated it that.
Thanks, Itay