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