From d2412fa5d0051f7eb7b13aaf98173b5d9a55d132 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 29 Oct 2015 12:55:02 +0000 Subject: 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. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/mem-break.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver') 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. */ -- cgit v1.1