diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-12 12:24:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-12 12:24:37 -0400 |
commit | cb65d272fd09b79b7911cc00b5262d4fe14a40d7 (patch) | |
tree | 9e6b05036b93c0569982655d5d98b25e49247291 /gdb | |
parent | 4373f8af3ddbc301227e883d5cbed8302c107e59 (diff) | |
download | gdb-cb65d272fd09b79b7911cc00b5262d4fe14a40d7.zip gdb-cb65d272fd09b79b7911cc00b5262d4fe14a40d7.tar.gz gdb-cb65d272fd09b79b7911cc00b5262d4fe14a40d7.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/aarch64-linux-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 22d011c..aa2a342 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 272aafe..2635adc 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; } } |