• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiónd2412fa5d0051f7eb7b13aaf98173b5d9a55d132 (tree)
Tiempo2015-10-29 21:56:27
AutorPedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

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.

Cambiar Resumen

Diferencia incremental

--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
11 2015-10-29 Pedro Alves <palves@redhat.com>
22
3+ * mem-break.c (Z_packet_to_bkpt_type): Add cast.
4+
5+2015-10-29 Pedro Alves <palves@redhat.com>
6+
37 * tracepoint.c (clear_installed_tracepoints): Add casts.
48
59 2015-10-29 Pedro Alves <palves@redhat.com>
--- a/gdb/gdbserver/mem-break.c
+++ b/gdb/gdbserver/mem-break.c
@@ -241,7 +241,7 @@ Z_packet_to_bkpt_type (char z_type)
241241 {
242242 gdb_assert ('0' <= z_type && z_type <= '4');
243243
244- return gdb_breakpoint_Z0 + (z_type - '0');
244+ return (enum bkpt_type) (gdb_breakpoint_Z0 + (z_type - '0'));
245245 }
246246
247247 /* See mem-break.h. */