Apply the patch from https://patchwork.openembedded.org/patch/161442/, which explains why gdb should include <signal.h> instead of <asm/sigcontext.h>.