aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-10-29 12:55:02 +0000
committerPedro Alves <palves@redhat.com>2015-10-29 12:56:27 +0000
commitd2412fa5d0051f7eb7b13aaf98173b5d9a55d132 (patch)
treec1756949ebf48fae365b7593371758346e55e816
parentc17414a2a4de406c1aa55882b25a1644ba26f555 (diff)
downloadgdb-d2412fa5d0051f7eb7b13aaf98173b5d9a55d132.zip
gdb-d2412fa5d0051f7eb7b13aaf98173b5d9a55d132.tar.gz
gdb-d2412fa5d0051f7eb7b13aaf98173b5d9a55d132.tar.bz2
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.
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/mem-break.c2
2 files changed, 5 insertions, 1 deletions
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 <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.
2015-10-29 Pedro Alves <palves@redhat.com>
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. */