aarch64: Add cast for integer to enum cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 12 Oct 2015 16:24:38 +0000 (12:24 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 12 Oct 2015 16:24:38 +0000 (12:24 -0400)
commit1f713e48f024e964f5a4f5468bc9506dac262763
tree7cf8d419c089c76e96ca2214ca7686390c059712
parentcb65d272fd09b79b7911cc00b5262d4fe14a40d7
aarch64: Add cast for integer to enum cast

/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c: In function â€˜int aarch64_linux_syscall_record(regcache*, long unsigned int)’:
/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:904:57: error: invalid conversion from â€˜long unsigned int’ to â€˜aarch64_syscall’ [-fpermissive]
   syscall_gdb = aarch64_canonicalize_syscall (svc_number);
                                                         ^
/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:645:1: note:   initializing argument 1 of â€˜gdb_syscall aarch64_canonicalize_syscall(aarch64_syscall)’
 aarch64_canonicalize_syscall (enum aarch64_syscall syscall_number)
 ^

gdb/ChangeLog:

* aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
gdb/ChangeLog
gdb/aarch64-linux-tdep.c