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  <palves@redhat.com>

	* mem-break.c (Z_packet_to_bkpt_type): Add cast.
This commit is contained in:
Pedro Alves 2015-10-29 12:55:02 +00:00
parent c17414a2a4
commit d2412fa5d0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-10-29 Pedro Alves <palves@redhat.com>
* mem-break.c (Z_packet_to_bkpt_type): Add cast.
2015-10-29 Pedro Alves <palves@redhat.com>
* tracepoint.c (clear_installed_tracepoints): Add casts.

View File

@ -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. */