gdbserver/tracepoint: Add casts out of tpoint->handle
authorPedro Alves <palves@redhat.com>
Thu, 29 Oct 2015 12:55:02 +0000 (12:55 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 29 Oct 2015 12:56:27 +0000 (12:56 +0000)
... as needed for C++.

tpoint->handle is a generic 'void *' handle.

gdb/gdbserver/ChangeLog:
2015-10-29  Pedro Alves  <palves@redhat.com>

* tracepoint.c (clear_installed_tracepoints): Add casts.

gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c

index 1c1f2d8ed6c7519e75284bb09e7e13e62eae3173..66db27f5303df8e5dfc294688a164f2fd97610aa 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-29  Pedro Alves  <palves@redhat.com>
+
+       * tracepoint.c (clear_installed_tracepoints): Add casts.
+
 2015-10-29  Pedro Alves  <palves@redhat.com>
 
        * server.c (handle_v_cont, process_serial_event): Add enum
index b6c70c9cc7a0220ec86b1c92fee268c128ff7088..9006a2ed1f2a8e2e332217191d67c38fb47c2596 100644 (file)
@@ -2448,10 +2448,20 @@ clear_installed_tracepoints (void)
       switch (tpoint->type)
        {
        case trap_tracepoint:
-         delete_breakpoint (tpoint->handle);
+         {
+           struct breakpoint *bp
+             = (struct breakpoint *) tpoint->handle;
+
+           delete_breakpoint (bp);
+         }
          break;
        case fast_tracepoint:
-         delete_fast_tracepoint_jump (tpoint->handle);
+         {
+           struct fast_tracepoint_jump *jump
+             = (struct fast_tracepoint_jump *) tpoint->handle;
+
+           delete_fast_tracepoint_jump (jump);
+         }
          break;
        case static_tracepoint:
          if (prev_stpoint != NULL