Currently, linux-record.h defines its own set of syscalls, named "enum gdb_syscall". However, GDB already provides XML mappings for syscalls, and we should aim to avoid replication in the code. This bug is a reminder to convert linux-record.h (and all the necessary files) to use the XML syscall files.
I am working on this.