From: Pedro Alves Date: Thu, 29 Oct 2015 12:55:02 +0000 (+0000) Subject: gdbserver/mem-break.c: Add cast X-Git-Tag: users/ARM/embedded-binutils-2_26-branch-2016q1~244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2412fa5d0051f7eb7b13aaf98173b5d9a55d132;p=external%2Fbinutils.git gdbserver/mem-break.c: Add cast ... for C++. Fixes: gdb/gdbserver/mem-break.c:204:28: error: invalid conversion from 'int' to 'bkpt_type' [-fpermissive] gdb/gdbserver/ChangeLog: 2015-10-29 Pedro Alves * mem-break.c (Z_packet_to_bkpt_type): Add cast. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 66db27f..46e347d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2015-10-29 Pedro Alves + * mem-break.c (Z_packet_to_bkpt_type): Add cast. + +2015-10-29 Pedro Alves + * tracepoint.c (clear_installed_tracepoints): Add casts. 2015-10-29 Pedro Alves diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index 656402a..c808a84 100644 --- a/gdb/gdbserver/mem-break.c +++ b/gdb/gdbserver/mem-break.c @@ -241,7 +241,7 @@ Z_packet_to_bkpt_type (char z_type) { gdb_assert ('0' <= z_type && z_type <= '4'); - return gdb_breakpoint_Z0 + (z_type - '0'); + return (enum bkpt_type) (gdb_breakpoint_Z0 + (z_type - '0')); } /* See mem-break.h. */