aarch64: Use gdb_sys_no_syscall enum instead of -1
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 12 Oct 2015 16:24:37 +0000 (12:24 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 12 Oct 2015 16:24:37 +0000 (12:24 -0400)
Fixes:

/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c: In function "gdb_syscall aarch64_canonicalize_syscall(aarch64_syscall)":
/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:874:13: error: invalid conversion from "int" to "gdb_syscall" [-fpermissive]
     return -1;
             ^

gdb/ChangeLog:

* aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
gdb_sys_no_syscall instead of -1.

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

index 22d011c0221fa45bbe5a8f721091328970dcf43f..aa2a3424ff93152c1899fc2b526c73e1611e0d97 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
+       gdb_sys_no_syscall instead of -1.
+
 2015-10-12  Yao Qi  <yao.qi@linaro.org>
 
        * NEWS: Mention the change.
index 272aafea3342bc9fcf2e92b00a5ccb90f1435ca3..2635adca8557ceb02e053bc11c9f7ec1c8a131c0 100644 (file)
@@ -872,7 +872,7 @@ aarch64_canonicalize_syscall (enum aarch64_syscall syscall_number)
       SYSCALL_MAP (move_pages);
 
   default:
-    return -1;
+    return gdb_sys_no_syscall;
   }
 }