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