diff --git a/src/coredumper_unittest.c b/src/coredumper_unittest.c index b53443e..a6d89f7 100644 --- a/src/coredumper_unittest.c +++ b/src/coredumper_unittest.c @@ -139,7 +139,7 @@ static void CheckWithReadElf(FILE *input, FILE *output, const char *filename, "Core file", "no sections in this file", "NOTE", "no relocations in this file", - "no unwind sections in this file", + "The decoding of unwind sections for machine type Advanced Micro Devices X86-64 is not currently supported.", "No version information found in this file", "NT_PRPSINFO", #ifndef __mips__ @@ -424,18 +424,16 @@ static void CheckWithGDB(FILE *input, FILE *output, const char *filename, * to gdb. "*" is a glob wildcard character. */ static const char *msg[] = { "Core was generated by", - " @ process * *"DUMPFUNCTION, - "[Switching to thread * *"DUMPFUNCTION, + " @ Thread * *"DUMPFUNCTION, + "[Current thread is *", "#* *CoreDump", "#@ * TestCoreDump", " TestCoreDump", "$1 = ", #ifdef THREADS " Busy", - " @ process * Busy", - "[Switching to thread * Busy", - "Busy", - "Busy", + " @ Thread * Busy", + "#* *CoreDump", #endif "DONE", 0 }; diff --git a/src/elfcore.c b/src/elfcore.c index 4304770..0301f0a 100644 --- a/src/elfcore.c +++ b/src/elfcore.c @@ -40,6 +40,7 @@ extern "C" { #include #include #include +#include #include #include #include diff --git a/src/linux_syscall_support_unittest.cc b/src/linux_syscall_support_unittest.cc index 3c7dd29..616f382 100644 --- a/src/linux_syscall_support_unittest.cc +++ b/src/linux_syscall_support_unittest.cc @@ -62,7 +62,6 @@ namespace linux_syscall_support { #include #include #include -#include #include #include #include @@ -91,8 +90,6 @@ static void CheckStructures() { // there are a small number of data structures (e.g "struct // kernel_old_sigaction") that we cannot test at all, as glibc does // not have any definitions for them. - CHECK(sizeof(struct dirent64) == sizeof(struct kernel_dirent64)); - CHECK(sizeof(struct dirent) == sizeof(struct kernel_dirent)); CHECK(sizeof(struct iovec) == sizeof(struct kernel_iovec)); CHECK(sizeof(struct msghdr) == sizeof(struct kernel_msghdr)); CHECK(sizeof(struct pollfd) == sizeof(struct kernel_pollfd)); diff --git a/src/linuxthreads.c b/src/linuxthreads.c index c09c68e..f7ba427 100644 --- a/src/linuxthreads.c +++ b/src/linuxthreads.c @@ -39,7 +39,7 @@ extern "C" { #endif #include -#include +#include #include #include #include @@ -49,7 +49,6 @@ extern "C" { #include #include #include -#include #include "linux_syscall_support.h" #include "thread_lister.h"