aarch64: Add cast for integer to enum cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 12 Oct 2015 16:24:38 +0000 (12:24 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 12 Oct 2015 16:24:38 +0000 (12:24 -0400)
/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.

gdb/ChangeLog
gdb/aarch64-linux-tdep.c

index aa2a3424ff93152c1899fc2b526c73e1611e0d97..6825b7e7f0517b508b936767542c80af89df7479 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
+
 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
index 2635adca8557ceb02e053bc11c9f7ec1c8a131c0..2204c926df14b7a1ee45d35e610cf3f8fc9f73f8 100644 (file)
@@ -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)
     {