aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-linux-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-12 12:24:38 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2015-10-12 12:24:38 -0400
commit1f713e48f024e964f5a4f5468bc9506dac262763 (patch)
tree7cf8d419c089c76e96ca2214ca7686390c059712 /gdb/aarch64-linux-tdep.c
parentcb65d272fd09b79b7911cc00b5262d4fe14a40d7 (diff)
downloadgdb-1f713e48f024e964f5a4f5468bc9506dac262763.zip
gdb-1f713e48f024e964f5a4f5468bc9506dac262763.tar.gz
gdb-1f713e48f024e964f5a4f5468bc9506dac262763.tar.bz2
aarch64: Add cast for integer to enum cast
/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c: In function ‘int aarch64_linux_syscall_record(regcache*, long unsigned int)’: /home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:904:57: error: invalid conversion from ‘long unsigned int’ to ‘aarch64_syscall’ [-fpermissive] syscall_gdb = aarch64_canonicalize_syscall (svc_number); ^ /home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:645:1: note: initializing argument 1 of ‘gdb_syscall aarch64_canonicalize_syscall(aarch64_syscall)’ aarch64_canonicalize_syscall (enum aarch64_syscall syscall_number) ^ gdb/ChangeLog: * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
Diffstat (limited to 'gdb/aarch64-linux-tdep.c')
-rw-r--r--gdb/aarch64-linux-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index 2635adc..2204c92 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -902,7 +902,8 @@ aarch64_linux_syscall_record (struct regcache *regcache,
int ret = 0;
enum gdb_syscall syscall_gdb;
- syscall_gdb = aarch64_canonicalize_syscall (svc_number);
+ syscall_gdb =
+ aarch64_canonicalize_syscall ((enum aarch64_syscall) svc_number);
if (syscall_gdb < 0)
{