-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#7046: Validate the contents of the Linux memory dump file. (#7092)
Set postcmd to use "readelf -a" to dump the contents of Linux memory dump file. Replace suite/tests/client-interface/memory_dump_test.expect with suite/tests/client-interface/memory_dump_test.templatex which validates the contents of the output of "readelf -a". Issue: #7046
- Loading branch information
Showing
4 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
thank you for testing memory dump | ||
thread init | ||
nudge delivered 1 | ||
Hello, world! | ||
#ifdef LINUX | ||
#undef UNIX | ||
ELF Header: | ||
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00.* | ||
Class: ELF64 | ||
Data: 2's complement, little endian | ||
Version: 1 \(current\) | ||
OS/ABI: UNIX - GNU | ||
ABI Version: 0 | ||
Type: CORE \(Core file\) | ||
Machine: .* | ||
Version: 0x1 | ||
Entry point address: 0x0 | ||
Start of program headers: 64 \(bytes into file\) | ||
Start of section headers: [0-9]+ \(bytes into file\) | ||
Flags: 0x0 | ||
Size of this header: 64 \(bytes\) | ||
Size of program headers: 56 \(bytes\) | ||
Number of program headers: 1 | ||
Size of section headers: 64 \(bytes\) | ||
Number of section headers: [0-9]+ | ||
Section header string table index: [0-9]+ | ||
.* | ||
Section Headers: | ||
.*\[Nr\] Name Type Address Offset | ||
Size EntSize Flags Link Info Align | ||
.* shstrtab STRTAB.* | ||
Program Headers: | ||
Type Offset VirtAddr PhysAddr | ||
FileSiz MemSiz Flags Align | ||
NOTE.* | ||
.* | ||
Displaying notes found at file offset 0x[0-9a-f]+ with length 0x[0-9a-f]+: | ||
Owner.*Data size.*Description | ||
CORE.*NT_PRSTATUS.*\(prstatus structure\) | ||
CORE.*NT_FPREGSET.*\(floating point registers\) | ||
#endif |