1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5 (target_static_tracepoint_marker_at): Add argument.
6 * target.c (update_current_target): Update.
7 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10 2014-02-19 Tom Tromey <tromey@redhat.com>
12 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13 (target_set_permissions): Add argument.
14 * target.c (update_current_target): Update.
15 * remote.c (remote_set_permissions): Add 'self' argument.
16 (remote_start_remote): Update.
18 2014-02-19 Tom Tromey <tromey@redhat.com>
20 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
21 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
22 (target_get_tib_address): Add argument.
23 * target.c (update_current_target): Update.
24 * remote.c (remote_get_tib_address): Add 'self' argument.
26 2014-02-19 Tom Tromey <tromey@redhat.com>
28 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
29 (target_set_trace_notes): Add argument.
30 * target.c (update_current_target): Update.
31 * remote.c (remote_set_trace_notes): Add 'self' argument.
33 2014-02-19 Tom Tromey <tromey@redhat.com>
35 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
37 (target_set_trace_buffer_size): Add argument.
38 * target.c (update_current_target): Update.
39 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
41 2014-02-19 Tom Tromey <tromey@redhat.com>
43 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
45 (target_set_circular_trace_buffer): Add argument.
46 * target.c (update_current_target): Update.
47 * remote.c (remote_set_circular_trace_buffer): Add 'self'
50 2014-02-19 Tom Tromey <tromey@redhat.com>
52 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
54 (target_set_disconnected_tracing): Add argument.
55 * target.c (update_current_target): Update.
56 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
58 2014-02-19 Tom Tromey <tromey@redhat.com>
60 * target.h (struct target_ops)
61 <to_get_min_fast_tracepoint_insn_len>: Add argument.
62 (target_get_min_fast_tracepoint_insn_len): Add argument.
63 * target.c (update_current_target): Update.
64 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
67 2014-02-19 Tom Tromey <tromey@redhat.com>
69 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
71 (target_get_raw_trace_data): Add argument.
72 * target.c (update_current_target): Update.
73 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
75 2014-02-19 Tom Tromey <tromey@redhat.com>
77 * target.h (struct target_ops) <to_upload_trace_state_variables>:
79 (target_upload_trace_state_variables): Add argument.
80 * target.c (update_current_target): Update.
81 * remote.c (remote_upload_trace_state_variables): Add 'self'
83 (remote_start_remote): Update.
85 2014-02-19 Tom Tromey <tromey@redhat.com>
87 * target.h (struct target_ops) <to_upload_tracepoints>: Add
89 (target_upload_tracepoints): Add argument.
90 * target.c (update_current_target): Update.
91 * remote.c (remote_upload_tracepoints): Add 'self' argument.
92 (remote_start_remote): Update.
94 2014-02-19 Tom Tromey <tromey@redhat.com>
96 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
97 (target_save_trace_data): Add argument.
98 * target.c (update_current_target): Update.
99 * remote.c (remote_save_trace_data): Add 'self' argument.
101 2014-02-19 Tom Tromey <tromey@redhat.com>
103 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
105 * target.h (struct target_ops)
106 <to_get_trace_state_variable_value>: Add argument.
107 (target_get_trace_state_variable_value): Add argument.
108 * target.c (update_current_target): Update.
109 * remote.c (remote_get_trace_state_variable_value): Add 'self'
111 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
113 2014-02-19 Tom Tromey <tromey@redhat.com>
115 * tracepoint.c (tfile_trace_find): Add 'self' argument.
116 * target.h (struct target_ops) <to_trace_find>: Add argument.
117 (target_trace_find): Add argument.
118 * target.c (update_current_target): Update.
119 * remote.c (remote_trace_find): Add 'self' argument.
120 * ctf.c (ctf_trace_find): Add 'self' argument.
122 2014-02-19 Tom Tromey <tromey@redhat.com>
124 * target.h (struct target_ops) <to_trace_stop>: Add argument.
125 (target_trace_stop): Add argument.
126 * target.c (update_current_target): Update.
127 * remote.c (remote_trace_stop): Add 'self' argument.
129 2014-02-19 Tom Tromey <tromey@redhat.com>
131 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
132 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
134 (target_get_tracepoint_status): Add argument.
135 * target.c (update_current_target): Update.
136 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
138 2014-02-19 Tom Tromey <tromey@redhat.com>
140 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
141 * target.h (struct target_ops) <to_get_trace_status>: Add
143 (target_get_trace_status): Add argument.
144 * target.c (update_current_target): Update.
145 * remote.c (remote_get_trace_status): Add 'self' argument.
146 (remote_start_remote, remote_can_download_tracepoint): Update.
147 * ctf.c (ctf_get_trace_status): Add 'self' argument.
149 2014-02-19 Tom Tromey <tromey@redhat.com>
151 * target.h (struct target_ops) <to_trace_start>: Add argument.
152 (target_trace_start): Add argument.
153 * target.c (update_current_target): Update.
154 * remote.c (remote_trace_start): Add 'self' argument.
156 2014-02-19 Tom Tromey <tromey@redhat.com>
158 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
160 (target_trace_set_readonly_regions): Add argument.
161 * target.c (update_current_target): Update.
162 * remote.c (remote_trace_set_readonly_regions): Add 'self'
165 2014-02-19 Tom Tromey <tromey@redhat.com>
167 * target.h (struct target_ops) <to_disable_tracepoint>: Add
169 (target_disable_tracepoint): Add argument.
170 * target.c (update_current_target): Update.
171 * remote.c (remote_disable_tracepoint): Add 'self' argument.
173 2014-02-19 Tom Tromey <tromey@redhat.com>
175 * target.h (struct target_ops) <to_enable_tracepoint>: Add
177 (target_enable_tracepoint): Add argument.
178 * target.c (update_current_target): Update.
179 * remote.c (remote_enable_tracepoint): Add 'self' argument.
181 2014-02-19 Tom Tromey <tromey@redhat.com>
183 * target.h (struct target_ops) <to_download_trace_state_variable>:
185 (target_download_trace_state_variable): Add argument.
186 * target.c (update_current_target): Update.
187 * remote.c (remote_download_trace_state_variable): Add 'self'
190 2014-02-19 Tom Tromey <tromey@redhat.com>
192 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
194 (target_can_download_tracepoint): Add argument.
195 * target.c (update_current_target): Update.
196 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
198 2014-02-19 Tom Tromey <tromey@redhat.com>
200 * target.h (struct target_ops) <to_download_tracepoint>: Add
202 (target_download_tracepoint): Add argument.
203 * target.c (update_current_target): Update.
204 * remote.c (remote_download_tracepoint): Add 'self' argument.
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (struct target_ops) <to_trace_init>: Add argument.
209 (target_trace_init): Add argument.
210 * target.c (update_current_target): Update.
211 * remote.c (remote_trace_init): Add 'self' argument.
213 2014-02-19 Tom Tromey <tromey@redhat.com>
215 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
216 * target.c (target_fileio_readlink): Add argument.
217 * remote.c (remote_hostio_readlink): Add 'self' argument.
218 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
220 2014-02-19 Tom Tromey <tromey@redhat.com>
222 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
223 * target.c (target_fileio_unlink): Add argument.
224 * remote.c (remote_hostio_unlink): Add 'self' argument.
225 (remote_file_delete): Update.
226 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
228 2014-02-19 Tom Tromey <tromey@redhat.com>
230 * target.h (struct target_ops) <to_fileio_close>: Add argument.
231 * target.c (target_fileio_close): Add argument.
232 * remote.c (remote_hostio_close): Add 'self' argument.
233 (remote_hostio_close_cleanup): Update.
234 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
236 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
238 2014-02-19 Tom Tromey <tromey@redhat.com>
240 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
241 * target.c (target_fileio_pread): Add argument.
242 * remote.c (remote_hostio_pread): Add 'self' argument.
243 (remote_bfd_iovec_pread, remote_file_get): Update.
244 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
246 2014-02-19 Tom Tromey <tromey@redhat.com>
248 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
249 * target.c (target_fileio_pwrite): Add argument.
250 * remote.c (remote_hostio_pwrite): Add 'self' argument.
251 (remote_file_put): Update.
252 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
254 2014-02-19 Tom Tromey <tromey@redhat.com>
256 * target.h (struct target_ops) <to_fileio_open>: Add argument.
257 * target.c (target_fileio_open): Add argument.
258 * remote.c (remote_hostio_open): Add 'self' argument.
259 (remote_bfd_iovec_open): Add 'self' argument.
260 (remote_file_put): Add 'self' argument.
261 (remote_file_get): Add 'self' argument.
262 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
264 2014-02-19 Tom Tromey <tromey@redhat.com>
266 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
268 (target_can_run_breakpoint_commands): Add argument.
269 * target.c (update_current_target): Update.
270 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
272 (remote_insert_breakpoint): Add 'self' argument.
273 (remote_insert_hw_breakpoint): Add 'self' argument.
274 (remote_can_run_breakpoint_commands): Add 'self' argument.
276 2014-02-19 Tom Tromey <tromey@redhat.com>
278 * target.h (struct target_ops)
279 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
280 (target_supports_evaluation_of_breakpoint_conditions): Add
282 * target.c (update_current_target): Update.
283 * remote.c (remote_supports_cond_breakpoints): Add 'self'
285 (remote_insert_breakpoint): Add 'self' argument.
286 (remote_insert_hw_breakpoint): Add 'self' argument.
287 (remote_supports_cond_breakpoints): Add 'self' argument.
289 2014-02-19 Tom Tromey <tromey@redhat.com>
291 * target.h (struct target_ops) <to_supports_string_tracing>: Add
293 (target_supports_string_tracing): Add argument.
294 * target.c (update_current_target): Update.
295 * remote.c (remote_supports_string_tracing): Add 'self' argument.
297 2014-02-19 Tom Tromey <tromey@redhat.com>
299 * target.h (struct target_ops)
300 <to_supports_disable_randomization>: Add argument.
301 * target.c (find_default_supports_disable_randomization): Add
303 (target_supports_disable_randomization): Add argument.
304 (find_default_supports_disable_randomization): Add 'self'
306 * remote.c (extended_remote_supports_disable_randomization): Add
308 (remote_supports_disable_randomization): Add 'self' argument.
309 (extended_remote_create_inferior): Update.
310 * linux-nat.c (linux_nat_supports_disable_randomization): Add
313 2014-02-19 Tom Tromey <tromey@redhat.com>
315 * target.h (struct target_ops)
316 <to_supports_enable_disable_tracepoint>: Add argument.
317 (target_supports_enable_disable_tracepoint): Add argument.
318 * target.c (update_current_target): Update.
319 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
322 2014-02-19 Tom Tromey <tromey@redhat.com>
324 * target.h (struct target_ops) <to_supports_multi_process>: Add
326 (target_supports_multi_process): Add argument.
327 * target.c (update_current_target): Update.
328 * remote.c (remote_supports_multi_process): Add 'self' argument.
329 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
331 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
334 2014-02-19 Tom Tromey <tromey@redhat.com>
336 * target.h (struct target_ops) <to_execution_direction>: Add
338 (target_execution_direction): Add argument.
339 * target.c (default_execution_direction): Add 'self' argument.
340 * record-full.c (record_full_execution_direction): Add 'self'
343 2014-02-19 Tom Tromey <tromey@redhat.com>
345 * target.h (struct target_ops) <to_can_execute_reverse>: Add
347 (target_can_execute_reverse): Add argument.
348 * remote.c (remote_can_execute_reverse): Add 'self' argument.
349 * record-full.c (record_full_can_execute_reverse): Add 'self'
351 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
354 2014-02-19 Tom Tromey <tromey@redhat.com>
356 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
357 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
359 (target_get_ada_task_ptid): Add argument.
360 * target.c (update_current_target): Update.
361 (default_get_ada_task_ptid): Add 'self' argument.
362 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
363 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
364 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
366 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
368 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
370 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
372 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
373 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
376 2014-02-19 Tom Tromey <tromey@redhat.com>
378 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
379 (target_goto_bookmark): Add argument.
380 * target.c (dummy_goto_bookmark): Add 'self' argument.
381 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
383 2014-02-19 Tom Tromey <tromey@redhat.com>
385 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
386 (target_get_bookmark): Add argument.
387 * target.c (dummy_get_bookmark): Add 'self' argument.
388 * record-full.c (record_full_get_bookmark): Add 'self' argument.
390 2014-02-19 Tom Tromey <tromey@redhat.com>
392 * target.h (struct target_ops) <to_make_corefile_notes>: Add
394 (target_make_corefile_notes): Add argument.
395 * target.c (dummy_make_corefile_notes): Add 'self' argument.
396 * procfs.c (procfs_make_note_section): Add 'self' argument.
397 (procfs_make_note_section): Add 'self' argument.
398 (procfs_make_note_section): Add 'self' argument.
399 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
401 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
402 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
403 * exec.c (exec_make_note_section): Add 'self' argument.
404 (exec_make_note_section): Add 'self' argument.
406 2014-02-19 Tom Tromey <tromey@redhat.com>
408 * target.h (struct target_ops) <to_find_memory_regions>: Add
410 (target_find_memory_regions): Add argument.
411 * target.c (dummy_find_memory_regions): Add 'self' argument.
412 * procfs.c (proc_find_memory_regions): Add 'self' argument.
413 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
414 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
415 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
416 * exec. (exec_do_find_memory_regions): New global.
417 (exec_set_find_memory_regions): Rewrite.
418 (exec_find_memory_regions): New function.
419 (init_exec_ops): Use exec_find_memory_regions.
421 2014-02-19 Tom Tromey <tromey@redhat.com>
423 * target.h (struct target_ops) <to_supports_non_stop>: Add
425 * target.c (find_default_supports_non_stop): Add argument.
426 (target_supports_non_stop): Add argument.
427 (find_default_supports_non_stop): Add 'self' argument.
428 * remote.c (remote_supports_non_stop): Add 'self' argument.
429 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
431 2014-02-19 Tom Tromey <tromey@redhat.com>
433 * target.h (struct target_ops) <to_log_command>: Add argument.
434 (target_log_command): Add argument.
435 * serial.h (serial_log_command): Add 'self' argument.
436 * serial.c (serial_log_command): Add 'self' argument.
438 2014-02-19 Tom Tromey <tromey@redhat.com>
440 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
441 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
443 (target_pid_to_exec_file): Add argument.
444 * target.c (debug_to_pid_to_exec_file): Add argument.
445 (update_current_target): Update.
446 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
447 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
448 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
449 (linux_handle_extended_wait): Update.
450 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
451 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
452 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
453 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
455 2014-02-19 Tom Tromey <tromey@redhat.com>
457 * target.h (struct target_ops) <to_rcmd>: Add argument.
458 (target_rcmd): Add argument.
459 * target.c (debug_to_rcmd): Add argument.
460 (update_current_target, do_monitor_command): Update.
461 * remote.c (remote_rcmd): Add 'self' argument.
462 * monitor.c (monitor_rcmd): Add 'self' argument.
464 2014-02-19 Tom Tromey <tromey@redhat.com>
466 * windows-nat.c (windows_stop): Add 'self' argument.
467 * target.h (struct target_ops) <to_stop>: Add argument.
468 * target.c (target_stop): Add argument.
469 (debug_to_stop): Add argument.
470 (update_current_target): Update.
471 * remote.c (remote_stop): Add 'self' argument.
472 * remote-sim.c (gdbsim_stop): Add 'self' argument.
473 (gdbsim_cntrl_c): Update.
474 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
475 * procfs.c (procfs_stop): Add 'self' argument.
476 * nto-procfs.c (procfs_stop): Add 'self' argument.
477 * monitor.c (monitor_stop): Add 'self' argument.
478 (monitor_open): Update.
479 * linux-nat.c (linux_nat_stop): Add argument.
480 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
481 * gnu-nat.c (gnu_stop): Add 'self' argument.
482 * darwin-nat.c (darwin_stop): Add 'self' argument.
484 2014-02-19 Tom Tromey <tromey@redhat.com>
486 * target.h (struct target_ops) <to_thread_name>: Add argument.
487 * target.c (target_thread_name): Add argument.
488 (update_current_target): Update.
489 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
491 2014-02-19 Tom Tromey <tromey@redhat.com>
493 * target.h (struct target_ops) <to_extra_thread_info>: Add
495 (target_extra_thread_info): Add argument.
496 * target.c (update_current_target): Update.
497 * remote.c (remote_threads_extra_info): Add 'self' argument.
498 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
500 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
501 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
502 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
504 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
506 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
508 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
511 2014-02-19 Tom Tromey <tromey@redhat.com>
513 * target.h (struct target_ops) <to_program_signals>: Add argument.
514 * target.c (target_program_signals): Add argument.
515 * remote.c (remote_program_signals): Add 'self' argument.
517 2014-02-19 Tom Tromey <tromey@redhat.com>
519 * target.h (struct target_ops) <to_pass_signals>: Add argument.
520 * target.c (target_pass_signals): Add argument.
521 * remote.c (remote_pass_signals): Add 'self' argument.
522 (remote_start_remote): Update.
523 * procfs.c (procfs_pass_signals): Add 'self' argument.
524 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
525 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
526 (linux_nat_create_inferior, linux_nat_attach): Update.
528 2014-02-19 Tom Tromey <tromey@redhat.com>
530 * windows-nat.c (windows_can_run): Add 'self' argument.
531 * target.h (struct target_ops) <to_can_run>: Add argument.
532 (target_can_run): Add argument.
533 * target.c (debug_to_can_run): Add argument.
534 (update_current_target): Update.
535 * nto-procfs.c (procfs_can_run): Add 'self' argument.
536 * inf-child.c (inf_child_can_run): Add 'self' argument.
537 * go32-nat.c (go32_can_run): Add 'self' argument.
539 2014-02-19 Tom Tromey <tromey@redhat.com>
541 * target.h (struct target_ops) <to_has_exited>: Add argument.
542 (target_has_exited): Add argument.
543 * target.c (debug_to_has_exited): Add argument.
544 (update_current_target): Update.
546 2014-02-19 Tom Tromey <tromey@redhat.com>
548 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
550 (target_set_syscall_catchpoint): Add argument.
551 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
553 * target.c (update_current_target): Update.
555 2014-02-19 Tom Tromey <tromey@redhat.com>
557 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
559 (target_remove_exec_catchpoint): Add argument.
560 * target.c (debug_to_remove_exec_catchpoint): Add argument.
561 (update_current_target): Update.
562 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
565 2014-02-19 Tom Tromey <tromey@redhat.com>
567 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
569 (target_insert_exec_catchpoint): Add argument.
570 * target.c (debug_to_insert_exec_catchpoint): Add argument.
571 (update_current_target): Update.
572 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
575 2014-02-19 Tom Tromey <tromey@redhat.com>
577 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
579 (target_remove_vfork_catchpoint): Add argument.
580 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
581 (update_current_target): Update.
582 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
585 2014-02-19 Tom Tromey <tromey@redhat.com>
587 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
589 (target_insert_vfork_catchpoint): Add argument.
590 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
591 (update_current_target): Update.
592 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
595 2014-02-19 Tom Tromey <tromey@redhat.com>
597 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
599 (target_remove_fork_catchpoint): Add argument.
600 * target.c (debug_to_remove_fork_catchpoint): Add argument.
601 (update_current_target): Update.
602 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
605 2014-02-19 Tom Tromey <tromey@redhat.com>
607 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
609 (target_insert_fork_catchpoint): Add argument.
610 * target.c (debug_to_insert_fork_catchpoint): Add argument.
611 (update_current_target): Update.
612 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
615 2014-02-19 Tom Tromey <tromey@redhat.com>
617 * target.h (struct target_ops) <to_post_startup_inferior>: Add
619 (target_post_startup_inferior): Add argument.
620 * target.c (debug_to_post_startup_inferior): Add argument.
621 (update_current_target): Update.
622 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
624 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
626 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
628 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
630 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
632 (super_post_startup_inferior): Likewise.
633 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
635 (super_post_startup_inferior): Likewise.
636 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
638 (super_post_startup_inferior): Likewise.
640 2014-02-19 Tom Tromey <tromey@redhat.com>
642 * target.h (struct target_ops) <to_load>: Add argument.
643 * target.c (target_load): Add argument.
644 (debug_to_load): Add argument.
645 (update_current_target): Update.
646 * remote.c (remote_load): Add 'self' argument.
647 * remote-sim.c (gdbsim_load): Add 'self' argument.
648 * remote-mips.c (mips_load): Add 'self' argument.
649 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
650 * monitor.c (monitor_load): Add 'self' argument.
651 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
653 2014-02-19 Tom Tromey <tromey@redhat.com>
655 * target.h (struct target_ops) <to_terminal_info>: Add argument.
656 (target_terminal_info): Add argument.
657 * target.c (debug_to_terminal_info): Add argument.
658 (default_terminal_info): Likewise.
659 * inflow.c (child_terminal_info): Add 'self' argument.
660 * inferior.h (child_terminal_info): Add 'self' argument.
661 * go32-nat.c (go32_terminal_info): Add 'self' argument.
663 2014-02-19 Tom Tromey <tromey@redhat.com>
665 * target.h (struct target_ops) <to_terminal_save_ours>: Add
667 (target_terminal_save_ours): Add argument.
668 * target.c (debug_to_terminal_save_ours): Add argument.
669 (update_current_target): Update.
670 * inflow.c (terminal_save_ours): Add 'self' argument.
671 * inferior.h (terminal_save_ours): Add 'self' argument.
673 2014-02-19 Tom Tromey <tromey@redhat.com>
675 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
676 (target_terminal_ours): Add argument.
677 * target.c (debug_to_terminal_ours): Add argument.
678 (update_current_target): Update.
679 * remote.c (remote_terminal_ours): Add 'self' argument.
680 (remote_close): Update.
681 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
682 * inflow.c (terminal_ours): Add 'self' argument.
683 * inferior.h (terminal_ours): Add 'self' argument.
684 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
686 2014-02-19 Pedro Alves <palves@redhat.com>
687 Tom Tromey <tromey@redhat.com>
689 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
691 (target_terminal_ours_for_output): Add argument.
692 * target.c (debug_to_terminal_ours_for_output): Add argument.
693 (update_current_target): Update.
694 * inflow.c (terminal_ours_for_output): Add 'self' argument.
695 * inferior.h (terminal_ours_for_output): Add 'self' argument.
696 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
698 2014-02-19 Tom Tromey <tromey@redhat.com>
700 * target.h (struct target_ops) <to_terminal_inferior>: Add
702 * target.c (target_terminal_inferior): Add argument.
703 (update_current_target): Update.
704 * remote.c (remote_terminal_inferior): Add 'self' argument.
705 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
706 * inflow.c (terminal_inferior): Add 'self' argument.
707 * inferior.h (terminal_inferior): Add 'self' argument.
708 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
709 (go32_terminal_inferior): Add 'self' argument.
711 2014-02-19 Tom Tromey <tromey@redhat.com>
713 * target.h (struct target_ops) <to_terminal_init>: Add argument.
714 (target_terminal_init): Add argument.
715 * target.c (debug_to_terminal_init): Add argument.
716 (update_current_target): Update.
717 * inflow.c (terminal_init_inferior): Add 'self' argument.
718 * inferior.h (terminal_init_inferior): Add 'self' argument.
719 * go32-nat.c (go32_terminal_init): Add 'self' argument.
720 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
722 2014-02-19 Tom Tromey <tromey@redhat.com>
724 * target.h (struct target_ops)
725 <to_can_accel_watchpoint_condition>: Add argument.
726 (target_can_accel_watchpoint_condition): Add argument.
727 * target.c (debug_to_can_accel_watchpoint_condition): Add
729 (update_current_target): Update.
730 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
733 2014-02-19 Tom Tromey <tromey@redhat.com>
735 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
737 (target_region_ok_for_hw_watchpoint): Add argument.
738 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
739 (default_region_ok_for_hw_watchpoint): Add argument.
740 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
741 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
743 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
745 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
747 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
749 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
751 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
753 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
754 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
756 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
759 2014-02-19 Tom Tromey <tromey@redhat.com>
761 * target.h (struct target_ops) <to_insert_watchpoint>: Add
763 (target_insert_watchpoint): Add argument.
764 * target.c (debug_to_insert_watchpoint): Add argument.
765 (update_current_target): Update.
766 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
767 * remote.c (remote_insert_watchpoint): Add 'self' argument.
768 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
769 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
770 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
771 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
773 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
774 (procfs_insert_hw_watchpoint): Add 'self' argument.
775 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
777 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
779 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
781 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
782 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
784 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
787 2014-02-19 Tom Tromey <tromey@redhat.com>
789 * target.h (struct target_ops) <to_remove_watchpoint>: Add
791 (target_remove_watchpoint): Add argument.
792 * target.c (debug_to_remove_watchpoint): Add argument.
793 (update_current_target): Update.
794 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
795 * remote.c (remote_remove_watchpoint): Add 'self' argument.
796 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
797 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
798 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
799 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
801 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
802 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
804 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
806 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
808 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
809 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
811 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
814 2014-02-19 Tom Tromey <tromey@redhat.com>
816 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
818 (target_remove_hw_breakpoint): Add argument.
819 * target.c (debug_to_remove_hw_breakpoint): Add argument.
820 (update_current_target): Update.
821 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
822 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
824 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
825 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
827 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
830 2014-02-19 Tom Tromey <tromey@redhat.com>
832 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
834 (target_insert_hw_breakpoint): Add argument.
835 * target.c (debug_to_insert_hw_breakpoint): Add argument.
836 (update_current_target): Update.
837 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
838 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
840 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
841 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
842 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
844 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
847 2014-02-19 Tom Tromey <tromey@redhat.com>
849 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
851 (target_can_use_hardware_watchpoint): Add argument.
852 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
853 (update_current_target): Update.
854 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
856 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
858 * remote.c (remote_check_watch_resources): Add 'self' argument.
859 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
860 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
862 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
863 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
865 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
867 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
869 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
871 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
873 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
875 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
876 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
878 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
881 2014-02-19 Tom Tromey <tromey@redhat.com>
883 * target.h (struct target_ops) <to_post_attach>: Add argument.
884 (target_post_attach): Add argument.
885 * target.c (debug_to_post_attach): Add argument.
886 (update_current_target): Update.
887 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
888 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
889 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
890 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
891 * inf-child.c (inf_child_post_attach): Add 'self' argument.
893 2014-02-19 Tom Tromey <tromey@redhat.com>
895 * windows-nat.c (windows_close): Add 'self' argument.
896 * tracepoint.c (tfile_close): Add 'self' argument.
897 * target.h (struct target_ops) <to_close>: Add argument.
898 * target.c (target_close): Add argument.
899 (update_current_target): Update.
900 * remote.c (remote_close): Add 'self' argument.
901 * remote-sim.c (gdbsim_close): Add 'self' argument.
902 * remote-mips.c (mips_close): Add 'self' argument.
903 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
904 * record-full.c (record_full_close): Add 'self' argument.
905 * record-btrace.c (record_btrace_close): Add 'self' argument.
906 * monitor.h (monitor_close): Add 'self' argument.
907 * monitor.c (monitor_close): Add 'self' argument.
908 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
909 * linux-nat.c (linux_nat_close): Add argument.
910 * go32-nat.c (go32_close): Add 'self' argument.
911 * exec.c (exec_close_1): Add 'self' argument.
912 * ctf.c (ctf_close): Add 'self' argument.
913 * corelow.c (core_close): Add 'self' argument.
914 (core_close_cleanup): Update.
915 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
916 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
918 2014-02-19 Tom Tromey <tromey@redhat.com>
920 * remote.c (remote_load): New function.
921 (init_remote_ops): Use it.
923 2014-02-19 Tom Tromey <tromey@redhat.com>
925 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
927 * common/linux-btrace.h (linux_supports_btrace): Update.
928 * remote.c (remote_supports_btrace): Add "self" argument.
929 * target-delegates.c: Rebuild.
930 * target.c (target_supports_btrace): Remove.
931 * target.h (struct target_ops) <to_supports_btrace>: Add
933 (target_supports_btrace): New define.
935 2014-02-19 Tom Tromey <tromey@redhat.com>
937 * record-full.c (record_full_beneath_to_resume_ops)
938 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
939 (record_full_beneath_to_wait)
940 (record_full_beneath_to_store_registers_ops)
941 (record_full_beneath_to_store_registers)
942 (record_full_beneath_to_xfer_partial_ops)
943 (record_full_beneath_to_xfer_partial)
944 (record_full_beneath_to_insert_breakpoint_ops)
945 (record_full_beneath_to_insert_breakpoint)
946 (record_full_beneath_to_remove_breakpoint_ops)
947 (record_full_beneath_to_remove_breakpoint)
948 (record_full_beneath_to_stopped_by_watchpoint)
949 (record_full_beneath_to_stopped_data_address)
950 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
951 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
952 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
953 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
954 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
955 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
956 (tmp_to_stopped_data_address, tmp_to_async): Remove.
957 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
958 (record_full_resume, record_full_wait_1)
959 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
960 (record_full_store_registers, record_full_xfer_partial)
961 (record_full_insert_breakpoint, record_full_remove_breakpoint)
962 (record_full_async, record_full_core_xfer_partial): Use target
964 * target-delegates.c: Rebuild.
965 * target.c (current_xfer_partial): Remove.
966 (update_current_target): Do not INHERIT or de_fault
967 to_insert_breakpoint, to_remove_breakpoint,
968 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
969 to_is_async_p, to_async. Do not set to_xfer_partial field.
970 (default_xfer_partial): Simplify.
971 (current_xfer_partial): Remove.
972 (target_wait, target_resume): Simplify.
973 (find_default_can_async_p, find_default_is_async_p): Update.
974 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
975 to_xfer_partial, to_stopped_by_watchpoint,
976 to_stopped_data_address.
977 (target_store_registers): Simplify.
978 (forward_target_remove_breakpoint)
979 (forward_target_insert_breakpoint): Remove.
980 (target_remove_breakpoint, target_insert_breakpoint)
981 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
982 * target.h (struct target_ops) <to_resume, to_wait,
983 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
984 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
985 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
987 (forward_target_remove_breakpoint)
988 (forward_target_insert_breakpoint): Remove.
989 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
991 (record_btrace_insert_breakpoint): Delegate directly.
993 2014-02-19 Tom Tromey <tromey@redhat.com>
996 * target-delegates.c: New file.
997 * target.c: Include target-delegates.c.
998 (init_dummy_target): Call install_dummy_methods.
999 (complete_target_initialization): Call install_delegators.
1000 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1001 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1002 * make-target-delegates: New file.
1004 2014-02-19 Tom Tromey <tromey@redhat.com>
1006 * record.c (find_record_target): Use find_target_at.
1007 * target.c (find_target_at): New function.
1008 * target.h (find_target_at): Declare.
1010 2014-02-19 Tom Tromey <tromey@redhat.com>
1012 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1014 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1016 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1017 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1019 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1021 * linux-nat.c (save_sigtrap): Update.
1022 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1023 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1024 (linux_nat_close): Update.
1025 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1027 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1029 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1030 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1031 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1032 (tmp_to_async): Add 'ops' argument.
1033 (record_full_stopped_by_watchpoint, record_full_async)
1034 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1036 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1037 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1038 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1039 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1040 (remote_is_async_p, remote_async): Add 'ops' argument.
1041 (remote_stopped_data_address): Update.
1042 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1043 * target.c (update_current_target)
1044 (find_default_can_async_p, find_default_is_async_p): Update.
1045 (init_dummy_target): Update.
1046 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1047 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1048 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1049 (target_can_async_p, target_is_async_p, target_async)
1050 (target_stopped_by_watchpoint): Update.
1052 2014-02-19 Yao Qi <yao@codesourcery.com>
1055 * gdbarch.sh: Remove startup_gdbarch.
1056 * gdbarch.c: Regenerated.
1057 * gdbarch.h: Likewise.
1059 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1061 * rl78-tdep.c (rl78_g10_register_name): New function.
1062 (rl78_return_value): Add g10 support.
1063 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1066 2014-02-17 Doug Evans <xdje42@gmail.com>
1068 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1069 (SUBDIR_GUILE_SRCS): Ditto.
1070 (scm-gsmob.o): Ditto.
1072 2014-02-17 Yao Qi <yao@codesourcery.com>
1074 * gnu-nat.c (ILL_RPC): Declare defined function.
1076 2014-02-17 Yao Qi <yao@codesourcery.com>
1078 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1079 mach_msg_type_number_t.
1080 (gnu_write_inferior): Likewise.
1082 2014-02-17 Yao Qi <yao@codesourcery.com>
1084 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1086 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1087 (inf_validate_procs, inf_signal): Likewise.
1088 (S_exception_raise_request): Likewise.
1089 (do_mach_notify_dead_name): Likewise.
1090 (steal_exc_port): Likewise.
1091 (gnu_read_inferior): Change 'copy_count''s type to
1092 mach_msg_type_number_t.
1093 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1096 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1098 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1099 flag. Adjust all users; in particular...
1100 (gnu_wait): ..., don't decrement its value in here...
1101 (gnu_create_inferior): ..., and instead set the flag in here,
1102 around the startup_inferior call, and call that one with
1103 START_INFERIOR_TRAPS_EXPECTED.
1105 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1106 (ILL_RPC): ... new macro.
1107 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1108 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1109 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1110 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1111 functions with ILL_RPC macro.
1112 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1113 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1114 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1115 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1116 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1117 (S_proc_getlogin_reply, S_proc_getsid_reply)
1118 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1119 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1120 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1121 (S_proc_getnports_reply, S_proc_is_important_reply)
1122 (S_proc_get_code_reply): New stub functions, generated with
1125 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1126 collected the type check structures.
1128 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1130 2014-02-14 Doug Evans <dje@google.com>
1132 * target.c (target_write_partial): Fix result type.
1134 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1136 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1137 the proper offsets to access fpregset_t.
1139 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1141 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1142 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1143 * h8300-tdep.c (setmachinelist): Remove global.
1144 * hppa-tdep.c (hppa_sigtramp): Remove global.
1145 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1146 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1147 * ravenscar-thread.c (update_target_observer): Remove global.
1148 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1150 2014-02-12 Tom Tromey <tromey@redhat.com>
1152 * common/rsp-low.c: Update comments.
1153 * common/rsp-low.h: Update comments.
1155 2014-02-12 Tom Tromey <tromey@redhat.com>
1157 * common/rsp-low.c (convert_ascii_to_int): Remove.
1158 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1160 2014-02-12 Tom Tromey <tromey@redhat.com>
1162 * common/rsp-low.h (unhexify): Don't declare.
1163 * common/rsp-low.c (unhexify): Remove.
1165 2014-02-12 Tom Tromey <tromey@redhat.com>
1167 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1168 * common/rsp-low.c (convert_int_to_ascii): Remove.
1170 2014-02-12 Tom Tromey <tromey@redhat.com>
1172 * common/rsp-low.h (hexify): Don't declare.
1173 * common/rsp-low.c (hexify): Remove.
1175 2014-02-12 Tom Tromey <tromey@redhat.com>
1177 * common/rsp-low.c (hexify): Never take strlen of argument.
1179 2014-02-12 Tom Tromey <tromey@redhat.com>
1181 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1182 * remote.c (extended_remote_run, remote_rcmd)
1183 (remote_download_trace_state_variable, remote_save_trace_data)
1184 (remote_set_trace_notes): Update.
1185 * tracepoint.c (encode_source_string, tfile_write_status)
1186 (tfile_write_uploaded_tsv): Update.
1188 2014-02-12 Tom Tromey <tromey@redhat.com>
1190 * tracepoint.c: Include rsp-low.h.
1191 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1192 * remote.c: Include rsp-low.h.
1193 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1194 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1195 (remote_unescape_input): Move to common/rsp-low.c.
1196 * common/rsp-low.h: New file.
1197 * common/rsp-low.c: New file.
1198 * Makefile.in (SFILES): Add common/rsp-low.c.
1199 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1200 (COMMON_OBS): Add rsp-low.o.
1201 (rsp-low.o): New target.
1203 2014-02-12 Tom Tromey <tromey@redhat.com>
1205 * utils.h: Include print-utils.h.
1206 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1207 (int_string, core_addr_to_string, core_addr_to_string_nz)
1208 (hex_string, hex_string_custom): Don't declare.
1209 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1210 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1211 (hex_string_custom, int_string, core_addr_to_string)
1212 (core_addr_to_string_nz, host_address_to_string): Move to
1213 common/print-utils.c.
1214 * common/print-utils.h: New file.
1215 * common/print-utils.c: New file
1216 * Makefile.in (SFILES): Add common/print-utils.c.
1217 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1218 (COMMON_OBS): Add print-utils.o.
1219 (print-utils.o): New target.
1221 2014-02-12 Tom Tromey <tromey@redhat.com>
1223 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1225 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1227 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1229 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1231 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1232 if a PT_IO ptrace request returns sucessfully but indicates that 0
1233 bytes were transferred.
1235 2014-02-12 Pedro Alves <palves@redhat.com>
1236 Kevin Buettner <kevinb@redhat.com>
1238 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1239 TYPE_INSTANCE_FLAG_CODE_SPACE.
1241 2014-02-12 Pedro Alves <palves@redhat.com>
1243 * h8300-tdep.c (pseudo_from_raw_register)
1244 (raw_from_pseudo_register): New functions.
1245 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1248 2014-02-12 Pedro Alves <palves@redhat.com>
1250 * h8300-tdep.c (h8300_register_sim_regno): New function.
1251 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1252 gdbarch_register_sim_regno hook.
1254 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1256 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1258 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1260 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1262 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1264 * obsd-tdep.h (obsd_init_abi): New prototype.
1265 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1266 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1267 (obsd_init_abi): New functions.
1268 * i386obsd-tdep.c: Include "obsd-tdep.h".
1269 (i386obsd_init_abi): Call obsd_init_abi.
1270 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1271 (amd64obsd_init_abi): Call obsd_init_abi.
1272 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1273 obsd-tdep.c to gdb_target_obs.
1275 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1277 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1278 double float arguments to 16-byte in the argument slots.
1280 2014-02-11 Doug Evans <xdje42@gmail.com>
1282 * configure.ac: Don't crash if pkg-config is not found and guile
1283 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1285 * configure: Regenerate.
1287 2014-02-11 Yao Qi <yao@codesourcery.com>
1289 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1290 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1291 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1292 * gnu-nat.c (gnu_xfer_memory): Likewise.
1293 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1294 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1295 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1296 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1298 2014-02-11 Yao Qi <yao@codesourcery.com>
1300 * target.h (enum target_xfer_error): Rename to ...
1301 (enum target_xfer_status): ... it. New. All users updated.
1302 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1304 (TARGET_XFER_STATUS_ERROR_P): New macro.
1305 (target_xfer_error_to_string): Remove declaration.
1306 (target_xfer_status_to_string): Declare.
1307 (target_xfer_partial_ftype): Adjust it.
1308 (struct target_ops) <to_xfer_partial>: Return
1309 target_xfer_status. Add argument xfered_len. Update
1311 * target.c (target_xfer_error_to_string): Rename to ...
1312 (target_xfer_status_to_string): ... it. New. All callers
1314 (target_read_live_memory): Likewise. Call target_xfer_partial
1315 instead of target_read.
1316 (memory_xfer_live_readonly_partial): Return
1317 target_xfer_status. Add argument xfered_len.
1318 (raw_memory_xfer_partial): Likewise.
1319 (memory_xfer_partial_1): Likewise.
1320 (memory_xfer_partial): Likewise.
1321 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1322 properly. Update debug message.
1323 (default_xfer_partial, current_xfer_partial): Likewise.
1324 (target_write_partial): Likewise.
1325 (target_read_partial): Likewise. All callers updated.
1326 (read_whatever_is_readable): Likewise.
1327 (target_write_with_progress): Likewise.
1328 (target_read_alloc_1): Likewise.
1330 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1331 * auxv.c (procfs_xfer_auxv): Likewise.
1332 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1333 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1334 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1335 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1336 * corefile.c (read_memory): Adjust.
1337 * corelow.c (core_xfer_partial): Likewise.
1338 * ctf.c (ctf_xfer_partial): Likewise.
1339 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1341 (darwin_xfer_partial): Likewise.
1342 * exec.c (section_table_xfer_memory_partial): Likewise. All
1344 (exec_xfer_partial): Likewise.
1345 * exec.h (section_table_xfer_memory_partial): Update
1347 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1349 (gnu_xfer_partial): Likewise.
1350 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1351 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1352 (ia64_hpux_xfer_solib_got): Likewise.
1353 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1354 type of 'partial_len' to ULONGEST.
1355 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1356 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1357 (linux_nat_xfer_partial): Likewise.
1358 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1359 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1360 * monitor.c (monitor_xfer_memory): Likewise.
1361 (monitor_xfer_partial): Likewise.
1362 * procfs.c (procfs_xfer_partial): Likewise.
1363 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1364 * record-full.c (record_full_xfer_partial): Likewise.
1365 (record_full_core_xfer_partial): Likewise.
1366 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1367 (gdbsim_xfer_partial): Likewise.
1368 * remote.c (remote_write_bytes_aux): Likewise. All callers
1370 (remote_write_bytes, remote_read_bytes): Likewise. All
1372 (remote_flash_erase): Likewise. All callers updated.
1373 (remote_write_qxfer): Likewise. All callers updated.
1374 (remote_read_qxfer): Likewise. All callers updated.
1375 (remote_xfer_partial): Likewise.
1376 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1377 (rs6000_xfer_shared_libraries): Likewise.
1378 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1379 (sol_thread_xfer_partial): Likewise.
1380 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1381 (sparc_xfer_partial): Likewise.
1382 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1384 (spu_xfer_partial): Likewise.
1385 * spu-multiarch.c (spu_xfer_partial): Likewise.
1386 * tracepoint.c (tfile_xfer_partial): Likewise.
1387 * windows-nat.c (windows_xfer_memory): Likewise.
1388 (windows_xfer_shared_libraries): Likewise.
1389 (windows_xfer_partial): Likewise.
1390 * valprint.c: Replace 'target_xfer_error' with
1391 'target_xfer_status' in comments.
1393 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1395 Checked in by Joel Brobecker <brobecker@adacore.com>.
1396 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1398 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1400 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1401 function parameters.
1403 2014-02-10 Will Newton <will.newton@linaro.org>
1405 * elfread.c (elf_rel_plt_read): Look for a .got section if
1406 looking up .got.plt fails.
1407 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1408 on address passed to elf_gnu_ifunc_record_cache.
1409 (elf_gnu_ifunc_resolve_addr): Likewise.
1410 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1412 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1414 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1415 (X_RETTURN): New macro.
1416 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1418 * sparc64-tdep.c (sparc64_init_abi): Hook
1419 sparc_in_function_epilogue_p.
1421 2014-02-10 Gary Benson <gbenson@redhat.com>
1423 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1424 Rename name_matcher to symbol_matcher.
1426 2014-02-10 Gary Benson <gbenson@redhat.com>
1428 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1429 Use expand_symtabs_file_matcher_ftype and
1430 expand_symtabs_symbol_matcher_ftype.
1432 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1434 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1435 (struct ada_symbol_cache): New.
1436 (ada_free_symbol_cache): Forward declare.
1437 (struct ada_pspace_data): New.
1438 (ada_pspace_data_handle): New static global.
1439 (get_ada_pspace_data, ada_pspace_data_cleanup)
1440 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1441 (cache_space, cache): Delete, now folded inside struct
1443 (ada_get_symbol_cache): New function.
1444 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1446 (_initialize_ada_language): Remove initialization of cache_space.
1447 Move call to observer_attach_inferior_exit up, grouping it
1448 with the other observer registrations inside this function.
1449 Rename command to be more general. Add call to
1450 register_program_space_data_with_cleanup.
1452 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1454 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1455 ada_new_objfile_observer.
1456 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1457 (_initialize_tasks): Update uses of ada_new_objfile_observer
1458 and ada_tasks_normal_stop_observer.
1460 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1462 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1463 returned by the 'Length attribute to integer.
1465 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1467 * ada-lang.c (_initialize_ada_language): Initialize
1468 cache_space obstack.
1470 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1472 * ada-lang.c (HASH_SIZE): New macro.
1473 (struct cache_entry): New type.
1474 (cache_space, cache): New static globals.
1475 (ada_clear_symbol_cache, find_entry): New functions.
1476 (lookup_cached_symbol, cache_symbol): Implement.
1477 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1478 (_initialize_ada_language): Attach ada_new_objfile_observer
1479 and ada_free_objfile_observer.
1481 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1483 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1484 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1485 struct block * parameter.
1486 (ada_lookup_symbol_list_worker): Constify local variable "block".
1487 Remove cast which is no longer necessary.
1489 2014-02-10 Doug Evans <xdje42@gmail.com>
1491 Add Guile as an extension language.
1492 * NEWS: Mention Guile scripting.
1493 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1494 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1495 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1496 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1497 (CLIBS): Add GUILE_LIBS.
1498 (install-guile): New rule.
1499 (guile.o): New rule.
1500 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1501 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1502 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1503 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1504 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1505 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1506 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1507 * configure.ac: New option --with-guile.
1508 * configure: Regenerate.
1509 * config.in: Regenerate.
1510 * auto-load.c: Remove #include "python/python.h". Add #include
1511 "gdb/section-scripts.h".
1512 (source_section_scripts): Handle Guile scripts.
1513 (_initialize_auto_load): Add name of Guile objfile script to
1514 scripts-directory help text.
1515 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1516 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1517 (struct breakpoint): New member scm_bp_object.
1518 * defs.h (enum command_control_type): New value guile_control.
1519 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1521 (show_user): Update comment.
1522 (_initialize_cli_cmds): Update help text for "show user". Update help
1523 text for max-user-call-depth.
1524 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1526 (multi_line_command_p): Add guile_control.
1527 (print_command_lines): Handle guile_control.
1528 (execute_control_command, recurse_read_control_structure): Ditto.
1529 (process_next_line): Recognize "guile" commands.
1530 * disasm.c (gdb_disassemble_info): Make non-static.
1531 * disasm.h: #include "dis-asm.h".
1532 (struct gdbarch): Add forward decl.
1533 (gdb_disassemble_info): Declare.
1534 * extension.c: #include "guile/guile.h".
1535 (extension_languages): Add guile.
1536 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1537 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1538 * gdbtypes.c (get_unsigned_type_max): New function.
1539 (get_signed_type_minmax): New function.
1540 * gdbtypes.h (get_unsigned_type_max): Declare.
1541 (get_signed_type_minmax): Declare.
1542 * guile/README: New file.
1543 * guile/guile-internal.h: New file.
1544 * guile/guile.c: New file.
1545 * guile/guile.h: New file.
1546 * guile/scm-arch.c: New file.
1547 * guile/scm-auto-load.c: New file.
1548 * guile/scm-block.c: New file.
1549 * guile/scm-breakpoint.c: New file.
1550 * guile/scm-disasm.c: New file.
1551 * guile/scm-exception.c: New file.
1552 * guile/scm-frame.c: New file.
1553 * guile/scm-gsmob.c: New file.
1554 * guile/scm-iterator.c: New file.
1555 * guile/scm-lazy-string.c: New file.
1556 * guile/scm-math.c: New file.
1557 * guile/scm-objfile.c: New file.
1558 * guile/scm-ports.c: New file.
1559 * guile/scm-pretty-print.c: New file.
1560 * guile/scm-safe-call.c: New file.
1561 * guile/scm-string.c: New file.
1562 * guile/scm-symbol.c: New file.
1563 * guile/scm-symtab.c: New file.
1564 * guile/scm-type.c: New file.
1565 * guile/scm-utils.c: New file.
1566 * guile/scm-value.c: New file.
1567 * guile/lib/gdb.scm: New file.
1568 * guile/lib/gdb/boot.scm: New file.
1569 * guile/lib/gdb/experimental.scm: New file.
1570 * guile/lib/gdb/init.scm: New file.
1571 * guile/lib/gdb/iterator.scm: New file.
1572 * guile/lib/gdb/printing.scm: New file.
1573 * guile/lib/gdb/types.scm: New file.
1574 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1575 (VPATH): Add $(GUILE_SRCDIR).
1576 (GUILE_DIR): New variable.
1577 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1578 (all): Add stamp-guile dependency.
1579 (stamp-guile): New rule.
1580 (clean-guile, install-guile, uninstall-guile): New rules.
1581 (install-only): Add install-guile dependency.
1582 (uninstall): Add uninstall-guile dependency.
1583 (clean): Add clean-guile dependency.
1585 2014-02-09 Doug Evans <xdje42@gmail.com>
1587 Revert this patch (which I approved, mea culpa).
1589 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1591 * Makefile.in (all-lib): Remove.
1592 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1594 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1596 Fix Python stack corruption.
1597 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1600 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1602 * Makefile.in (all-lib): Remove.
1603 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1605 2014-02-07 Doug Evans <dje@google.com>
1607 * extension-priv.h (extension_language_script_ops): Add comment.
1608 (extension_language_ops): Add comment.
1609 (active_ext_lang_state): Fix typo in comment.
1611 2014-02-07 Pedro Alves <palves@redhat.com>
1613 * infrun.c (handle_signal_stop) <signal arrives while stepping
1614 over a breakpoint>: Switch back to the stepping thread.
1616 2014-02-07 Yao Qi <yao@codesourcery.com>
1618 * target.c (target_xfer_partial): Return zero if LEN is zero.
1620 2014-02-07 Yao Qi <yao@codesourcery.com>
1622 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1623 (ld_so_xfer_auxv): Likewise.
1624 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1625 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1626 * corelow.c (core_xfer_partial): Likewise.
1627 * ctf.c (ctf_xfer_partial): Likewise.
1628 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1629 (darwin_xfer_partial): Likewise.
1630 * exec.c (exec_xfer_partial): Likewise.
1631 * gnu-nat.c (gnu_xfer_partial): Likewise.
1632 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1633 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1634 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1635 * linux-nat.c (linux_xfer_siginfo): Likewise.
1636 (linux_proc_xfer_spu): Likewise.
1637 * procfs.c (procfs_xfer_partial): Likewise.
1638 * record-full.c (record_full_xfer_partial): Likewise.
1639 (record_full_core_xfer_partial): Likewise.
1640 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1641 * remote.c (remote_write_qxfer): Likewise.
1642 (remote_write_qxfer, remote_read_qxfer): Likewise.
1643 (remote_xfer_partial): Likewise.
1644 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1645 (rs6000_xfer_shared_libraries): Likewise.
1646 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1647 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1648 (spu_xfer_partial): Likewise.
1649 * target.c (memory_xfer_partial_1): Likewise.
1650 * tracepoint.c (tfile_xfer_partial): Likewise.
1651 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1652 (windows_xfer_partial): Likewise.
1654 2014-02-07 Yao Qi <yao@codesourcery.com>
1656 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1658 (core_xfer_shared_libraries_aix): Likewise.
1659 * gdbarch.c, gdbarch.h: Regenerated.
1660 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1661 ULONGEST. Change 'len_avail' type to ULONGEST.
1662 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1663 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1665 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1667 2014-02-07 Yao Qi <yao@codesourcery.com>
1669 * corefile.c (memory_error): Get 'exception' from ERR and pass
1670 'exception' to throw_error.
1672 2014-02-06 Doug Evans <xdje42@gmail.com>
1674 * configure.ac (libpython checking): Remove all but python.o from
1675 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1676 * configure: Regenerate.
1678 * Makefile.in (SFILES): Add extension.c.
1679 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1680 (COMMON_OBS): Add extension.o.
1681 * extension.h: New file.
1682 * extension-priv.h: New file.
1683 * extension.c: New file.
1685 * python/python-internal.h: #include "extension.h".
1686 (gdbpy_auto_load_enabled): Declare.
1687 (gdbpy_apply_val_pretty_printer): Declare.
1688 (gdbpy_apply_frame_filter): Declare.
1689 (gdbpy_preserve_values): Declare.
1690 (gdbpy_breakpoint_cond_says_stop): Declare.
1691 (gdbpy_breakpoint_has_cond): Declare.
1692 (void source_python_script_for_objfile): Delete.
1693 * python/python.c: #include "extension-priv.h".
1694 Delete inclusion of "observer.h".
1695 (extension_language_python): Moved here and renamed from
1696 script_language_python in py-auto-load.c.
1697 Redefined to be of type extension_language_defn.
1698 (python_extension_script_ops): New global.
1699 (python_extension_ops): New global.
1700 (struct python_env): New member previous_active.
1701 (restore_python_env): Call restore_active_ext_lang.
1702 (ensure_python_env): Call set_active_ext_lang.
1703 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1705 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1707 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1709 (gdbpy_eval_from_control_command): Renamed from
1710 eval_python_from_control_command, made static. New arg extlang.
1711 (gdbpy_source_script) Renamed from source_python_script, made static.
1713 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1714 result to int. New arg extlang.
1715 (gdbpy_source_objfile_script): Renamed from
1716 source_python_script_for_objfile, made static. New arg extlang.
1717 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1718 static. New args extlang, extlang_printers. Change result type to
1720 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1721 static. New arg extlang. Rename arg printers to extlang_printers
1722 and change type to ext_lang_type_printers *.
1723 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1724 static. Replace argument arg with extlang, extlang_printers.
1725 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1726 (!HAVE_PYTHON, source_python_script): Delete.
1727 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1728 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1729 (!HAVE_PYTHON, start_type_printers): Delete.
1730 (!HAVE_PYTHON, apply_type_printers): Delete.
1731 (!HAVE_PYTHON, free_type_printers): Delete.
1732 (_initialize_python): Delete call to observer_attach_before_prompt.
1733 (finalize_python): Set/restore active extension language.
1734 (gdbpy_finish_initialization) Renamed from
1735 finish_python_initialization, made static. New arg extlang.
1736 (gdbpy_initialized): New function.
1737 * python/python.h: #include "extension.h". Delete #include
1738 "value.h", "mi/mi-cmds.h".
1739 (extension_language_python): Declare.
1740 (GDBPY_AUTO_FILE_NAME): Delete.
1741 (enum py_bt_status): Moved to extension.h and renamed to
1743 (enum frame_filter_flags): Moved to extension.h.
1744 (enum py_frame_args): Moved to extension.h and renamed to
1745 ext_lang_frame_args.
1746 (finish_python_initialization): Delete.
1747 (eval_python_from_control_command): Delete.
1748 (source_python_script): Delete.
1749 (apply_val_pretty_printer): Delete.
1750 (apply_frame_filter): Delete.
1751 (preserve_python_values): Delete.
1752 (gdbpy_script_language_defn): Delete.
1753 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1754 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1756 * auto-load.c: #include "extension.h".
1757 (GDB_AUTO_FILE_NAME): Delete.
1758 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1759 (script_language_gdb): Delete, moved to extension.c and renamed to
1760 extension_language_gdb.
1761 (source_gdb_script_for_objfile): Delete.
1762 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1763 (loaded_script): Change type of language member to
1764 struct extension_language_defn *.
1765 (init_loaded_scripts_info): Initialize
1766 unsupported_script_warning_printed.
1767 (maybe_add_script): Make static. Change type of language arg to
1768 struct extension_language_defn *.
1769 (clear_section_scripts): Reset unsupported_script_warning_printed.
1770 (auto_load_objfile_script_1): Rewrite to use extension language API.
1771 (auto_load_objfile_script): Make public. Remove support-compiled-in
1772 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1773 (source_section_scripts): Rewrite to use extension language API.
1774 (load_auto_scripts_for_objfile): Rewrite to use
1775 auto_load_scripts_for_objfile.
1776 (collect_matching_scripts_data): Change type of language member to
1777 struct extension_language_defn *.
1778 (auto_load_info_scripts): Change type of language arg to
1779 struct extension_language_defn *.
1780 (unsupported_script_warning_print): New function.
1781 (script_not_found_warning_print): Make static.
1782 (_initialize_auto_load): Rewrite construction of scripts-directory
1784 * auto-load.h (struct objfile): Add forward decl.
1785 (struct script_language): Delete.
1786 (struct auto_load_pspace_info): Add forward decl.
1787 (struct extension_language_defn): Add forward decl.
1788 (maybe_add_script): Delete.
1789 (auto_load_objfile_script): Declare.
1790 (script_not_found_warning_print): Delete.
1791 (auto_load_info_scripts): Update prototype.
1792 (auto_load_gdb_scripts_enabled): Declare.
1793 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1794 auto_load_python_scripts_enabled and made public.
1795 (script_language_python): Delete, moved to python.c.
1796 (gdbpy_script_language_defn): Delete.
1797 (info_auto_load_python_scripts): Update to use
1798 extension_language_python.
1800 * breakpoint.c (condition_command): Replace call to
1801 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1802 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1803 with call to breakpoint_ext_lang_cond_says_stop.
1804 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1805 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1806 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1807 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1809 (local_setattro): Print name of extension language with existing
1812 * valprint.c (val_print, value_print): Update to call
1813 apply_ext_lang_val_pretty_printer.
1814 * cp-valprint.c (cp_print_value): Update call to
1815 apply_ext_lang_val_pretty_printer.
1816 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1817 (gdbpy_apply_val_pretty_printer): Renamed from
1818 apply_val_pretty_printer. New arg extlang.
1819 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1821 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1822 extension language API.
1823 * cli/cli-script.c (execute_control_command): Update to call
1824 eval_ext_lang_from_control_command.
1826 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1827 enum ext_lang_bt_status values. Update call to
1828 apply_ext_lang_frame_filter.
1829 (mi_cmd_stack_list_locals): Ditto.
1830 (mi_cmd_stack_list_args): Ditto.
1831 (mi_cmd_stack_list_variables): Ditto.
1832 * mi/mi-main.c: Delete #include "python/python-internal.h".
1833 Add #include "extension.h".
1834 (mi_cmd_list_features): Replace reference to python internal variable
1835 gdb_python_initialized with call to ext_lang_initialized_p.
1837 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1838 Update to use enum ext_lang_frame_args. Update to call
1839 apply_ext_lang_frame_filter.
1840 * python/py-framefilter.c (extract_sym): Update to use enum
1842 (extract_value, py_print_type, py_print_value): Ditto.
1843 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1844 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1845 (py_print_frame): Ditto.
1846 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1847 New arg extlang. Update to use enum ext_lang_bt_status.
1849 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1850 finish_python_initialization. Replace with call to
1851 finish_ext_lang_initialization.
1853 * typeprint.c (do_free_global_table): Update to call
1854 free_ext_lang_type_printers.
1855 (create_global_typedef_table): Update to call
1856 start_ext_lang_type_printers.
1857 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1858 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1859 (type_print_options): Change type of global_printers from "void *"
1860 to "struct ext_lang_type_printers *".
1862 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1863 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1864 (gdbpy_preserve_values): Renamed from preserve_python_values.
1866 (!HAVE_PYTHON, preserve_python_values): Delete.
1868 * utils.c (quit_flag): Delete, moved to extension.c.
1869 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1872 * eval.c: Delete #include "python/python.h".
1873 * main.c: Delete #include "python/python.h".
1875 * defs.h: Update comment.
1877 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1881 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1883 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1886 2014-02-05 Yao Qi <yao@codesourcery.com>
1888 * remote.c (remote_pass_signals): Remove local 'buf' and use
1890 (remote_program_signals): Likewise.
1892 2014-02-05 Yao Qi <yao@codesourcery.com>
1894 * ctf.c: Include "inferior.h" and "gdbthread.h".
1895 (CTF_PID): A new macro.
1896 (ctf_open): Call inferior_appeared and add_thread_silent.
1897 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1898 (ctf_thread_alive): New function.
1899 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1901 2014-02-05 Yao Qi <yao@codesourcery.com>
1905 2013-05-24 Yao Qi <yao@codesourcery.com>
1907 * tracepoint.c (TFILE_PID): Remove.
1908 (tfile_open): Don't add thread and inferior.
1909 (tfile_close): Don't set 'inferior_ptid'. Don't call
1910 exit_inferior_silent.
1911 (tfile_thread_alive): Remove.
1912 (init_tfile_ops): Don't set field 'to_thread_alive' of
1915 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1917 * remote.c (remote_start_remote): Call remote_check_symbols even
1918 if only symbol-file (not file) has been given.
1920 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1922 * gdbarch.sh (skip_entrypoint): New callback.
1923 * gdbarch.c, gdbarch.h: Regenerate.
1924 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1925 * infrun.c (fill_in_stop_func): Likewise.
1926 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1927 (ppc_elfv2_elf_make_msymbol_special): New function.
1928 (ppc_elfv2_skip_entrypoint): Likewise.
1929 (ppc_linux_init_abi): Install them for ELFv2.
1931 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1933 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1934 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1935 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1936 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1937 structures returned in GPRs.
1939 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1942 offset to the stack parameter list for the ELFv2 ABI.
1944 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1946 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1947 set_gdbarch_convert_from_func_ptr_addr and
1948 set_gdbarch_elf_make_msymbol_special for ELFv1.
1949 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1950 function descriptors on ELFv1.
1951 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1952 set up r12 at function entry.
1954 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1956 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1957 (struct gdbarch_tdep): New member elf_abi.
1959 * rs6000-tdep.c: Include "elf/ppc64.h".
1960 (rs6000_gdbarch_init): Detect ELF ABI version.
1962 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1964 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1965 within a register pair holding a DFP 128-bit value on little-endian.
1966 (ppc64_sysv_abi_return_value_base): Likewise.
1967 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1968 (dfp_pseudo_register_write): Likewise.
1970 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1972 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1973 offset on little-endian when passing _Decimal32.
1974 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1976 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1978 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1979 of the overlapped FP register within the VSX register on little-
1981 (efpr_pseudo_register_write): Likewise.
1983 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1986 offset on little-endian when passing small structures.
1988 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1990 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1991 (struct ppc64_sysv_argpos): New data structure.
1992 (ppc64_sysv_abi_push_float): Remove.
1993 (ppc64_sysv_abi_push_val): New function.
1994 (ppc64_sysv_abi_push_integer): Likewise.
1995 (ppc64_sysv_abi_push_freg): Likewise.
1996 (ppc64_sysv_abi_push_vreg): Likewise.
1997 (ppc64_sysv_abi_push_param): Likewise.
1998 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1999 (ppc64_sysv_abi_return_value_base): New function.
2000 (ppc64_sysv_abi_return_value): Refactor to use it.
2002 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2004 * NEWS: Document new target powerpc64le-*-linux*.
2006 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2008 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2009 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2011 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2012 register set used in ELF core dumps. Add floating-point register set.
2014 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2016 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2017 dwarf2_to_gdb[] table using symbolic constants. Adjust
2018 penultimate entry from number representing the PC register
2019 to symbolic constant representing the MDR register. Add
2020 constant for the PC register to the end of the table.
2022 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2024 * bsd-kvm.c: Include <sys/param.h>
2026 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2028 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2030 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2032 * ada-lang.h (clear_ada_sym_cache): Delete.
2034 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2036 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2038 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2040 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2041 the sigreturn register save area only if the syscall is
2044 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2046 * valops.c (value_slice): Minor reformatting.
2048 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2050 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2052 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2054 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2056 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2057 (ada_ignore_descriptive_types_p): New static global.
2058 (find_parallel_type_by_descriptive_type): Return immediately
2059 if ada_ignore_descriptive_types_p is set.
2060 (_initialize_ada_language): Register new commands "maintenance
2061 set ada", "maintenance show ada", "maintenance set ada
2062 ignore-descriptive-types" and "maintenance show ada
2063 ignore-descriptive-types".
2064 * NEWS: Add entry for new "maint ada set/show
2065 ignore-descriptive-types" commands.
2067 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2069 * record-btrace.c (record_btrace_close): Call btrace_teardown
2072 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2074 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2077 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2079 * ada-typeprint (type_is_full_subrange_of_target_type):
2081 (print_range): Add parameter bounds_prefered_p. If not set,
2082 try printing range types using the name of their base type.
2083 (print_range_type): Add parameter bounds_prefered_p.
2084 Use it in call to print_range.
2085 (print_array_type, ada_print_type): Update calls to print_range
2086 and print_range_type.
2088 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2090 * ada-typeprint.c (print_array_type, print_choices, print_range)
2091 (print_range_bound, print_dynamic_range_bound, print_range_type):
2094 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2096 * ada-typeprint.c (print_range): Add missing empty line
2097 after local declaration.
2099 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2101 * ada-valprint.c (print_optional_low_bound): Get index_type's
2102 target type for as long as it is a TYPE_CODE_RANGE.
2104 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2106 * procfs.c (procfs_make_note_section): Remove assertion and
2109 2014-01-24 Yao Qi <yao@codesourcery.com>
2111 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2112 * corelow.c (get_core_siginfo): Likewise.
2114 2014-01-24 Yao Qi <yao@codesourcery.com>
2116 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2117 ULONGEST. Don't check 'len' is negative.
2118 (remote_write_bytes): Change type of 'len' to ULONGEST.
2120 2014-01-23 Tom Tromey <tromey@redhat.com>
2123 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2124 Handle exception from frame.block.
2125 (FrameVars.fetch_frame_locals): Likewise.
2127 2014-01-23 Tom Tromey <tromey@redhat.com>
2130 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2131 on a NULL pointer. Move "goto error" to correct place.
2133 2014-01-23 Tom Tromey <tromey@redhat.com>
2136 * python/py-framefilter.c (apply_frame_filter): Call
2137 ensure_python_env after computing gdbarch.
2139 2014-01-23 Yao Qi <yao@codesourcery.com>
2141 * target.c (raw_memory_xfer_partial): Change argument type
2142 from void * to gdb_byte *.
2143 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2145 2014-01-22 Doug Evans <dje@google.com>
2147 New gdbserver option --debug-format=timestamp.
2150 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2152 * syscalls/s390x-linux.xml: New file.
2153 * syscalls/s390-linux.xml: New file.
2154 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2155 (XML_SYSCALL_FILENAME_S390X): Likewise.
2156 (op_svc): New enum value for SVC opcode.
2157 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2158 (s390_linux_get_syscall_number): New function.
2159 (s390_gdbarch_init): Register '*get_syscall_number' and the
2160 syscall xml file name.
2161 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2162 "s390-linux.xml" and "s390x-linux.xml".
2163 * NEWS: Announce new feature.
2165 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2167 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2169 2014-01-22 Pedro Alves <palves@redhat.com>
2171 * xtensa-config.c: Include defs.h.
2173 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2175 * common/common-utils.h: Add "ARI:" comment beside __func__
2178 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2180 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2181 documentation a bit.
2183 2014-01-21 Roland McGrath <mcgrathr@google.com>
2185 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2186 * configure: Regenerate.
2187 * aclocal.m4: Regenerate.
2188 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2189 New substituted variables.
2190 (install-strip): New target.
2191 (INSTALL_SCRIPT): New substituted variable.
2192 (FLAGS_TO_PASS): Add it.
2193 (install-only): Use $(INSTALL_SCRIPT) rather than
2194 $(INSTALL_PROGRAM) for gcore.
2196 2014-01-20 Tom Tromey <tromey@redhat.com>
2198 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2201 2014-01-20 Tom Tromey <tromey@redhat.com>
2203 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2204 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2205 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2206 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2207 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2208 (struct cmd_list_element) <flags>: Remove.
2209 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2210 doc_allocated>: New fields.
2211 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2213 * maint.c (maintenance_do_deprecate): Update.
2214 * top.c (execute_command): Update.
2216 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2218 * xtensa-linux-nat.c: Include asm/ptrace.h.
2220 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2222 * Makefile.in (SFILES): Add d-support.c.
2223 (COMMON_OBS): Add d-support.o.
2224 * d-lang.h (d_parse_symbol): Add comment, now defined in
2226 * d-lang.c (parse_call_convention)
2227 (parse_attributes, parse_function_types)
2228 (parse_function_args, parse_type, parse_identifier)
2229 (call_convention_p, d_parse_symbol): Move functions to ...
2230 * d-support.c: ... New file.
2232 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2234 * d-lang.h (d_parse_symbol): Add declaration.
2235 * d-lang.c (extract_identifiers)
2236 (extract_type_info): Remove functions.
2237 (parse_call_convention, parse_attributes)
2238 (parse_function_types, parse_function_args)
2239 (parse_type, parse_identifier, call_convention_p)
2240 (d_parse_symbol): New functions.
2241 (d_demangle): Use d_parse_symbol to demangle D symbols.
2243 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2245 * d-lang.h (struct builtin_d_type): New data type.
2246 (builtin_d_type): Add declaration.
2247 * d-lang.c (d_language_arch_info, build_d_types)
2248 (builtin_d_type): New functions.
2249 (enum d_primitive_types): New data type.
2250 (d_language_defn): Change c_language_arch_info to
2251 d_language_arch_info.
2252 (d_type_data): New static variable.
2253 (_initialize_d_language): Initialize d_type_data.
2255 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2257 * d-lang.h (d_main_name): Add declaration.
2258 * d-lang.c (d_main_name): New function.
2259 * symtab.c (find_main_name): Add call to d_main_name.
2261 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2263 * d-lang.c (d_language_defn): Change macro_expansion_c to
2266 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2268 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2270 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2272 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2273 gdb_exception" declaration.
2274 * remote.c (getpkt_or_notif_sane): Likewise.
2276 2014-01-17 Doug Evans <dje@google.com>
2278 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2279 function, contents of dirnames_to_char_ptr_vec_append moved here.
2280 (delim_string_to_char_ptr_vec): New function.
2281 (dirnames_to_char_ptr_vec_append): Rewrite.
2282 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2284 2014-01-17 Doug Evans <dje@google.com>
2286 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2288 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2289 #include "common-utils.h".
2290 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2291 * common/vec.h (VEC_ASSERT_PASS): Update.
2292 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2293 (MACH_CHECK_ERROR): Update.
2295 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2297 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2299 * gdbarch.h: Regenerate.
2301 2014-01-16 Tom Tromey <tromey@redhat.com>
2303 * value.c (struct value) <regnum>: Move earlier.
2305 2014-01-16 Tom Tromey <tromey@redhat.com>
2307 * remote.c (extended_remote_create_inferior): Rename from
2308 extended_remote_create_inferior_1. Add "ops" argument. Remove
2311 2014-01-16 Pedro Alves <palves@redhat.com>
2313 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2314 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2317 2014-01-16 Doug Evans <dje@google.com>
2319 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2323 * btrace.h (btrace_thread_flag): New.
2324 (struct btrace_thread_info) <flags>: New.
2325 * record-btrace.c (record_btrace_resume_thread)
2326 (record_btrace_find_thread_to_move, btrace_step_no_history)
2327 (btrace_step_stopped, record_btrace_start_replaying)
2328 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2329 (record_btrace_find_resume_thread): New.
2330 (record_btrace_resume, record_btrace_wait): Extend.
2331 (record_btrace_can_execute_reverse): New.
2332 (record_btrace_open): Fail in non-stop mode.
2333 (record_btrace_set_replay): Split into this, ...
2334 (record_btrace_stop_replaying): ... this, ...
2335 (record_btrace_clear_histories): ... and this.
2336 (init_record_btrace_ops): Init to_can_execute_reverse.
2337 * NEWS: Announce it.
2339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2341 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2342 (forward_target_decr_pc_after_break)
2343 (target_decr_pc_after_break): New.
2344 * target.c (forward_target_decr_pc_after_break)
2345 (target_decr_pc_after_break): New.
2346 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2347 instead of gdbarch_decr_pc_after_break.
2348 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2349 instead of gdbarch_decr_pc_after_break.
2350 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2351 instead of gdbarch_decr_pc_after_break.
2352 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2353 instead of gdbarch_decr_pc_after_break.
2354 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2355 instead of gdbarch_decr_pc_after_break.
2356 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2357 instead of gdbarch_decr_pc_after_break.
2359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2361 * btrace.c: Include regcache.h.
2362 (btrace_add_pc): New.
2363 (btrace_enable): Call btrace_add_pc.
2364 (btrace_is_empty): New.
2365 * btrace.h (btrace_is_empty): New.
2366 * record-btrace.c (require_btrace, record_btrace_info): Call
2369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2371 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2372 Support delta reads.
2373 (linux_disable_btrace): Change return type.
2374 * common/linux-btrace.h (linux_read_btrace): Change parameters
2375 and return type to allow error reporting. Update users.
2376 (linux_disable_btrace): Change return type. Update users.
2377 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2379 (btrace_error): New.
2380 (btrace_block) <begin>: Comment on BEGIN == 0.
2381 * btrace.c (btrace_compute_ftrace): Start from the end of
2383 (btrace_stitch_trace, btrace_clear_history): New.
2384 (btrace_fetch): Read delta trace, return if replaying.
2385 (btrace_clear): Move clear history code to btrace_clear_history.
2386 (parse_xml_btrace): Throw an error if parsing failed.
2387 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2388 and return type to allow error reporting.
2389 (target_read_btrace): Change parameters and return type to allow
2391 * target.c (target_read_btrace): Update.
2392 * remote.c (remote_read_btrace): Support delta reads. Pass
2394 * NEWS: Announce it.
2396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2398 * record.h (record_btrace_frame_unwind)
2399 (record_btrace_tailcall_frame_unwind): New declarations.
2400 * dwarf2-frame: Include record.h
2401 (dwarf2_frame_cfa): Throw an error for btrace frames.
2402 * record-btrace.c: Include hashtab.h.
2403 (btrace_get_bfun_name): New.
2404 (btrace_call_history): Call btrace_get_bfun_name.
2405 (struct btrace_frame_cache): New.
2407 (bfcache_hash, bfcache_eq, bfcache_new): New.
2408 (btrace_get_frame_function): New.
2409 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2410 (record_btrace_frame_this_id): Compute own id.
2411 (record_btrace_frame_prev_register): Provide PC, throw_error
2412 for all other registers.
2413 (record_btrace_frame_sniffer): Detect btrace frames.
2414 (record_btrace_tailcall_frame_sniffer): New.
2415 (record_btrace_frame_dealloc_cache): New.
2416 (record_btrace_frame_unwind): Add new functions.
2417 (record_btrace_tailcall_frame_unwind): New.
2418 (_initialize_record_btrace): Allocate cache.
2419 * btrace.c (btrace_clear): Call reinit_frame_cache.
2420 * NEWS: Announce it.
2422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2424 * record-btrace.c (record_btrace_set_replay)
2425 (record_btrace_goto_begin, record_btrace_goto_end)
2426 (record_btrace_goto): New.
2427 (init_record_btrace_ops): Initialize them.
2428 * NEWS: Announce it.
2430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2432 * record-btrace.c (record_btrace_find_new_threads)
2433 (record_btrace_thread_alive): New.
2434 (init_record_btrace_ops): Initialize to_find_new_threads and
2437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2439 * record-btrace.c (record_btrace_resume): New.
2440 (record_btrace_wait): New.
2441 (init_record_btrace_ops): Initialize to_wait and to_resume.
2443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2445 * record-btrace.c (record_btrace_xfer_partial)
2446 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2447 (record_btrace_allow_memory_access): New.
2448 (init_record_btrace_ops): Initialize new methods.
2449 * target.c (raw_memory_xfer_partial): Bail out if target reports
2450 that this memory is not available.
2452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2454 * target.h (target_ops) <to_insert_breakpoint>
2455 <to_remove_breakpoint>: Add target_ops parameter.
2456 (forward_target_insert_breakpoint): New.
2457 (forward_target_remove_breakpoint): New.
2458 (memory_remove_breakpoint, memory_insert_breakpoint):
2459 Add target_ops parameter.
2460 * target.c (target_insert_breakpoint): Split into this and ...
2461 (forward_target_insert_breakpoint): ... this.
2462 (target_remove_breakpoint): Split into this and ...
2463 (forward_target_remove_breakpoint): ... this.
2464 (debug_to_insert_breakpoint): Add target_ops parameter.
2465 Call forward_target_insert_breakpoint.
2466 (debug_to_remove_breakpoint): Add target_ops parameter.
2467 Call forward_target_remove_breakpoint.
2468 (update_current_target): Do not inherit or default to_insert_breakpoint
2469 and to_remove_breakpoint.
2470 * corelow.c (ignore): Add target_ops parameter.
2471 * exec.c (ignore): Add target_ops parameter.
2472 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2473 Add target_ops parameter.
2474 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2475 Add target_ops parameter.
2476 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2477 Add target_ops parameter.
2478 * record-full.c (record_full_beneath_to_insert_breakpoint)
2479 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2480 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2481 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2482 (record_full_core_remove_breakpoint): Add target_ops parameter.
2484 (record_full_beneath_to_insert_breakpoint_ops)
2485 (record_full_beneath_to_remove_breakpoint_ops)
2486 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2487 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2488 tmp_to_remove_breakpoint_ops,
2489 record_full_beneath_to_insert_breakpoint_ops, and
2490 record_full_beneath_to_remove_breakpoint_ops.
2491 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2492 (m32r_remove_breakpoint): Add target_ops parameter.
2493 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2494 Add target_ops parameter.
2495 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2496 Add target_ops parameter.
2498 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2499 Markus Metzger <markus.t.metzger@intel.com>
2501 * record-btrace.c: Include frame-unwind.h.
2502 (record_btrace_frame_unwind_stop_reason)
2503 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2504 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2506 (init_record_btrace_ops): Install it.
2508 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2510 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2513 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2515 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2518 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2520 * frame-unwind.c: Include target.h.
2521 (frame_unwind_try_unwinder): New function with code from ...
2522 (frame_unwind_find_by_frame): ... here. New variable
2523 unwinder_from_target, call also target_get_unwinder)
2524 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2525 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2526 * target.h (struct target_ops): New fields to_get_unwinder and
2527 to_get_tailcall_unwinder.
2528 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2532 * record-btrace.c (record_btrace_fetch_registers)
2533 (record_btrace_store_registers)
2534 (record_btrace_to_prepare_to_store): New.
2535 (init_record_btrace_ops): Add the above.
2537 2014-01-16 Tom Tromey <tromey@redhat.com>
2539 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2540 * target.h (struct target_ops) <to_prepare_to_store>: Add
2542 (target_prepare_to_store): Add argument.
2543 * target.c (debug_to_prepare_to_store): Add argument.
2544 (update_current_target): Update.
2545 * remote.c (remote_prepare_to_store): Add 'self' argument.
2546 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2547 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2548 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2549 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2551 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2552 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2553 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2554 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2555 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2559 * btrace.h (replay) <replay>: New.
2560 (btrace_is_replaying): New.
2561 * btrace.c (btrace_clear): Free replay iterator.
2562 (btrace_is_replaying): New.
2563 * record-btrace.c (record_btrace_is_replaying): New.
2564 (record_btrace_info): Print insn number if replaying.
2565 (record_btrace_insn_history): Start at replay position.
2566 (record_btrace_call_history): Start at replay position.
2567 (init_record_btrace_ops): Init to_record_is_replaying.
2569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2571 * record-btrace.c (record_btrace_insn_history_range): Include
2573 (record_btrace_insn_history_from): Adjust range.
2574 (record_btrace_call_history_range): Include
2576 (record_btrace_call_history_from): Adjust range.
2577 * NEWS: Announce changes.
2579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2581 * record.h (enum record_print_flag)
2582 <record_print_indent_calls>: New.
2583 * record.c (get_call_history_modifiers): Recognize /c modifier.
2584 (_initialize_record): Document /c modifier.
2585 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2586 Reorder fields. Optionally indent the function name. Update
2588 * NEWS: Announce changes.
2590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2592 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2596 * btrace.c (ftrace_new_function): Start counting at one.
2597 * record-btrace.c (record_btrace_info): Adjust number of calls
2599 * NEWS: Announce it.
2601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2603 * record-btrace.c (btrace_call_history_insn_range): Print
2604 insn range as [begin, end].
2606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2608 * btrace.h (struct btrace_func_link): New.
2609 (enum btrace_function_flag): New.
2610 (struct btrace_inst): Rename to ...
2611 (struct btrace_insn): ...this. Update all users.
2612 (struct btrace_func) <ibegin, iend>: Remove.
2613 (struct btrace_func_link): New.
2614 (struct btrace_func): Rename to ...
2615 (struct btrace_function): ...this. Update all users.
2616 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2617 (number, level, flags>: New.
2618 (struct btrace_insn_iterator): Rename to ...
2619 (struct btrace_insn_history): ...this.
2621 (struct btrace_insn_iterator, btrace_call_iterator): New.
2622 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2623 (struct btrace_target_info) <begin, end, level>
2624 <insn_history, call_history>: New.
2625 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2626 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2627 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2628 (btrace_call_number, btrace_call_begin, btrace_call_end)
2629 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2630 (btrace_find_function_by_number, btrace_set_insn_history)
2631 (btrace_set_call_history): New.
2632 * btrace.c (btrace_init_insn_iterator)
2633 (btrace_init_func_iterator, compute_itrace): Remove.
2634 (ftrace_print_function_name, ftrace_print_filename)
2635 (ftrace_skip_file): Change
2637 (ftrace_init_func): Remove.
2638 (ftrace_debug): Use new btrace_function fields.
2639 (ftrace_function_switched): Also consider gaining and
2640 losing symbol information).
2641 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2642 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2643 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2645 (ftrace_new_function): Move. Remove debug print.
2646 (ftrace_update_lines, ftrace_update_insns): New.
2647 (ftrace_update_function): Check for call, ret, and jump.
2648 (compute_ftrace): Renamed to ...
2649 (btrace_compute_ftrace): ...this. Rewritten to compute call
2651 (btrace_fetch, btrace_clear): Updated.
2652 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2653 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2654 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2655 (btrace_call_number, btrace_call_begin, btrace_call_end)
2656 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2657 (btrace_find_function_by_number, btrace_set_insn_history)
2658 (btrace_set_call_history): New.
2659 * record-btrace.c (require_btrace): Use new btrace thread
2661 (record_btrace_info, btrace_insn_history)
2662 (record_btrace_insn_history, record_btrace_insn_history_range):
2663 Use new btrace thread info fields and new iterator.
2664 (btrace_func_history_src_line): Rename to ...
2665 (btrace_call_history_src_line): ...this. Use new btrace
2667 (btrace_func_history): Rename to ...
2668 (btrace_call_history): ...this. Use new btrace thread info
2669 fields and new iterator.
2670 (record_btrace_call_history, record_btrace_call_history_range):
2671 Use new btrace thread info fields and new iterator.
2673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2675 * frame.h (frame_id_build_unavailable_stack_special): New.
2676 * frame.c (frame_id_build_unavailable_stack_special): New.
2678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2680 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2681 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2682 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2684 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2685 (i386_insn_is_jump, i386_jmp_p): New.
2686 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2687 insn_is_jump to gdbarch.
2688 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2689 * gdbarch.h: Regenerated.
2690 * gdbarch.c: Regenerated.
2691 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2692 (default_insn_is_jump): New.
2693 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2694 (default_insn_is_jump): New.
2696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2698 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2700 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2701 (btrace_read_type) <btrace_read_new>: Change to ...
2702 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2706 * common/linux-btrace.c (linux_read_btrace): Free trace from
2709 2014-01-15 Doug Evans <dje@google.com>
2711 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2714 2014-01-15 Tom Tromey <tromey@redhat.com>
2716 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2717 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2718 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2719 (set_objfile_main_name): New function.
2720 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2721 language_of_main>: New fields.
2722 (set_objfile_main_name): Declare.
2723 * symtab.c (find_main_name): Loop over objfiles to find the main
2725 (set_main_name): Now static.
2726 (get_main_info): Add comment.
2727 * symtab.h (set_main_name): Don't declare.
2729 2014-01-15 Tom Tromey <tromey@redhat.com>
2731 * symtab.c (main_progspace_key): New global.
2732 (struct main_info): New.
2733 (name_of_main, language_of_main): Remove.
2734 (get_main_info, main_info_cleanup): New function.
2735 (set_main_name, main_name, main_language): Use get_main_info.
2736 (_initialize_symtab): Initialize main_progspace_key.
2738 2014-01-15 Tom Tromey <tromey@redhat.com>
2740 * dbxread.c (process_one_symbol): Update.
2741 * dwarf2read.c (read_partial_die): Update.
2742 * symfile.c (set_initial_language): Call main_language.
2743 * symtab.c (language_of_main): Now static.
2744 (set_main_name): Add 'lang' parameter.
2745 (find_main_name): Update.
2746 (main_language): New function.
2747 (symtab_observer_executable_changed): Update.
2748 * symtab.h (set_main_name): Update.
2749 (language_of_main): Remove.
2750 (main_language): Declare.
2752 2014-01-15 Tom Tromey <tromey@redhat.com>
2754 * symfile.c (init_entry_point_info): Use new "initialized" field.
2756 * objfiles.h (struct entry_point) <initialized>: New field.
2757 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2758 (struct objfile) <ei>: ...here. Remove.
2759 * objfiles.c (entry_point_address_query): Update.
2761 2014-01-15 Tom Tromey <tromey@redhat.com>
2763 * objfiles.c (entry_point_address_query): Relocate entry point
2765 (objfile_relocate1): Do not relocate entry point address.
2766 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2767 <the_bfd_section_index>: New field.
2768 * symfile.c (init_entry_point_info): Find the entry point's
2771 2014-01-15 Tom Tromey <tromey@redhat.com>
2773 * solib-frv.c (enable_break): Use entry_point_address_query.
2775 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2777 * NEWS: Add note on improved process record-replay on
2778 arm*-linux* targets.
2780 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2782 * arm-tdep.c (enum arm_record_result): New enum.
2783 (arm_record_unsupported_insn): New function.
2784 (arm_record_coproc_data_proc): Removed.
2785 (thumb2_record_ld_st_multiple): New function.
2786 (thumb2_record_ld_st_dual_ex_tbb): New function.
2787 (thumb2_record_data_proc_sreg_mimm): New function.
2788 (thumb2_record_ps_dest_generic): New function.
2789 (thumb2_record_branch_misc_cntrl): New function.
2790 (thumb2_record_str_single_data): New function.
2791 (thumb2_record_ld_mem_hints): New function.
2792 (thumb2_record_ld_word): New function.
2793 (thumb2_record_lmul_lmla_div): New function.
2794 (thumb2_record_decode_insn_handler): New function.
2795 (decode_insn): Add thumb32 instruction handlers.
2797 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2799 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2800 (struct arm_linux_record_tdep): Declare.
2801 (arm_canonicalize_syscall): New function.
2802 (arm_all_but_pc_registers_record): New function.
2803 (arm_linux_syscall_record): New function.
2804 (arm_linux_init_abi): Add syscall recording constructs.
2805 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2806 decoding. (arm_record_coproc_data_proc): Update arm syscall
2808 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2809 <arm_syscall_record>: New field.
2810 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2813 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2815 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2816 register for push instruction recording.
2818 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2820 * arm-tdep.c (thumb_record_misc): Update to correct logical
2821 error while recording ldm, ldmia and pop instructions.
2823 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2825 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2827 2014-01-15 Pedro Alves <palves@redhat.com>
2829 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2830 (go32_resume, go32_fetch_registers, store_register)
2831 (go32_store_registers, go32_prepare_to_store)
2832 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2833 (go32_create_inferior, go32_can_run, go32_terminal_init)
2834 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2837 2014-01-15 Tom Tromey <tromey@redhat.com>
2839 * target.h (async_callback_ftype): New typedef.
2840 (struct target_ops) <to_async>: Use it.
2842 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2844 * python/py-value.c (get_field_type): Remove unnecessary curly
2845 braces for single-statement if block.
2847 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2849 * python/py-type.c (convert_field): Add missing empty line
2852 2014-01-14 Doug Evans <dje@google.com>
2854 * symfile.h (expand_symtabs_matching): Renamed from
2855 expand_partial_symbol_names. Update prototype.
2856 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2857 * symfile.c (expand_symtabs_matching): Renamed from
2858 expand_partial_symbol_names. New args file_matcher, kind.
2859 Rename arg fun to symbol_matcher.
2860 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2861 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2862 ada_expand_partial_symbol_name.
2863 (ada_make_symbol_completion_list): Update to call
2864 expand_symtabs_matching.
2865 (ada_add_global_exceptions): Call expand_symtabs_matching.
2866 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2867 call map_symbol_filenames.
2868 * symtab.c (sources_info): Update to call map_symbol_filenames.
2869 (search_symbols): Call expand_symtabs_matching.
2870 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2871 (default_make_symbol_completion_list_break_on): Update to call
2872 expand_symtabs_matching.
2873 (make_source_files_completion_list): Update to call
2874 map_symbol_filenames.
2876 2014-01-14 Doug Evans <dje@google.com>
2878 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2879 (expand_symtabs_symbol_matcher_ftype): New typedef.
2880 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2881 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2882 * symfile.c (expand_partial_symbol_names): Update to use
2883 expand_symtabs_symbol_matcher_ftype.
2884 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2885 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2886 Arg name_matcher renamed to symbol_matcher.
2887 * psymtab.c (recursively_search_psymtabs): Update to use
2888 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2890 (expand_symtabs_matching_via_partial): Update to use
2891 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2892 Arg name_matcher renamed to symbol_matcher.
2894 2014-01-14 Doug Evans <dje@google.com>
2896 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2897 (map_partial_symbol_filenames): Ditto.
2898 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2899 (map_partial_symbol_filenames): Ditto.
2900 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2901 (map_partial_symbol_filenames): Ditto.
2902 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2903 (map_partial_symbol_filenames): Ditto.
2904 * symtab.c: Delete #include "psymtab.h".
2906 2014-01-14 Pedro Alves <palves@redhat.com>
2907 Tom Tromey <tromey@redhat.com>
2909 * infrun.c (use_displaced_stepping): Use find_record_target
2910 instead of RECORD_IS_USED.
2911 (adjust_pc_after_break): Use record_full_is_used instead of
2913 * record-btrace.c (record_btrace_open): Call record_preopen
2914 instead of checking RECORD_IS_USED.
2915 * record-full.c (record_full_shortname)
2916 (record_full_core_shortname): New globals.
2917 (record_full_is_used): New function.
2918 (find_full_open): Call record_preopen instead of checking
2920 (init_record_full_ops): Set the target's shortname to
2921 record_full_shortname.
2922 (init_record_full_core_ops): Set the target's shortname to
2923 record_full_core_shortname.
2924 * record-full.h (record_full_is_used): Declare.
2925 * record.c (find_record_target): Make extern.
2926 (record_preopen): New function.
2927 * record.h (RECORD_IS_USED): Delete macro.
2928 (find_record_target, record_preopen): Declare functions.
2930 2014-01-14 Yao Qi <yao@codesourcery.com>
2932 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2933 'len''s type to ULONGEST.
2934 (core_xfer_shared_libraries_aix): Likewise.
2935 * gdbarch.c, gdbarch.h: Regenerated.
2936 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2937 Change type of 'len' to ULONGEST.
2938 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2939 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2941 2014-01-14 Yao Qi <yao@codesourcery.com>
2943 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2944 type of 'len' to ULONGEST.
2945 (linux_xfer_osdata_processgroups): Likewise.
2946 (linux_xfer_osdata_threads): Likewise.
2947 (linux_xfer_osdata_fds): Likewise.
2948 (linux_xfer_osdata_isockets): Likewise.
2949 (linux_xfer_osdata_shm): Likewise.
2950 (linux_xfer_osdata_sem): Likewise.
2951 (linux_xfer_osdata_msg): Likewise.
2952 (linux_common_xfer_osdata): Likewise.
2953 (struct osdata_type) <getter>: Likewise.
2954 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2957 2014-01-14 Yao Qi <yao@codesourcery.com>
2959 * target.h (target_xfer_partial_ftype): Update.
2960 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2962 * aix-thread.c (aix_thread_xfer_partial): Change type of
2963 argument 'len' to ULONGEST.
2964 * auxv.c (procfs_xfer_auxv): Likewise.
2965 (ld_so_xfer_auxv): Likewise.
2966 (memory_xfer_auxv): Likewise.
2967 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2968 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2969 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2970 * corelow.c (core_xfer_partial): Likewise.
2971 * ctf.c (ctf_xfer_partial): Likewise.
2972 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2974 (darwin_read_dyld_info): Likewise.
2975 (darwin_xfer_partial): Likewise.
2976 * exec.c (section_table_xfer_memory_partial): Likewise.
2977 (exec_xfer_partial): Likewise.
2978 * exec.h (section_table_xfer_memory_partial): Update
2980 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2981 instead of plongest.
2982 (gnu_xfer_partial): Likewise.
2983 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2984 (ia64_hpux_xfer_solib_got): Likewise.
2985 (ia64_hpux_xfer_partial): Likewise.
2986 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2987 * inf-ptrace.c (inf_ptrace_xfer_partial):
2988 * inf-ttrace.c (inf_ttrace_xfer_partial):
2989 * linux-nat.c (linux_xfer_siginfo): Likewise.
2990 (linux_nat_xfer_partial): Likewise.
2991 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2992 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2993 * monitor.c (monitor_xfer_memory): Likewise.
2994 (monitor_xfer_partial): Likewise.
2995 * procfs.c (procfs_xfer_partial): Likewise.
2996 * record-full.c (record_full_xfer_partial): Likewise.
2997 (record_full_core_xfer_partial): Likewise.
2998 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2999 instead of plongest.
3000 (gdbsim_xfer_partial): Likewise.
3001 * remote.c (remote_xfer_partial): Likewise.
3002 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3003 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3005 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3006 (rs6000_xfer_shared_libraries): Likewise.
3007 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3008 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3009 (sparc_xfer_partial): Likewise.
3010 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3011 (spu_xfer_partial): Likewise.
3012 * spu-multiarch.c (spu_xfer_partial): Likewise.
3013 * target.c (target_read_live_memory): Likewise.
3014 (memory_xfer_live_readonly_partial): Likewise.
3015 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3016 (target_xfer_partial, default_xfer_partial): Likewise.
3017 (current_xfer_partial): Likewise.
3018 * tracepoint.c (tfile_xfer_partial): Likewise.
3019 * windows-nat.c (windows_xfer_memory): Likewise. Call
3020 pulongest instead of plongest.
3021 (windows_xfer_partial): Likewise.
3022 (windows_xfer_shared_libraries): Likewise.
3024 2014-01-14 Yao Qi <yao@codesourcery.com>
3026 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3027 target_xfer_partial_ftype.
3029 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3033 * valops.c (value_struct_elt_bitpos): New function
3034 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3035 object to 'None' if the field name is an empty string ("").
3036 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3037 attribute to look for a field when 'name' is 'None'.
3038 (get_field_type): New function
3040 2014-01-13 Doug Evans <dje@google.com>
3043 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3044 (try_open_dwop_file): Ditto.
3045 * gdb_bfd.c: #include "vec.h".
3046 (bfdp): New typedef.
3047 (struct gdb_bfd_data): New member included_bfds.
3048 (gdb_bfd_unref): Unref all included bfds.
3049 (gdb_bfd_record_inclusion): New function.
3050 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3052 2014-01-13 Tom Tromey <tromey@redhat.com>
3054 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3056 2014-01-13 Tom Tromey <tromey@redhat.com>
3058 * defs.h (use_windows): Remove.
3059 * gdb.c (main): Update.
3060 * main.c (captured_main, gdb_main): Update.
3061 * main.h (struct captured_main_args) <use_windows>: Remove.
3062 * top.c (use_windows): Remove.
3064 2014-01-13 Tom Tromey <tromey@redhat.com>
3066 * defs.h (deprecated_flush_hook): Remove.
3068 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3071 * linux-thread-db.c (try_thread_db_load): Add parameter
3072 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3073 (try_thread_db_load_from_pdir_1): Move it there from here.
3074 (try_thread_db_load_from_sdir): Update caller.
3075 (try_thread_db_load_from_dir): Move it there from here.
3077 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3079 * regformats/regdat.sh: Always rewrite the register file.
3081 2014-01-13 Pedro Alves <palves@redhat.com>
3083 * Makefile.in (CHECK_HEADERS): New variable.
3084 (check-headers:): New rule.
3086 2014-01-13 Tom Tromey <tromey@redhat.com>
3088 * cli/cli-setshow.c (do_set_command): Update.
3089 * defs.h (deprecated_set_hook): Remove.
3090 * top.c (deprecated_set_hook): Remove.
3092 2014-01-13 Pedro Alves <palves@redhat.com>
3094 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3095 the tracepoint if the PC is a pseudo-register.
3097 2014-01-13 Tom Tromey <tromey@redhat.com>
3099 * defs.h (XCALLOC): Remove.
3100 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3101 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3102 * dwarf2loc.c (allocate_piece_closure): Likewise.
3103 * elfread.c (elf_symfile_segments): Likewise.
3104 (elf_symfile_segments): Likewise.
3105 * gdbtypes.c (copy_type_recursive): Likewise.
3106 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3107 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3108 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3110 * mt-tdep.c (mt_gdbarch_init): Likewise.
3111 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3113 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3114 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3115 * registry.c (registry_alloc_data): Likewise.
3116 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3117 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3118 * serial.c (serial_fdopen_ops): Likewise.
3119 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3121 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3122 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3125 2014-01-13 Tom Tromey <tromey@redhat.com>
3127 * defs.h (XMALLOC): Remove.
3128 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3129 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3130 * cli-out.c (struct ui_out *): Likewise.
3131 * cli/cli-dump.c (add_dump_command): Likewise.
3132 (add_dump_command): Likewise.
3133 * complaints.c (get_complaints): Likewise.
3134 (find_complaint): Likewise.
3135 * dwarf2-frame.c (execute_cfa_program): Likewise.
3136 * dwarf2read.c (abbrev_table_read_table): Likewise.
3137 * gdbarch.sh: Likewise.
3138 * gdbarch.c: Rebuild.
3139 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3140 * interps.c (interp_new): Likewise.
3141 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3142 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3143 * mi/mi-console.c (mi_console_file_new): Likewise.
3144 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3145 * mi/mi-out.c (mi_out_new): Likewise.
3146 * mi/mi-parse.c (mi_parse): Likewise.
3147 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3148 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3149 * observer.c (xalloc_observer_list_node): Likewise.
3150 * regcache.c (regcache_xmalloc_1): Likewise.
3151 * reggroups.c (reggroup_new): Likewise.
3152 (_initialize_reggroup): Likewise.
3153 * registry.c (register_data_with_cleanup): Likewise.
3154 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3155 * ser-base.c (serial_ttystate): Likewise.
3156 * ser-mingw.c (make_pipe_state): Likewise.
3157 * ser-pipe.c (pipe_open): Likewise.
3158 * serial.c (serial_open): Likewise.
3159 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3160 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3161 (tui_alloc_win_info): Likewise.
3162 (tui_add_content_elements): Likewise.
3163 * tui/tui-file.c (tui_file_new): Likewise.
3164 * tui/tui-out.c (tui_out_new): Likewise.
3165 * ui-file.c (mem_file_new): Likewise.
3166 * ui-out.c (push_level): Likewise.
3167 (make_cleanup_ui_out_end): Likewise.
3168 (append_header_to_list): Likewise.
3169 (ui_out_new): Likewise.
3170 * user-regs.c (user_reg_add_builtin): Likewise.
3172 2014-01-13 Tom Tromey <tromey@redhat.com>
3174 * defs.h (XZALLOC): Remove.
3175 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3176 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3177 (get_ada_tasks_inferior_data): Likewise.
3178 * auto-load.c (get_auto_load_pspace_data): Likewise.
3179 * auxv.c (get_auxv_inferior_data): Likewise.
3180 * bfd-target.c (target_bfd_reopen): Likewise.
3181 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3182 (deprecated_insert_raw_breakpoint): Likewise.
3183 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3184 * corelow.c (core_open): Likewise.
3185 * darwin-nat.c (darwin_check_new_threads): Likewise.
3186 (darwin_attach_pid): Likewise.
3187 * dummy-frame.c (dummy_frame_push): Likewise.
3188 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3189 * dwarf2loc.c (allocate_piece_closure): Likewise.
3190 * elfread.c (elf_symfile_segments): Likewise.
3191 * eval.c (ptrmath_type_p): Likewise.
3192 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3193 * gdbtypes.c (alloc_type_arch): Likewise.
3194 (alloc_type_instance): Likewise.
3195 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3196 * inf-child.c (inf_child_can_use_agent): Likewise.
3197 * inflow.c (get_inflow_inferior_data): Likewise.
3198 * infrun.c (save_infcall_suspend_state): Likewise.
3199 * jit.c (jit_reader_load): Likewise.
3200 (get_jit_objfile_data): Likewise.
3201 (get_jit_program_space_data): Likewise.
3202 (jit_object_open_impl): Likewise.
3203 (jit_symtab_open_impl): Likewise.
3204 (jit_block_open_impl): Likewise.
3205 (jit_frame_sniffer): Likewise.
3206 * linux-fork.c (add_fork): Likewise.
3207 * maint.c (make_command_stats_cleanup): Likewise.
3208 * objfiles.c (get_objfile_pspace_data): Likewise.
3209 * opencl-lang.c (struct lval_closure): Likewise.
3210 * osdata.c (osdata_start_osdata): Likewise.
3211 * progspace.c (new_address_space): Likewise.
3212 (add_program_space): Likewise.
3213 * remote-sim.c (get_sim_inferior_data): Likewise.
3214 * sh-tdep.c (sh_gdbarch_init): Likewise.
3215 * skip.c (Ignore): Likewise.
3216 (skip_delete_command): Likewise.
3217 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3218 (library_list_start_library): Likewise.
3219 (solib_aix_current_sos): Likewise.
3220 * solib-darwin.c (get_darwin_info): Likewise.
3221 (darwin_current_sos): Likewise.
3222 * solib-dsbt.c (get_dsbt_info): Likewise.
3223 * solib-ia64-hpux.c (new_so_list): Likewise.
3224 (ia64_hpux_get_solib_linkage_addr): Likewise.
3225 * solib-spu.c (append_ocl_sos): Likewise.
3226 (spu_current_sos): Likewise.
3227 * solib-svr4.c (get_svr4_info): Likewise.
3228 (svr4_keep_data_in_core): Likewise.
3229 (library_list_start_library): Likewise.
3230 (svr4_default_sos): Likewise.
3231 (svr4_read_so_list): Likewise.
3232 * solib-target.c (library_list_start_library): Likewise.
3233 (solib_target_current_sos): Likewise.
3234 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3235 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3236 * symfile.c (default_symfile_segments): Likewise.
3237 * target-descriptions.c (tdesc_data_init): Likewise.
3238 (tdesc_create_reg): Likewise.
3239 (struct tdesc_type *): Likewise.
3240 (tdesc_create_vector): Likewise.
3241 (tdesc_set_struct_size): Likewise.
3242 (struct tdesc_type *): Likewise.
3243 (tdesc_free_feature): Likewise.
3244 (tdesc_create_feature): Likewise.
3245 * windows-nat.c (windows_add_thread): Likewise.
3246 (windows_make_so): Likewise.
3247 * xml-support.c (gdb_xml_body_text): Likewise.
3248 (gdb_xml_create_parser_and_cleanup): Likewise.
3249 (xml_process_xincludes): Likewise.
3250 * xml-syscall.c (allocate_syscalls_info): Likewise.
3251 (syscall_create_syscall_desc): Likewise.
3253 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3255 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3256 function, with code from i386_stap_parse_special_token.
3257 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3258 (i386_stap_parse_special_token): Move code to the two functions
3261 2014-01-09 Pedro Alves <palves@redhat.com>
3262 Hui Zhu <hui@codesourcery.com>
3265 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3266 bp_err_string. Don't mark the location shlib_disabled if the
3267 error thrown wasn't a generic or memory error. Catch errors
3268 thrown while inserting breakpoints in overlayed code. Output
3269 error message of software breakpoints.
3270 * remote.c (remote_insert_breakpoint): If this breakpoint has
3271 target-side commands but this stub doesn't support Z0 packets,
3272 throw NOT_SUPPORTED_ERROR error.
3273 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3274 * target.h (target_insert_breakpoint): Extend comment.
3275 (target_insert_hw_breakpoint): Add comment.
3277 2014-01-08 Pedro Alves <palves@redhat.com>
3279 * remote.c (remote_add_thread): Add threads silently if starting
3281 (remote_notice_new_inferior): If in all-stop, and starting up,
3282 don't call notice_new_inferior.
3283 (get_current_thread): New function, factored out from ...
3284 (add_current_inferior_and_thread): ... this. Adjust.
3285 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3286 found any thread, then select the remote's current thread as GDB's
3289 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3291 * NEWS: Create a new section for the next release branch.
3292 Rename the section of the current branch, now that it has
3295 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3297 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3298 * version.in: Bump version to 7.7.50.DATE-cvs.
3300 2014-01-08 Yao Qi <yao@codesourcery.com>
3302 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3303 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3304 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3306 2014-01-08 Yao Qi <yao@codesourcery.com>
3308 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3309 return value of bfd_get_filename to symbol_file_add_from_bfd.
3311 2014-01-08 Pierre Muller <muller@sourceware.org>
3314 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3315 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3316 to prim_record_mininal_symbol_and_info.
3317 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3318 in call to prim_record_minimal_symbol_and_info.
3319 (read_pe_exported_syms): Set index field of section_data.
3321 2014-01-07 Andrew Pinski <apinski@cavium.com>
3323 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3324 * features/aarch64.c: Regenerate.
3326 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3328 * target.c (return_null): Define.
3329 (update_current_target): Use it instead of return_zero for
3330 functions that return a pointer.
3332 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3334 * source.c (add_path): Fix check for duplicated paths in the previously
3337 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3339 * ada-lang.c: Remove duplicated include statements.
3340 * alphabsd-nat.c: Ditto.
3341 * amd64-darwin-tdep.c: Ditto.
3342 * amd64fbsd-nat.c: Ditto.
3343 * auto-load.c: Ditto.
3345 * breakpoint.c: Ditto.
3347 * fork-child.c: Ditto.
3348 * gdb_usleep.c: Ditto.
3349 * i386-darwin-tdep.c: Ditto.
3350 * i386fbsd-nat.c: Ditto.
3352 * inferior.c: Ditto.
3354 * linux-nat.c: Ditto.
3355 * linux-tdep.c: Ditto.
3356 * m68kbsd-nat.c: Ditto.
3357 * m68klinux-nat.c: Ditto.
3358 * microblaze-tdep.c: Ditto.
3359 * mips-linux-tdep.c: Ditto.
3360 * mn10300-tdep.c: Ditto.
3361 * nto-tdep.c: Ditto.
3362 * opencl-lang.c: Ditto.
3364 * printcmd.c: Ditto.
3365 * regcache.c: Ditto.
3366 * remote-m32r-sdi.c: Ditto.
3370 * tilegx-linux-nat.c: Ditto.
3371 * tilegx-tdep.c: Ditto.
3372 * tracepoint.c: Ditto.
3374 * vaxbsd-nat.c: Ditto.
3375 * windows-nat.c: Ditto.
3376 * xtensa-tdep.c: Ditto.
3378 2014-01-07 Yao Qi <yao@codesourcery.com>
3380 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3382 2014-01-07 Yao Qi <yao@codesourcery.com>
3383 Joel Brobecker <brobecker@adacore.com>
3385 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3386 (pdc_write_regs): Likewise.
3387 (fetch_regs_kernel_thread): Likewise.
3388 (store_regs_kernel_thread): Likewise.
3390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3392 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3393 tagged type objects to their actual type.
3395 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3397 * ada-valprint.c (print_field_values): Add "language" parameter.
3398 Update calls to print_field_values and print_variant_part.
3399 Pass new parameter "language" in call to val_print instead
3400 of "current_language". Replace call to ada_val_print by call
3402 (print_variant_part): Add "language" parameter.
3403 (ada_val_print_struct_union): Update call to print_field_values.
3405 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3407 * ada-valprint.c (ui_memcpy): Delete.
3408 (ada_print_floating): Update documentation. Add empty line
3409 between between function documentation and implementation.
3410 Delete variable "buffer". Use ui_file_xstrdup in place of
3411 ui_file_put. Minor adjustments following this change.
3413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3415 * ada-valprint.c (ada_val_print_string): New function,
3416 extracted from ada_val_print_array.
3417 (ada_val_print_array): Replace extracted code by call
3418 to ada_val_print_string followed by a return. Move
3419 "else" branch to the function's top block.
3421 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3423 * ada-valprint.c (ada_val_print_array): Move implementation
3424 down. Rename parameter "offset" and "val" into "offset_aligned"
3425 and "original_value" respectively. Add parameter "offset".
3427 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3429 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3430 re-organizing the code. Change the "???" message printed
3431 when target type is a TYPE_CODE_UNDEF into
3432 "<ref to undefined type>".
3434 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3436 * ada-valprint.c (print_record): Delete, implementation inlined...
3437 (ada_val_print_struct_union): ... here. Remove call to
3438 ada_check_typedef in inlined implementation.
3440 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3442 * ada-valprint.c (ada_val_print_gnat_array): New function,
3443 extracted from ada_val_print_1;
3444 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3445 (ada_val_print_flt, ada_val_print_struct_union)
3446 (ada_val_print_ref): Likewise.
3447 (ada_val_print_1): Delete variables i and elttype.
3448 Replace extracted-out code by call to corresponding
3451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3453 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3455 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3457 * ada-valprint.c (ada_val_print_1): Replace calls to
3458 ada_val_print_1 by calls to val_print.
3460 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3462 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3463 Update calls to self accordingly. Replace calls to c_val_print
3464 by calls to val_print.
3466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3468 * ada-valprint.c (print_record): Delete declaration.
3469 (adjust_type_signedness, ada_val_print_1): Likewise.
3470 (ada_val_print): Move function implementation down.
3471 (print_variant_part, print_field_values, print_record):
3472 Move function implementation up.
3474 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3476 * python/py-type.c (typy_get_name): New function.
3477 (type_object_getset): Add entry for attribute "name".
3478 * NEWS: Add entry mentioning this new attribute.
3480 2014-01-07 Yao Qi <yao@codesourcery.com>
3482 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3485 2014-01-07 Yao Qi <yao@codesourcery.com>
3487 * gnu-nat.c (info_port_rights): Add qualifier const to
3490 2014-01-07 Yao Qi <yao@codesourcery.com>
3492 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3494 2014-01-07 Yao Qi <yao@codesourcery.com>
3496 * gnu-nat.c (make_inf) Update declaration.
3497 (make_inf): Make it static.
3498 (inf_set_traced): Likewise.
3499 (inf_port_to_thread, inf_task_died_status): Likewise.
3501 2014-01-07 Yao Qi <yao@codesourcery.com>
3503 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3505 2014-01-07 Yao Qi <yao@codesourcery.com>
3507 * gnu-nat.c (_initialize_gnu_nat): Declare.
3509 2014-01-07 Yao Qi <yao@codesourcery.com>
3511 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3513 (struct gdbarch_info) <byte_order>: Change type to
3515 <byte_order_for_code>: Likewise.
3516 * gdbarch.c, gdbarch.h: Regenerated.
3518 2014-01-06 Sasha Smundak <asmundak@google.com>
3520 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3522 2014-01-06 Tom Tromey <tromey@redhat.com>
3524 * doublest.c (convert_doublest_to_floatformat): Use const, not
3526 * somread.c (som_symtab_read): Likewise.
3528 2014-01-07 Hui Zhu <hui@codesourcery.com>
3530 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3531 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3532 (gdb_bfd_fopen): Ditto.
3533 (gdb_bfd_openr): Ditto.
3534 (gdb_bfd_openw): Ditto.
3535 (gdb_bfd_openr_iovec): Ditto.
3536 (gdb_bfd_fdopenr): Ditto.
3537 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3538 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3540 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3542 * symfile-mem.c (symbol_file_add_from_memory): Removed
3543 gdb_bfd_stash_filename.
3545 2014-01-03 Doug Evans <dje@google.com>
3547 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3550 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3552 Update year range in copyright notice of all files.
3554 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3556 * top.c (print_gdb_version): Set copyright year to 2014.
3558 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3560 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3562 For older changes see ChangeLog-2013.
3568 version-control: never