From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Cc: Simon Marchi <simon.marchi@ericsson.com>
Subject: [PATCH c++ 1/3] arm-linux-tdep: Add explicit cast for int to gdb_syscall conversion
Date: Fri, 09 Oct 2015 13:58:00 -0000 [thread overview]
Message-ID: <1444399099-31226-2-git-send-email-simon.marchi@ericsson.com> (raw)
In-Reply-To: <1444399099-31226-1-git-send-email-simon.marchi@ericsson.com>
This patch is taken from Pedro's branch.
gdb/ChangeLog:
* arm-linux-tdep.c (arm_canonicalize_syscall): Add
enum gdb_syscall casts.
---
gdb/arm-linux-tdep.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index b7c5b99..dc0a8a9 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -1265,11 +1265,11 @@ arm_canonicalize_syscall (int syscall)
enum { sys_process_vm_writev = 377 };
if (syscall <= gdb_sys_sched_getaffinity)
- return syscall;
+ return (enum gdb_syscall) syscall;
else if (syscall >= 243 && syscall <= 247)
- return syscall + 2;
+ return (enum gdb_syscall) (syscall + 2);
else if (syscall >= 248 && syscall <= 253)
- return syscall + 4;
+ return (enum gdb_syscall) (syscall + 4);
return gdb_sys_no_syscall;
}
--
2.5.1
next prev parent reply other threads:[~2015-10-09 13:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 13:58 [PATCH c++ 0/3] Some C++ patches Simon Marchi
2015-10-09 13:58 ` [PATCH c++ 3/3] i386: Fix type of gdbarch_tdep::register_reggroup_p Simon Marchi
2015-10-09 13:58 ` Simon Marchi [this message]
2015-10-09 13:58 ` [PATCH c++ 2/3] cris: Use enum bfd_endian to represent endianness Simon Marchi
2015-10-09 14:09 ` [PATCH c++ 0/3] Some C++ patches Pedro Alves
2015-10-09 14:12 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444399099-31226-2-git-send-email-simon.marchi@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox