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