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