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