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.
This commit is contained in:
parent
e053fbc44f
commit
c17414a2a4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue