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