GNU Binutils with patches for OS216
Revisión | d2412fa5d0051f7eb7b13aaf98173b5d9a55d132 (tree) |
---|---|
Tiempo | 2015-10-29 21:56:27 |
Autor | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
gdbserver/mem-break.c: Add cast
... for C++.
Fixes:
gdb/gdbserver/ChangeLog:
2015-10-29 Pedro Alves <palves@redhat.com>
* mem-break.c (Z_packet_to_bkpt_type): Add cast.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2015-10-29 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * mem-break.c (Z_packet_to_bkpt_type): Add cast. | |
4 | + | |
5 | +2015-10-29 Pedro Alves <palves@redhat.com> | |
6 | + | |
3 | 7 | * tracepoint.c (clear_installed_tracepoints): Add casts. |
4 | 8 | |
5 | 9 | 2015-10-29 Pedro Alves <palves@redhat.com> |
@@ -241,7 +241,7 @@ Z_packet_to_bkpt_type (char z_type) | ||
241 | 241 | { |
242 | 242 | gdb_assert ('0' <= z_type && z_type <= '4'); |
243 | 243 | |
244 | - return gdb_breakpoint_Z0 + (z_type - '0'); | |
244 | + return (enum bkpt_type) (gdb_breakpoint_Z0 + (z_type - '0')); | |
245 | 245 | } |
246 | 246 | |
247 | 247 | /* See mem-break.h. */ |