DescriptionFix nacl-gdb so that it can read ELF core dump files
Before this change, nacl-gdb gives the error "no core file handler
recognizes format" when given an ELF code dump file.
Fix this by setting up the register layout for core dumps. Reuse the
same layout as for Linux code dumps for interoperability.
I tested this by producing a minidump from a NaCl minidump generator
and converting it to an ELF core dump using Breakpad's minidump-2-core
tool. While we could generate a different register layout (e.g. using
NaCl's "struct NaClExceptionContext"), it's useful to keep the core
dumps readable by regular Linux GDB.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3425
TEST=see above
Committed: https://git.chromium.org/gitweb?p=native_client/nacl-gdb.git;a=commit;h=9e993e0
Patch Set 1 #Patch Set 2 : Cleanup: share code #Patch Set 3 : Retry upload #Patch Set 4 : Retry upload #
Messages
Total messages: 3 (0 generated)
|