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