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