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