This patch is taken from Pedro's branch.
gdb/ChangeLog:
* arm-linux-tdep.c (arm_canonicalize_syscall): Add
enum gdb_syscall casts.
+2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
+
+ * arm-linux-tdep.c (arm_canonicalize_syscall): Add
+ enum gdb_syscall casts.
+
2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
* aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
enum { sys_process_vm_writev = 377 };
if (syscall <= gdb_sys_sched_getaffinity)
- return syscall;
+ return (enum gdb_syscall) syscall;
else if (syscall >= 243 && syscall <= 247)
- return syscall + 2;
+ return (enum gdb_syscall) (syscall + 2);
else if (syscall >= 248 && syscall <= 253)
- return syscall + 4;
+ return (enum gdb_syscall) (syscall + 4);
return gdb_sys_no_syscall;
}