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