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