diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 1c1f2d8..66db27f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 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 gdb_signal casts to signal parsing code. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index b6c70c9..9006a2e 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -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 |