This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH c++ 5/6] aarch64: Use gdb_sys_no_syscall enum instead of -1
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Mon, 12 Oct 2015 00:32:08 -0400
- Subject: [PATCH c++ 5/6] aarch64: Use gdb_sys_no_syscall enum instead of -1
- Authentication-results: sourceware.org; auth=none
- References: <1444624329-4828-1-git-send-email-simon dot marchi at polymtl dot ca>
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/aarch64-linux-tdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index aaf6608..9c3500c 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -871,7 +871,7 @@ aarch64_canonicalize_syscall (enum aarch64_syscall syscall_number)
SYSCALL_MAP (move_pages);
default:
- return -1;
+ return gdb_sys_no_syscall;
}
}
--
2.6.1