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