diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 18 | ||||
-rw-r--r-- | gdb/gdbserver/dll.c | 6 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 10 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 9 | ||||
-rw-r--r-- | gdb/gdbserver/thread-db.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/tracepoint.c | 6 |
6 files changed, 35 insertions, 16 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index d6ce174113e..95e370cfd66 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,23 @@ 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> + * dll.c (match_dll): Add cast(s). + (unloaded_dll): Likewise. + * linux-low.c (second_thread_of_pid_p): Likewise. + (delete_lwp_callback): Likewise. + (count_events_callback): Likewise. + (select_event_lwp_callback): Likewise. + (linux_set_resume_request): Likewise. + * server.c (accumulate_file_name_length): Likewise. + (emit_dll_description): Likewise. + (handle_qxfer_threads_worker): Likewise. + (visit_actioned_threads): Likewise. + * thread-db.c (any_thread_of): Likewise. + * tracepoint.c (same_process_p): Likewise. + (match_blocktype): Likewise. + (build_traceframe_info_xml): Likewise. + +2015-09-25 Simon Marchi <simon.marchi@ericsson.com> + * ax.c (gdb_parse_agent_expr): Add cast to allocation result assignment. (gdb_unparse_agent_expr): Likewise. diff --git a/gdb/gdbserver/dll.c b/gdb/gdbserver/dll.c index c4f838ca92c..608cf2393ce 100644 --- a/gdb/gdbserver/dll.c +++ b/gdb/gdbserver/dll.c @@ -41,8 +41,8 @@ free_one_dll (struct inferior_list_entry *inf) static int match_dll (struct inferior_list_entry *inf, void *arg) { - struct dll_info *iter = (void *) inf; - struct dll_info *key = arg; + struct dll_info *iter = (struct dll_info *) inf; + struct dll_info *key = (struct dll_info *) arg; if (key->base_addr != UNSPECIFIED_CORE_ADDR && iter->base_addr == key->base_addr) @@ -83,7 +83,7 @@ unloaded_dll (const char *name, CORE_ADDR base_addr) key_dll.name = (char *) name; key_dll.base_addr = base_addr; - dll = (void *) find_inferior (&all_dlls, match_dll, &key_dll); + dll = (struct dll_info *) find_inferior (&all_dlls, match_dll, &key_dll); if (dll == NULL) /* For some inferiors we might get unloaded_dll events without having diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 12a2332ae6a..3a1a6ae57ea 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -1089,7 +1089,7 @@ struct counter static int second_thread_of_pid_p (struct inferior_list_entry *entry, void *args) { - struct counter *counter = args; + struct counter *counter = (struct counter *) args; if (ptid_get_pid (entry->id) == counter->pid) { @@ -1429,7 +1429,7 @@ delete_lwp_callback (struct inferior_list_entry *entry, void *proc) { struct thread_info *thread = (struct thread_info *) entry; struct lwp_info *lwp = get_thread_lwp (thread); - struct process_info *process = proc; + struct process_info *process = (struct process_info *) proc; if (pid_of (thread) == pid_of (process)) delete_lwp (lwp); @@ -2633,7 +2633,7 @@ count_events_callback (struct inferior_list_entry *entry, void *data) { struct thread_info *thread = (struct thread_info *) entry; struct lwp_info *lp = get_thread_lwp (thread); - int *count = data; + int *count = (int *) data; gdb_assert (count != NULL); @@ -2668,7 +2668,7 @@ select_event_lwp_callback (struct inferior_list_entry *entry, void *data) { struct thread_info *thread = (struct thread_info *) entry; struct lwp_info *lp = get_thread_lwp (thread); - int *selector = data; + int *selector = (int *) data; gdb_assert (selector != NULL); @@ -4152,7 +4152,7 @@ linux_set_resume_request (struct inferior_list_entry *entry, void *arg) int ndx; struct thread_resume_array *r; - r = arg; + r = (struct thread_resume_array *) arg; for (ndx = 0; ndx < r->n; ndx++) { diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 53763e50ced..e25b7c7a0d5 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -1280,7 +1280,7 @@ static void accumulate_file_name_length (struct inferior_list_entry *inf, void *arg) { struct dll_info *dll = (struct dll_info *) inf; - unsigned int *total_len = arg; + unsigned int *total_len = (unsigned int *) arg; /* Over-estimate the necessary memory. Assume that every character in the library name must be escaped. */ @@ -1294,7 +1294,7 @@ static void emit_dll_description (struct inferior_list_entry *inf, void *arg) { struct dll_info *dll = (struct dll_info *) inf; - char **p_ptr = arg; + char **p_ptr = (char **) arg; char *p = *p_ptr; char *name; @@ -1450,7 +1450,7 @@ static void handle_qxfer_threads_worker (struct inferior_list_entry *inf, void *arg) { struct thread_info *thread = (struct thread_info *) inf; - struct buffer *buffer = arg; + struct buffer *buffer = (struct buffer *) arg; ptid_t ptid = thread_to_gdb_id (thread); char ptid_s[100]; int core = target_core_of_thread (ptid); @@ -2459,7 +2459,8 @@ struct visit_actioned_threads_data static int visit_actioned_threads (struct inferior_list_entry *entry, void *datap) { - struct visit_actioned_threads_data *data = datap; + struct visit_actioned_threads_data *data + = (struct visit_actioned_threads_data *) datap; const struct thread_resume *actions = data->actions; size_t num_actions = data->num_actions; visit_actioned_threads_callback_ftype *callback = data->callback; diff --git a/gdb/gdbserver/thread-db.c b/gdb/gdbserver/thread-db.c index f5fdf10ef3f..ffe722dcdd4 100644 --- a/gdb/gdbserver/thread-db.c +++ b/gdb/gdbserver/thread-db.c @@ -874,7 +874,7 @@ thread_db_init (int use_events) static int any_thread_of (struct inferior_list_entry *entry, void *args) { - int *pid_p = args; + int *pid_p = (int *) args; if (ptid_get_pid (entry->id) == *pid_p) return 1; diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 1b3a5d033b8..b6c70c9cc7a 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -3947,7 +3947,7 @@ cmd_qtstmat (char *packet) static int same_process_p (struct inferior_list_entry *entry, void *data) { - int *pid = data; + int *pid = (int *) data; return ptid_get_pid (entry->id) == *pid; } @@ -5066,7 +5066,7 @@ agent_tsv_read (struct eval_agent_expr_context *ctx, int n) static int match_blocktype (char blocktype, unsigned char *dataptr, void *data) { - char *wantedp = data; + char *wantedp = (char *) data; if (*wantedp == blocktype) return 1; @@ -5412,7 +5412,7 @@ traceframe_read_sdata (int tfnum, ULONGEST offset, static int build_traceframe_info_xml (char blocktype, unsigned char *dataptr, void *data) { - struct buffer *buffer = data; + struct buffer *buffer = (struct buffer *) data; switch (blocktype) { |