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