diff options
author | Pedro Alves <palves@redhat.com> | 2015-10-29 12:55:02 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-10-29 12:56:27 +0000 |
commit | c17414a2a4de406c1aa55882b25a1644ba26f555 (patch) | |
tree | 5e53cf06ad682aad614c054f75a3197faf9b3475 /gdb | |
parent | e053fbc44f32c12a67f4bcd9f01142b4e043496c (diff) | |
download | gdb-c17414a2a4de406c1aa55882b25a1644ba26f555.zip gdb-c17414a2a4de406c1aa55882b25a1644ba26f555.tar.gz gdb-c17414a2a4de406c1aa55882b25a1644ba26f555.tar.bz2 |
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 <palves@redhat.com>
* tracepoint.c (clear_installed_tracepoints): Add casts.
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 |