From: Pedro Alves Date: Thu, 29 Oct 2015 12:55:02 +0000 (+0000) Subject: gdbserver/tracepoint: Add casts out of tpoint->handle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c17414a2a4de406c1aa55882b25a1644ba26f555;p=binutils-gdb.git gdbserver/tracepoint: Add casts out of tpoint->handle ... as needed for C++. tpoint->handle is a generic 'void *' handle. gdb/gdbserver/ChangeLog: 2015-10-29 Pedro Alves * tracepoint.c (clear_installed_tracepoints): Add casts. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 1c1f2d8ed6c..66db27f5303 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-10-29 Pedro Alves + + * tracepoint.c (clear_installed_tracepoints): Add casts. + 2015-10-29 Pedro Alves * server.c (handle_v_cont, process_serial_event): Add enum diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index b6c70c9cc7a..9006a2ed1f2 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