diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-09 10:12:21 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-10-09 10:12:21 -0400 |
commit | f9fa37b32501f173a37891fb1a8f9013af38a098 (patch) | |
tree | 309a2a8e2cb72047b6f9a3e5cd2c6748d69b6a81 | |
parent | 7c543f7b07678f69f22772bd2780602be67731d7 (diff) | |
download | gdb-f9fa37b32501f173a37891fb1a8f9013af38a098.zip gdb-f9fa37b32501f173a37891fb1a8f9013af38a098.tar.gz gdb-f9fa37b32501f173a37891fb1a8f9013af38a098.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-linux-tdep.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a44029..5085c83 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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*. * arm-tdep.c (struct stack_item): Likewise. (push_stack_item): Add gdb_byte* cast. diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index b7c5b99..dc0a8a9 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; } |