Add target_ops argument to to_disable_btrace
[external/binutils.git] / gdb / ChangeLog
1 2014-02-19  Tom Tromey  <tromey@redhat.com>
2
3         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4         * target.c (target_disable_btrace): Add argument.
5         * remote.c (remote_disable_btrace): Add 'self' argument.
6         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7         argument.
8         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9         argument.
10
11 2014-02-19  Tom Tromey  <tromey@redhat.com>
12
13         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
14         * target.c (target_enable_btrace): Add argument.
15         * remote.c (remote_enable_btrace): Add 'self' argument.
16         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
17         argument.
18         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
19         argument.
20
21 2014-02-19  Tom Tromey  <tromey@redhat.com>
22
23         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
24         (target_can_use_agent): Add argument.
25         * target.c (update_current_target): Update.
26         * remote.c (remote_can_use_agent): Add 'self' argument.
27         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
28
29 2014-02-19  Tom Tromey  <tromey@redhat.com>
30
31         * target.h (struct target_ops) <to_use_agent>: Add argument.
32         (target_use_agent): Add argument.
33         * target.c (update_current_target): Update.
34         * remote.c (remote_use_agent): Add 'self' argument.
35         * inf-child.c (inf_child_use_agent): Add 'self' argument.
36
37 2014-02-19  Tom Tromey  <tromey@redhat.com>
38
39         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
40         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
41         (target_traceframe_info): Add argument.
42         * target.c (update_current_target): Update.
43         * remote.c (remote_traceframe_info): Add 'self' argument.
44         * ctf.c (ctf_traceframe_info): Add 'self' argument.
45
46 2014-02-19  Tom Tromey  <tromey@redhat.com>
47
48         * target.h (target_static_tracepoint_markers_by_strid): Add
49         argument.
50         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
51         'self' argument.
52         * target.c (update_current_target): Update.
53         * remote.c (struct target_ops)
54         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
55         * linux-nat.c (struct target_ops)
56         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
57
58 2014-02-19  Tom Tromey  <tromey@redhat.com>
59
60         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
61         Add argument.
62         (target_static_tracepoint_marker_at): Add argument.
63         * target.c (update_current_target): Update.
64         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
65         argument.
66
67 2014-02-19  Tom Tromey  <tromey@redhat.com>
68
69         * target.h (struct target_ops) <to_set_permissions>: Add argument.
70         (target_set_permissions): Add argument.
71         * target.c (update_current_target): Update.
72         * remote.c (remote_set_permissions): Add 'self' argument.
73         (remote_start_remote): Update.
74
75 2014-02-19  Tom Tromey  <tromey@redhat.com>
76
77         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
78         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
79         (target_get_tib_address): Add argument.
80         * target.c (update_current_target): Update.
81         * remote.c (remote_get_tib_address): Add 'self' argument.
82
83 2014-02-19  Tom Tromey  <tromey@redhat.com>
84
85         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
86         (target_set_trace_notes): Add argument.
87         * target.c (update_current_target): Update.
88         * remote.c (remote_set_trace_notes): Add 'self' argument.
89
90 2014-02-19  Tom Tromey  <tromey@redhat.com>
91
92         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
93         argument.
94         (target_set_trace_buffer_size): Add argument.
95         * target.c (update_current_target): Update.
96         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
97
98 2014-02-19  Tom Tromey  <tromey@redhat.com>
99
100         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
101         argument.
102         (target_set_circular_trace_buffer): Add argument.
103         * target.c (update_current_target): Update.
104         * remote.c (remote_set_circular_trace_buffer): Add 'self'
105         argument.
106
107 2014-02-19  Tom Tromey  <tromey@redhat.com>
108
109         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
110         argument.
111         (target_set_disconnected_tracing): Add argument.
112         * target.c (update_current_target): Update.
113         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
114
115 2014-02-19  Tom Tromey  <tromey@redhat.com>
116
117         * target.h (struct target_ops)
118         <to_get_min_fast_tracepoint_insn_len>: Add argument.
119         (target_get_min_fast_tracepoint_insn_len): Add argument.
120         * target.c (update_current_target): Update.
121         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
122         argument.
123
124 2014-02-19  Tom Tromey  <tromey@redhat.com>
125
126         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
127         argument.
128         (target_get_raw_trace_data): Add argument.
129         * target.c (update_current_target): Update.
130         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
131
132 2014-02-19  Tom Tromey  <tromey@redhat.com>
133
134         * target.h (struct target_ops) <to_upload_trace_state_variables>:
135         Add argument.
136         (target_upload_trace_state_variables): Add argument.
137         * target.c (update_current_target): Update.
138         * remote.c (remote_upload_trace_state_variables): Add 'self'
139         argument.
140         (remote_start_remote): Update.
141
142 2014-02-19  Tom Tromey  <tromey@redhat.com>
143
144         * target.h (struct target_ops) <to_upload_tracepoints>: Add
145         argument.
146         (target_upload_tracepoints): Add argument.
147         * target.c (update_current_target): Update.
148         * remote.c (remote_upload_tracepoints): Add 'self' argument.
149         (remote_start_remote): Update.
150
151 2014-02-19  Tom Tromey  <tromey@redhat.com>
152
153         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
154         (target_save_trace_data): Add argument.
155         * target.c (update_current_target): Update.
156         * remote.c (remote_save_trace_data): Add 'self' argument.
157
158 2014-02-19  Tom Tromey  <tromey@redhat.com>
159
160         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
161         argument.
162         * target.h (struct target_ops)
163         <to_get_trace_state_variable_value>: Add argument.
164         (target_get_trace_state_variable_value): Add argument.
165         * target.c (update_current_target): Update.
166         * remote.c (remote_get_trace_state_variable_value): Add 'self'
167         argument.
168         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
169
170 2014-02-19  Tom Tromey  <tromey@redhat.com>
171
172         * tracepoint.c (tfile_trace_find): Add 'self' argument.
173         * target.h (struct target_ops) <to_trace_find>: Add argument.
174         (target_trace_find): Add argument.
175         * target.c (update_current_target): Update.
176         * remote.c (remote_trace_find): Add 'self' argument.
177         * ctf.c (ctf_trace_find): Add 'self' argument.
178
179 2014-02-19  Tom Tromey  <tromey@redhat.com>
180
181         * target.h (struct target_ops) <to_trace_stop>: Add argument.
182         (target_trace_stop): Add argument.
183         * target.c (update_current_target): Update.
184         * remote.c (remote_trace_stop): Add 'self' argument.
185
186 2014-02-19  Tom Tromey  <tromey@redhat.com>
187
188         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
189         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
190         argument.
191         (target_get_tracepoint_status): Add argument.
192         * target.c (update_current_target): Update.
193         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
194
195 2014-02-19  Tom Tromey  <tromey@redhat.com>
196
197         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
198         * target.h (struct target_ops) <to_get_trace_status>: Add
199         argument.
200         (target_get_trace_status): Add argument.
201         * target.c (update_current_target): Update.
202         * remote.c (remote_get_trace_status): Add 'self' argument.
203         (remote_start_remote, remote_can_download_tracepoint): Update.
204         * ctf.c (ctf_get_trace_status): Add 'self' argument.
205
206 2014-02-19  Tom Tromey  <tromey@redhat.com>
207
208         * target.h (struct target_ops) <to_trace_start>: Add argument.
209         (target_trace_start): Add argument.
210         * target.c (update_current_target): Update.
211         * remote.c (remote_trace_start): Add 'self' argument.
212
213 2014-02-19  Tom Tromey  <tromey@redhat.com>
214
215         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
216         Add argument.
217         (target_trace_set_readonly_regions): Add argument.
218         * target.c (update_current_target): Update.
219         * remote.c (remote_trace_set_readonly_regions): Add 'self'
220         argument.
221
222 2014-02-19  Tom Tromey  <tromey@redhat.com>
223
224         * target.h (struct target_ops) <to_disable_tracepoint>: Add
225         argument.
226         (target_disable_tracepoint): Add argument.
227         * target.c (update_current_target): Update.
228         * remote.c (remote_disable_tracepoint): Add 'self' argument.
229
230 2014-02-19  Tom Tromey  <tromey@redhat.com>
231
232         * target.h (struct target_ops) <to_enable_tracepoint>: Add
233         argument.
234         (target_enable_tracepoint): Add argument.
235         * target.c (update_current_target): Update.
236         * remote.c (remote_enable_tracepoint): Add 'self' argument.
237
238 2014-02-19  Tom Tromey  <tromey@redhat.com>
239
240         * target.h (struct target_ops) <to_download_trace_state_variable>:
241         Add argument.
242         (target_download_trace_state_variable): Add argument.
243         * target.c (update_current_target): Update.
244         * remote.c (remote_download_trace_state_variable): Add 'self'
245         argument.
246
247 2014-02-19  Tom Tromey  <tromey@redhat.com>
248
249         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
250         argument.
251         (target_can_download_tracepoint): Add argument.
252         * target.c (update_current_target): Update.
253         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
254
255 2014-02-19  Tom Tromey  <tromey@redhat.com>
256
257         * target.h (struct target_ops) <to_download_tracepoint>: Add
258         argument.
259         (target_download_tracepoint): Add argument.
260         * target.c (update_current_target): Update.
261         * remote.c (remote_download_tracepoint): Add 'self' argument.
262
263 2014-02-19  Tom Tromey  <tromey@redhat.com>
264
265         * target.h (struct target_ops) <to_trace_init>: Add argument.
266         (target_trace_init): Add argument.
267         * target.c (update_current_target): Update.
268         * remote.c (remote_trace_init): Add 'self' argument.
269
270 2014-02-19  Tom Tromey  <tromey@redhat.com>
271
272         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
273         * target.c (target_fileio_readlink): Add argument.
274         * remote.c (remote_hostio_readlink): Add 'self' argument.
275         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
276
277 2014-02-19  Tom Tromey  <tromey@redhat.com>
278
279         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
280         * target.c (target_fileio_unlink): Add argument.
281         * remote.c (remote_hostio_unlink): Add 'self' argument.
282         (remote_file_delete): Update.
283         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
284
285 2014-02-19  Tom Tromey  <tromey@redhat.com>
286
287         * target.h (struct target_ops) <to_fileio_close>: Add argument.
288         * target.c (target_fileio_close): Add argument.
289         * remote.c (remote_hostio_close): Add 'self' argument.
290         (remote_hostio_close_cleanup): Update.
291         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
292         Update.
293         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
294
295 2014-02-19  Tom Tromey  <tromey@redhat.com>
296
297         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
298         * target.c (target_fileio_pread): Add argument.
299         * remote.c (remote_hostio_pread): Add 'self' argument.
300         (remote_bfd_iovec_pread, remote_file_get): Update.
301         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
302
303 2014-02-19  Tom Tromey  <tromey@redhat.com>
304
305         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
306         * target.c (target_fileio_pwrite): Add argument.
307         * remote.c (remote_hostio_pwrite): Add 'self' argument.
308         (remote_file_put): Update.
309         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
310
311 2014-02-19  Tom Tromey  <tromey@redhat.com>
312
313         * target.h (struct target_ops) <to_fileio_open>: Add argument.
314         * target.c (target_fileio_open): Add argument.
315         * remote.c (remote_hostio_open): Add 'self' argument.
316         (remote_bfd_iovec_open): Add 'self' argument.
317         (remote_file_put): Add 'self' argument.
318         (remote_file_get): Add 'self' argument.
319         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
320
321 2014-02-19  Tom Tromey  <tromey@redhat.com>
322
323         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
324         Add argument.
325         (target_can_run_breakpoint_commands): Add argument.
326         * target.c (update_current_target): Update.
327         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
328         argument.
329         (remote_insert_breakpoint): Add 'self' argument.
330         (remote_insert_hw_breakpoint): Add 'self' argument.
331         (remote_can_run_breakpoint_commands): Add 'self' argument.
332
333 2014-02-19  Tom Tromey  <tromey@redhat.com>
334
335         * target.h (struct target_ops)
336         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
337         (target_supports_evaluation_of_breakpoint_conditions): Add
338         argument.
339         * target.c (update_current_target): Update.
340         * remote.c (remote_supports_cond_breakpoints): Add 'self'
341         argument.
342         (remote_insert_breakpoint): Add 'self' argument.
343         (remote_insert_hw_breakpoint): Add 'self' argument.
344         (remote_supports_cond_breakpoints): Add 'self' argument.
345
346 2014-02-19  Tom Tromey  <tromey@redhat.com>
347
348         * target.h (struct target_ops) <to_supports_string_tracing>: Add
349         argument.
350         (target_supports_string_tracing): Add argument.
351         * target.c (update_current_target): Update.
352         * remote.c (remote_supports_string_tracing): Add 'self' argument.
353
354 2014-02-19  Tom Tromey  <tromey@redhat.com>
355
356         * target.h (struct target_ops)
357         <to_supports_disable_randomization>: Add argument.
358         * target.c (find_default_supports_disable_randomization): Add
359         argument.
360         (target_supports_disable_randomization): Add argument.
361         (find_default_supports_disable_randomization): Add 'self'
362         argument.
363         * remote.c (extended_remote_supports_disable_randomization): Add
364         'self' argument.
365         (remote_supports_disable_randomization): Add 'self' argument.
366         (extended_remote_create_inferior): Update.
367         * linux-nat.c (linux_nat_supports_disable_randomization): Add
368         'self' argument.
369
370 2014-02-19  Tom Tromey  <tromey@redhat.com>
371
372         * target.h (struct target_ops)
373         <to_supports_enable_disable_tracepoint>: Add argument.
374         (target_supports_enable_disable_tracepoint): Add argument.
375         * target.c (update_current_target): Update.
376         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
377         argument.
378
379 2014-02-19  Tom Tromey  <tromey@redhat.com>
380
381         * target.h (struct target_ops) <to_supports_multi_process>: Add
382         argument.
383         (target_supports_multi_process): Add argument.
384         * target.c (update_current_target): Update.
385         * remote.c (remote_supports_multi_process): Add 'self' argument.
386         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
387         argument.
388         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
389         argument.
390
391 2014-02-19  Tom Tromey  <tromey@redhat.com>
392
393         * target.h (struct target_ops) <to_execution_direction>: Add
394         argument.
395         (target_execution_direction): Add argument.
396         * target.c (default_execution_direction): Add 'self' argument.
397         * record-full.c (record_full_execution_direction): Add 'self'
398         argument.
399
400 2014-02-19  Tom Tromey  <tromey@redhat.com>
401
402         * target.h (struct target_ops) <to_can_execute_reverse>: Add
403         argument.
404         (target_can_execute_reverse): Add argument.
405         * remote.c (remote_can_execute_reverse): Add 'self' argument.
406         * record-full.c (record_full_can_execute_reverse): Add 'self'
407         argument.
408         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
409         argument.
410
411 2014-02-19  Tom Tromey  <tromey@redhat.com>
412
413         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
414         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
415         argument.
416         (target_get_ada_task_ptid): Add argument.
417         * target.c (update_current_target): Update.
418         (default_get_ada_task_ptid): Add 'self' argument.
419         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
420         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
421         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
422         argument.
423         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
424         argument.
425         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
426         argument.
427         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
428         argument.
429         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
430         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
431         argument.
432
433 2014-02-19  Tom Tromey  <tromey@redhat.com>
434
435         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
436         (target_goto_bookmark): Add argument.
437         * target.c (dummy_goto_bookmark): Add 'self' argument.
438         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
439
440 2014-02-19  Tom Tromey  <tromey@redhat.com>
441
442         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
443         (target_get_bookmark): Add argument.
444         * target.c (dummy_get_bookmark): Add 'self' argument.
445         * record-full.c (record_full_get_bookmark): Add 'self' argument.
446
447 2014-02-19  Tom Tromey  <tromey@redhat.com>
448
449         * target.h (struct target_ops) <to_make_corefile_notes>: Add
450         argument.
451         (target_make_corefile_notes): Add argument.
452         * target.c (dummy_make_corefile_notes): Add 'self' argument.
453         * procfs.c (procfs_make_note_section): Add 'self' argument.
454         (procfs_make_note_section): Add 'self' argument.
455         (procfs_make_note_section): Add 'self' argument.
456         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
457         argument.
458         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
459         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
460         * exec.c (exec_make_note_section): Add 'self' argument.
461         (exec_make_note_section): Add 'self' argument.
462
463 2014-02-19  Tom Tromey  <tromey@redhat.com>
464
465         * target.h (struct target_ops) <to_find_memory_regions>: Add
466         argument.
467         (target_find_memory_regions): Add argument.
468         * target.c (dummy_find_memory_regions): Add 'self' argument.
469         * procfs.c (proc_find_memory_regions): Add 'self' argument.
470         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
471         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
472         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
473         * exec. (exec_do_find_memory_regions): New global.
474         (exec_set_find_memory_regions): Rewrite.
475         (exec_find_memory_regions): New function.
476         (init_exec_ops): Use exec_find_memory_regions.
477
478 2014-02-19  Tom Tromey  <tromey@redhat.com>
479
480         * target.h (struct target_ops) <to_supports_non_stop>: Add
481         argument.
482         * target.c (find_default_supports_non_stop): Add argument.
483         (target_supports_non_stop): Add argument.
484         (find_default_supports_non_stop): Add 'self' argument.
485         * remote.c (remote_supports_non_stop): Add 'self' argument.
486         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
487
488 2014-02-19  Tom Tromey  <tromey@redhat.com>
489
490         * target.h (struct target_ops) <to_log_command>: Add argument.
491         (target_log_command): Add argument.
492         * serial.h (serial_log_command): Add 'self' argument.
493         * serial.c (serial_log_command): Add 'self' argument.
494
495 2014-02-19  Tom Tromey  <tromey@redhat.com>
496
497         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
498         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
499         argument.
500         (target_pid_to_exec_file): Add argument.
501         * target.c (debug_to_pid_to_exec_file): Add argument.
502         (update_current_target): Update.
503         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
504         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
505         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
506         (linux_handle_extended_wait): Update.
507         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
508         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
509         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
510         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
511
512 2014-02-19  Tom Tromey  <tromey@redhat.com>
513
514         * target.h (struct target_ops) <to_rcmd>: Add argument.
515         (target_rcmd): Add argument.
516         * target.c (debug_to_rcmd): Add argument.
517         (update_current_target, do_monitor_command): Update.
518         * remote.c (remote_rcmd): Add 'self' argument.
519         * monitor.c (monitor_rcmd): Add 'self' argument.
520
521 2014-02-19  Tom Tromey  <tromey@redhat.com>
522
523         * windows-nat.c (windows_stop): Add 'self' argument.
524         * target.h (struct target_ops) <to_stop>: Add argument.
525         * target.c (target_stop): Add argument.
526         (debug_to_stop): Add argument.
527         (update_current_target): Update.
528         * remote.c (remote_stop): Add 'self' argument.
529         * remote-sim.c (gdbsim_stop): Add 'self' argument.
530         (gdbsim_cntrl_c): Update.
531         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
532         * procfs.c (procfs_stop): Add 'self' argument.
533         * nto-procfs.c (procfs_stop): Add 'self' argument.
534         * monitor.c (monitor_stop): Add 'self' argument.
535         (monitor_open): Update.
536         * linux-nat.c (linux_nat_stop): Add argument.
537         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
538         * gnu-nat.c (gnu_stop): Add 'self' argument.
539         * darwin-nat.c (darwin_stop): Add 'self' argument.
540
541 2014-02-19  Tom Tromey  <tromey@redhat.com>
542
543         * target.h (struct target_ops) <to_thread_name>: Add argument.
544         * target.c (target_thread_name): Add argument.
545         (update_current_target): Update.
546         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
547
548 2014-02-19  Tom Tromey  <tromey@redhat.com>
549
550         * target.h (struct target_ops) <to_extra_thread_info>: Add
551         argument.
552         (target_extra_thread_info): Add argument.
553         * target.c (update_current_target): Update.
554         * remote.c (remote_threads_extra_info): Add 'self' argument.
555         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
556         argument.
557         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
558         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
559         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
560         argument.
561         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
562         argument.
563         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
564         argument.
565         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
566         argument.
567
568 2014-02-19  Tom Tromey  <tromey@redhat.com>
569
570         * target.h (struct target_ops) <to_program_signals>: Add argument.
571         * target.c (target_program_signals): Add argument.
572         * remote.c (remote_program_signals): Add 'self' argument.
573
574 2014-02-19  Tom Tromey  <tromey@redhat.com>
575
576         * target.h (struct target_ops) <to_pass_signals>: Add argument.
577         * target.c (target_pass_signals): Add argument.
578         * remote.c (remote_pass_signals): Add 'self' argument.
579         (remote_start_remote): Update.
580         * procfs.c (procfs_pass_signals): Add 'self' argument.
581         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
582         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
583         (linux_nat_create_inferior, linux_nat_attach): Update.
584
585 2014-02-19  Tom Tromey  <tromey@redhat.com>
586
587         * windows-nat.c (windows_can_run): Add 'self' argument.
588         * target.h (struct target_ops) <to_can_run>: Add argument.
589         (target_can_run): Add argument.
590         * target.c (debug_to_can_run): Add argument.
591         (update_current_target): Update.
592         * nto-procfs.c (procfs_can_run): Add 'self' argument.
593         * inf-child.c (inf_child_can_run): Add 'self' argument.
594         * go32-nat.c (go32_can_run): Add 'self' argument.
595
596 2014-02-19  Tom Tromey  <tromey@redhat.com>
597
598         * target.h (struct target_ops) <to_has_exited>: Add argument.
599         (target_has_exited): Add argument.
600         * target.c (debug_to_has_exited): Add argument.
601         (update_current_target): Update.
602
603 2014-02-19  Tom Tromey  <tromey@redhat.com>
604
605         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
606         argument.
607         (target_set_syscall_catchpoint): Add argument.
608         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
609         argument.
610         * target.c (update_current_target): Update.
611
612 2014-02-19  Tom Tromey  <tromey@redhat.com>
613
614         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
615         argument.
616         (target_remove_exec_catchpoint): Add argument.
617         * target.c (debug_to_remove_exec_catchpoint): Add argument.
618         (update_current_target): Update.
619         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
620         argument.
621
622 2014-02-19  Tom Tromey  <tromey@redhat.com>
623
624         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
625         argument.
626         (target_insert_exec_catchpoint): Add argument.
627         * target.c (debug_to_insert_exec_catchpoint): Add argument.
628         (update_current_target): Update.
629         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
630         argument.
631
632 2014-02-19  Tom Tromey  <tromey@redhat.com>
633
634         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
635         argument.
636         (target_remove_vfork_catchpoint): Add argument.
637         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
638         (update_current_target): Update.
639         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
640         argument.
641
642 2014-02-19  Tom Tromey  <tromey@redhat.com>
643
644         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
645         argument.
646         (target_insert_vfork_catchpoint): Add argument.
647         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
648         (update_current_target): Update.
649         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
650         argument.
651
652 2014-02-19  Tom Tromey  <tromey@redhat.com>
653
654         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
655         argument.
656         (target_remove_fork_catchpoint): Add argument.
657         * target.c (debug_to_remove_fork_catchpoint): Add argument.
658         (update_current_target): Update.
659         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
660         argument.
661
662 2014-02-19  Tom Tromey  <tromey@redhat.com>
663
664         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
665         argument.
666         (target_insert_fork_catchpoint): Add argument.
667         * target.c (debug_to_insert_fork_catchpoint): Add argument.
668         (update_current_target): Update.
669         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
670         argument.
671
672 2014-02-19  Tom Tromey  <tromey@redhat.com>
673
674         * target.h (struct target_ops) <to_post_startup_inferior>: Add
675         argument.
676         (target_post_startup_inferior): Add argument.
677         * target.c (debug_to_post_startup_inferior): Add argument.
678         (update_current_target): Update.
679         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
680         argument.
681         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
682         argument.
683         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
684         argument.
685         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
686         argument.
687         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
688         'self' argument.
689         (super_post_startup_inferior): Likewise.
690         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
691         'self' argument.
692         (super_post_startup_inferior): Likewise.
693         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
694         Add 'self' argument.
695         (super_post_startup_inferior): Likewise.
696
697 2014-02-19  Tom Tromey  <tromey@redhat.com>
698
699         * target.h (struct target_ops) <to_load>: Add argument.
700         * target.c (target_load): Add argument.
701         (debug_to_load): Add argument.
702         (update_current_target): Update.
703         * remote.c (remote_load): Add 'self' argument.
704         * remote-sim.c (gdbsim_load): Add 'self' argument.
705         * remote-mips.c (mips_load): Add 'self' argument.
706         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
707         * monitor.c (monitor_load): Add 'self' argument.
708         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
709
710 2014-02-19  Tom Tromey  <tromey@redhat.com>
711
712         * target.h (struct target_ops) <to_terminal_info>: Add argument.
713         (target_terminal_info): Add argument.
714         * target.c (debug_to_terminal_info): Add argument.
715         (default_terminal_info): Likewise.
716         * inflow.c (child_terminal_info): Add 'self' argument.
717         * inferior.h (child_terminal_info): Add 'self' argument.
718         * go32-nat.c (go32_terminal_info): Add 'self' argument.
719
720 2014-02-19  Tom Tromey  <tromey@redhat.com>
721
722         * target.h (struct target_ops) <to_terminal_save_ours>: Add
723         argument.
724         (target_terminal_save_ours): Add argument.
725         * target.c (debug_to_terminal_save_ours): Add argument.
726         (update_current_target): Update.
727         * inflow.c (terminal_save_ours): Add 'self' argument.
728         * inferior.h (terminal_save_ours): Add 'self' argument.
729
730 2014-02-19  Tom Tromey  <tromey@redhat.com>
731
732         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
733         (target_terminal_ours): Add argument.
734         * target.c (debug_to_terminal_ours): Add argument.
735         (update_current_target): Update.
736         * remote.c (remote_terminal_ours): Add 'self' argument.
737         (remote_close): Update.
738         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
739         * inflow.c (terminal_ours): Add 'self' argument.
740         * inferior.h (terminal_ours): Add 'self' argument.
741         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
742
743 2014-02-19  Pedro Alves  <palves@redhat.com>
744             Tom Tromey  <tromey@redhat.com>
745
746         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
747         argument.
748         (target_terminal_ours_for_output): Add argument.
749         * target.c (debug_to_terminal_ours_for_output): Add argument.
750         (update_current_target): Update.
751         * inflow.c (terminal_ours_for_output): Add 'self' argument.
752         * inferior.h (terminal_ours_for_output): Add 'self' argument.
753         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
754
755 2014-02-19  Tom Tromey  <tromey@redhat.com>
756
757         * target.h (struct target_ops) <to_terminal_inferior>: Add
758         argument.
759         * target.c (target_terminal_inferior): Add argument.
760         (update_current_target): Update.
761         * remote.c (remote_terminal_inferior): Add 'self' argument.
762         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
763         * inflow.c (terminal_inferior): Add 'self' argument.
764         * inferior.h (terminal_inferior): Add 'self' argument.
765         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
766         (go32_terminal_inferior): Add 'self' argument.
767
768 2014-02-19  Tom Tromey  <tromey@redhat.com>
769
770         * target.h (struct target_ops) <to_terminal_init>: Add argument.
771         (target_terminal_init): Add argument.
772         * target.c (debug_to_terminal_init): Add argument.
773         (update_current_target): Update.
774         * inflow.c (terminal_init_inferior): Add 'self' argument.
775         * inferior.h (terminal_init_inferior): Add 'self' argument.
776         * go32-nat.c (go32_terminal_init): Add 'self' argument.
777         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
778
779 2014-02-19  Tom Tromey  <tromey@redhat.com>
780
781         * target.h (struct target_ops)
782         <to_can_accel_watchpoint_condition>: Add argument.
783         (target_can_accel_watchpoint_condition): Add argument.
784         * target.c (debug_to_can_accel_watchpoint_condition): Add
785         argument.
786         (update_current_target): Update.
787         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
788         'self' argument.
789
790 2014-02-19  Tom Tromey  <tromey@redhat.com>
791
792         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
793         Add argument.
794         (target_region_ok_for_hw_watchpoint): Add argument.
795         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
796         (default_region_ok_for_hw_watchpoint): Add argument.
797         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
798         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
799         argument.
800         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
801         argument.
802         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
803         argument.
804         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
805         'self' argument.
806         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
807         'self' argument.
808         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
809         'self' argument.
810         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
811         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
812         'self' argument.
813         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
814         Add 'self' argument.
815
816 2014-02-19  Tom Tromey  <tromey@redhat.com>
817
818         * target.h (struct target_ops) <to_insert_watchpoint>: Add
819         argument.
820         (target_insert_watchpoint): Add argument.
821         * target.c (debug_to_insert_watchpoint): Add argument.
822         (update_current_target): Update.
823         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
824         * remote.c (remote_insert_watchpoint): Add 'self' argument.
825         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
826         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
827         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
828         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
829         argument.
830         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
831         (procfs_insert_hw_watchpoint): Add 'self' argument.
832         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
833         argument.
834         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
835         argument.
836         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
837         argument.
838         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
839         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
840         argument.
841         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
842         'self' argument.
843
844 2014-02-19  Tom Tromey  <tromey@redhat.com>
845
846         * target.h (struct target_ops) <to_remove_watchpoint>: Add
847         argument.
848         (target_remove_watchpoint): Add argument.
849         * target.c (debug_to_remove_watchpoint): Add argument.
850         (update_current_target): Update.
851         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
852         * remote.c (remote_remove_watchpoint): Add 'self' argument.
853         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
854         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
855         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
856         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
857         argument.
858         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
859         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
860         argument.
861         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
862         argument.
863         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
864         argument.
865         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
866         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
867         argument.
868         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
869         'self' argument.
870
871 2014-02-19  Tom Tromey  <tromey@redhat.com>
872
873         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
874         argument.
875         (target_remove_hw_breakpoint): Add argument.
876         * target.c (debug_to_remove_hw_breakpoint): Add argument.
877         (update_current_target): Update.
878         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
879         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
880         argument.
881         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
882         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
883         argument.
884         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
885         'self' argument.
886
887 2014-02-19  Tom Tromey  <tromey@redhat.com>
888
889         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
890         argument.
891         (target_insert_hw_breakpoint): Add argument.
892         * target.c (debug_to_insert_hw_breakpoint): Add argument.
893         (update_current_target): Update.
894         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
895         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
896         argument.
897         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
898         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
899         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
900         argument.
901         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
902         'self' argument.
903
904 2014-02-19  Tom Tromey  <tromey@redhat.com>
905
906         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
907         argument.
908         (target_can_use_hardware_watchpoint): Add argument.
909         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
910         (update_current_target): Update.
911         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
912         argument.
913         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
914         argument.
915         * remote.c (remote_check_watch_resources): Add 'self' argument.
916         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
917         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
918         argument.
919         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
920         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
921         argument.
922         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
923         argument.
924         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
925         argument.
926         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
927         argument.
928         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
929         argument.
930         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
931         argument.
932         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
933         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
934         argument.
935         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
936         'self' argument.
937
938 2014-02-19  Tom Tromey  <tromey@redhat.com>
939
940         * target.h (struct target_ops) <to_post_attach>: Add argument.
941         (target_post_attach): Add argument.
942         * target.c (debug_to_post_attach): Add argument.
943         (update_current_target): Update.
944         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
945         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
946         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
947         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
948         * inf-child.c (inf_child_post_attach): Add 'self' argument.
949
950 2014-02-19  Tom Tromey  <tromey@redhat.com>
951
952         * windows-nat.c (windows_close): Add 'self' argument.
953         * tracepoint.c (tfile_close): Add 'self' argument.
954         * target.h (struct target_ops) <to_close>: Add argument.
955         * target.c (target_close): Add argument.
956         (update_current_target): Update.
957         * remote.c (remote_close): Add 'self' argument.
958         * remote-sim.c (gdbsim_close): Add 'self' argument.
959         * remote-mips.c (mips_close): Add 'self' argument.
960         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
961         * record-full.c (record_full_close): Add 'self' argument.
962         * record-btrace.c (record_btrace_close): Add 'self' argument.
963         * monitor.h (monitor_close): Add 'self' argument.
964         * monitor.c (monitor_close): Add 'self' argument.
965         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
966         * linux-nat.c (linux_nat_close): Add argument.
967         * go32-nat.c (go32_close): Add 'self' argument.
968         * exec.c (exec_close_1): Add 'self' argument.
969         * ctf.c (ctf_close): Add 'self' argument.
970         * corelow.c (core_close): Add 'self' argument.
971         (core_close_cleanup): Update.
972         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
973         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
974
975 2014-02-19  Tom Tromey  <tromey@redhat.com>
976
977         * remote.c (remote_load): New function.
978         (init_remote_ops): Use it.
979
980 2014-02-19  Tom Tromey  <tromey@redhat.com>
981
982         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
983         argument.
984         * common/linux-btrace.h (linux_supports_btrace): Update.
985         * remote.c (remote_supports_btrace): Add "self" argument.
986         * target-delegates.c: Rebuild.
987         * target.c (target_supports_btrace): Remove.
988         * target.h (struct target_ops) <to_supports_btrace>: Add
989         target_ops argument.
990         (target_supports_btrace): New define.
991
992 2014-02-19  Tom Tromey  <tromey@redhat.com>
993
994         * record-full.c (record_full_beneath_to_resume_ops)
995         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
996         (record_full_beneath_to_wait)
997         (record_full_beneath_to_store_registers_ops)
998         (record_full_beneath_to_store_registers)
999         (record_full_beneath_to_xfer_partial_ops)
1000         (record_full_beneath_to_xfer_partial)
1001         (record_full_beneath_to_insert_breakpoint_ops)
1002         (record_full_beneath_to_insert_breakpoint)
1003         (record_full_beneath_to_remove_breakpoint_ops)
1004         (record_full_beneath_to_remove_breakpoint)
1005         (record_full_beneath_to_stopped_by_watchpoint)
1006         (record_full_beneath_to_stopped_data_address)
1007         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1008         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1009         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1010         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1011         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1012         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1013         (tmp_to_stopped_data_address, tmp_to_async): Remove.
1014         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
1015         (record_full_resume, record_full_wait_1)
1016         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1017         (record_full_store_registers, record_full_xfer_partial)
1018         (record_full_insert_breakpoint, record_full_remove_breakpoint)
1019         (record_full_async, record_full_core_xfer_partial): Use target
1020         delegation.
1021         * target-delegates.c: Rebuild.
1022         * target.c (current_xfer_partial): Remove.
1023         (update_current_target): Do not INHERIT or de_fault
1024         to_insert_breakpoint, to_remove_breakpoint,
1025         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1026         to_is_async_p, to_async.  Do not set to_xfer_partial field.
1027         (default_xfer_partial): Simplify.
1028         (current_xfer_partial): Remove.
1029         (target_wait, target_resume): Simplify.
1030         (find_default_can_async_p, find_default_is_async_p): Update.
1031         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1032         to_xfer_partial, to_stopped_by_watchpoint,
1033         to_stopped_data_address.
1034         (target_store_registers): Simplify.
1035         (forward_target_remove_breakpoint)
1036         (forward_target_insert_breakpoint): Remove.
1037         (target_remove_breakpoint, target_insert_breakpoint)
1038         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1039         * target.h (struct target_ops) <to_resume, to_wait,
1040         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1041         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1042         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1043         markup.
1044         (forward_target_remove_breakpoint)
1045         (forward_target_insert_breakpoint): Remove.
1046         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1047         directly.
1048         (record_btrace_insert_breakpoint): Delegate directly.
1049
1050 2014-02-19  Tom Tromey  <tromey@redhat.com>
1051
1052         PR build/7701:
1053         * target-delegates.c: New file.
1054         * target.c: Include target-delegates.c.
1055         (init_dummy_target): Call install_dummy_methods.
1056         (complete_target_initialization): Call install_delegators.
1057         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1058         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1059         * make-target-delegates: New file.
1060
1061 2014-02-19  Tom Tromey  <tromey@redhat.com>
1062
1063         * record.c (find_record_target): Use find_target_at.
1064         * target.c (find_target_at): New function.
1065         * target.h (find_target_at): Declare.
1066
1067 2014-02-19  Tom Tromey  <tromey@redhat.com>
1068
1069         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1070         Add 'ops' argument.
1071         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1072         'ops' argument.
1073         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1074         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1075         'ops' argument.
1076         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1077         argument.
1078         * linux-nat.c (save_sigtrap): Update.
1079         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1080         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1081         (linux_nat_close): Update.
1082         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1083         argument.
1084         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1085         argument.
1086         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1087         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1088         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1089         (tmp_to_async): Add 'ops' argument.
1090         (record_full_stopped_by_watchpoint, record_full_async)
1091         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1092         argument.
1093         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1094         (m32r_stopped_by_watchpoint): Add 'ops' argument.
1095         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1096         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1097         (remote_is_async_p, remote_async): Add 'ops' argument.
1098         (remote_stopped_data_address): Update.
1099         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1100         * target.c (update_current_target)
1101         (find_default_can_async_p, find_default_is_async_p): Update.
1102         (init_dummy_target): Update.
1103         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1104         * target.h (struct target_ops) <to_stopped_by_watchpoint,
1105         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1106         (target_can_async_p, target_is_async_p, target_async)
1107         (target_stopped_by_watchpoint): Update.
1108
1109 2014-02-19  Yao Qi  <yao@codesourcery.com>
1110
1111         PR gdb/16220
1112         * gdbarch.sh: Remove startup_gdbarch.
1113         * gdbarch.c: Regenerated.
1114         * gdbarch.h: Likewise.
1115
1116 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
1117
1118         * rl78-tdep.c (rl78_g10_register_name): New function.
1119         (rl78_return_value): Add g10 support.
1120         (rl78_gdbarch_init): Register rl78_g10_register_name for the
1121         g10.
1122
1123 2014-02-17  Doug Evans  <xdje42@gmail.com>
1124
1125         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1126         (SUBDIR_GUILE_SRCS): Ditto.
1127         (scm-gsmob.o): Ditto.
1128
1129 2014-02-17  Yao Qi  <yao@codesourcery.com>
1130
1131         * gnu-nat.c (ILL_RPC): Declare defined function.
1132
1133 2014-02-17  Yao Qi  <yao@codesourcery.com>
1134
1135         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1136         mach_msg_type_number_t.
1137         (gnu_write_inferior): Likewise.
1138
1139 2014-02-17  Yao Qi  <yao@codesourcery.com>
1140
1141         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1142         in format string.
1143         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1144         (inf_validate_procs, inf_signal): Likewise.
1145         (S_exception_raise_request): Likewise.
1146         (do_mach_notify_dead_name): Likewise.
1147         (steal_exc_port): Likewise.
1148         (gnu_read_inferior): Change 'copy_count''s type to
1149         mach_msg_type_number_t.
1150         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
1151         format string.
1152
1153 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
1154
1155         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1156         flag.  Adjust all users; in particular...
1157         (gnu_wait): ..., don't decrement its value in here...
1158         (gnu_create_inferior): ..., and instead set the flag in here,
1159         around the startup_inferior call, and call that one with
1160         START_INFERIOR_TRAPS_EXPECTED.
1161
1162         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1163         (ILL_RPC): ... new macro.
1164         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1165         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1166         (do_mach_notify_send_once, S_proc_setmsgport_reply)
1167         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1168         functions with ILL_RPC macro.
1169         (S_proc_pid2task_reply, S_proc_task2pid_reply)
1170         (S_proc_task2proc_reply, S_proc_proc2task_reply)
1171         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1172         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1173         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1174         (S_proc_getlogin_reply, S_proc_getsid_reply)
1175         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1176         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1177         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1178         (S_proc_getnports_reply, S_proc_is_important_reply)
1179         (S_proc_get_code_reply): New stub functions, generated with
1180         ILL_RPC macro.
1181
1182         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1183         collected the type check structures.
1184
1185         * reply_mig_hack.awk: Don't expect to see the auto keyword.
1186
1187 2014-02-14  Doug Evans  <dje@google.com>
1188
1189         * target.c (target_write_partial): Fix result type.
1190
1191 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
1192
1193         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1194         the proper offsets to access fpregset_t.
1195
1196 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
1197
1198         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1199         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1200         * h8300-tdep.c (setmachinelist): Remove global.
1201         * hppa-tdep.c (hppa_sigtramp): Remove global.
1202         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1203         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1204         * ravenscar-thread.c (update_target_observer): Remove global.
1205         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1206
1207 2014-02-12  Tom Tromey  <tromey@redhat.com>
1208
1209         * common/rsp-low.c: Update comments.
1210         * common/rsp-low.h: Update comments.
1211
1212 2014-02-12  Tom Tromey  <tromey@redhat.com>
1213
1214         * common/rsp-low.c (convert_ascii_to_int): Remove.
1215         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1216
1217 2014-02-12  Tom Tromey  <tromey@redhat.com>
1218
1219         * common/rsp-low.h (unhexify): Don't declare.
1220         * common/rsp-low.c (unhexify): Remove.
1221
1222 2014-02-12  Tom Tromey  <tromey@redhat.com>
1223
1224         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1225         * common/rsp-low.c (convert_int_to_ascii): Remove.
1226
1227 2014-02-12  Tom Tromey  <tromey@redhat.com>
1228
1229         * common/rsp-low.h (hexify): Don't declare.
1230         * common/rsp-low.c (hexify): Remove.
1231
1232 2014-02-12  Tom Tromey  <tromey@redhat.com>
1233
1234         * common/rsp-low.c (hexify): Never take strlen of argument.
1235
1236 2014-02-12  Tom Tromey  <tromey@redhat.com>
1237
1238         * common/rsp-low.c (bin2hex): Never take strlen of argument.
1239         * remote.c (extended_remote_run, remote_rcmd)
1240         (remote_download_trace_state_variable, remote_save_trace_data)
1241         (remote_set_trace_notes): Update.
1242         * tracepoint.c (encode_source_string, tfile_write_status)
1243         (tfile_write_uploaded_tsv): Update.
1244
1245 2014-02-12  Tom Tromey  <tromey@redhat.com>
1246
1247         * tracepoint.c: Include rsp-low.h.
1248         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1249         * remote.c: Include rsp-low.h.
1250         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1251         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1252         (remote_unescape_input): Move to common/rsp-low.c.
1253         * common/rsp-low.h: New file.
1254         * common/rsp-low.c: New file.
1255         * Makefile.in (SFILES): Add common/rsp-low.c.
1256         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1257         (COMMON_OBS): Add rsp-low.o.
1258         (rsp-low.o): New target.
1259
1260 2014-02-12  Tom Tromey  <tromey@redhat.com>
1261
1262         * utils.h: Include print-utils.h.
1263         (host_address_to_string, plongest, pulongest, phex, phex_nz)
1264         (int_string, core_addr_to_string, core_addr_to_string_nz)
1265         (hex_string, hex_string_custom): Don't declare.
1266         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1267         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1268         (hex_string_custom, int_string, core_addr_to_string)
1269         (core_addr_to_string_nz, host_address_to_string): Move to
1270         common/print-utils.c.
1271         * common/print-utils.h: New file.
1272         * common/print-utils.c: New file
1273         * Makefile.in (SFILES): Add common/print-utils.c.
1274         (HFILES_NO_SRCDIR): Add common/print-utils.h.
1275         (COMMON_OBS): Add print-utils.o.
1276         (print-utils.o): New target.
1277
1278 2014-02-12  Tom Tromey  <tromey@redhat.com>
1279
1280         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1281
1282 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
1283
1284         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1285
1286 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
1287
1288         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1289         if a PT_IO ptrace request returns sucessfully but indicates that 0
1290         bytes were transferred.
1291
1292 2014-02-12  Pedro Alves  <palves@redhat.com>
1293             Kevin Buettner <kevinb@redhat.com>
1294
1295         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1296         TYPE_INSTANCE_FLAG_CODE_SPACE.
1297
1298 2014-02-12  Pedro Alves  <palves@redhat.com>
1299
1300         * h8300-tdep.c (pseudo_from_raw_register)
1301         (raw_from_pseudo_register): New functions.
1302         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1303         them.
1304
1305 2014-02-12  Pedro Alves  <palves@redhat.com>
1306
1307         * h8300-tdep.c (h8300_register_sim_regno): New function.
1308         (h8300_gdbarch_init): Install h8300_register_sim_regno as
1309         gdbarch_register_sim_regno hook.
1310
1311 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
1312
1313         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1314
1315 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
1316
1317         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1318
1319 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
1320
1321         * obsd-tdep.h (obsd_init_abi): New prototype.
1322         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1323         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1324         (obsd_init_abi): New functions.
1325         * i386obsd-tdep.c: Include "obsd-tdep.h".
1326         (i386obsd_init_abi): Call obsd_init_abi.
1327         * amd64obsd-tdep.c: Include "obsd-tdep.h".
1328         (amd64obsd_init_abi): Call obsd_init_abi.
1329         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1330         obsd-tdep.c to gdb_target_obs.
1331
1332 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
1333
1334         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1335         double float arguments to 16-byte in the argument slots.
1336
1337 2014-02-11  Doug Evans  <xdje42@gmail.com>
1338
1339         * configure.ac: Don't crash if pkg-config is not found and guile
1340         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
1341         in guile checks.
1342         * configure: Regenerate.
1343
1344 2014-02-11  Yao Qi  <yao@codesourcery.com>
1345
1346         * aix-thread.c (aix_thread_xfer_partial): Update comments.
1347         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1348         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1349         * gnu-nat.c (gnu_xfer_memory): Likewise.
1350         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
1351         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1352         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1353         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1354
1355 2014-02-11  Yao Qi  <yao@codesourcery.com>
1356
1357         * target.h (enum target_xfer_error): Rename to ...
1358         (enum target_xfer_status): ... it.  New.  All users updated.
1359         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1360         New.
1361         (TARGET_XFER_STATUS_ERROR_P): New macro.
1362         (target_xfer_error_to_string): Remove declaration.
1363         (target_xfer_status_to_string): Declare.
1364         (target_xfer_partial_ftype): Adjust it.
1365         (struct target_ops) <to_xfer_partial>: Return
1366         target_xfer_status.  Add argument xfered_len.  Update
1367         comments.
1368         * target.c (target_xfer_error_to_string): Rename to ...
1369         (target_xfer_status_to_string): ... it.  New.  All callers
1370         updated.
1371         (target_read_live_memory): Likewise.  Call target_xfer_partial
1372         instead of target_read.
1373         (memory_xfer_live_readonly_partial): Return
1374         target_xfer_status.  Add argument xfered_len.
1375         (raw_memory_xfer_partial): Likewise.
1376         (memory_xfer_partial_1): Likewise.
1377         (memory_xfer_partial): Likewise.
1378         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
1379         properly.  Update debug message.
1380         (default_xfer_partial, current_xfer_partial): Likewise.
1381         (target_write_partial): Likewise.
1382         (target_read_partial): Likewise.  All callers updated.
1383         (read_whatever_is_readable): Likewise.
1384         (target_write_with_progress): Likewise.
1385         (target_read_alloc_1): Likewise.
1386
1387         * aix-thread.c (aix_thread_xfer_partial): Likewise.
1388         * auxv.c (procfs_xfer_auxv): Likewise.
1389         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1390         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1391         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1392         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1393         * corefile.c (read_memory): Adjust.
1394         * corelow.c (core_xfer_partial): Likewise.
1395         * ctf.c (ctf_xfer_partial): Likewise.
1396         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
1397         updated.
1398         (darwin_xfer_partial): Likewise.
1399         * exec.c (section_table_xfer_memory_partial): Likewise.  All
1400         callers updated.
1401         (exec_xfer_partial): Likewise.
1402         * exec.h (section_table_xfer_memory_partial): Update
1403         declaration.
1404         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
1405         negative.
1406         (gnu_xfer_partial): Likewise.
1407         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1408         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1409         (ia64_hpux_xfer_solib_got): Likewise.
1410         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
1411         type of 'partial_len' to ULONGEST.
1412         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1413         * linux-nat.c (linux_xfer_siginfo ): Likewise.
1414         (linux_nat_xfer_partial): Likewise.
1415         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1416         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1417         * monitor.c (monitor_xfer_memory): Likewise.
1418         (monitor_xfer_partial): Likewise.
1419         * procfs.c (procfs_xfer_partial): Likewise.
1420         * record-btrace.c (record_btrace_xfer_partial): Likewise.
1421         * record-full.c (record_full_xfer_partial): Likewise.
1422         (record_full_core_xfer_partial): Likewise.
1423         * remote-sim.c (gdbsim_xfer_memory): Likewise.
1424         (gdbsim_xfer_partial): Likewise.
1425         * remote.c (remote_write_bytes_aux): Likewise.  All callers
1426         updated.
1427         (remote_write_bytes, remote_read_bytes): Likewise.  All
1428         callers updated.
1429         (remote_flash_erase): Likewise.  All callers updated.
1430         (remote_write_qxfer): Likewise.  All callers updated.
1431         (remote_read_qxfer): Likewise.  All callers updated.
1432         (remote_xfer_partial): Likewise.
1433         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1434         (rs6000_xfer_shared_libraries): Likewise.
1435         * sol-thread.c (sol_thread_xfer_partial): Likewise.
1436         (sol_thread_xfer_partial): Likewise.
1437         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1438         (sparc_xfer_partial): Likewise.
1439         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
1440         updated.
1441         (spu_xfer_partial): Likewise.
1442         * spu-multiarch.c (spu_xfer_partial): Likewise.
1443         * tracepoint.c (tfile_xfer_partial): Likewise.
1444         * windows-nat.c (windows_xfer_memory): Likewise.
1445         (windows_xfer_shared_libraries): Likewise.
1446         (windows_xfer_partial): Likewise.
1447         * valprint.c: Replace 'target_xfer_error' with
1448         'target_xfer_status' in comments.
1449
1450 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
1451
1452         Checked in by Joel Brobecker <brobecker@adacore.com>.
1453         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1454
1455 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
1456
1457         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1458         function parameters.
1459
1460 2014-02-10  Will Newton  <will.newton@linaro.org>
1461
1462         * elfread.c (elf_rel_plt_read): Look for a .got section if
1463         looking up .got.plt fails.
1464         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1465         on address passed to elf_gnu_ifunc_record_cache.
1466         (elf_gnu_ifunc_resolve_addr): Likewise.
1467         (elf_gnu_ifunc_resolver_return_stop): Likewise.
1468
1469 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
1470
1471         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1472         (X_RETTURN): New macro.
1473         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1474
1475         * sparc64-tdep.c (sparc64_init_abi): Hook
1476         sparc_in_function_epilogue_p.
1477
1478 2014-02-10  Gary Benson  <gbenson@redhat.com>
1479
1480         * symfile-debug.c (debug_qf_expand_symtabs_matching):
1481         Rename name_matcher to symbol_matcher.
1482
1483 2014-02-10  Gary Benson  <gbenson@redhat.com>
1484
1485         * symfile-debug.c (debug_qf_expand_symtabs_matching):
1486         Use expand_symtabs_file_matcher_ftype and
1487         expand_symtabs_symbol_matcher_ftype.
1488
1489 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
1490
1491         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1492         (struct ada_symbol_cache): New.
1493         (ada_free_symbol_cache): Forward declare.
1494         (struct ada_pspace_data): New.
1495         (ada_pspace_data_handle): New static global.
1496         (get_ada_pspace_data, ada_pspace_data_cleanup)
1497         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1498         (cache_space, cache): Delete, now folded inside struct
1499         ada_pspace_data.
1500         (ada_get_symbol_cache): New function.
1501         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1502         implementation.
1503         (_initialize_ada_language): Remove initialization of cache_space.
1504         Move call to observer_attach_inferior_exit up, grouping it
1505         with the other observer registrations inside this function.
1506         Rename command to be more general.  Add call to
1507         register_program_space_data_with_cleanup.
1508
1509 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
1510
1511         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1512         ada_new_objfile_observer.
1513         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1514         (_initialize_tasks): Update uses of ada_new_objfile_observer
1515         and ada_tasks_normal_stop_observer.
1516
1517 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
1518
1519         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1520         returned by the 'Length attribute to integer.
1521
1522 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
1523
1524         * ada-lang.c (_initialize_ada_language): Initialize
1525         cache_space obstack.
1526
1527 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
1528
1529         * ada-lang.c (HASH_SIZE): New macro.
1530         (struct cache_entry): New type.
1531         (cache_space, cache): New static globals.
1532         (ada_clear_symbol_cache, find_entry): New functions.
1533         (lookup_cached_symbol, cache_symbol): Implement.
1534         (ada_new_objfile_observer, ada_free_objfile_observer): New.
1535         (_initialize_ada_language): Attach ada_new_objfile_observer
1536         and ada_free_objfile_observer.
1537
1538 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
1539
1540         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1541         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1542         struct block * parameter.
1543         (ada_lookup_symbol_list_worker): Constify local variable "block".
1544         Remove cast which is no longer necessary.
1545
1546 2014-02-10  Doug Evans  <xdje42@gmail.com>
1547
1548         Add Guile as an extension language.
1549         * NEWS: Mention Guile scripting.
1550         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1551         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1552         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1553         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1554         (CLIBS): Add GUILE_LIBS.
1555         (install-guile): New rule.
1556         (guile.o): New rule.
1557         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1558         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1559         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1560         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1561         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1562         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1563         (scm-type.o, scm-utils.o, scm-value.o): New rules.
1564         * configure.ac: New option --with-guile.
1565         * configure: Regenerate.
1566         * config.in: Regenerate.
1567         * auto-load.c: Remove #include "python/python.h".  Add #include
1568         "gdb/section-scripts.h".
1569         (source_section_scripts): Handle Guile scripts.
1570         (_initialize_auto_load): Add name of Guile objfile script to
1571         scripts-directory help text.
1572         * breakpoint.c (condition_command): Tweak comment to include Scheme.
1573         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1574         (struct breakpoint): New member scm_bp_object.
1575         * defs.h (enum command_control_type): New value guile_control.
1576         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
1577         "extension.h".
1578         (show_user): Update comment.
1579         (_initialize_cli_cmds): Update help text for "show user".  Update help
1580         text for max-user-call-depth.
1581         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
1582         "extension.h".
1583         (multi_line_command_p): Add guile_control.
1584         (print_command_lines): Handle guile_control.
1585         (execute_control_command, recurse_read_control_structure): Ditto.
1586         (process_next_line): Recognize "guile" commands.
1587         * disasm.c (gdb_disassemble_info): Make non-static.
1588         * disasm.h: #include "dis-asm.h".
1589         (struct gdbarch): Add forward decl.
1590         (gdb_disassemble_info): Declare.
1591         * extension.c: #include "guile/guile.h".
1592         (extension_languages): Add guile.
1593         (get_ext_lang_defn): Handle EXT_LANG_GDB.
1594         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1595         * gdbtypes.c (get_unsigned_type_max): New function.
1596         (get_signed_type_minmax): New function.
1597         * gdbtypes.h (get_unsigned_type_max): Declare.
1598         (get_signed_type_minmax): Declare.
1599         * guile/README: New file.
1600         * guile/guile-internal.h: New file.
1601         * guile/guile.c: New file.
1602         * guile/guile.h: New file.
1603         * guile/scm-arch.c: New file.
1604         * guile/scm-auto-load.c: New file.
1605         * guile/scm-block.c: New file.
1606         * guile/scm-breakpoint.c: New file.
1607         * guile/scm-disasm.c: New file.
1608         * guile/scm-exception.c: New file.
1609         * guile/scm-frame.c: New file.
1610         * guile/scm-gsmob.c: New file.
1611         * guile/scm-iterator.c: New file.
1612         * guile/scm-lazy-string.c: New file.
1613         * guile/scm-math.c: New file.
1614         * guile/scm-objfile.c: New file.
1615         * guile/scm-ports.c: New file.
1616         * guile/scm-pretty-print.c: New file.
1617         * guile/scm-safe-call.c: New file.
1618         * guile/scm-string.c: New file.
1619         * guile/scm-symbol.c: New file.
1620         * guile/scm-symtab.c: New file.
1621         * guile/scm-type.c: New file.
1622         * guile/scm-utils.c: New file.
1623         * guile/scm-value.c: New file.
1624         * guile/lib/gdb.scm: New file.
1625         * guile/lib/gdb/boot.scm: New file.
1626         * guile/lib/gdb/experimental.scm: New file.
1627         * guile/lib/gdb/init.scm: New file.
1628         * guile/lib/gdb/iterator.scm: New file.
1629         * guile/lib/gdb/printing.scm: New file.
1630         * guile/lib/gdb/types.scm: New file.
1631         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1632         (VPATH): Add $(GUILE_SRCDIR).
1633         (GUILE_DIR): New variable.
1634         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1635         (all): Add stamp-guile dependency.
1636         (stamp-guile): New rule.
1637         (clean-guile, install-guile, uninstall-guile): New rules.
1638         (install-only): Add install-guile dependency.
1639         (uninstall): Add uninstall-guile dependency.
1640         (clean): Add clean-guile dependency.
1641
1642 2014-02-09  Doug Evans  <xdje42@gmail.com>
1643
1644         Revert this patch (which I approved, mea culpa).
1645
1646         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
1647
1648         * Makefile.in (all-lib): Remove.
1649         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1650
1651 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1652
1653         Fix Python stack corruption.
1654         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1655         gdb_py_longest.
1656
1657 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
1658
1659         * Makefile.in (all-lib): Remove.
1660         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1661
1662 2014-02-07  Doug Evans  <dje@google.com>
1663
1664         * extension-priv.h (extension_language_script_ops): Add comment.
1665         (extension_language_ops): Add comment.
1666         (active_ext_lang_state): Fix typo in comment.
1667
1668 2014-02-07  Pedro Alves  <palves@redhat.com>
1669
1670         * infrun.c (handle_signal_stop) <signal arrives while stepping
1671         over a breakpoint>: Switch back to the stepping thread.
1672
1673 2014-02-07  Yao Qi  <yao@codesourcery.com>
1674
1675         * target.c (target_xfer_partial): Return zero if LEN is zero.
1676
1677 2014-02-07  Yao Qi  <yao@codesourcery.com>
1678
1679         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1680         (ld_so_xfer_auxv): Likewise.
1681         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1682         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1683         * corelow.c (core_xfer_partial): Likewise.
1684         * ctf.c (ctf_xfer_partial): Likewise.
1685         * darwin-nat.c (darwin_read_dyld_info): Likewise.
1686         (darwin_xfer_partial): Likewise.
1687         * exec.c (exec_xfer_partial): Likewise.
1688         * gnu-nat.c (gnu_xfer_partial): Likewise.
1689         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1690         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1691         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1692         * linux-nat.c (linux_xfer_siginfo): Likewise.
1693         (linux_proc_xfer_spu): Likewise.
1694         * procfs.c (procfs_xfer_partial): Likewise.
1695         * record-full.c (record_full_xfer_partial): Likewise.
1696         (record_full_core_xfer_partial): Likewise.
1697         * remote-sim.c (gdbsim_xfer_partial): Likewise.
1698         * remote.c (remote_write_qxfer): Likewise.
1699         (remote_write_qxfer, remote_read_qxfer): Likewise.
1700         (remote_xfer_partial): Likewise.
1701         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1702         (rs6000_xfer_shared_libraries): Likewise.
1703         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1704         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1705         (spu_xfer_partial): Likewise.
1706         * target.c (memory_xfer_partial_1): Likewise.
1707         * tracepoint.c (tfile_xfer_partial): Likewise.
1708         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1709         (windows_xfer_partial): Likewise.
1710
1711 2014-02-07  Yao Qi  <yao@codesourcery.com>
1712
1713         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
1714         comments.
1715         (core_xfer_shared_libraries_aix): Likewise.
1716         * gdbarch.c, gdbarch.h: Regenerated.
1717         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1718         ULONGEST.  Change 'len_avail' type to ULONGEST.
1719         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1720         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1721         declaration.
1722         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1723
1724 2014-02-07  Yao Qi  <yao@codesourcery.com>
1725
1726         * corefile.c (memory_error): Get 'exception' from ERR and pass
1727         'exception' to throw_error.
1728
1729 2014-02-06  Doug Evans  <xdje42@gmail.com>
1730
1731         * configure.ac (libpython checking): Remove all but python.o from
1732         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
1733         * configure: Regenerate.
1734
1735         * Makefile.in (SFILES): Add extension.c.
1736         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1737         (COMMON_OBS): Add extension.o.
1738         * extension.h: New file.
1739         * extension-priv.h: New file.
1740         * extension.c: New file.
1741
1742         * python/python-internal.h: #include "extension.h".
1743         (gdbpy_auto_load_enabled): Declare.
1744         (gdbpy_apply_val_pretty_printer): Declare.
1745         (gdbpy_apply_frame_filter): Declare.
1746         (gdbpy_preserve_values): Declare.
1747         (gdbpy_breakpoint_cond_says_stop): Declare.
1748         (gdbpy_breakpoint_has_cond): Declare.
1749         (void source_python_script_for_objfile): Delete.
1750         * python/python.c: #include "extension-priv.h".
1751         Delete inclusion of "observer.h".
1752         (extension_language_python): Moved here and renamed from
1753         script_language_python in py-auto-load.c.
1754         Redefined to be of type extension_language_defn.
1755         (python_extension_script_ops): New global.
1756         (python_extension_ops): New global.
1757         (struct python_env): New member previous_active.
1758         (restore_python_env): Call restore_active_ext_lang.
1759         (ensure_python_env): Call set_active_ext_lang.
1760         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1761         New arg extlang.
1762         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1763         New arg extlang.
1764         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1765         New arg extlang.
1766         (gdbpy_eval_from_control_command): Renamed from
1767         eval_python_from_control_command, made static.  New arg extlang.
1768         (gdbpy_source_script) Renamed from source_python_script, made static.
1769         New arg extlang.
1770         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
1771         result to int.  New arg extlang.
1772         (gdbpy_source_objfile_script): Renamed from
1773         source_python_script_for_objfile, made static.  New arg extlang.
1774         (gdbpy_start_type_printers): Renamed from start_type_printers, made
1775         static.  New args extlang, extlang_printers.  Change result type to
1776         "void".
1777         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1778         static.  New arg extlang.  Rename arg printers to extlang_printers
1779         and change type to ext_lang_type_printers *.
1780         (gdbpy_free_type_printers): Renamed from free_type_printers, made
1781         static.  Replace argument arg with extlang, extlang_printers.
1782         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1783         (!HAVE_PYTHON, source_python_script): Delete.
1784         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1785         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1786         (!HAVE_PYTHON, start_type_printers): Delete.
1787         (!HAVE_PYTHON, apply_type_printers): Delete.
1788         (!HAVE_PYTHON, free_type_printers): Delete.
1789         (_initialize_python): Delete call to observer_attach_before_prompt.
1790         (finalize_python): Set/restore active extension language.
1791         (gdbpy_finish_initialization) Renamed from
1792         finish_python_initialization, made static.  New arg extlang.
1793         (gdbpy_initialized): New function.
1794         * python/python.h: #include "extension.h".  Delete #include
1795         "value.h", "mi/mi-cmds.h".
1796         (extension_language_python): Declare.
1797         (GDBPY_AUTO_FILE_NAME): Delete.
1798         (enum py_bt_status): Moved to extension.h and renamed to
1799         ext_lang_bt_status.
1800         (enum frame_filter_flags): Moved to extension.h.
1801         (enum py_frame_args): Moved to extension.h and renamed to
1802         ext_lang_frame_args.
1803         (finish_python_initialization): Delete.
1804         (eval_python_from_control_command): Delete.
1805         (source_python_script): Delete.
1806         (apply_val_pretty_printer): Delete.
1807         (apply_frame_filter): Delete.
1808         (preserve_python_values): Delete.
1809         (gdbpy_script_language_defn): Delete.
1810         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1811         (start_type_printers, apply_type_printers, free_type_printers): Delete.
1812
1813         * auto-load.c: #include "extension.h".
1814         (GDB_AUTO_FILE_NAME): Delete.
1815         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
1816         (script_language_gdb): Delete, moved to extension.c and renamed to
1817         extension_language_gdb.
1818         (source_gdb_script_for_objfile): Delete.
1819         (auto_load_pspace_info): New member unsupported_script_warning_printed.
1820         (loaded_script): Change type of language member to
1821         struct extension_language_defn *.
1822         (init_loaded_scripts_info): Initialize
1823         unsupported_script_warning_printed.
1824         (maybe_add_script): Make static.  Change type of language arg to
1825         struct extension_language_defn *.
1826         (clear_section_scripts): Reset unsupported_script_warning_printed.
1827         (auto_load_objfile_script_1): Rewrite to use extension language API.
1828         (auto_load_objfile_script): Make public.  Remove support-compiled-in
1829         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1830         (source_section_scripts): Rewrite to use extension language API.
1831         (load_auto_scripts_for_objfile): Rewrite to use
1832         auto_load_scripts_for_objfile.
1833         (collect_matching_scripts_data): Change type of language member to
1834         struct extension_language_defn *.
1835         (auto_load_info_scripts): Change type of language arg to
1836         struct extension_language_defn *.
1837         (unsupported_script_warning_print): New function.
1838         (script_not_found_warning_print): Make static.
1839         (_initialize_auto_load): Rewrite construction of scripts-directory
1840         help.
1841         * auto-load.h (struct objfile): Add forward decl.
1842         (struct script_language): Delete.
1843         (struct auto_load_pspace_info): Add forward decl.
1844         (struct extension_language_defn): Add forward decl.
1845         (maybe_add_script): Delete.
1846         (auto_load_objfile_script): Declare.
1847         (script_not_found_warning_print): Delete.
1848         (auto_load_info_scripts): Update prototype.
1849         (auto_load_gdb_scripts_enabled): Declare.
1850         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1851         auto_load_python_scripts_enabled and made public.
1852         (script_language_python): Delete, moved to python.c.
1853         (gdbpy_script_language_defn): Delete.
1854         (info_auto_load_python_scripts): Update to use
1855         extension_language_python.
1856
1857         * breakpoint.c (condition_command): Replace call to
1858         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1859         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1860         with call to breakpoint_ext_lang_cond_says_stop.
1861         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1862         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
1863         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1864         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1865         New arg slang.
1866         (local_setattro): Print name of extension language with existing
1867         stop condition.
1868
1869         * valprint.c (val_print, value_print): Update to call
1870         apply_ext_lang_val_pretty_printer.
1871         * cp-valprint.c (cp_print_value): Update call to
1872         apply_ext_lang_val_pretty_printer.
1873         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1874         (gdbpy_apply_val_pretty_printer): Renamed from
1875         apply_val_pretty_printer.  New arg extlang.
1876         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1877
1878         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1879         extension language API.
1880         * cli/cli-script.c (execute_control_command): Update to call
1881         eval_ext_lang_from_control_command.
1882
1883         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1884         enum ext_lang_bt_status values.  Update call to
1885         apply_ext_lang_frame_filter.
1886         (mi_cmd_stack_list_locals): Ditto.
1887         (mi_cmd_stack_list_args): Ditto.
1888         (mi_cmd_stack_list_variables): Ditto.
1889         * mi/mi-main.c: Delete #include "python/python-internal.h".
1890         Add #include "extension.h".
1891         (mi_cmd_list_features): Replace reference to python internal variable
1892         gdb_python_initialized with call to ext_lang_initialized_p.
1893
1894         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1895         Update to use enum ext_lang_frame_args.  Update to call
1896         apply_ext_lang_frame_filter.
1897         * python/py-framefilter.c (extract_sym): Update to use enum
1898         ext_lang_bt_status.
1899         (extract_value, py_print_type, py_print_value): Ditto.
1900         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1901         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1902         (py_print_frame): Ditto.
1903         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1904         New arg extlang.  Update to use enum ext_lang_bt_status.
1905
1906         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1907         finish_python_initialization.  Replace with call to
1908         finish_ext_lang_initialization.
1909
1910         * typeprint.c (do_free_global_table): Update to call
1911         free_ext_lang_type_printers.
1912         (create_global_typedef_table): Update to call
1913         start_ext_lang_type_printers.
1914         (find_global_typedef): Update to call apply_ext_lang_type_printers.
1915         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1916         (type_print_options): Change type of global_printers from "void *"
1917         to "struct ext_lang_type_printers *".
1918
1919         * value.c (preserve_values): Update to call preserve_ext_lang_values.
1920         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1921         (gdbpy_preserve_values): Renamed from preserve_python_values.
1922         New arg extlang.
1923         (!HAVE_PYTHON, preserve_python_values): Delete.
1924
1925         * utils.c (quit_flag): Delete, moved to extension.c.
1926         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1927         extension.c.
1928
1929         * eval.c: Delete #include "python/python.h".
1930         * main.c: Delete #include "python/python.h".
1931
1932         * defs.h: Update comment.
1933
1934 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
1935
1936         GDB 7.7 released.
1937
1938 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
1939
1940         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1941         defined.
1942
1943 2014-02-05  Yao Qi  <yao@codesourcery.com>
1944
1945         * remote.c (remote_pass_signals): Remove local 'buf' and use
1946         rs->buf.
1947         (remote_program_signals): Likewise.
1948
1949 2014-02-05  Yao Qi  <yao@codesourcery.com>
1950
1951         * ctf.c: Include "inferior.h" and "gdbthread.h".
1952         (CTF_PID): A new macro.
1953         (ctf_open): Call inferior_appeared and add_thread_silent.
1954         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1955         (ctf_thread_alive): New function.
1956         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1957
1958 2014-02-05  Yao Qi  <yao@codesourcery.com>
1959
1960         Revert this patch:
1961
1962         2013-05-24  Yao Qi  <yao@codesourcery.com>
1963
1964         * tracepoint.c (TFILE_PID): Remove.
1965         (tfile_open): Don't add thread and inferior.
1966         (tfile_close): Don't set 'inferior_ptid'.  Don't call
1967         exit_inferior_silent.
1968         (tfile_thread_alive): Remove.
1969         (init_tfile_ops): Don't set field 'to_thread_alive' of
1970         tfile_ops.
1971
1972 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
1973
1974         * remote.c (remote_start_remote): Call remote_check_symbols even
1975         if only symbol-file (not file) has been given.
1976
1977 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1978
1979         * gdbarch.sh (skip_entrypoint): New callback.
1980         * gdbarch.c, gdbarch.h: Regenerate.
1981         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1982         * infrun.c (fill_in_stop_func): Likewise.
1983         * ppc-linux-tdep.c: Include "elf/ppc64.h".
1984         (ppc_elfv2_elf_make_msymbol_special): New function.
1985         (ppc_elfv2_skip_entrypoint): Likewise.
1986         (ppc_linux_init_abi): Install them for ELFv2.
1987
1988 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1989
1990         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1991         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1992         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1993         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
1994         structures returned in GPRs.
1995
1996 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1997
1998         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1999         offset to the stack parameter list for the ELFv2 ABI.
2000
2001 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2002
2003         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2004         set_gdbarch_convert_from_func_ptr_addr and
2005         set_gdbarch_elf_make_msymbol_special for ELFv1.
2006         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2007         function descriptors on ELFv1.
2008         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
2009         set up r12 at function entry.
2010
2011 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2012
2013         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2014         (struct gdbarch_tdep): New member elf_abi.
2015
2016         * rs6000-tdep.c: Include "elf/ppc64.h".
2017         (rs6000_gdbarch_init): Detect ELF ABI version.
2018
2019 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2020
2021         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2022         within a register pair holding a DFP 128-bit value on little-endian.
2023         (ppc64_sysv_abi_return_value_base): Likewise.
2024         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2025         (dfp_pseudo_register_write): Likewise.
2026
2027 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2028
2029         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2030         offset on little-endian when passing _Decimal32.
2031         (ppc64_sysv_abi_return_value_base): Likewise for return values.
2032
2033 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2034
2035         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2036         of the overlapped FP register within the VSX register on little-
2037         endian platforms.
2038         (efpr_pseudo_register_write): Likewise.
2039
2040 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2041
2042         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2043         offset on little-endian when passing small structures.
2044
2045 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2046
2047         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2048         (struct ppc64_sysv_argpos): New data structure.
2049         (ppc64_sysv_abi_push_float): Remove.
2050         (ppc64_sysv_abi_push_val): New function.
2051         (ppc64_sysv_abi_push_integer): Likewise.
2052         (ppc64_sysv_abi_push_freg): Likewise.
2053         (ppc64_sysv_abi_push_vreg): Likewise.
2054         (ppc64_sysv_abi_push_param): Likewise.
2055         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2056         (ppc64_sysv_abi_return_value_base): New function.
2057         (ppc64_sysv_abi_return_value): Refactor to use it.
2058
2059 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2060
2061         * NEWS: Document new target powerpc64le-*-linux*.
2062
2063 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
2064
2065         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2066         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2067         core dumps.
2068         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2069         register set used in ELF core dumps.  Add floating-point register set.
2070
2071 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
2072
2073         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite 
2074         dwarf2_to_gdb[] table using symbolic constants.  Adjust
2075         penultimate entry from number representing the PC register
2076         to symbolic constant representing the MDR register.  Add
2077         constant for the PC register to the end of the table.
2078
2079 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
2080
2081         * bsd-kvm.c: Include <sys/param.h>
2082
2083 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
2084
2085         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2086
2087 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
2088
2089         * ada-lang.h (clear_ada_sym_cache): Delete.
2090
2091 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
2092
2093         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2094
2095 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
2096
2097         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2098           the sigreturn register save area only if the syscall is
2099           sigreturn.
2100
2101 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
2102
2103         * valops.c (value_slice): Minor reformatting.
2104
2105 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
2106
2107         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2108
2109 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
2110
2111         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2112         New static globals.
2113         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2114         (ada_ignore_descriptive_types_p): New static global.
2115         (find_parallel_type_by_descriptive_type): Return immediately
2116         if ada_ignore_descriptive_types_p is set.
2117         (_initialize_ada_language): Register new commands "maintenance
2118         set ada", "maintenance show ada", "maintenance set ada
2119         ignore-descriptive-types" and "maintenance show ada
2120         ignore-descriptive-types".
2121         * NEWS: Add entry for new "maint ada set/show
2122         ignore-descriptive-types" commands.
2123
2124 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
2125
2126         * record-btrace.c (record_btrace_close): Call btrace_teardown
2127         for all threads.
2128
2129 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
2130
2131         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2132         "ui-out.h".
2133
2134 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
2135
2136         * ada-typeprint (type_is_full_subrange_of_target_type):
2137         New function.
2138         (print_range): Add parameter bounds_prefered_p.  If not set,
2139         try printing range types using the name of their base type.
2140         (print_range_type): Add parameter bounds_prefered_p.
2141         Use it in call to print_range.
2142         (print_array_type, ada_print_type): Update calls to print_range
2143         and print_range_type.
2144
2145 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
2146
2147         * ada-typeprint.c (print_array_type, print_choices, print_range)
2148         (print_range_bound, print_dynamic_range_bound, print_range_type):
2149         Remove declaration.
2150
2151 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
2152
2153         * ada-typeprint.c (print_range): Add missing empty line
2154         after local declaration.
2155
2156 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
2157
2158         * ada-valprint.c (print_optional_low_bound): Get index_type's
2159         target type for as long as it is a TYPE_CODE_RANGE.
2160
2161 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
2162
2163         * procfs.c (procfs_make_note_section): Remove assertion and
2164         associated comment.
2165
2166 2014-01-24  Yao Qi  <yao@codesourcery.com>
2167
2168         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2169         * corelow.c (get_core_siginfo): Likewise.
2170
2171 2014-01-24  Yao Qi  <yao@codesourcery.com>
2172
2173         * remote.c (remote_write_bytes_aux): Change type of 'len' to
2174         ULONGEST.  Don't check 'len' is negative.
2175         (remote_write_bytes):  Change type of 'len' to ULONGEST.
2176
2177 2014-01-23  Tom Tromey  <tromey@redhat.com>
2178
2179         PR python/16485:
2180         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2181         Handle exception from frame.block.
2182         (FrameVars.fetch_frame_locals): Likewise.
2183
2184 2014-01-23  Tom Tromey  <tromey@redhat.com>
2185
2186         PR python/16487:
2187         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2188         on a NULL pointer.  Move "goto error" to correct place.
2189
2190 2014-01-23  Tom Tromey  <tromey@redhat.com>
2191
2192         PR python/16491:
2193         * python/py-framefilter.c (apply_frame_filter): Call
2194         ensure_python_env after computing gdbarch.
2195
2196 2014-01-23  Yao Qi  <yao@codesourcery.com>
2197
2198         * target.c (raw_memory_xfer_partial): Change argument type
2199         from void * to gdb_byte *.
2200         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2201
2202 2014-01-22  Doug Evans  <dje@google.com>
2203
2204         New gdbserver option --debug-format=timestamp.
2205         * NEWS: Mention it.
2206
2207 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
2208
2209         * syscalls/s390x-linux.xml: New file.
2210         * syscalls/s390-linux.xml: New file.
2211         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2212         (XML_SYSCALL_FILENAME_S390X): Likewise.
2213         (op_svc): New enum value for SVC opcode.
2214         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2215         (s390_linux_get_syscall_number): New function.
2216         (s390_gdbarch_init): Register '*get_syscall_number' and the
2217         syscall xml file name.
2218         * data-directory/Makefile.in (SYSCALLS_FILES): Add
2219         "s390-linux.xml" and "s390x-linux.xml".
2220         * NEWS: Announce new feature.
2221
2222 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
2223
2224         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2225
2226 2014-01-22  Pedro Alves  <palves@redhat.com>
2227
2228         * xtensa-config.c: Include defs.h.
2229
2230 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
2231
2232         * common/common-utils.h: Add "ARI:" comment beside __func__
2233         reference.
2234
2235 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
2236
2237         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2238         documentation a bit.
2239
2240 2014-01-21  Roland McGrath  <mcgrathr@google.com>
2241
2242         * configure.ac: Call AM_PROG_INSTALL_STRIP.
2243         * configure: Regenerate.
2244         * aclocal.m4: Regenerate.
2245         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2246         New substituted variables.
2247         (install-strip): New target.
2248         (INSTALL_SCRIPT): New substituted variable.
2249         (FLAGS_TO_PASS): Add it.
2250         (install-only): Use $(INSTALL_SCRIPT) rather than
2251         $(INSTALL_PROGRAM) for gcore.
2252
2253 2014-01-20  Tom Tromey  <tromey@redhat.com>
2254
2255         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2256         together.
2257
2258 2014-01-20  Tom Tromey  <tromey@redhat.com>
2259
2260         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2261         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2262         (deprecated_cmd_warning, complete_on_cmdlist): Update.
2263         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2264         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2265         (struct cmd_list_element) <flags>: Remove.
2266         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2267         doc_allocated>: New fields.
2268         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2269         bitfields.
2270         * maint.c (maintenance_do_deprecate): Update.
2271         * top.c (execute_command): Update.
2272
2273 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
2274
2275         * xtensa-linux-nat.c: Include asm/ptrace.h.
2276
2277 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2278
2279         * Makefile.in (SFILES): Add d-support.c.
2280         (COMMON_OBS): Add d-support.o.
2281         * d-lang.h (d_parse_symbol): Add comment, now defined in
2282         d-support.c.
2283         * d-lang.c (parse_call_convention)
2284         (parse_attributes, parse_function_types)
2285         (parse_function_args, parse_type, parse_identifier)
2286         (call_convention_p, d_parse_symbol): Move functions to ...
2287         * d-support.c: ... New file.
2288
2289 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2290
2291         * d-lang.h (d_parse_symbol): Add declaration.
2292         * d-lang.c (extract_identifiers)
2293         (extract_type_info): Remove functions.
2294         (parse_call_convention, parse_attributes)
2295         (parse_function_types, parse_function_args)
2296         (parse_type, parse_identifier, call_convention_p)
2297         (d_parse_symbol): New functions.
2298         (d_demangle): Use d_parse_symbol to demangle D symbols.
2299
2300 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2301
2302         * d-lang.h (struct builtin_d_type): New data type.
2303         (builtin_d_type): Add declaration.
2304         * d-lang.c (d_language_arch_info, build_d_types)
2305         (builtin_d_type): New functions.
2306         (enum d_primitive_types): New data type.
2307         (d_language_defn): Change c_language_arch_info to
2308         d_language_arch_info.
2309         (d_type_data): New static variable.
2310         (_initialize_d_language): Initialize d_type_data.
2311
2312 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2313
2314         * d-lang.h (d_main_name): Add declaration.
2315         * d-lang.c (d_main_name): New function.
2316         * symtab.c (find_main_name): Add call to d_main_name.
2317
2318 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2319
2320         * d-lang.c (d_language_defn): Change macro_expansion_c to
2321         macro_expansion_no.
2322
2323 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
2324
2325         * MAINTAINERS: Add myself as a write-after-approval maintainer.
2326
2327 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
2328
2329         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2330         gdb_exception" declaration.
2331         * remote.c (getpkt_or_notif_sane): Likewise.
2332
2333 2014-01-17  Doug Evans  <dje@google.com>
2334
2335         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2336         function, contents of dirnames_to_char_ptr_vec_append moved here.
2337         (delim_string_to_char_ptr_vec): New function.
2338         (dirnames_to_char_ptr_vec_append): Rewrite.
2339         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2340
2341 2014-01-17  Doug Evans  <dje@google.com>
2342
2343         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2344         and moved here ...
2345         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2346         #include "common-utils.h".
2347         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2348         * common/vec.h (VEC_ASSERT_PASS): Update.
2349         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2350         (MACH_CHECK_ERROR): Update.
2351
2352 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
2353
2354         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2355         comments.
2356         * gdbarch.h: Regenerate.
2357
2358 2014-01-16  Tom Tromey  <tromey@redhat.com>
2359
2360         * value.c (struct value) <regnum>: Move earlier.
2361
2362 2014-01-16  Tom Tromey  <tromey@redhat.com>
2363
2364         * remote.c (extended_remote_create_inferior): Rename from
2365         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
2366         old implementation.
2367
2368 2014-01-16  Pedro Alves  <palves@redhat.com>
2369
2370         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2371         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2372         the backchain.
2373
2374 2014-01-16  Doug Evans  <dje@google.com>
2375
2376         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2377
2378 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2379
2380         * btrace.h (btrace_thread_flag): New.
2381         (struct btrace_thread_info) <flags>: New.
2382         * record-btrace.c (record_btrace_resume_thread)
2383         (record_btrace_find_thread_to_move, btrace_step_no_history)
2384         (btrace_step_stopped, record_btrace_start_replaying)
2385         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2386         (record_btrace_find_resume_thread): New.
2387         (record_btrace_resume, record_btrace_wait): Extend.
2388         (record_btrace_can_execute_reverse): New.
2389         (record_btrace_open): Fail in non-stop mode.
2390         (record_btrace_set_replay): Split into this, ...
2391         (record_btrace_stop_replaying): ... this, ...
2392         (record_btrace_clear_histories): ... and this.
2393         (init_record_btrace_ops): Init to_can_execute_reverse.
2394         * NEWS: Announce it.
2395
2396 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2397
2398         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2399         (forward_target_decr_pc_after_break)
2400         (target_decr_pc_after_break): New.
2401         * target.c (forward_target_decr_pc_after_break)
2402         (target_decr_pc_after_break): New.
2403         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2404         instead of gdbarch_decr_pc_after_break.
2405         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2406         instead of gdbarch_decr_pc_after_break.
2407         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2408         instead of gdbarch_decr_pc_after_break.
2409         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2410         instead of gdbarch_decr_pc_after_break.
2411         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2412         instead of gdbarch_decr_pc_after_break.
2413         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2414         instead of gdbarch_decr_pc_after_break.
2415
2416 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2417
2418         * btrace.c: Include regcache.h.
2419         (btrace_add_pc): New.
2420         (btrace_enable): Call btrace_add_pc.
2421         (btrace_is_empty): New.
2422         * btrace.h (btrace_is_empty): New.
2423         * record-btrace.c (require_btrace, record_btrace_info): Call
2424         btrace_is_empty.
2425
2426 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2427
2428         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2429         Support delta reads.
2430         (linux_disable_btrace): Change return type.
2431         * common/linux-btrace.h (linux_read_btrace): Change parameters
2432         and return type to allow error reporting.  Update users.
2433         (linux_disable_btrace): Change return type.  Update users.
2434         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2435         New.
2436         (btrace_error): New.
2437         (btrace_block) <begin>: Comment on BEGIN == 0.
2438         * btrace.c (btrace_compute_ftrace): Start from the end of
2439         the current trace.
2440         (btrace_stitch_trace, btrace_clear_history): New.
2441         (btrace_fetch): Read delta trace, return if replaying.
2442         (btrace_clear): Move clear history code to btrace_clear_history.
2443         (parse_xml_btrace): Throw an error if parsing failed.
2444         * target.h (struct target_ops) <to_read_btrace>: Change parameters
2445         and return type to allow error reporting.
2446         (target_read_btrace): Change parameters and return type to allow
2447         error reporting.
2448         * target.c (target_read_btrace): Update.
2449         * remote.c (remote_read_btrace): Support delta reads.  Pass
2450         errors on.
2451         * NEWS: Announce it.
2452
2453 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2454
2455         * record.h (record_btrace_frame_unwind)
2456         (record_btrace_tailcall_frame_unwind): New declarations.
2457         * dwarf2-frame: Include record.h
2458         (dwarf2_frame_cfa): Throw an error for btrace frames.
2459         * record-btrace.c: Include hashtab.h.
2460         (btrace_get_bfun_name): New.
2461         (btrace_call_history): Call btrace_get_bfun_name.
2462         (struct btrace_frame_cache): New.
2463         (bfcache): New.
2464         (bfcache_hash, bfcache_eq, bfcache_new): New.
2465         (btrace_get_frame_function): New.
2466         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2467         (record_btrace_frame_this_id): Compute own id.
2468         (record_btrace_frame_prev_register): Provide PC, throw_error
2469         for all other registers.
2470         (record_btrace_frame_sniffer): Detect btrace frames.
2471         (record_btrace_tailcall_frame_sniffer): New.
2472         (record_btrace_frame_dealloc_cache): New.
2473         (record_btrace_frame_unwind): Add new functions.
2474         (record_btrace_tailcall_frame_unwind): New.
2475         (_initialize_record_btrace): Allocate cache.
2476         * btrace.c (btrace_clear): Call reinit_frame_cache.
2477         * NEWS: Announce it.
2478
2479 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2480
2481         * record-btrace.c (record_btrace_set_replay)
2482         (record_btrace_goto_begin, record_btrace_goto_end)
2483         (record_btrace_goto): New.
2484         (init_record_btrace_ops): Initialize them.
2485         * NEWS: Announce it.
2486
2487 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2488
2489         * record-btrace.c (record_btrace_find_new_threads)
2490         (record_btrace_thread_alive): New.
2491         (init_record_btrace_ops): Initialize to_find_new_threads and
2492         to_thread_alive.
2493
2494 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2495
2496         * record-btrace.c (record_btrace_resume): New.
2497         (record_btrace_wait): New.
2498         (init_record_btrace_ops): Initialize to_wait and to_resume.
2499
2500 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2501
2502         * record-btrace.c (record_btrace_xfer_partial)
2503         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2504         (record_btrace_allow_memory_access): New.
2505         (init_record_btrace_ops): Initialize new methods.
2506         * target.c (raw_memory_xfer_partial): Bail out if target reports
2507         that this memory is not available.
2508
2509 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2510
2511         * target.h (target_ops) <to_insert_breakpoint>
2512         <to_remove_breakpoint>: Add target_ops parameter.
2513         (forward_target_insert_breakpoint): New.
2514         (forward_target_remove_breakpoint): New.
2515         (memory_remove_breakpoint, memory_insert_breakpoint):
2516         Add target_ops parameter.
2517         * target.c (target_insert_breakpoint): Split into this and ...
2518         (forward_target_insert_breakpoint): ... this.
2519         (target_remove_breakpoint): Split into this and ...
2520         (forward_target_remove_breakpoint): ... this.
2521         (debug_to_insert_breakpoint): Add target_ops parameter.
2522         Call forward_target_insert_breakpoint.
2523         (debug_to_remove_breakpoint): Add target_ops parameter.
2524         Call forward_target_remove_breakpoint.
2525         (update_current_target): Do not inherit or default to_insert_breakpoint
2526         and to_remove_breakpoint.
2527         * corelow.c (ignore): Add target_ops parameter.
2528         * exec.c (ignore): Add target_ops parameter.
2529         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2530         Add target_ops parameter.
2531         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2532         Add target_ops parameter.
2533         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2534         Add target_ops parameter.
2535         * record-full.c (record_full_beneath_to_insert_breakpoint)
2536         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2537         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2538         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2539         (record_full_core_remove_breakpoint): Add target_ops parameter.
2540         Update users.
2541         (record_full_beneath_to_insert_breakpoint_ops)
2542         (record_full_beneath_to_remove_breakpoint_ops)
2543         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2544         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2545         tmp_to_remove_breakpoint_ops,
2546         record_full_beneath_to_insert_breakpoint_ops, and
2547         record_full_beneath_to_remove_breakpoint_ops.
2548         * remote-m32r-sdi.c (m32r_insert_breakpoint)
2549         (m32r_remove_breakpoint): Add target_ops parameter.
2550         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2551         Add target_ops parameter.
2552         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2553         Add target_ops parameter.
2554
2555 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2556             Markus Metzger  <markus.t.metzger@intel.com>
2557
2558         * record-btrace.c: Include frame-unwind.h.
2559         (record_btrace_frame_unwind_stop_reason)
2560         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2561         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2562         New.
2563         (init_record_btrace_ops): Install it.
2564
2565 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2566
2567         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2568         get_prev_frame_1.
2569
2570 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2571
2572         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2573         earlier.
2574
2575 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2576
2577         * frame-unwind.c: Include target.h.
2578         (frame_unwind_try_unwinder): New function with code from ...
2579         (frame_unwind_find_by_frame): ... here.  New variable
2580         unwinder_from_target, call also target_get_unwinder)
2581         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2582         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2583         * target.h (struct target_ops): New fields to_get_unwinder and
2584         to_get_tailcall_unwinder.
2585         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2586
2587 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2588
2589         * record-btrace.c (record_btrace_fetch_registers)
2590         (record_btrace_store_registers)
2591         (record_btrace_to_prepare_to_store): New.
2592         (init_record_btrace_ops): Add the above.
2593
2594 2014-01-16  Tom Tromey  <tromey@redhat.com>
2595
2596         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2597         * target.h (struct target_ops) <to_prepare_to_store>: Add
2598         argument.
2599         (target_prepare_to_store): Add argument.
2600         * target.c (debug_to_prepare_to_store): Add argument.
2601         (update_current_target): Update.
2602         * remote.c (remote_prepare_to_store): Add 'self' argument.
2603         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2604         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2605         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2606         * record-full.c (record_full_core_prepare_to_store): Add 'self'
2607         argument.
2608         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2609         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2610         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2611         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2612         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2613
2614 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2615
2616         * btrace.h (replay) <replay>: New.
2617         (btrace_is_replaying): New.
2618         * btrace.c (btrace_clear): Free replay iterator.
2619         (btrace_is_replaying): New.
2620         * record-btrace.c (record_btrace_is_replaying): New.
2621         (record_btrace_info): Print insn number if replaying.
2622         (record_btrace_insn_history): Start at replay position.
2623         (record_btrace_call_history): Start at replay position.
2624         (init_record_btrace_ops): Init to_record_is_replaying.
2625
2626 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2627
2628         * record-btrace.c (record_btrace_insn_history_range): Include
2629         end.
2630         (record_btrace_insn_history_from): Adjust range.
2631         (record_btrace_call_history_range): Include
2632         end.
2633         (record_btrace_call_history_from): Adjust range.
2634         * NEWS: Announce changes.
2635
2636 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2637
2638         * record.h (enum record_print_flag)
2639         <record_print_indent_calls>: New.
2640         * record.c (get_call_history_modifiers): Recognize /c modifier.
2641         (_initialize_record): Document /c modifier.
2642         * record-btrace.c (btrace_call_history): Add btinfo parameter.
2643         Reorder fields.  Optionally indent the function name.  Update
2644         all users.
2645         * NEWS: Announce changes.
2646
2647 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2648
2649         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2650
2651 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2652
2653         * btrace.c (ftrace_new_function): Start counting at one.
2654         * record-btrace.c (record_btrace_info): Adjust number of calls
2655         and insns.
2656         * NEWS: Announce it.
2657
2658 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2659
2660         * record-btrace.c (btrace_call_history_insn_range): Print
2661         insn range as [begin, end].
2662
2663 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2664
2665         * btrace.h (struct btrace_func_link): New.
2666         (enum btrace_function_flag): New.
2667         (struct btrace_inst): Rename to ...
2668         (struct btrace_insn): ...this. Update all users.
2669         (struct btrace_func) <ibegin, iend>: Remove.
2670         (struct btrace_func_link): New.
2671         (struct btrace_func): Rename to ...
2672         (struct btrace_function): ...this. Update all users.
2673         (struct btrace_function) <segment, flow, up, insn, insn_offset)
2674         (number, level, flags>: New.
2675         (struct btrace_insn_iterator): Rename to ...
2676         (struct btrace_insn_history): ...this.
2677         Update all users.
2678         (struct btrace_insn_iterator, btrace_call_iterator): New.
2679         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2680         (struct btrace_target_info) <begin, end, level>
2681         <insn_history, call_history>: New.
2682         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2683         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2684         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2685         (btrace_call_number, btrace_call_begin, btrace_call_end)
2686         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2687         (btrace_find_function_by_number, btrace_set_insn_history)
2688         (btrace_set_call_history): New.
2689         * btrace.c (btrace_init_insn_iterator)
2690         (btrace_init_func_iterator, compute_itrace): Remove.
2691         (ftrace_print_function_name, ftrace_print_filename)
2692         (ftrace_skip_file): Change
2693         parameter to const.
2694         (ftrace_init_func): Remove.
2695         (ftrace_debug): Use new btrace_function fields.
2696         (ftrace_function_switched): Also consider gaining and
2697         losing symbol information).
2698         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2699         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2700         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2701         New.
2702         (ftrace_new_function): Move. Remove debug print.
2703         (ftrace_update_lines, ftrace_update_insns): New.
2704         (ftrace_update_function): Check for call, ret, and jump.
2705         (compute_ftrace): Renamed to ...
2706         (btrace_compute_ftrace): ...this. Rewritten to compute call
2707         stack.
2708         (btrace_fetch, btrace_clear): Updated.
2709         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2710         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2711         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2712         (btrace_call_number, btrace_call_begin, btrace_call_end)
2713         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2714         (btrace_find_function_by_number, btrace_set_insn_history)
2715         (btrace_set_call_history): New.
2716         * record-btrace.c (require_btrace): Use new btrace thread
2717         info fields.
2718         (record_btrace_info, btrace_insn_history)
2719         (record_btrace_insn_history, record_btrace_insn_history_range):
2720         Use new btrace thread info fields and new iterator.
2721         (btrace_func_history_src_line): Rename to ...
2722         (btrace_call_history_src_line): ...this. Use new btrace
2723         thread info fields.
2724         (btrace_func_history): Rename to ...
2725         (btrace_call_history): ...this. Use new btrace thread info
2726         fields and new iterator.
2727         (record_btrace_call_history, record_btrace_call_history_range):
2728         Use new btrace thread info fields and new iterator.
2729
2730 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2731
2732         * frame.h (frame_id_build_unavailable_stack_special): New.
2733         * frame.c (frame_id_build_unavailable_stack_special): New.
2734
2735 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2736
2737         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2738         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2739         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2740         to gdbarch.
2741         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2742         (i386_insn_is_jump, i386_jmp_p): New.
2743         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2744         insn_is_jump to gdbarch.
2745         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2746         * gdbarch.h: Regenerated.
2747         * gdbarch.c: Regenerated.
2748         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2749         (default_insn_is_jump): New.
2750         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2751         (default_insn_is_jump): New.
2752
2753 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2754
2755         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2756         Change to ...
2757         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
2758         (btrace_read_type) <btrace_read_new>: Change to ...
2759         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
2760
2761 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
2762
2763         * common/linux-btrace.c (linux_read_btrace): Free trace from
2764         previous iteration.
2765
2766 2014-01-15  Doug Evans  <dje@google.com>
2767
2768         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2769         uint32_t.
2770
2771 2014-01-15  Tom Tromey  <tromey@redhat.com>
2772
2773         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2774         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2775         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2776         (set_objfile_main_name): New function.
2777         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2778         language_of_main>: New fields.
2779         (set_objfile_main_name): Declare.
2780         * symtab.c (find_main_name): Loop over objfiles to find the main
2781         name and language.
2782         (set_main_name): Now static.
2783         (get_main_info): Add comment.
2784         * symtab.h (set_main_name): Don't declare.
2785
2786 2014-01-15  Tom Tromey  <tromey@redhat.com>
2787
2788         * symtab.c (main_progspace_key): New global.
2789         (struct main_info): New.
2790         (name_of_main, language_of_main): Remove.
2791         (get_main_info, main_info_cleanup): New function.
2792         (set_main_name, main_name, main_language): Use get_main_info.
2793         (_initialize_symtab): Initialize main_progspace_key.
2794
2795 2014-01-15  Tom Tromey  <tromey@redhat.com>
2796
2797         * dbxread.c (process_one_symbol): Update.
2798         * dwarf2read.c (read_partial_die): Update.
2799         * symfile.c (set_initial_language): Call main_language.
2800         * symtab.c (language_of_main): Now static.
2801         (set_main_name): Add 'lang' parameter.
2802         (find_main_name): Update.
2803         (main_language): New function.
2804         (symtab_observer_executable_changed): Update.
2805         * symtab.h (set_main_name): Update.
2806         (language_of_main): Remove.
2807         (main_language): Declare.
2808
2809 2014-01-15  Tom Tromey  <tromey@redhat.com>
2810
2811         * symfile.c (init_entry_point_info): Use new "initialized" field.
2812         Update.
2813         * objfiles.h (struct entry_point) <initialized>: New field.
2814         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2815         (struct objfile) <ei>: ...here.  Remove.
2816         * objfiles.c (entry_point_address_query): Update.
2817
2818 2014-01-15  Tom Tromey  <tromey@redhat.com>
2819
2820         * objfiles.c (entry_point_address_query): Relocate entry point
2821         address.
2822         (objfile_relocate1): Do not relocate entry point address.
2823         * objfiles.h (struct entry_info) <entry_point>: Update comment.
2824         <the_bfd_section_index>: New field.
2825         * symfile.c (init_entry_point_info): Find the entry point's
2826         section.
2827
2828 2014-01-15  Tom Tromey  <tromey@redhat.com>
2829
2830         * solib-frv.c (enable_break): Use entry_point_address_query.
2831
2832 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
2833
2834         * NEWS: Add note on improved process record-replay on
2835         arm*-linux* targets.
2836
2837 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
2838
2839         * arm-tdep.c (enum arm_record_result): New enum.
2840         (arm_record_unsupported_insn): New function.
2841         (arm_record_coproc_data_proc): Removed.
2842         (thumb2_record_ld_st_multiple): New function.
2843         (thumb2_record_ld_st_dual_ex_tbb): New function.
2844         (thumb2_record_data_proc_sreg_mimm): New function.
2845         (thumb2_record_ps_dest_generic): New function.
2846         (thumb2_record_branch_misc_cntrl): New function.
2847         (thumb2_record_str_single_data): New function.
2848         (thumb2_record_ld_mem_hints): New function.
2849         (thumb2_record_ld_word): New function.
2850         (thumb2_record_lmul_lmla_div): New function.
2851         (thumb2_record_decode_insn_handler): New function.
2852         (decode_insn): Add thumb32 instruction handlers.
2853
2854 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
2855
2856         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2857         (struct arm_linux_record_tdep): Declare.
2858         (arm_canonicalize_syscall): New function.
2859         (arm_all_but_pc_registers_record): New function.
2860         (arm_linux_syscall_record): New function.
2861         (arm_linux_init_abi): Add syscall recording constructs.
2862         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2863         decoding.  (arm_record_coproc_data_proc): Update arm syscall
2864         decoding.
2865         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2866         <arm_syscall_record>: New field.
2867         * configure.tgt (arm*-*-linux*): Add linux-record.o to
2868         gdb_target_obs.
2869
2870 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
2871
2872         * arm-tdep.c (thumb_record_misc): Update to use sp as base
2873         register for push instruction recording.
2874
2875 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
2876
2877         * arm-tdep.c (thumb_record_misc): Update to correct logical
2878         error while recording ldm, ldmia and pop instructions.
2879
2880 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
2881
2882         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2883
2884 2014-01-15  Pedro Alves  <palves@redhat.com>
2885
2886         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2887         (go32_resume, go32_fetch_registers, store_register)
2888         (go32_store_registers, go32_prepare_to_store)
2889         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2890         (go32_create_inferior, go32_can_run, go32_terminal_init)
2891         (go32_terminal_inferior, go32_terminal_ours): Delete forward
2892         declarations.
2893
2894 2014-01-15  Tom Tromey  <tromey@redhat.com>
2895
2896         * target.h (async_callback_ftype): New typedef.
2897         (struct target_ops) <to_async>: Use it.
2898
2899 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
2900
2901         * python/py-value.c (get_field_type): Remove unnecessary curly
2902         braces for single-statement if block.
2903
2904 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
2905
2906         * python/py-type.c (convert_field): Add missing empty line
2907         after declarations.
2908
2909 2014-01-14  Doug Evans  <dje@google.com>
2910
2911         * symfile.h (expand_symtabs_matching): Renamed from
2912         expand_partial_symbol_names.  Update prototype.
2913         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2914         * symfile.c (expand_symtabs_matching): Renamed from
2915         expand_partial_symbol_names.  New args file_matcher, kind.
2916         Rename arg fun to symbol_matcher.
2917         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2918         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2919         ada_expand_partial_symbol_name.
2920         (ada_make_symbol_completion_list): Update to call
2921         expand_symtabs_matching.
2922         (ada_add_global_exceptions): Call expand_symtabs_matching.
2923         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2924         call map_symbol_filenames.
2925         * symtab.c (sources_info): Update to call map_symbol_filenames.
2926         (search_symbols): Call expand_symtabs_matching.
2927         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2928         (default_make_symbol_completion_list_break_on): Update to call
2929         expand_symtabs_matching.
2930         (make_source_files_completion_list): Update to call
2931         map_symbol_filenames.
2932
2933 2014-01-14  Doug Evans  <dje@google.com>
2934
2935         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2936         (expand_symtabs_symbol_matcher_ftype): New typedef.
2937         (quick_symbol_functions.expand_symtabs_matching): Update to use.
2938         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2939         * symfile.c (expand_partial_symbol_names): Update to use
2940         expand_symtabs_symbol_matcher_ftype.
2941         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2942         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2943         Arg name_matcher renamed to symbol_matcher.
2944         * psymtab.c (recursively_search_psymtabs): Update to use
2945         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
2946         sym_matcher.
2947         (expand_symtabs_matching_via_partial): Update to use
2948         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2949         Arg name_matcher renamed to symbol_matcher.
2950
2951 2014-01-14  Doug Evans  <dje@google.com>
2952
2953         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2954         (map_partial_symbol_filenames): Ditto.
2955         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2956         (map_partial_symbol_filenames): Ditto.
2957         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2958         (map_partial_symbol_filenames): Ditto.
2959         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2960         (map_partial_symbol_filenames): Ditto.
2961         * symtab.c: Delete #include "psymtab.h".
2962
2963 2014-01-14  Pedro Alves  <palves@redhat.com>
2964             Tom Tromey  <tromey@redhat.com>
2965
2966         * infrun.c (use_displaced_stepping): Use find_record_target
2967         instead of RECORD_IS_USED.
2968         (adjust_pc_after_break): Use record_full_is_used instead of
2969         RECORD_IS_USED.
2970         * record-btrace.c (record_btrace_open): Call record_preopen
2971         instead of checking RECORD_IS_USED.
2972         * record-full.c (record_full_shortname)
2973         (record_full_core_shortname): New globals.
2974         (record_full_is_used): New function.
2975         (find_full_open): Call record_preopen instead of checking
2976         RECORD_IS_USED.
2977         (init_record_full_ops): Set the target's shortname to
2978         record_full_shortname.
2979         (init_record_full_core_ops): Set the target's shortname to
2980         record_full_core_shortname.
2981         * record-full.h (record_full_is_used): Declare.
2982         * record.c (find_record_target): Make extern.
2983         (record_preopen): New function.
2984         * record.h (RECORD_IS_USED): Delete macro.
2985         (find_record_target, record_preopen): Declare functions.
2986
2987 2014-01-14  Yao Qi  <yao@codesourcery.com>
2988
2989         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2990         'len''s type to ULONGEST.
2991         (core_xfer_shared_libraries_aix): Likewise.
2992         * gdbarch.c, gdbarch.h: Regenerated.
2993         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2994         Change type of 'len' to ULONGEST.
2995         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2996         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2997
2998 2014-01-14  Yao Qi  <yao@codesourcery.com>
2999
3000         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3001         type of 'len' to ULONGEST.
3002         (linux_xfer_osdata_processgroups): Likewise.
3003         (linux_xfer_osdata_threads): Likewise.
3004         (linux_xfer_osdata_fds): Likewise.
3005         (linux_xfer_osdata_isockets): Likewise.
3006         (linux_xfer_osdata_shm): Likewise.
3007         (linux_xfer_osdata_sem): Likewise.
3008         (linux_xfer_osdata_msg): Likewise.
3009         (linux_common_xfer_osdata): Likewise.
3010         (struct osdata_type) <getter>: Likewise.
3011         * common/linux-osdata.h (linux_common_xfer_osdata): Update
3012         the declaration.
3013
3014 2014-01-14  Yao Qi  <yao@codesourcery.com>
3015
3016         * target.h (target_xfer_partial_ftype): Update.
3017         (struct target_ops) <to_xfer_partial>: Change 'len' type to
3018         ULONGEST.
3019         * aix-thread.c (aix_thread_xfer_partial): Change type of
3020         argument 'len' to ULONGEST.
3021         * auxv.c (procfs_xfer_auxv): Likewise.
3022         (ld_so_xfer_auxv): Likewise.
3023         (memory_xfer_auxv): Likewise.
3024         * bfd-target.c (target_bfd_xfer_partial): Likewise.
3025         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3026         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3027         * corelow.c (core_xfer_partial): Likewise.
3028         * ctf.c (ctf_xfer_partial): Likewise.
3029         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
3030         '%u'.
3031         (darwin_read_dyld_info): Likewise.
3032         (darwin_xfer_partial): Likewise.
3033         * exec.c (section_table_xfer_memory_partial): Likewise.
3034         (exec_xfer_partial): Likewise.
3035         * exec.h (section_table_xfer_memory_partial): Update
3036         declaration.
3037         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
3038         instead of plongest.
3039         (gnu_xfer_partial): Likewise.
3040         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3041         (ia64_hpux_xfer_solib_got): Likewise.
3042         (ia64_hpux_xfer_partial): Likewise.
3043         * ia64-linux-nat.c (ia64_linux_xfer_partial):
3044         * inf-ptrace.c (inf_ptrace_xfer_partial):
3045         * inf-ttrace.c (inf_ttrace_xfer_partial):
3046         * linux-nat.c (linux_xfer_siginfo): Likewise.
3047         (linux_nat_xfer_partial): Likewise.
3048         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3049         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3050         * monitor.c (monitor_xfer_memory): Likewise.
3051         (monitor_xfer_partial): Likewise.
3052         * procfs.c (procfs_xfer_partial): Likewise.
3053         * record-full.c (record_full_xfer_partial): Likewise.
3054         (record_full_core_xfer_partial): Likewise.
3055         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
3056         instead of plongest.
3057         (gdbsim_xfer_partial): Likewise.
3058         * remote.c (remote_xfer_partial): Likewise.
3059         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3060         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3061         declaration.
3062         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3063         (rs6000_xfer_shared_libraries): Likewise.
3064         * sol-thread.c (sol_thread_xfer_partial): Likewise.
3065         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3066         (sparc_xfer_partial): Likewise.
3067         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3068         (spu_xfer_partial): Likewise.
3069         * spu-multiarch.c (spu_xfer_partial): Likewise.
3070         * target.c (target_read_live_memory): Likewise.
3071         (memory_xfer_live_readonly_partial): Likewise.
3072         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3073         (target_xfer_partial, default_xfer_partial): Likewise.
3074         (current_xfer_partial): Likewise.
3075         * tracepoint.c (tfile_xfer_partial): Likewise.
3076         * windows-nat.c (windows_xfer_memory): Likewise.  Call
3077         pulongest instead of plongest.
3078         (windows_xfer_partial): Likewise.
3079         (windows_xfer_shared_libraries): Likewise.
3080
3081 2014-01-14  Yao Qi  <yao@codesourcery.com>
3082
3083         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3084         target_xfer_partial_ftype.
3085
3086 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
3087
3088         PR python/15464
3089         PR python/16113
3090         * valops.c (value_struct_elt_bitpos): New function
3091         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3092         object to 'None' if the field name is an empty string ("").
3093         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3094         attribute to look for a field when 'name' is 'None'.
3095         (get_field_type): New function
3096
3097 2014-01-13  Doug Evans  <dje@google.com>
3098
3099         PR symtab/16426
3100         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3101         (try_open_dwop_file): Ditto.
3102         * gdb_bfd.c: #include "vec.h".
3103         (bfdp): New typedef.
3104         (struct gdb_bfd_data): New member included_bfds.
3105         (gdb_bfd_unref): Unref all included bfds.
3106         (gdb_bfd_record_inclusion): New function.
3107         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3108
3109 2014-01-13  Tom Tromey  <tromey@redhat.com>
3110
3111         * gdbcore.h (deprecated_core_resize_section_table): Remove.
3112
3113 2014-01-13  Tom Tromey  <tromey@redhat.com>
3114
3115         * defs.h (use_windows): Remove.
3116         * gdb.c (main): Update.
3117         * main.c (captured_main, gdb_main): Update.
3118         * main.h (struct captured_main_args) <use_windows>: Remove.
3119         * top.c (use_windows): Remove.
3120
3121 2014-01-13  Tom Tromey  <tromey@redhat.com>
3122
3123         * defs.h (deprecated_flush_hook): Remove.
3124
3125 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3126
3127         PR threads/16216
3128         * linux-thread-db.c (try_thread_db_load): Add parameter
3129         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
3130         (try_thread_db_load_from_pdir_1): Move it there from here.
3131         (try_thread_db_load_from_sdir): Update caller.
3132         (try_thread_db_load_from_dir): Move it there from here.
3133
3134 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
3135
3136         * regformats/regdat.sh: Always rewrite the register file.
3137
3138 2014-01-13  Pedro Alves  <palves@redhat.com>
3139
3140         * Makefile.in (CHECK_HEADERS): New variable.
3141         (check-headers:): New rule.
3142
3143 2014-01-13  Tom Tromey  <tromey@redhat.com>
3144
3145         * cli/cli-setshow.c (do_set_command): Update.
3146         * defs.h (deprecated_set_hook): Remove.
3147         * top.c (deprecated_set_hook): Remove.
3148
3149 2014-01-13  Pedro Alves  <palves@redhat.com>
3150
3151         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3152         the tracepoint if the PC is a pseudo-register.
3153
3154 2014-01-13  Tom Tromey  <tromey@redhat.com>
3155
3156         * defs.h (XCALLOC): Remove.
3157         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3158         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3159         * dwarf2loc.c (allocate_piece_closure): Likewise.
3160         * elfread.c (elf_symfile_segments): Likewise.
3161         (elf_symfile_segments): Likewise.
3162         * gdbtypes.c (copy_type_recursive): Likewise.
3163         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3164         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3165         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3166         XCALLOC.
3167         * mt-tdep.c (mt_gdbarch_init): Likewise.
3168         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3169         XCALLOC.
3170         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3171         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3172         * registry.c (registry_alloc_data): Likewise.
3173         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3174         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3175         * serial.c (serial_fdopen_ops): Likewise.
3176         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3177         XCALLOC.
3178         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3179         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3180         not XCALLOC.
3181
3182 2014-01-13  Tom Tromey  <tromey@redhat.com>
3183
3184         * defs.h (XMALLOC): Remove.
3185         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3186         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3187         * cli-out.c (struct ui_out *): Likewise.
3188         * cli/cli-dump.c (add_dump_command): Likewise.
3189         (add_dump_command): Likewise.
3190         * complaints.c (get_complaints): Likewise.
3191         (find_complaint): Likewise.
3192         * dwarf2-frame.c (execute_cfa_program): Likewise.
3193         * dwarf2read.c (abbrev_table_read_table): Likewise.
3194         * gdbarch.sh: Likewise.
3195         * gdbarch.c: Rebuild.
3196         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3197         * interps.c (interp_new): Likewise.
3198         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3199         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3200         * mi/mi-console.c (mi_console_file_new): Likewise.
3201         * mi/mi-interp.c (mi_interpreter_init): Likewise.
3202         * mi/mi-out.c (mi_out_new): Likewise.
3203         * mi/mi-parse.c (mi_parse): Likewise.
3204         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3205         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3206         * observer.c (xalloc_observer_list_node): Likewise.
3207         * regcache.c (regcache_xmalloc_1): Likewise.
3208         * reggroups.c (reggroup_new): Likewise.
3209         (_initialize_reggroup): Likewise.
3210         * registry.c (register_data_with_cleanup): Likewise.
3211         * remote.c (remote_notif_stop_alloc_reply): Likewise.
3212         * ser-base.c (serial_ttystate): Likewise.
3213         * ser-mingw.c (make_pipe_state): Likewise.
3214         * ser-pipe.c (pipe_open): Likewise.
3215         * serial.c (serial_open): Likewise.
3216         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3217         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3218         (tui_alloc_win_info): Likewise.
3219         (tui_add_content_elements): Likewise.
3220         * tui/tui-file.c (tui_file_new): Likewise.
3221         * tui/tui-out.c (tui_out_new): Likewise.
3222         * ui-file.c (mem_file_new): Likewise.
3223         * ui-out.c (push_level): Likewise.
3224         (make_cleanup_ui_out_end): Likewise.
3225         (append_header_to_list): Likewise.
3226         (ui_out_new): Likewise.
3227         * user-regs.c (user_reg_add_builtin): Likewise.
3228
3229 2014-01-13  Tom Tromey  <tromey@redhat.com>
3230
3231         * defs.h (XZALLOC): Remove.
3232         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3233         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3234         (get_ada_tasks_inferior_data): Likewise.
3235         * auto-load.c (get_auto_load_pspace_data): Likewise.
3236         * auxv.c (get_auxv_inferior_data): Likewise.
3237         * bfd-target.c (target_bfd_reopen): Likewise.
3238         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3239         (deprecated_insert_raw_breakpoint): Likewise.
3240         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3241         * corelow.c (core_open): Likewise.
3242         * darwin-nat.c (darwin_check_new_threads): Likewise.
3243         (darwin_attach_pid): Likewise.
3244         * dummy-frame.c (dummy_frame_push): Likewise.
3245         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3246         * dwarf2loc.c (allocate_piece_closure): Likewise.
3247         * elfread.c (elf_symfile_segments): Likewise.
3248         * eval.c (ptrmath_type_p): Likewise.
3249         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3250         * gdbtypes.c (alloc_type_arch): Likewise.
3251         (alloc_type_instance): Likewise.
3252         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3253         * inf-child.c (inf_child_can_use_agent): Likewise.
3254         * inflow.c (get_inflow_inferior_data): Likewise.
3255         * infrun.c (save_infcall_suspend_state): Likewise.
3256         * jit.c (jit_reader_load): Likewise.
3257         (get_jit_objfile_data): Likewise.
3258         (get_jit_program_space_data): Likewise.
3259         (jit_object_open_impl): Likewise.
3260         (jit_symtab_open_impl): Likewise.
3261         (jit_block_open_impl): Likewise.
3262         (jit_frame_sniffer): Likewise.
3263         * linux-fork.c (add_fork): Likewise.
3264         * maint.c (make_command_stats_cleanup): Likewise.
3265         * objfiles.c (get_objfile_pspace_data): Likewise.
3266         * opencl-lang.c (struct lval_closure): Likewise.
3267         * osdata.c (osdata_start_osdata): Likewise.
3268         * progspace.c (new_address_space): Likewise.
3269         (add_program_space): Likewise.
3270         * remote-sim.c (get_sim_inferior_data): Likewise.
3271         * sh-tdep.c (sh_gdbarch_init): Likewise.
3272         * skip.c (Ignore): Likewise.
3273         (skip_delete_command): Likewise.
3274         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3275         (library_list_start_library): Likewise.
3276         (solib_aix_current_sos): Likewise.
3277         * solib-darwin.c (get_darwin_info): Likewise.
3278         (darwin_current_sos): Likewise.
3279         * solib-dsbt.c (get_dsbt_info): Likewise.
3280         * solib-ia64-hpux.c (new_so_list): Likewise.
3281         (ia64_hpux_get_solib_linkage_addr): Likewise.
3282         * solib-spu.c (append_ocl_sos): Likewise.
3283         (spu_current_sos): Likewise.
3284         * solib-svr4.c (get_svr4_info): Likewise.
3285         (svr4_keep_data_in_core): Likewise.
3286         (library_list_start_library): Likewise.
3287         (svr4_default_sos): Likewise.
3288         (svr4_read_so_list): Likewise.
3289         * solib-target.c (library_list_start_library): Likewise.
3290         (solib_target_current_sos): Likewise.
3291         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3292         * symfile-debug.c (install_symfile_debug_logging): Likewise.
3293         * symfile.c (default_symfile_segments): Likewise.
3294         * target-descriptions.c (tdesc_data_init): Likewise.
3295         (tdesc_create_reg): Likewise.
3296         (struct tdesc_type *): Likewise.
3297         (tdesc_create_vector): Likewise.
3298         (tdesc_set_struct_size): Likewise.
3299         (struct tdesc_type *): Likewise.
3300         (tdesc_free_feature): Likewise.
3301         (tdesc_create_feature): Likewise.
3302         * windows-nat.c (windows_add_thread): Likewise.
3303         (windows_make_so): Likewise.
3304         * xml-support.c (gdb_xml_body_text): Likewise.
3305         (gdb_xml_create_parser_and_cleanup): Likewise.
3306         (xml_process_xincludes): Likewise.
3307         * xml-syscall.c (allocate_syscalls_info): Likewise.
3308         (syscall_create_syscall_desc): Likewise.
3309
3310 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
3311
3312         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3313         function, with code from i386_stap_parse_special_token.
3314         (i386_stap_parse_special_token_three_arg_disp): Likewise.
3315         (i386_stap_parse_special_token): Move code to the two functions
3316         above; simplify it.
3317
3318 2014-01-09  Pedro Alves  <palves@redhat.com>
3319             Hui Zhu  <hui@codesourcery.com>
3320
3321         PR gdb/16101
3322         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3323         bp_err_string.  Don't mark the location shlib_disabled if the
3324         error thrown wasn't a generic or memory error.  Catch errors
3325         thrown while inserting breakpoints in overlayed code.  Output
3326         error message of software breakpoints.
3327         * remote.c (remote_insert_breakpoint): If this breakpoint has
3328         target-side commands but this stub doesn't support Z0 packets,
3329         throw NOT_SUPPORTED_ERROR error.
3330         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3331         * target.h (target_insert_breakpoint): Extend comment.
3332         (target_insert_hw_breakpoint): Add comment.
3333
3334 2014-01-08  Pedro Alves  <palves@redhat.com>
3335
3336         * remote.c (remote_add_thread): Add threads silently if starting
3337         up.
3338         (remote_notice_new_inferior): If in all-stop, and starting up,
3339         don't call notice_new_inferior.
3340         (get_current_thread): New function, factored out from ...
3341         (add_current_inferior_and_thread): ... this.  Adjust.
3342         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
3343         found any thread, then select the remote's current thread as GDB's
3344         current thread too.
3345
3346 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
3347
3348         * NEWS: Create a new section for the next release branch.
3349         Rename the section of the current branch, now that it has
3350         been cut.
3351
3352 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
3353
3354         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3355         * version.in: Bump version to 7.7.50.DATE-cvs.
3356
3357 2014-01-08  Yao Qi  <yao@codesourcery.com>
3358
3359         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3360         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
3361         (spu_xfer_partial): Cast 'buf' to 'const char *'.
3362
3363 2014-01-08  Yao Qi  <yao@codesourcery.com>
3364
3365         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3366         return value of bfd_get_filename to symbol_file_add_from_bfd.
3367
3368 2014-01-08  Pierre Muller  <muller@sourceware.org>
3369
3370         Fix PR16201.
3371         * coff-pe-read.c (struct read_pe_section_data): Add index field.
3372         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3373         to prim_record_mininal_symbol_and_info.
3374         (add_pe_forwarded_sym): Use known section number of forwarded symbol
3375         in call to prim_record_minimal_symbol_and_info.
3376         (read_pe_exported_syms): Set index field of section_data.
3377
3378 2014-01-07  Andrew Pinski  <apinski@cavium.com>
3379
3380         * features/aarch64-core.xml (cpsr): Change to be 64bit.
3381         * features/aarch64.c: Regenerate.
3382
3383 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
3384
3385         * target.c (return_null): Define.
3386         (update_current_target): Use it instead of return_zero for
3387         functions that return a pointer.
3388
3389 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3390
3391         * source.c (add_path): Fix check for duplicated paths in the previously
3392         included paths.
3393
3394 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
3395
3396         * ada-lang.c: Remove duplicated include statements.
3397         * alphabsd-nat.c: Ditto.
3398         * amd64-darwin-tdep.c: Ditto.
3399         * amd64fbsd-nat.c: Ditto.
3400         * auto-load.c: Ditto.
3401         * ax-gdb.c: Ditto.
3402         * breakpoint.c: Ditto.
3403         * dbxread.c: Ditto.
3404         * fork-child.c: Ditto.
3405         * gdb_usleep.c: Ditto.
3406         * i386-darwin-tdep.c: Ditto.
3407         * i386fbsd-nat.c: Ditto.
3408         * infcmd.c: Ditto.
3409         * inferior.c: Ditto.
3410         * jv-lang.c: Ditto.
3411         * linux-nat.c: Ditto.
3412         * linux-tdep.c: Ditto.
3413         * m68kbsd-nat.c: Ditto.
3414         * m68klinux-nat.c: Ditto.
3415         * microblaze-tdep.c: Ditto.
3416         * mips-linux-tdep.c: Ditto.
3417         * mn10300-tdep.c: Ditto.
3418         * nto-tdep.c: Ditto.
3419         * opencl-lang.c: Ditto.
3420         * osdata.c: Ditto.
3421         * printcmd.c: Ditto.
3422         * regcache.c: Ditto.
3423         * remote-m32r-sdi.c: Ditto.
3424         * remote.c: Ditto.
3425         * symfile.c: Ditto.
3426         * symtab.c: Ditto.
3427         * tilegx-linux-nat.c: Ditto.
3428         * tilegx-tdep.c: Ditto.
3429         * tracepoint.c: Ditto.
3430         * valops.c: Ditto.
3431         * vaxbsd-nat.c: Ditto.
3432         * windows-nat.c: Ditto.
3433         * xtensa-tdep.c: Ditto.
3434
3435 2014-01-07  Yao Qi  <yao@codesourcery.com>
3436
3437         * spu-linux-nat.c (_initialize_spu_nat): Declare.
3438
3439 2014-01-07  Yao Qi  <yao@codesourcery.com>
3440             Joel Brobecker  <brobecker@adacore.com>
3441
3442         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3443         (pdc_write_regs): Likewise.
3444         (fetch_regs_kernel_thread): Likewise.
3445         (store_regs_kernel_thread): Likewise.
3446
3447 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3448
3449         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3450         tagged type objects to their actual type.
3451
3452 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3453
3454         * ada-valprint.c (print_field_values): Add "language" parameter.
3455         Update calls to print_field_values and print_variant_part.
3456         Pass new parameter "language" in call to val_print instead
3457         of "current_language".  Replace call to ada_val_print by call
3458         to val_print.
3459         (print_variant_part): Add "language" parameter.
3460         (ada_val_print_struct_union): Update call to print_field_values.
3461
3462 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3463
3464         * ada-valprint.c (ui_memcpy): Delete.
3465         (ada_print_floating): Update documentation.  Add empty line
3466         between between function documentation and implementation.
3467         Delete variable "buffer".  Use ui_file_xstrdup in place of
3468         ui_file_put.  Minor adjustments following this change.
3469
3470 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3471
3472         * ada-valprint.c (ada_val_print_string): New function,
3473         extracted from ada_val_print_array.
3474         (ada_val_print_array): Replace extracted code by call
3475         to ada_val_print_string followed by a return.  Move
3476         "else" branch to the function's top block.
3477
3478 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3479
3480         * ada-valprint.c (ada_val_print_array): Move implementation
3481         down.  Rename parameter "offset" and "val" into "offset_aligned"
3482         and "original_value" respectively.  Add parameter "offset".
3483
3484 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3485
3486         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3487         re-organizing the code. Change the "???" message printed
3488         when target type is a TYPE_CODE_UNDEF into
3489         "<ref to undefined type>".
3490
3491 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3492
3493         * ada-valprint.c (print_record): Delete, implementation inlined...
3494         (ada_val_print_struct_union): ... here.  Remove call to
3495         ada_check_typedef in inlined implementation.
3496
3497 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3498
3499         * ada-valprint.c (ada_val_print_gnat_array): New function,
3500         extracted from ada_val_print_1;
3501         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3502         (ada_val_print_flt, ada_val_print_struct_union)
3503         (ada_val_print_ref): Likewise.
3504         (ada_val_print_1): Delete variables i and elttype.
3505         Replace extracted-out code by call to corresponding
3506         new functions.
3507
3508 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3509
3510         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3511
3512 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3513
3514         * ada-valprint.c (ada_val_print_1): Replace calls to
3515         ada_val_print_1 by calls to val_print.
3516
3517 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3518
3519         * ada-valprint.c (ada_val_print_1): Add parameter "language".
3520         Update calls to self accordingly.  Replace calls to c_val_print
3521         by calls to val_print.
3522
3523 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3524
3525         * ada-valprint.c (print_record): Delete declaration.
3526         (adjust_type_signedness, ada_val_print_1): Likewise.
3527         (ada_val_print): Move function implementation down.
3528         (print_variant_part, print_field_values, print_record):
3529         Move function implementation up.
3530
3531 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
3532
3533         * python/py-type.c (typy_get_name): New function.
3534         (type_object_getset): Add entry for attribute "name".
3535         * NEWS: Add entry mentioning this new attribute.
3536
3537 2014-01-07  Yao Qi  <yao@codesourcery.com>
3538
3539         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3540         statement.
3541
3542 2014-01-07  Yao Qi  <yao@codesourcery.com>
3543
3544         * gnu-nat.c (info_port_rights): Add qualifier const to
3545         argument args.
3546
3547 2014-01-07  Yao Qi  <yao@codesourcery.com>
3548
3549         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3550
3551 2014-01-07  Yao Qi  <yao@codesourcery.com>
3552
3553         * gnu-nat.c (make_inf) Update declaration.
3554         (make_inf): Make it static.
3555         (inf_set_traced): Likewise.
3556         (inf_port_to_thread, inf_task_died_status): Likewise.
3557
3558 2014-01-07  Yao Qi  <yao@codesourcery.com>
3559
3560         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3561
3562 2014-01-07  Yao Qi  <yao@codesourcery.com>
3563
3564         * gnu-nat.c (_initialize_gnu_nat): Declare.
3565
3566 2014-01-07  Yao Qi  <yao@codesourcery.com>
3567
3568         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3569         'enum bfd_endian'.
3570         (struct gdbarch_info) <byte_order>: Change type to
3571         'enum bfd_endian'.
3572         <byte_order_for_code>: Likewise.
3573         * gdbarch.c, gdbarch.h: Regenerated.
3574
3575 2014-01-06  Sasha Smundak  <asmundak@google.com>
3576
3577         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3578
3579 2014-01-06  Tom Tromey  <tromey@redhat.com>
3580
3581         * doublest.c (convert_doublest_to_floatformat): Use const, not
3582         CONST.
3583         * somread.c (som_symtab_read): Likewise.
3584
3585 2014-01-07  Hui Zhu  <hui@codesourcery.com>
3586
3587         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3588         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3589         (gdb_bfd_fopen): Ditto.
3590         (gdb_bfd_openr): Ditto.
3591         (gdb_bfd_openw): Ditto.
3592         (gdb_bfd_openr_iovec): Ditto.
3593         (gdb_bfd_fdopenr): Ditto.
3594         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3595         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3596         with xstrdup.
3597         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3598         with xstrdup.
3599         * symfile-mem.c (symbol_file_add_from_memory): Removed
3600         gdb_bfd_stash_filename.
3601
3602 2014-01-03  Doug Evans  <dje@google.com>
3603
3604         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3605         output.
3606
3607 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
3608
3609         Update year range in copyright notice of all files.
3610
3611 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
3612
3613         * top.c (print_gdb_version): Set copyright year to 2014.
3614
3615 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
3616
3617         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3618
3619 For older changes see ChangeLog-2013.
3620 \f
3621 Local Variables:
3622 mode: change-log
3623 left-margin: 8
3624 fill-column: 74
3625 version-control: never
3626 coding: utf-8
3627 End: