--- - branch: MAIN date: Wed Jan 8 17:21:38 UTC 2020 files: - new: '1.21' old: '1.20' path: src/sys/arch/amd64/include/ptrace.h pathrev: src/sys/arch/amd64/include/ptrace.h@1.21 type: modified - new: '1.24' old: '1.23' path: src/sys/arch/i386/include/ptrace.h pathrev: src/sys/arch/i386/include/ptrace.h@1.24 type: modified - new: '1.62' old: '1.61' path: src/sys/kern/core_elf32.c pathrev: src/sys/kern/core_elf32.c@1.62 type: modified id: 20200108T172138Z.f290b262c81048958aa647557de0b1043407ae5f log: | Include XSTATE note in x86 core dumps Introduce a simple COREDUMP_MACHDEP_LWP_NOTES logic to provide machdep API for injecting per-LWP notes into coredumps, and use it to append PT_GETXSTATE note. Since the XSTATE block uses the same format on i386 and amd64, the code does not have to conditionalize between 32-bit and 64-bit ELF format on that. However, it does need to distinguish between 32-bit and 64-bit PT_* values. In order to do that, it reuses PT32_* constant already present for ptrace(), and adds a matching PT64_GETXSTATE to satisfy the cpp logic. module: src subject: 'CVS commit: src/sys' unixtime: '1578504098' user: mgorny