gdb - Manually generate elf core dump -


i looking manually generating elf core dump file.

i have ram dump program, , can retrieve register informations , on.

with data, build elf core dump file, similar generated linux kernel when program crashes, goal analyse core dump gdb made platform.

i have been looking core dumps specifications or detailed format, did not find wanted :

  • what sections core dump file require ?
  • how organized elf container ?
  • how go having binary ram dump (+ registers values) core dump file.

this must preferably done in c, thought use libelf library me build file, did not found relevant information put in file, , in format, clue, link or advice welcomed.

note : not raising exceptions , have job done kernel me, can that, need gather myself ram , register data manually elf core dump.

thanks !

i looking manually generating elf core dump file.

just use google elf userspace coredumper, exactly that.

i want build core dump, not implement directly software

there no existing program (that know of) can that. chances are, you'll have write 1 scratch, or adapt other program.

there 2 programs can write core dump userspace -- above userspace coredumper, , gdb (via gcore command). expect adapting google coredumper easier adapting gdb.

should decide write 1 scratch, can still read google coredumper source figure out must write core.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -