From: Simon Marchi Date: Mon, 12 Oct 2015 16:24:37 +0000 (-0400) Subject: aarch64: Use gdb_sys_no_syscall enum instead of -1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb65d272fd09b79b7911cc00b5262d4fe14a40d7;p=binutils-gdb.git aarch64: Use gdb_sys_no_syscall enum instead of -1 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 22d011c0221..aa2a3424ff9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-10-12 Simon Marchi + + * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return + gdb_sys_no_syscall instead of -1. + 2015-10-12 Yao Qi * NEWS: Mention the change. diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 272aafea334..2635adca855 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -872,7 +872,7 @@ aarch64_canonicalize_syscall (enum aarch64_syscall syscall_number) SYSCALL_MAP (move_pages); default: - return -1; + return gdb_sys_no_syscall; } }