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 22d011c..aa2a342 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 272aafe..2635adc 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;
   }
 }