summaryrefslogtreecommitdiff
path: root/gdb/arm-linux-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-10-09 10:12:21 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-09 10:12:21 -0400
commitf9fa37b32501f173a37891fb1a8f9013af38a098 (patch)
tree309a2a8e2cb72047b6f9a3e5cd2c6748d69b6a81 /gdb/arm-linux-tdep.c
parent7c543f7b07678f69f22772bd2780602be67731d7 (diff)
downloadbinutils-gdb-f9fa37b32501f173a37891fb1a8f9013af38a098.tar.gz
arm-linux-tdep: Add explicit cast for int to gdb_syscall conversion
This patch is taken from Pedro's branch. gdb/ChangeLog: * arm-linux-tdep.c (arm_canonicalize_syscall): Add enum gdb_syscall casts.
Diffstat (limited to 'gdb/arm-linux-tdep.c')
-rw-r--r--gdb/arm-linux-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index b7c5b99f62a..dc0a8a9dbc4 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -1265,11 +1265,11 @@ arm_canonicalize_syscall (int syscall)
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;
}