1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5 (target_traceframe_info): Add argument.
6 * target.c (update_current_target): Update.
7 * remote.c (remote_traceframe_info): Add 'self' argument.
8 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10 2014-02-19 Tom Tromey <tromey@redhat.com>
12 * target.h (target_static_tracepoint_markers_by_strid): Add
14 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
16 * target.c (update_current_target): Update.
17 * remote.c (struct target_ops)
18 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
19 * linux-nat.c (struct target_ops)
20 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
22 2014-02-19 Tom Tromey <tromey@redhat.com>
24 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
26 (target_static_tracepoint_marker_at): Add argument.
27 * target.c (update_current_target): Update.
28 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
31 2014-02-19 Tom Tromey <tromey@redhat.com>
33 * target.h (struct target_ops) <to_set_permissions>: Add argument.
34 (target_set_permissions): Add argument.
35 * target.c (update_current_target): Update.
36 * remote.c (remote_set_permissions): Add 'self' argument.
37 (remote_start_remote): Update.
39 2014-02-19 Tom Tromey <tromey@redhat.com>
41 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
42 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
43 (target_get_tib_address): Add argument.
44 * target.c (update_current_target): Update.
45 * remote.c (remote_get_tib_address): Add 'self' argument.
47 2014-02-19 Tom Tromey <tromey@redhat.com>
49 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
50 (target_set_trace_notes): Add argument.
51 * target.c (update_current_target): Update.
52 * remote.c (remote_set_trace_notes): Add 'self' argument.
54 2014-02-19 Tom Tromey <tromey@redhat.com>
56 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
58 (target_set_trace_buffer_size): Add argument.
59 * target.c (update_current_target): Update.
60 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
62 2014-02-19 Tom Tromey <tromey@redhat.com>
64 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
66 (target_set_circular_trace_buffer): Add argument.
67 * target.c (update_current_target): Update.
68 * remote.c (remote_set_circular_trace_buffer): Add 'self'
71 2014-02-19 Tom Tromey <tromey@redhat.com>
73 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
75 (target_set_disconnected_tracing): Add argument.
76 * target.c (update_current_target): Update.
77 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
79 2014-02-19 Tom Tromey <tromey@redhat.com>
81 * target.h (struct target_ops)
82 <to_get_min_fast_tracepoint_insn_len>: Add argument.
83 (target_get_min_fast_tracepoint_insn_len): Add argument.
84 * target.c (update_current_target): Update.
85 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
88 2014-02-19 Tom Tromey <tromey@redhat.com>
90 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
92 (target_get_raw_trace_data): Add argument.
93 * target.c (update_current_target): Update.
94 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
96 2014-02-19 Tom Tromey <tromey@redhat.com>
98 * target.h (struct target_ops) <to_upload_trace_state_variables>:
100 (target_upload_trace_state_variables): Add argument.
101 * target.c (update_current_target): Update.
102 * remote.c (remote_upload_trace_state_variables): Add 'self'
104 (remote_start_remote): Update.
106 2014-02-19 Tom Tromey <tromey@redhat.com>
108 * target.h (struct target_ops) <to_upload_tracepoints>: Add
110 (target_upload_tracepoints): Add argument.
111 * target.c (update_current_target): Update.
112 * remote.c (remote_upload_tracepoints): Add 'self' argument.
113 (remote_start_remote): Update.
115 2014-02-19 Tom Tromey <tromey@redhat.com>
117 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
118 (target_save_trace_data): Add argument.
119 * target.c (update_current_target): Update.
120 * remote.c (remote_save_trace_data): Add 'self' argument.
122 2014-02-19 Tom Tromey <tromey@redhat.com>
124 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
126 * target.h (struct target_ops)
127 <to_get_trace_state_variable_value>: Add argument.
128 (target_get_trace_state_variable_value): Add argument.
129 * target.c (update_current_target): Update.
130 * remote.c (remote_get_trace_state_variable_value): Add 'self'
132 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
134 2014-02-19 Tom Tromey <tromey@redhat.com>
136 * tracepoint.c (tfile_trace_find): Add 'self' argument.
137 * target.h (struct target_ops) <to_trace_find>: Add argument.
138 (target_trace_find): Add argument.
139 * target.c (update_current_target): Update.
140 * remote.c (remote_trace_find): Add 'self' argument.
141 * ctf.c (ctf_trace_find): Add 'self' argument.
143 2014-02-19 Tom Tromey <tromey@redhat.com>
145 * target.h (struct target_ops) <to_trace_stop>: Add argument.
146 (target_trace_stop): Add argument.
147 * target.c (update_current_target): Update.
148 * remote.c (remote_trace_stop): Add 'self' argument.
150 2014-02-19 Tom Tromey <tromey@redhat.com>
152 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
153 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
155 (target_get_tracepoint_status): Add argument.
156 * target.c (update_current_target): Update.
157 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
159 2014-02-19 Tom Tromey <tromey@redhat.com>
161 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
162 * target.h (struct target_ops) <to_get_trace_status>: Add
164 (target_get_trace_status): Add argument.
165 * target.c (update_current_target): Update.
166 * remote.c (remote_get_trace_status): Add 'self' argument.
167 (remote_start_remote, remote_can_download_tracepoint): Update.
168 * ctf.c (ctf_get_trace_status): Add 'self' argument.
170 2014-02-19 Tom Tromey <tromey@redhat.com>
172 * target.h (struct target_ops) <to_trace_start>: Add argument.
173 (target_trace_start): Add argument.
174 * target.c (update_current_target): Update.
175 * remote.c (remote_trace_start): Add 'self' argument.
177 2014-02-19 Tom Tromey <tromey@redhat.com>
179 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
181 (target_trace_set_readonly_regions): Add argument.
182 * target.c (update_current_target): Update.
183 * remote.c (remote_trace_set_readonly_regions): Add 'self'
186 2014-02-19 Tom Tromey <tromey@redhat.com>
188 * target.h (struct target_ops) <to_disable_tracepoint>: Add
190 (target_disable_tracepoint): Add argument.
191 * target.c (update_current_target): Update.
192 * remote.c (remote_disable_tracepoint): Add 'self' argument.
194 2014-02-19 Tom Tromey <tromey@redhat.com>
196 * target.h (struct target_ops) <to_enable_tracepoint>: Add
198 (target_enable_tracepoint): Add argument.
199 * target.c (update_current_target): Update.
200 * remote.c (remote_enable_tracepoint): Add 'self' argument.
202 2014-02-19 Tom Tromey <tromey@redhat.com>
204 * target.h (struct target_ops) <to_download_trace_state_variable>:
206 (target_download_trace_state_variable): Add argument.
207 * target.c (update_current_target): Update.
208 * remote.c (remote_download_trace_state_variable): Add 'self'
211 2014-02-19 Tom Tromey <tromey@redhat.com>
213 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
215 (target_can_download_tracepoint): Add argument.
216 * target.c (update_current_target): Update.
217 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
219 2014-02-19 Tom Tromey <tromey@redhat.com>
221 * target.h (struct target_ops) <to_download_tracepoint>: Add
223 (target_download_tracepoint): Add argument.
224 * target.c (update_current_target): Update.
225 * remote.c (remote_download_tracepoint): Add 'self' argument.
227 2014-02-19 Tom Tromey <tromey@redhat.com>
229 * target.h (struct target_ops) <to_trace_init>: Add argument.
230 (target_trace_init): Add argument.
231 * target.c (update_current_target): Update.
232 * remote.c (remote_trace_init): Add 'self' argument.
234 2014-02-19 Tom Tromey <tromey@redhat.com>
236 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
237 * target.c (target_fileio_readlink): Add argument.
238 * remote.c (remote_hostio_readlink): Add 'self' argument.
239 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
241 2014-02-19 Tom Tromey <tromey@redhat.com>
243 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
244 * target.c (target_fileio_unlink): Add argument.
245 * remote.c (remote_hostio_unlink): Add 'self' argument.
246 (remote_file_delete): Update.
247 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
249 2014-02-19 Tom Tromey <tromey@redhat.com>
251 * target.h (struct target_ops) <to_fileio_close>: Add argument.
252 * target.c (target_fileio_close): Add argument.
253 * remote.c (remote_hostio_close): Add 'self' argument.
254 (remote_hostio_close_cleanup): Update.
255 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
257 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
259 2014-02-19 Tom Tromey <tromey@redhat.com>
261 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
262 * target.c (target_fileio_pread): Add argument.
263 * remote.c (remote_hostio_pread): Add 'self' argument.
264 (remote_bfd_iovec_pread, remote_file_get): Update.
265 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
267 2014-02-19 Tom Tromey <tromey@redhat.com>
269 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
270 * target.c (target_fileio_pwrite): Add argument.
271 * remote.c (remote_hostio_pwrite): Add 'self' argument.
272 (remote_file_put): Update.
273 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
275 2014-02-19 Tom Tromey <tromey@redhat.com>
277 * target.h (struct target_ops) <to_fileio_open>: Add argument.
278 * target.c (target_fileio_open): Add argument.
279 * remote.c (remote_hostio_open): Add 'self' argument.
280 (remote_bfd_iovec_open): Add 'self' argument.
281 (remote_file_put): Add 'self' argument.
282 (remote_file_get): Add 'self' argument.
283 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
285 2014-02-19 Tom Tromey <tromey@redhat.com>
287 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
289 (target_can_run_breakpoint_commands): Add argument.
290 * target.c (update_current_target): Update.
291 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
293 (remote_insert_breakpoint): Add 'self' argument.
294 (remote_insert_hw_breakpoint): Add 'self' argument.
295 (remote_can_run_breakpoint_commands): Add 'self' argument.
297 2014-02-19 Tom Tromey <tromey@redhat.com>
299 * target.h (struct target_ops)
300 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
301 (target_supports_evaluation_of_breakpoint_conditions): Add
303 * target.c (update_current_target): Update.
304 * remote.c (remote_supports_cond_breakpoints): Add 'self'
306 (remote_insert_breakpoint): Add 'self' argument.
307 (remote_insert_hw_breakpoint): Add 'self' argument.
308 (remote_supports_cond_breakpoints): Add 'self' argument.
310 2014-02-19 Tom Tromey <tromey@redhat.com>
312 * target.h (struct target_ops) <to_supports_string_tracing>: Add
314 (target_supports_string_tracing): Add argument.
315 * target.c (update_current_target): Update.
316 * remote.c (remote_supports_string_tracing): Add 'self' argument.
318 2014-02-19 Tom Tromey <tromey@redhat.com>
320 * target.h (struct target_ops)
321 <to_supports_disable_randomization>: Add argument.
322 * target.c (find_default_supports_disable_randomization): Add
324 (target_supports_disable_randomization): Add argument.
325 (find_default_supports_disable_randomization): Add 'self'
327 * remote.c (extended_remote_supports_disable_randomization): Add
329 (remote_supports_disable_randomization): Add 'self' argument.
330 (extended_remote_create_inferior): Update.
331 * linux-nat.c (linux_nat_supports_disable_randomization): Add
334 2014-02-19 Tom Tromey <tromey@redhat.com>
336 * target.h (struct target_ops)
337 <to_supports_enable_disable_tracepoint>: Add argument.
338 (target_supports_enable_disable_tracepoint): Add argument.
339 * target.c (update_current_target): Update.
340 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
343 2014-02-19 Tom Tromey <tromey@redhat.com>
345 * target.h (struct target_ops) <to_supports_multi_process>: Add
347 (target_supports_multi_process): Add argument.
348 * target.c (update_current_target): Update.
349 * remote.c (remote_supports_multi_process): Add 'self' argument.
350 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
352 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
355 2014-02-19 Tom Tromey <tromey@redhat.com>
357 * target.h (struct target_ops) <to_execution_direction>: Add
359 (target_execution_direction): Add argument.
360 * target.c (default_execution_direction): Add 'self' argument.
361 * record-full.c (record_full_execution_direction): Add 'self'
364 2014-02-19 Tom Tromey <tromey@redhat.com>
366 * target.h (struct target_ops) <to_can_execute_reverse>: Add
368 (target_can_execute_reverse): Add argument.
369 * remote.c (remote_can_execute_reverse): Add 'self' argument.
370 * record-full.c (record_full_can_execute_reverse): Add 'self'
372 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
375 2014-02-19 Tom Tromey <tromey@redhat.com>
377 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
378 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
380 (target_get_ada_task_ptid): Add argument.
381 * target.c (update_current_target): Update.
382 (default_get_ada_task_ptid): Add 'self' argument.
383 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
384 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
385 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
387 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
389 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
391 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
393 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
394 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
397 2014-02-19 Tom Tromey <tromey@redhat.com>
399 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
400 (target_goto_bookmark): Add argument.
401 * target.c (dummy_goto_bookmark): Add 'self' argument.
402 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
404 2014-02-19 Tom Tromey <tromey@redhat.com>
406 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
407 (target_get_bookmark): Add argument.
408 * target.c (dummy_get_bookmark): Add 'self' argument.
409 * record-full.c (record_full_get_bookmark): Add 'self' argument.
411 2014-02-19 Tom Tromey <tromey@redhat.com>
413 * target.h (struct target_ops) <to_make_corefile_notes>: Add
415 (target_make_corefile_notes): Add argument.
416 * target.c (dummy_make_corefile_notes): Add 'self' argument.
417 * procfs.c (procfs_make_note_section): Add 'self' argument.
418 (procfs_make_note_section): Add 'self' argument.
419 (procfs_make_note_section): Add 'self' argument.
420 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
422 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
423 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
424 * exec.c (exec_make_note_section): Add 'self' argument.
425 (exec_make_note_section): Add 'self' argument.
427 2014-02-19 Tom Tromey <tromey@redhat.com>
429 * target.h (struct target_ops) <to_find_memory_regions>: Add
431 (target_find_memory_regions): Add argument.
432 * target.c (dummy_find_memory_regions): Add 'self' argument.
433 * procfs.c (proc_find_memory_regions): Add 'self' argument.
434 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
435 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
436 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
437 * exec. (exec_do_find_memory_regions): New global.
438 (exec_set_find_memory_regions): Rewrite.
439 (exec_find_memory_regions): New function.
440 (init_exec_ops): Use exec_find_memory_regions.
442 2014-02-19 Tom Tromey <tromey@redhat.com>
444 * target.h (struct target_ops) <to_supports_non_stop>: Add
446 * target.c (find_default_supports_non_stop): Add argument.
447 (target_supports_non_stop): Add argument.
448 (find_default_supports_non_stop): Add 'self' argument.
449 * remote.c (remote_supports_non_stop): Add 'self' argument.
450 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
452 2014-02-19 Tom Tromey <tromey@redhat.com>
454 * target.h (struct target_ops) <to_log_command>: Add argument.
455 (target_log_command): Add argument.
456 * serial.h (serial_log_command): Add 'self' argument.
457 * serial.c (serial_log_command): Add 'self' argument.
459 2014-02-19 Tom Tromey <tromey@redhat.com>
461 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
462 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
464 (target_pid_to_exec_file): Add argument.
465 * target.c (debug_to_pid_to_exec_file): Add argument.
466 (update_current_target): Update.
467 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
468 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
469 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
470 (linux_handle_extended_wait): Update.
471 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
472 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
473 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
474 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
476 2014-02-19 Tom Tromey <tromey@redhat.com>
478 * target.h (struct target_ops) <to_rcmd>: Add argument.
479 (target_rcmd): Add argument.
480 * target.c (debug_to_rcmd): Add argument.
481 (update_current_target, do_monitor_command): Update.
482 * remote.c (remote_rcmd): Add 'self' argument.
483 * monitor.c (monitor_rcmd): Add 'self' argument.
485 2014-02-19 Tom Tromey <tromey@redhat.com>
487 * windows-nat.c (windows_stop): Add 'self' argument.
488 * target.h (struct target_ops) <to_stop>: Add argument.
489 * target.c (target_stop): Add argument.
490 (debug_to_stop): Add argument.
491 (update_current_target): Update.
492 * remote.c (remote_stop): Add 'self' argument.
493 * remote-sim.c (gdbsim_stop): Add 'self' argument.
494 (gdbsim_cntrl_c): Update.
495 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
496 * procfs.c (procfs_stop): Add 'self' argument.
497 * nto-procfs.c (procfs_stop): Add 'self' argument.
498 * monitor.c (monitor_stop): Add 'self' argument.
499 (monitor_open): Update.
500 * linux-nat.c (linux_nat_stop): Add argument.
501 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
502 * gnu-nat.c (gnu_stop): Add 'self' argument.
503 * darwin-nat.c (darwin_stop): Add 'self' argument.
505 2014-02-19 Tom Tromey <tromey@redhat.com>
507 * target.h (struct target_ops) <to_thread_name>: Add argument.
508 * target.c (target_thread_name): Add argument.
509 (update_current_target): Update.
510 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
512 2014-02-19 Tom Tromey <tromey@redhat.com>
514 * target.h (struct target_ops) <to_extra_thread_info>: Add
516 (target_extra_thread_info): Add argument.
517 * target.c (update_current_target): Update.
518 * remote.c (remote_threads_extra_info): Add 'self' argument.
519 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
521 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
522 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
523 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
525 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
527 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
529 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
532 2014-02-19 Tom Tromey <tromey@redhat.com>
534 * target.h (struct target_ops) <to_program_signals>: Add argument.
535 * target.c (target_program_signals): Add argument.
536 * remote.c (remote_program_signals): Add 'self' argument.
538 2014-02-19 Tom Tromey <tromey@redhat.com>
540 * target.h (struct target_ops) <to_pass_signals>: Add argument.
541 * target.c (target_pass_signals): Add argument.
542 * remote.c (remote_pass_signals): Add 'self' argument.
543 (remote_start_remote): Update.
544 * procfs.c (procfs_pass_signals): Add 'self' argument.
545 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
546 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
547 (linux_nat_create_inferior, linux_nat_attach): Update.
549 2014-02-19 Tom Tromey <tromey@redhat.com>
551 * windows-nat.c (windows_can_run): Add 'self' argument.
552 * target.h (struct target_ops) <to_can_run>: Add argument.
553 (target_can_run): Add argument.
554 * target.c (debug_to_can_run): Add argument.
555 (update_current_target): Update.
556 * nto-procfs.c (procfs_can_run): Add 'self' argument.
557 * inf-child.c (inf_child_can_run): Add 'self' argument.
558 * go32-nat.c (go32_can_run): Add 'self' argument.
560 2014-02-19 Tom Tromey <tromey@redhat.com>
562 * target.h (struct target_ops) <to_has_exited>: Add argument.
563 (target_has_exited): Add argument.
564 * target.c (debug_to_has_exited): Add argument.
565 (update_current_target): Update.
567 2014-02-19 Tom Tromey <tromey@redhat.com>
569 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
571 (target_set_syscall_catchpoint): Add argument.
572 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
574 * target.c (update_current_target): Update.
576 2014-02-19 Tom Tromey <tromey@redhat.com>
578 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
580 (target_remove_exec_catchpoint): Add argument.
581 * target.c (debug_to_remove_exec_catchpoint): Add argument.
582 (update_current_target): Update.
583 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
586 2014-02-19 Tom Tromey <tromey@redhat.com>
588 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
590 (target_insert_exec_catchpoint): Add argument.
591 * target.c (debug_to_insert_exec_catchpoint): Add argument.
592 (update_current_target): Update.
593 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
596 2014-02-19 Tom Tromey <tromey@redhat.com>
598 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
600 (target_remove_vfork_catchpoint): Add argument.
601 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
602 (update_current_target): Update.
603 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
606 2014-02-19 Tom Tromey <tromey@redhat.com>
608 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
610 (target_insert_vfork_catchpoint): Add argument.
611 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
612 (update_current_target): Update.
613 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
616 2014-02-19 Tom Tromey <tromey@redhat.com>
618 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
620 (target_remove_fork_catchpoint): Add argument.
621 * target.c (debug_to_remove_fork_catchpoint): Add argument.
622 (update_current_target): Update.
623 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
626 2014-02-19 Tom Tromey <tromey@redhat.com>
628 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
630 (target_insert_fork_catchpoint): Add argument.
631 * target.c (debug_to_insert_fork_catchpoint): Add argument.
632 (update_current_target): Update.
633 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
636 2014-02-19 Tom Tromey <tromey@redhat.com>
638 * target.h (struct target_ops) <to_post_startup_inferior>: Add
640 (target_post_startup_inferior): Add argument.
641 * target.c (debug_to_post_startup_inferior): Add argument.
642 (update_current_target): Update.
643 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
645 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
647 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
649 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
651 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
653 (super_post_startup_inferior): Likewise.
654 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
656 (super_post_startup_inferior): Likewise.
657 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
659 (super_post_startup_inferior): Likewise.
661 2014-02-19 Tom Tromey <tromey@redhat.com>
663 * target.h (struct target_ops) <to_load>: Add argument.
664 * target.c (target_load): Add argument.
665 (debug_to_load): Add argument.
666 (update_current_target): Update.
667 * remote.c (remote_load): Add 'self' argument.
668 * remote-sim.c (gdbsim_load): Add 'self' argument.
669 * remote-mips.c (mips_load): Add 'self' argument.
670 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
671 * monitor.c (monitor_load): Add 'self' argument.
672 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
674 2014-02-19 Tom Tromey <tromey@redhat.com>
676 * target.h (struct target_ops) <to_terminal_info>: Add argument.
677 (target_terminal_info): Add argument.
678 * target.c (debug_to_terminal_info): Add argument.
679 (default_terminal_info): Likewise.
680 * inflow.c (child_terminal_info): Add 'self' argument.
681 * inferior.h (child_terminal_info): Add 'self' argument.
682 * go32-nat.c (go32_terminal_info): Add 'self' argument.
684 2014-02-19 Tom Tromey <tromey@redhat.com>
686 * target.h (struct target_ops) <to_terminal_save_ours>: Add
688 (target_terminal_save_ours): Add argument.
689 * target.c (debug_to_terminal_save_ours): Add argument.
690 (update_current_target): Update.
691 * inflow.c (terminal_save_ours): Add 'self' argument.
692 * inferior.h (terminal_save_ours): Add 'self' argument.
694 2014-02-19 Tom Tromey <tromey@redhat.com>
696 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
697 (target_terminal_ours): Add argument.
698 * target.c (debug_to_terminal_ours): Add argument.
699 (update_current_target): Update.
700 * remote.c (remote_terminal_ours): Add 'self' argument.
701 (remote_close): Update.
702 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
703 * inflow.c (terminal_ours): Add 'self' argument.
704 * inferior.h (terminal_ours): Add 'self' argument.
705 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
707 2014-02-19 Pedro Alves <palves@redhat.com>
708 Tom Tromey <tromey@redhat.com>
710 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
712 (target_terminal_ours_for_output): Add argument.
713 * target.c (debug_to_terminal_ours_for_output): Add argument.
714 (update_current_target): Update.
715 * inflow.c (terminal_ours_for_output): Add 'self' argument.
716 * inferior.h (terminal_ours_for_output): Add 'self' argument.
717 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
719 2014-02-19 Tom Tromey <tromey@redhat.com>
721 * target.h (struct target_ops) <to_terminal_inferior>: Add
723 * target.c (target_terminal_inferior): Add argument.
724 (update_current_target): Update.
725 * remote.c (remote_terminal_inferior): Add 'self' argument.
726 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
727 * inflow.c (terminal_inferior): Add 'self' argument.
728 * inferior.h (terminal_inferior): Add 'self' argument.
729 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
730 (go32_terminal_inferior): Add 'self' argument.
732 2014-02-19 Tom Tromey <tromey@redhat.com>
734 * target.h (struct target_ops) <to_terminal_init>: Add argument.
735 (target_terminal_init): Add argument.
736 * target.c (debug_to_terminal_init): Add argument.
737 (update_current_target): Update.
738 * inflow.c (terminal_init_inferior): Add 'self' argument.
739 * inferior.h (terminal_init_inferior): Add 'self' argument.
740 * go32-nat.c (go32_terminal_init): Add 'self' argument.
741 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
743 2014-02-19 Tom Tromey <tromey@redhat.com>
745 * target.h (struct target_ops)
746 <to_can_accel_watchpoint_condition>: Add argument.
747 (target_can_accel_watchpoint_condition): Add argument.
748 * target.c (debug_to_can_accel_watchpoint_condition): Add
750 (update_current_target): Update.
751 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
754 2014-02-19 Tom Tromey <tromey@redhat.com>
756 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
758 (target_region_ok_for_hw_watchpoint): Add argument.
759 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
760 (default_region_ok_for_hw_watchpoint): Add argument.
761 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
762 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
764 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
766 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
768 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
770 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
772 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
774 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
775 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
777 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
780 2014-02-19 Tom Tromey <tromey@redhat.com>
782 * target.h (struct target_ops) <to_insert_watchpoint>: Add
784 (target_insert_watchpoint): Add argument.
785 * target.c (debug_to_insert_watchpoint): Add argument.
786 (update_current_target): Update.
787 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
788 * remote.c (remote_insert_watchpoint): Add 'self' argument.
789 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
790 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
791 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
792 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
794 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
795 (procfs_insert_hw_watchpoint): Add 'self' argument.
796 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
798 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
800 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
802 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
803 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
805 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
808 2014-02-19 Tom Tromey <tromey@redhat.com>
810 * target.h (struct target_ops) <to_remove_watchpoint>: Add
812 (target_remove_watchpoint): Add argument.
813 * target.c (debug_to_remove_watchpoint): Add argument.
814 (update_current_target): Update.
815 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
816 * remote.c (remote_remove_watchpoint): Add 'self' argument.
817 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
818 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
819 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
820 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
822 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
823 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
825 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
827 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
829 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
830 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
832 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
835 2014-02-19 Tom Tromey <tromey@redhat.com>
837 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
839 (target_remove_hw_breakpoint): Add argument.
840 * target.c (debug_to_remove_hw_breakpoint): Add argument.
841 (update_current_target): Update.
842 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
843 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
845 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
846 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
848 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
851 2014-02-19 Tom Tromey <tromey@redhat.com>
853 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
855 (target_insert_hw_breakpoint): Add argument.
856 * target.c (debug_to_insert_hw_breakpoint): Add argument.
857 (update_current_target): Update.
858 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
859 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
861 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
862 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
863 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
865 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
868 2014-02-19 Tom Tromey <tromey@redhat.com>
870 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
872 (target_can_use_hardware_watchpoint): Add argument.
873 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
874 (update_current_target): Update.
875 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
877 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
879 * remote.c (remote_check_watch_resources): Add 'self' argument.
880 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
881 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
883 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
884 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
886 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
888 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
890 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
892 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
894 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
896 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
897 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
899 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
902 2014-02-19 Tom Tromey <tromey@redhat.com>
904 * target.h (struct target_ops) <to_post_attach>: Add argument.
905 (target_post_attach): Add argument.
906 * target.c (debug_to_post_attach): Add argument.
907 (update_current_target): Update.
908 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
909 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
910 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
911 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
912 * inf-child.c (inf_child_post_attach): Add 'self' argument.
914 2014-02-19 Tom Tromey <tromey@redhat.com>
916 * windows-nat.c (windows_close): Add 'self' argument.
917 * tracepoint.c (tfile_close): Add 'self' argument.
918 * target.h (struct target_ops) <to_close>: Add argument.
919 * target.c (target_close): Add argument.
920 (update_current_target): Update.
921 * remote.c (remote_close): Add 'self' argument.
922 * remote-sim.c (gdbsim_close): Add 'self' argument.
923 * remote-mips.c (mips_close): Add 'self' argument.
924 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
925 * record-full.c (record_full_close): Add 'self' argument.
926 * record-btrace.c (record_btrace_close): Add 'self' argument.
927 * monitor.h (monitor_close): Add 'self' argument.
928 * monitor.c (monitor_close): Add 'self' argument.
929 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
930 * linux-nat.c (linux_nat_close): Add argument.
931 * go32-nat.c (go32_close): Add 'self' argument.
932 * exec.c (exec_close_1): Add 'self' argument.
933 * ctf.c (ctf_close): Add 'self' argument.
934 * corelow.c (core_close): Add 'self' argument.
935 (core_close_cleanup): Update.
936 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
937 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
939 2014-02-19 Tom Tromey <tromey@redhat.com>
941 * remote.c (remote_load): New function.
942 (init_remote_ops): Use it.
944 2014-02-19 Tom Tromey <tromey@redhat.com>
946 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
948 * common/linux-btrace.h (linux_supports_btrace): Update.
949 * remote.c (remote_supports_btrace): Add "self" argument.
950 * target-delegates.c: Rebuild.
951 * target.c (target_supports_btrace): Remove.
952 * target.h (struct target_ops) <to_supports_btrace>: Add
954 (target_supports_btrace): New define.
956 2014-02-19 Tom Tromey <tromey@redhat.com>
958 * record-full.c (record_full_beneath_to_resume_ops)
959 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
960 (record_full_beneath_to_wait)
961 (record_full_beneath_to_store_registers_ops)
962 (record_full_beneath_to_store_registers)
963 (record_full_beneath_to_xfer_partial_ops)
964 (record_full_beneath_to_xfer_partial)
965 (record_full_beneath_to_insert_breakpoint_ops)
966 (record_full_beneath_to_insert_breakpoint)
967 (record_full_beneath_to_remove_breakpoint_ops)
968 (record_full_beneath_to_remove_breakpoint)
969 (record_full_beneath_to_stopped_by_watchpoint)
970 (record_full_beneath_to_stopped_data_address)
971 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
972 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
973 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
974 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
975 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
976 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
977 (tmp_to_stopped_data_address, tmp_to_async): Remove.
978 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
979 (record_full_resume, record_full_wait_1)
980 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
981 (record_full_store_registers, record_full_xfer_partial)
982 (record_full_insert_breakpoint, record_full_remove_breakpoint)
983 (record_full_async, record_full_core_xfer_partial): Use target
985 * target-delegates.c: Rebuild.
986 * target.c (current_xfer_partial): Remove.
987 (update_current_target): Do not INHERIT or de_fault
988 to_insert_breakpoint, to_remove_breakpoint,
989 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
990 to_is_async_p, to_async. Do not set to_xfer_partial field.
991 (default_xfer_partial): Simplify.
992 (current_xfer_partial): Remove.
993 (target_wait, target_resume): Simplify.
994 (find_default_can_async_p, find_default_is_async_p): Update.
995 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
996 to_xfer_partial, to_stopped_by_watchpoint,
997 to_stopped_data_address.
998 (target_store_registers): Simplify.
999 (forward_target_remove_breakpoint)
1000 (forward_target_insert_breakpoint): Remove.
1001 (target_remove_breakpoint, target_insert_breakpoint)
1002 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1003 * target.h (struct target_ops) <to_resume, to_wait,
1004 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1005 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1006 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1008 (forward_target_remove_breakpoint)
1009 (forward_target_insert_breakpoint): Remove.
1010 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1012 (record_btrace_insert_breakpoint): Delegate directly.
1014 2014-02-19 Tom Tromey <tromey@redhat.com>
1017 * target-delegates.c: New file.
1018 * target.c: Include target-delegates.c.
1019 (init_dummy_target): Call install_dummy_methods.
1020 (complete_target_initialization): Call install_delegators.
1021 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1022 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1023 * make-target-delegates: New file.
1025 2014-02-19 Tom Tromey <tromey@redhat.com>
1027 * record.c (find_record_target): Use find_target_at.
1028 * target.c (find_target_at): New function.
1029 * target.h (find_target_at): Declare.
1031 2014-02-19 Tom Tromey <tromey@redhat.com>
1033 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1035 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1037 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1038 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1040 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1042 * linux-nat.c (save_sigtrap): Update.
1043 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1044 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1045 (linux_nat_close): Update.
1046 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1048 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1050 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1051 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1052 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1053 (tmp_to_async): Add 'ops' argument.
1054 (record_full_stopped_by_watchpoint, record_full_async)
1055 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1057 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1058 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1059 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1060 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1061 (remote_is_async_p, remote_async): Add 'ops' argument.
1062 (remote_stopped_data_address): Update.
1063 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1064 * target.c (update_current_target)
1065 (find_default_can_async_p, find_default_is_async_p): Update.
1066 (init_dummy_target): Update.
1067 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1068 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1069 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1070 (target_can_async_p, target_is_async_p, target_async)
1071 (target_stopped_by_watchpoint): Update.
1073 2014-02-19 Yao Qi <yao@codesourcery.com>
1076 * gdbarch.sh: Remove startup_gdbarch.
1077 * gdbarch.c: Regenerated.
1078 * gdbarch.h: Likewise.
1080 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1082 * rl78-tdep.c (rl78_g10_register_name): New function.
1083 (rl78_return_value): Add g10 support.
1084 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1087 2014-02-17 Doug Evans <xdje42@gmail.com>
1089 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1090 (SUBDIR_GUILE_SRCS): Ditto.
1091 (scm-gsmob.o): Ditto.
1093 2014-02-17 Yao Qi <yao@codesourcery.com>
1095 * gnu-nat.c (ILL_RPC): Declare defined function.
1097 2014-02-17 Yao Qi <yao@codesourcery.com>
1099 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1100 mach_msg_type_number_t.
1101 (gnu_write_inferior): Likewise.
1103 2014-02-17 Yao Qi <yao@codesourcery.com>
1105 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1107 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1108 (inf_validate_procs, inf_signal): Likewise.
1109 (S_exception_raise_request): Likewise.
1110 (do_mach_notify_dead_name): Likewise.
1111 (steal_exc_port): Likewise.
1112 (gnu_read_inferior): Change 'copy_count''s type to
1113 mach_msg_type_number_t.
1114 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1117 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1119 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1120 flag. Adjust all users; in particular...
1121 (gnu_wait): ..., don't decrement its value in here...
1122 (gnu_create_inferior): ..., and instead set the flag in here,
1123 around the startup_inferior call, and call that one with
1124 START_INFERIOR_TRAPS_EXPECTED.
1126 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1127 (ILL_RPC): ... new macro.
1128 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1129 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1130 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1131 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1132 functions with ILL_RPC macro.
1133 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1134 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1135 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1136 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1137 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1138 (S_proc_getlogin_reply, S_proc_getsid_reply)
1139 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1140 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1141 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1142 (S_proc_getnports_reply, S_proc_is_important_reply)
1143 (S_proc_get_code_reply): New stub functions, generated with
1146 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1147 collected the type check structures.
1149 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1151 2014-02-14 Doug Evans <dje@google.com>
1153 * target.c (target_write_partial): Fix result type.
1155 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1157 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1158 the proper offsets to access fpregset_t.
1160 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1162 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1163 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1164 * h8300-tdep.c (setmachinelist): Remove global.
1165 * hppa-tdep.c (hppa_sigtramp): Remove global.
1166 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1167 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1168 * ravenscar-thread.c (update_target_observer): Remove global.
1169 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1171 2014-02-12 Tom Tromey <tromey@redhat.com>
1173 * common/rsp-low.c: Update comments.
1174 * common/rsp-low.h: Update comments.
1176 2014-02-12 Tom Tromey <tromey@redhat.com>
1178 * common/rsp-low.c (convert_ascii_to_int): Remove.
1179 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1181 2014-02-12 Tom Tromey <tromey@redhat.com>
1183 * common/rsp-low.h (unhexify): Don't declare.
1184 * common/rsp-low.c (unhexify): Remove.
1186 2014-02-12 Tom Tromey <tromey@redhat.com>
1188 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1189 * common/rsp-low.c (convert_int_to_ascii): Remove.
1191 2014-02-12 Tom Tromey <tromey@redhat.com>
1193 * common/rsp-low.h (hexify): Don't declare.
1194 * common/rsp-low.c (hexify): Remove.
1196 2014-02-12 Tom Tromey <tromey@redhat.com>
1198 * common/rsp-low.c (hexify): Never take strlen of argument.
1200 2014-02-12 Tom Tromey <tromey@redhat.com>
1202 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1203 * remote.c (extended_remote_run, remote_rcmd)
1204 (remote_download_trace_state_variable, remote_save_trace_data)
1205 (remote_set_trace_notes): Update.
1206 * tracepoint.c (encode_source_string, tfile_write_status)
1207 (tfile_write_uploaded_tsv): Update.
1209 2014-02-12 Tom Tromey <tromey@redhat.com>
1211 * tracepoint.c: Include rsp-low.h.
1212 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1213 * remote.c: Include rsp-low.h.
1214 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1215 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1216 (remote_unescape_input): Move to common/rsp-low.c.
1217 * common/rsp-low.h: New file.
1218 * common/rsp-low.c: New file.
1219 * Makefile.in (SFILES): Add common/rsp-low.c.
1220 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1221 (COMMON_OBS): Add rsp-low.o.
1222 (rsp-low.o): New target.
1224 2014-02-12 Tom Tromey <tromey@redhat.com>
1226 * utils.h: Include print-utils.h.
1227 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1228 (int_string, core_addr_to_string, core_addr_to_string_nz)
1229 (hex_string, hex_string_custom): Don't declare.
1230 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1231 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1232 (hex_string_custom, int_string, core_addr_to_string)
1233 (core_addr_to_string_nz, host_address_to_string): Move to
1234 common/print-utils.c.
1235 * common/print-utils.h: New file.
1236 * common/print-utils.c: New file
1237 * Makefile.in (SFILES): Add common/print-utils.c.
1238 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1239 (COMMON_OBS): Add print-utils.o.
1240 (print-utils.o): New target.
1242 2014-02-12 Tom Tromey <tromey@redhat.com>
1244 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1246 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1248 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1250 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1252 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1253 if a PT_IO ptrace request returns sucessfully but indicates that 0
1254 bytes were transferred.
1256 2014-02-12 Pedro Alves <palves@redhat.com>
1257 Kevin Buettner <kevinb@redhat.com>
1259 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1260 TYPE_INSTANCE_FLAG_CODE_SPACE.
1262 2014-02-12 Pedro Alves <palves@redhat.com>
1264 * h8300-tdep.c (pseudo_from_raw_register)
1265 (raw_from_pseudo_register): New functions.
1266 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1269 2014-02-12 Pedro Alves <palves@redhat.com>
1271 * h8300-tdep.c (h8300_register_sim_regno): New function.
1272 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1273 gdbarch_register_sim_regno hook.
1275 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1277 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1279 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1281 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1283 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1285 * obsd-tdep.h (obsd_init_abi): New prototype.
1286 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1287 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1288 (obsd_init_abi): New functions.
1289 * i386obsd-tdep.c: Include "obsd-tdep.h".
1290 (i386obsd_init_abi): Call obsd_init_abi.
1291 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1292 (amd64obsd_init_abi): Call obsd_init_abi.
1293 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1294 obsd-tdep.c to gdb_target_obs.
1296 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1298 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1299 double float arguments to 16-byte in the argument slots.
1301 2014-02-11 Doug Evans <xdje42@gmail.com>
1303 * configure.ac: Don't crash if pkg-config is not found and guile
1304 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1306 * configure: Regenerate.
1308 2014-02-11 Yao Qi <yao@codesourcery.com>
1310 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1311 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1312 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1313 * gnu-nat.c (gnu_xfer_memory): Likewise.
1314 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1315 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1316 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1317 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1319 2014-02-11 Yao Qi <yao@codesourcery.com>
1321 * target.h (enum target_xfer_error): Rename to ...
1322 (enum target_xfer_status): ... it. New. All users updated.
1323 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1325 (TARGET_XFER_STATUS_ERROR_P): New macro.
1326 (target_xfer_error_to_string): Remove declaration.
1327 (target_xfer_status_to_string): Declare.
1328 (target_xfer_partial_ftype): Adjust it.
1329 (struct target_ops) <to_xfer_partial>: Return
1330 target_xfer_status. Add argument xfered_len. Update
1332 * target.c (target_xfer_error_to_string): Rename to ...
1333 (target_xfer_status_to_string): ... it. New. All callers
1335 (target_read_live_memory): Likewise. Call target_xfer_partial
1336 instead of target_read.
1337 (memory_xfer_live_readonly_partial): Return
1338 target_xfer_status. Add argument xfered_len.
1339 (raw_memory_xfer_partial): Likewise.
1340 (memory_xfer_partial_1): Likewise.
1341 (memory_xfer_partial): Likewise.
1342 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1343 properly. Update debug message.
1344 (default_xfer_partial, current_xfer_partial): Likewise.
1345 (target_write_partial): Likewise.
1346 (target_read_partial): Likewise. All callers updated.
1347 (read_whatever_is_readable): Likewise.
1348 (target_write_with_progress): Likewise.
1349 (target_read_alloc_1): Likewise.
1351 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1352 * auxv.c (procfs_xfer_auxv): Likewise.
1353 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1354 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1355 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1356 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1357 * corefile.c (read_memory): Adjust.
1358 * corelow.c (core_xfer_partial): Likewise.
1359 * ctf.c (ctf_xfer_partial): Likewise.
1360 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1362 (darwin_xfer_partial): Likewise.
1363 * exec.c (section_table_xfer_memory_partial): Likewise. All
1365 (exec_xfer_partial): Likewise.
1366 * exec.h (section_table_xfer_memory_partial): Update
1368 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1370 (gnu_xfer_partial): Likewise.
1371 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1372 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1373 (ia64_hpux_xfer_solib_got): Likewise.
1374 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1375 type of 'partial_len' to ULONGEST.
1376 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1377 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1378 (linux_nat_xfer_partial): Likewise.
1379 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1380 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1381 * monitor.c (monitor_xfer_memory): Likewise.
1382 (monitor_xfer_partial): Likewise.
1383 * procfs.c (procfs_xfer_partial): Likewise.
1384 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1385 * record-full.c (record_full_xfer_partial): Likewise.
1386 (record_full_core_xfer_partial): Likewise.
1387 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1388 (gdbsim_xfer_partial): Likewise.
1389 * remote.c (remote_write_bytes_aux): Likewise. All callers
1391 (remote_write_bytes, remote_read_bytes): Likewise. All
1393 (remote_flash_erase): Likewise. All callers updated.
1394 (remote_write_qxfer): Likewise. All callers updated.
1395 (remote_read_qxfer): Likewise. All callers updated.
1396 (remote_xfer_partial): Likewise.
1397 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1398 (rs6000_xfer_shared_libraries): Likewise.
1399 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1400 (sol_thread_xfer_partial): Likewise.
1401 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1402 (sparc_xfer_partial): Likewise.
1403 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1405 (spu_xfer_partial): Likewise.
1406 * spu-multiarch.c (spu_xfer_partial): Likewise.
1407 * tracepoint.c (tfile_xfer_partial): Likewise.
1408 * windows-nat.c (windows_xfer_memory): Likewise.
1409 (windows_xfer_shared_libraries): Likewise.
1410 (windows_xfer_partial): Likewise.
1411 * valprint.c: Replace 'target_xfer_error' with
1412 'target_xfer_status' in comments.
1414 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1416 Checked in by Joel Brobecker <brobecker@adacore.com>.
1417 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1419 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1421 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1422 function parameters.
1424 2014-02-10 Will Newton <will.newton@linaro.org>
1426 * elfread.c (elf_rel_plt_read): Look for a .got section if
1427 looking up .got.plt fails.
1428 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1429 on address passed to elf_gnu_ifunc_record_cache.
1430 (elf_gnu_ifunc_resolve_addr): Likewise.
1431 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1433 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1435 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1436 (X_RETTURN): New macro.
1437 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1439 * sparc64-tdep.c (sparc64_init_abi): Hook
1440 sparc_in_function_epilogue_p.
1442 2014-02-10 Gary Benson <gbenson@redhat.com>
1444 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1445 Rename name_matcher to symbol_matcher.
1447 2014-02-10 Gary Benson <gbenson@redhat.com>
1449 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1450 Use expand_symtabs_file_matcher_ftype and
1451 expand_symtabs_symbol_matcher_ftype.
1453 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1455 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1456 (struct ada_symbol_cache): New.
1457 (ada_free_symbol_cache): Forward declare.
1458 (struct ada_pspace_data): New.
1459 (ada_pspace_data_handle): New static global.
1460 (get_ada_pspace_data, ada_pspace_data_cleanup)
1461 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1462 (cache_space, cache): Delete, now folded inside struct
1464 (ada_get_symbol_cache): New function.
1465 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1467 (_initialize_ada_language): Remove initialization of cache_space.
1468 Move call to observer_attach_inferior_exit up, grouping it
1469 with the other observer registrations inside this function.
1470 Rename command to be more general. Add call to
1471 register_program_space_data_with_cleanup.
1473 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1475 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1476 ada_new_objfile_observer.
1477 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1478 (_initialize_tasks): Update uses of ada_new_objfile_observer
1479 and ada_tasks_normal_stop_observer.
1481 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1483 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1484 returned by the 'Length attribute to integer.
1486 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1488 * ada-lang.c (_initialize_ada_language): Initialize
1489 cache_space obstack.
1491 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1493 * ada-lang.c (HASH_SIZE): New macro.
1494 (struct cache_entry): New type.
1495 (cache_space, cache): New static globals.
1496 (ada_clear_symbol_cache, find_entry): New functions.
1497 (lookup_cached_symbol, cache_symbol): Implement.
1498 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1499 (_initialize_ada_language): Attach ada_new_objfile_observer
1500 and ada_free_objfile_observer.
1502 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1504 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1505 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1506 struct block * parameter.
1507 (ada_lookup_symbol_list_worker): Constify local variable "block".
1508 Remove cast which is no longer necessary.
1510 2014-02-10 Doug Evans <xdje42@gmail.com>
1512 Add Guile as an extension language.
1513 * NEWS: Mention Guile scripting.
1514 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1515 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1516 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1517 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1518 (CLIBS): Add GUILE_LIBS.
1519 (install-guile): New rule.
1520 (guile.o): New rule.
1521 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1522 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1523 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1524 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1525 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1526 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1527 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1528 * configure.ac: New option --with-guile.
1529 * configure: Regenerate.
1530 * config.in: Regenerate.
1531 * auto-load.c: Remove #include "python/python.h". Add #include
1532 "gdb/section-scripts.h".
1533 (source_section_scripts): Handle Guile scripts.
1534 (_initialize_auto_load): Add name of Guile objfile script to
1535 scripts-directory help text.
1536 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1537 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1538 (struct breakpoint): New member scm_bp_object.
1539 * defs.h (enum command_control_type): New value guile_control.
1540 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1542 (show_user): Update comment.
1543 (_initialize_cli_cmds): Update help text for "show user". Update help
1544 text for max-user-call-depth.
1545 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1547 (multi_line_command_p): Add guile_control.
1548 (print_command_lines): Handle guile_control.
1549 (execute_control_command, recurse_read_control_structure): Ditto.
1550 (process_next_line): Recognize "guile" commands.
1551 * disasm.c (gdb_disassemble_info): Make non-static.
1552 * disasm.h: #include "dis-asm.h".
1553 (struct gdbarch): Add forward decl.
1554 (gdb_disassemble_info): Declare.
1555 * extension.c: #include "guile/guile.h".
1556 (extension_languages): Add guile.
1557 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1558 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1559 * gdbtypes.c (get_unsigned_type_max): New function.
1560 (get_signed_type_minmax): New function.
1561 * gdbtypes.h (get_unsigned_type_max): Declare.
1562 (get_signed_type_minmax): Declare.
1563 * guile/README: New file.
1564 * guile/guile-internal.h: New file.
1565 * guile/guile.c: New file.
1566 * guile/guile.h: New file.
1567 * guile/scm-arch.c: New file.
1568 * guile/scm-auto-load.c: New file.
1569 * guile/scm-block.c: New file.
1570 * guile/scm-breakpoint.c: New file.
1571 * guile/scm-disasm.c: New file.
1572 * guile/scm-exception.c: New file.
1573 * guile/scm-frame.c: New file.
1574 * guile/scm-gsmob.c: New file.
1575 * guile/scm-iterator.c: New file.
1576 * guile/scm-lazy-string.c: New file.
1577 * guile/scm-math.c: New file.
1578 * guile/scm-objfile.c: New file.
1579 * guile/scm-ports.c: New file.
1580 * guile/scm-pretty-print.c: New file.
1581 * guile/scm-safe-call.c: New file.
1582 * guile/scm-string.c: New file.
1583 * guile/scm-symbol.c: New file.
1584 * guile/scm-symtab.c: New file.
1585 * guile/scm-type.c: New file.
1586 * guile/scm-utils.c: New file.
1587 * guile/scm-value.c: New file.
1588 * guile/lib/gdb.scm: New file.
1589 * guile/lib/gdb/boot.scm: New file.
1590 * guile/lib/gdb/experimental.scm: New file.
1591 * guile/lib/gdb/init.scm: New file.
1592 * guile/lib/gdb/iterator.scm: New file.
1593 * guile/lib/gdb/printing.scm: New file.
1594 * guile/lib/gdb/types.scm: New file.
1595 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1596 (VPATH): Add $(GUILE_SRCDIR).
1597 (GUILE_DIR): New variable.
1598 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1599 (all): Add stamp-guile dependency.
1600 (stamp-guile): New rule.
1601 (clean-guile, install-guile, uninstall-guile): New rules.
1602 (install-only): Add install-guile dependency.
1603 (uninstall): Add uninstall-guile dependency.
1604 (clean): Add clean-guile dependency.
1606 2014-02-09 Doug Evans <xdje42@gmail.com>
1608 Revert this patch (which I approved, mea culpa).
1610 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1612 * Makefile.in (all-lib): Remove.
1613 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1615 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1617 Fix Python stack corruption.
1618 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1621 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1623 * Makefile.in (all-lib): Remove.
1624 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1626 2014-02-07 Doug Evans <dje@google.com>
1628 * extension-priv.h (extension_language_script_ops): Add comment.
1629 (extension_language_ops): Add comment.
1630 (active_ext_lang_state): Fix typo in comment.
1632 2014-02-07 Pedro Alves <palves@redhat.com>
1634 * infrun.c (handle_signal_stop) <signal arrives while stepping
1635 over a breakpoint>: Switch back to the stepping thread.
1637 2014-02-07 Yao Qi <yao@codesourcery.com>
1639 * target.c (target_xfer_partial): Return zero if LEN is zero.
1641 2014-02-07 Yao Qi <yao@codesourcery.com>
1643 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1644 (ld_so_xfer_auxv): Likewise.
1645 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1646 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1647 * corelow.c (core_xfer_partial): Likewise.
1648 * ctf.c (ctf_xfer_partial): Likewise.
1649 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1650 (darwin_xfer_partial): Likewise.
1651 * exec.c (exec_xfer_partial): Likewise.
1652 * gnu-nat.c (gnu_xfer_partial): Likewise.
1653 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1654 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1655 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1656 * linux-nat.c (linux_xfer_siginfo): Likewise.
1657 (linux_proc_xfer_spu): Likewise.
1658 * procfs.c (procfs_xfer_partial): Likewise.
1659 * record-full.c (record_full_xfer_partial): Likewise.
1660 (record_full_core_xfer_partial): Likewise.
1661 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1662 * remote.c (remote_write_qxfer): Likewise.
1663 (remote_write_qxfer, remote_read_qxfer): Likewise.
1664 (remote_xfer_partial): Likewise.
1665 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1666 (rs6000_xfer_shared_libraries): Likewise.
1667 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1668 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1669 (spu_xfer_partial): Likewise.
1670 * target.c (memory_xfer_partial_1): Likewise.
1671 * tracepoint.c (tfile_xfer_partial): Likewise.
1672 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1673 (windows_xfer_partial): Likewise.
1675 2014-02-07 Yao Qi <yao@codesourcery.com>
1677 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1679 (core_xfer_shared_libraries_aix): Likewise.
1680 * gdbarch.c, gdbarch.h: Regenerated.
1681 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1682 ULONGEST. Change 'len_avail' type to ULONGEST.
1683 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1684 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1686 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1688 2014-02-07 Yao Qi <yao@codesourcery.com>
1690 * corefile.c (memory_error): Get 'exception' from ERR and pass
1691 'exception' to throw_error.
1693 2014-02-06 Doug Evans <xdje42@gmail.com>
1695 * configure.ac (libpython checking): Remove all but python.o from
1696 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1697 * configure: Regenerate.
1699 * Makefile.in (SFILES): Add extension.c.
1700 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1701 (COMMON_OBS): Add extension.o.
1702 * extension.h: New file.
1703 * extension-priv.h: New file.
1704 * extension.c: New file.
1706 * python/python-internal.h: #include "extension.h".
1707 (gdbpy_auto_load_enabled): Declare.
1708 (gdbpy_apply_val_pretty_printer): Declare.
1709 (gdbpy_apply_frame_filter): Declare.
1710 (gdbpy_preserve_values): Declare.
1711 (gdbpy_breakpoint_cond_says_stop): Declare.
1712 (gdbpy_breakpoint_has_cond): Declare.
1713 (void source_python_script_for_objfile): Delete.
1714 * python/python.c: #include "extension-priv.h".
1715 Delete inclusion of "observer.h".
1716 (extension_language_python): Moved here and renamed from
1717 script_language_python in py-auto-load.c.
1718 Redefined to be of type extension_language_defn.
1719 (python_extension_script_ops): New global.
1720 (python_extension_ops): New global.
1721 (struct python_env): New member previous_active.
1722 (restore_python_env): Call restore_active_ext_lang.
1723 (ensure_python_env): Call set_active_ext_lang.
1724 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1726 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1728 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1730 (gdbpy_eval_from_control_command): Renamed from
1731 eval_python_from_control_command, made static. New arg extlang.
1732 (gdbpy_source_script) Renamed from source_python_script, made static.
1734 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1735 result to int. New arg extlang.
1736 (gdbpy_source_objfile_script): Renamed from
1737 source_python_script_for_objfile, made static. New arg extlang.
1738 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1739 static. New args extlang, extlang_printers. Change result type to
1741 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1742 static. New arg extlang. Rename arg printers to extlang_printers
1743 and change type to ext_lang_type_printers *.
1744 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1745 static. Replace argument arg with extlang, extlang_printers.
1746 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1747 (!HAVE_PYTHON, source_python_script): Delete.
1748 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1749 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1750 (!HAVE_PYTHON, start_type_printers): Delete.
1751 (!HAVE_PYTHON, apply_type_printers): Delete.
1752 (!HAVE_PYTHON, free_type_printers): Delete.
1753 (_initialize_python): Delete call to observer_attach_before_prompt.
1754 (finalize_python): Set/restore active extension language.
1755 (gdbpy_finish_initialization) Renamed from
1756 finish_python_initialization, made static. New arg extlang.
1757 (gdbpy_initialized): New function.
1758 * python/python.h: #include "extension.h". Delete #include
1759 "value.h", "mi/mi-cmds.h".
1760 (extension_language_python): Declare.
1761 (GDBPY_AUTO_FILE_NAME): Delete.
1762 (enum py_bt_status): Moved to extension.h and renamed to
1764 (enum frame_filter_flags): Moved to extension.h.
1765 (enum py_frame_args): Moved to extension.h and renamed to
1766 ext_lang_frame_args.
1767 (finish_python_initialization): Delete.
1768 (eval_python_from_control_command): Delete.
1769 (source_python_script): Delete.
1770 (apply_val_pretty_printer): Delete.
1771 (apply_frame_filter): Delete.
1772 (preserve_python_values): Delete.
1773 (gdbpy_script_language_defn): Delete.
1774 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1775 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1777 * auto-load.c: #include "extension.h".
1778 (GDB_AUTO_FILE_NAME): Delete.
1779 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1780 (script_language_gdb): Delete, moved to extension.c and renamed to
1781 extension_language_gdb.
1782 (source_gdb_script_for_objfile): Delete.
1783 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1784 (loaded_script): Change type of language member to
1785 struct extension_language_defn *.
1786 (init_loaded_scripts_info): Initialize
1787 unsupported_script_warning_printed.
1788 (maybe_add_script): Make static. Change type of language arg to
1789 struct extension_language_defn *.
1790 (clear_section_scripts): Reset unsupported_script_warning_printed.
1791 (auto_load_objfile_script_1): Rewrite to use extension language API.
1792 (auto_load_objfile_script): Make public. Remove support-compiled-in
1793 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1794 (source_section_scripts): Rewrite to use extension language API.
1795 (load_auto_scripts_for_objfile): Rewrite to use
1796 auto_load_scripts_for_objfile.
1797 (collect_matching_scripts_data): Change type of language member to
1798 struct extension_language_defn *.
1799 (auto_load_info_scripts): Change type of language arg to
1800 struct extension_language_defn *.
1801 (unsupported_script_warning_print): New function.
1802 (script_not_found_warning_print): Make static.
1803 (_initialize_auto_load): Rewrite construction of scripts-directory
1805 * auto-load.h (struct objfile): Add forward decl.
1806 (struct script_language): Delete.
1807 (struct auto_load_pspace_info): Add forward decl.
1808 (struct extension_language_defn): Add forward decl.
1809 (maybe_add_script): Delete.
1810 (auto_load_objfile_script): Declare.
1811 (script_not_found_warning_print): Delete.
1812 (auto_load_info_scripts): Update prototype.
1813 (auto_load_gdb_scripts_enabled): Declare.
1814 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1815 auto_load_python_scripts_enabled and made public.
1816 (script_language_python): Delete, moved to python.c.
1817 (gdbpy_script_language_defn): Delete.
1818 (info_auto_load_python_scripts): Update to use
1819 extension_language_python.
1821 * breakpoint.c (condition_command): Replace call to
1822 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1823 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1824 with call to breakpoint_ext_lang_cond_says_stop.
1825 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1826 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1827 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1828 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1830 (local_setattro): Print name of extension language with existing
1833 * valprint.c (val_print, value_print): Update to call
1834 apply_ext_lang_val_pretty_printer.
1835 * cp-valprint.c (cp_print_value): Update call to
1836 apply_ext_lang_val_pretty_printer.
1837 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1838 (gdbpy_apply_val_pretty_printer): Renamed from
1839 apply_val_pretty_printer. New arg extlang.
1840 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1842 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1843 extension language API.
1844 * cli/cli-script.c (execute_control_command): Update to call
1845 eval_ext_lang_from_control_command.
1847 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1848 enum ext_lang_bt_status values. Update call to
1849 apply_ext_lang_frame_filter.
1850 (mi_cmd_stack_list_locals): Ditto.
1851 (mi_cmd_stack_list_args): Ditto.
1852 (mi_cmd_stack_list_variables): Ditto.
1853 * mi/mi-main.c: Delete #include "python/python-internal.h".
1854 Add #include "extension.h".
1855 (mi_cmd_list_features): Replace reference to python internal variable
1856 gdb_python_initialized with call to ext_lang_initialized_p.
1858 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1859 Update to use enum ext_lang_frame_args. Update to call
1860 apply_ext_lang_frame_filter.
1861 * python/py-framefilter.c (extract_sym): Update to use enum
1863 (extract_value, py_print_type, py_print_value): Ditto.
1864 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1865 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1866 (py_print_frame): Ditto.
1867 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1868 New arg extlang. Update to use enum ext_lang_bt_status.
1870 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1871 finish_python_initialization. Replace with call to
1872 finish_ext_lang_initialization.
1874 * typeprint.c (do_free_global_table): Update to call
1875 free_ext_lang_type_printers.
1876 (create_global_typedef_table): Update to call
1877 start_ext_lang_type_printers.
1878 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1879 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1880 (type_print_options): Change type of global_printers from "void *"
1881 to "struct ext_lang_type_printers *".
1883 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1884 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1885 (gdbpy_preserve_values): Renamed from preserve_python_values.
1887 (!HAVE_PYTHON, preserve_python_values): Delete.
1889 * utils.c (quit_flag): Delete, moved to extension.c.
1890 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1893 * eval.c: Delete #include "python/python.h".
1894 * main.c: Delete #include "python/python.h".
1896 * defs.h: Update comment.
1898 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1902 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1904 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1907 2014-02-05 Yao Qi <yao@codesourcery.com>
1909 * remote.c (remote_pass_signals): Remove local 'buf' and use
1911 (remote_program_signals): Likewise.
1913 2014-02-05 Yao Qi <yao@codesourcery.com>
1915 * ctf.c: Include "inferior.h" and "gdbthread.h".
1916 (CTF_PID): A new macro.
1917 (ctf_open): Call inferior_appeared and add_thread_silent.
1918 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1919 (ctf_thread_alive): New function.
1920 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1922 2014-02-05 Yao Qi <yao@codesourcery.com>
1926 2013-05-24 Yao Qi <yao@codesourcery.com>
1928 * tracepoint.c (TFILE_PID): Remove.
1929 (tfile_open): Don't add thread and inferior.
1930 (tfile_close): Don't set 'inferior_ptid'. Don't call
1931 exit_inferior_silent.
1932 (tfile_thread_alive): Remove.
1933 (init_tfile_ops): Don't set field 'to_thread_alive' of
1936 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1938 * remote.c (remote_start_remote): Call remote_check_symbols even
1939 if only symbol-file (not file) has been given.
1941 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1943 * gdbarch.sh (skip_entrypoint): New callback.
1944 * gdbarch.c, gdbarch.h: Regenerate.
1945 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1946 * infrun.c (fill_in_stop_func): Likewise.
1947 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1948 (ppc_elfv2_elf_make_msymbol_special): New function.
1949 (ppc_elfv2_skip_entrypoint): Likewise.
1950 (ppc_linux_init_abi): Install them for ELFv2.
1952 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1954 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1955 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1956 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1957 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1958 structures returned in GPRs.
1960 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1962 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1963 offset to the stack parameter list for the ELFv2 ABI.
1965 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1967 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1968 set_gdbarch_convert_from_func_ptr_addr and
1969 set_gdbarch_elf_make_msymbol_special for ELFv1.
1970 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1971 function descriptors on ELFv1.
1972 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1973 set up r12 at function entry.
1975 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1977 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1978 (struct gdbarch_tdep): New member elf_abi.
1980 * rs6000-tdep.c: Include "elf/ppc64.h".
1981 (rs6000_gdbarch_init): Detect ELF ABI version.
1983 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1986 within a register pair holding a DFP 128-bit value on little-endian.
1987 (ppc64_sysv_abi_return_value_base): Likewise.
1988 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1989 (dfp_pseudo_register_write): Likewise.
1991 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1993 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1994 offset on little-endian when passing _Decimal32.
1995 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1997 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1999 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2000 of the overlapped FP register within the VSX register on little-
2002 (efpr_pseudo_register_write): Likewise.
2004 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2006 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2007 offset on little-endian when passing small structures.
2009 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2011 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2012 (struct ppc64_sysv_argpos): New data structure.
2013 (ppc64_sysv_abi_push_float): Remove.
2014 (ppc64_sysv_abi_push_val): New function.
2015 (ppc64_sysv_abi_push_integer): Likewise.
2016 (ppc64_sysv_abi_push_freg): Likewise.
2017 (ppc64_sysv_abi_push_vreg): Likewise.
2018 (ppc64_sysv_abi_push_param): Likewise.
2019 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2020 (ppc64_sysv_abi_return_value_base): New function.
2021 (ppc64_sysv_abi_return_value): Refactor to use it.
2023 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2025 * NEWS: Document new target powerpc64le-*-linux*.
2027 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2029 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2030 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2032 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2033 register set used in ELF core dumps. Add floating-point register set.
2035 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2037 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2038 dwarf2_to_gdb[] table using symbolic constants. Adjust
2039 penultimate entry from number representing the PC register
2040 to symbolic constant representing the MDR register. Add
2041 constant for the PC register to the end of the table.
2043 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2045 * bsd-kvm.c: Include <sys/param.h>
2047 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2049 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2051 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2053 * ada-lang.h (clear_ada_sym_cache): Delete.
2055 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2057 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2059 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2061 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2062 the sigreturn register save area only if the syscall is
2065 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2067 * valops.c (value_slice): Minor reformatting.
2069 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2071 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2073 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2075 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2077 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2078 (ada_ignore_descriptive_types_p): New static global.
2079 (find_parallel_type_by_descriptive_type): Return immediately
2080 if ada_ignore_descriptive_types_p is set.
2081 (_initialize_ada_language): Register new commands "maintenance
2082 set ada", "maintenance show ada", "maintenance set ada
2083 ignore-descriptive-types" and "maintenance show ada
2084 ignore-descriptive-types".
2085 * NEWS: Add entry for new "maint ada set/show
2086 ignore-descriptive-types" commands.
2088 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2090 * record-btrace.c (record_btrace_close): Call btrace_teardown
2093 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2095 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2098 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2100 * ada-typeprint (type_is_full_subrange_of_target_type):
2102 (print_range): Add parameter bounds_prefered_p. If not set,
2103 try printing range types using the name of their base type.
2104 (print_range_type): Add parameter bounds_prefered_p.
2105 Use it in call to print_range.
2106 (print_array_type, ada_print_type): Update calls to print_range
2107 and print_range_type.
2109 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2111 * ada-typeprint.c (print_array_type, print_choices, print_range)
2112 (print_range_bound, print_dynamic_range_bound, print_range_type):
2115 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2117 * ada-typeprint.c (print_range): Add missing empty line
2118 after local declaration.
2120 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2122 * ada-valprint.c (print_optional_low_bound): Get index_type's
2123 target type for as long as it is a TYPE_CODE_RANGE.
2125 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2127 * procfs.c (procfs_make_note_section): Remove assertion and
2130 2014-01-24 Yao Qi <yao@codesourcery.com>
2132 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2133 * corelow.c (get_core_siginfo): Likewise.
2135 2014-01-24 Yao Qi <yao@codesourcery.com>
2137 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2138 ULONGEST. Don't check 'len' is negative.
2139 (remote_write_bytes): Change type of 'len' to ULONGEST.
2141 2014-01-23 Tom Tromey <tromey@redhat.com>
2144 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2145 Handle exception from frame.block.
2146 (FrameVars.fetch_frame_locals): Likewise.
2148 2014-01-23 Tom Tromey <tromey@redhat.com>
2151 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2152 on a NULL pointer. Move "goto error" to correct place.
2154 2014-01-23 Tom Tromey <tromey@redhat.com>
2157 * python/py-framefilter.c (apply_frame_filter): Call
2158 ensure_python_env after computing gdbarch.
2160 2014-01-23 Yao Qi <yao@codesourcery.com>
2162 * target.c (raw_memory_xfer_partial): Change argument type
2163 from void * to gdb_byte *.
2164 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2166 2014-01-22 Doug Evans <dje@google.com>
2168 New gdbserver option --debug-format=timestamp.
2171 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2173 * syscalls/s390x-linux.xml: New file.
2174 * syscalls/s390-linux.xml: New file.
2175 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2176 (XML_SYSCALL_FILENAME_S390X): Likewise.
2177 (op_svc): New enum value for SVC opcode.
2178 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2179 (s390_linux_get_syscall_number): New function.
2180 (s390_gdbarch_init): Register '*get_syscall_number' and the
2181 syscall xml file name.
2182 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2183 "s390-linux.xml" and "s390x-linux.xml".
2184 * NEWS: Announce new feature.
2186 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2188 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2190 2014-01-22 Pedro Alves <palves@redhat.com>
2192 * xtensa-config.c: Include defs.h.
2194 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2196 * common/common-utils.h: Add "ARI:" comment beside __func__
2199 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2201 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2202 documentation a bit.
2204 2014-01-21 Roland McGrath <mcgrathr@google.com>
2206 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2207 * configure: Regenerate.
2208 * aclocal.m4: Regenerate.
2209 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2210 New substituted variables.
2211 (install-strip): New target.
2212 (INSTALL_SCRIPT): New substituted variable.
2213 (FLAGS_TO_PASS): Add it.
2214 (install-only): Use $(INSTALL_SCRIPT) rather than
2215 $(INSTALL_PROGRAM) for gcore.
2217 2014-01-20 Tom Tromey <tromey@redhat.com>
2219 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2222 2014-01-20 Tom Tromey <tromey@redhat.com>
2224 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2225 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2226 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2227 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2228 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2229 (struct cmd_list_element) <flags>: Remove.
2230 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2231 doc_allocated>: New fields.
2232 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2234 * maint.c (maintenance_do_deprecate): Update.
2235 * top.c (execute_command): Update.
2237 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2239 * xtensa-linux-nat.c: Include asm/ptrace.h.
2241 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2243 * Makefile.in (SFILES): Add d-support.c.
2244 (COMMON_OBS): Add d-support.o.
2245 * d-lang.h (d_parse_symbol): Add comment, now defined in
2247 * d-lang.c (parse_call_convention)
2248 (parse_attributes, parse_function_types)
2249 (parse_function_args, parse_type, parse_identifier)
2250 (call_convention_p, d_parse_symbol): Move functions to ...
2251 * d-support.c: ... New file.
2253 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2255 * d-lang.h (d_parse_symbol): Add declaration.
2256 * d-lang.c (extract_identifiers)
2257 (extract_type_info): Remove functions.
2258 (parse_call_convention, parse_attributes)
2259 (parse_function_types, parse_function_args)
2260 (parse_type, parse_identifier, call_convention_p)
2261 (d_parse_symbol): New functions.
2262 (d_demangle): Use d_parse_symbol to demangle D symbols.
2264 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2266 * d-lang.h (struct builtin_d_type): New data type.
2267 (builtin_d_type): Add declaration.
2268 * d-lang.c (d_language_arch_info, build_d_types)
2269 (builtin_d_type): New functions.
2270 (enum d_primitive_types): New data type.
2271 (d_language_defn): Change c_language_arch_info to
2272 d_language_arch_info.
2273 (d_type_data): New static variable.
2274 (_initialize_d_language): Initialize d_type_data.
2276 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2278 * d-lang.h (d_main_name): Add declaration.
2279 * d-lang.c (d_main_name): New function.
2280 * symtab.c (find_main_name): Add call to d_main_name.
2282 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2284 * d-lang.c (d_language_defn): Change macro_expansion_c to
2287 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2289 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2291 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2293 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2294 gdb_exception" declaration.
2295 * remote.c (getpkt_or_notif_sane): Likewise.
2297 2014-01-17 Doug Evans <dje@google.com>
2299 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2300 function, contents of dirnames_to_char_ptr_vec_append moved here.
2301 (delim_string_to_char_ptr_vec): New function.
2302 (dirnames_to_char_ptr_vec_append): Rewrite.
2303 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2305 2014-01-17 Doug Evans <dje@google.com>
2307 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2309 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2310 #include "common-utils.h".
2311 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2312 * common/vec.h (VEC_ASSERT_PASS): Update.
2313 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2314 (MACH_CHECK_ERROR): Update.
2316 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2318 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2320 * gdbarch.h: Regenerate.
2322 2014-01-16 Tom Tromey <tromey@redhat.com>
2324 * value.c (struct value) <regnum>: Move earlier.
2326 2014-01-16 Tom Tromey <tromey@redhat.com>
2328 * remote.c (extended_remote_create_inferior): Rename from
2329 extended_remote_create_inferior_1. Add "ops" argument. Remove
2332 2014-01-16 Pedro Alves <palves@redhat.com>
2334 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2335 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2338 2014-01-16 Doug Evans <dje@google.com>
2340 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2344 * btrace.h (btrace_thread_flag): New.
2345 (struct btrace_thread_info) <flags>: New.
2346 * record-btrace.c (record_btrace_resume_thread)
2347 (record_btrace_find_thread_to_move, btrace_step_no_history)
2348 (btrace_step_stopped, record_btrace_start_replaying)
2349 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2350 (record_btrace_find_resume_thread): New.
2351 (record_btrace_resume, record_btrace_wait): Extend.
2352 (record_btrace_can_execute_reverse): New.
2353 (record_btrace_open): Fail in non-stop mode.
2354 (record_btrace_set_replay): Split into this, ...
2355 (record_btrace_stop_replaying): ... this, ...
2356 (record_btrace_clear_histories): ... and this.
2357 (init_record_btrace_ops): Init to_can_execute_reverse.
2358 * NEWS: Announce it.
2360 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2362 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2363 (forward_target_decr_pc_after_break)
2364 (target_decr_pc_after_break): New.
2365 * target.c (forward_target_decr_pc_after_break)
2366 (target_decr_pc_after_break): New.
2367 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2368 instead of gdbarch_decr_pc_after_break.
2369 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2370 instead of gdbarch_decr_pc_after_break.
2371 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2372 instead of gdbarch_decr_pc_after_break.
2373 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2374 instead of gdbarch_decr_pc_after_break.
2375 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2376 instead of gdbarch_decr_pc_after_break.
2377 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2378 instead of gdbarch_decr_pc_after_break.
2380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2382 * btrace.c: Include regcache.h.
2383 (btrace_add_pc): New.
2384 (btrace_enable): Call btrace_add_pc.
2385 (btrace_is_empty): New.
2386 * btrace.h (btrace_is_empty): New.
2387 * record-btrace.c (require_btrace, record_btrace_info): Call
2390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2392 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2393 Support delta reads.
2394 (linux_disable_btrace): Change return type.
2395 * common/linux-btrace.h (linux_read_btrace): Change parameters
2396 and return type to allow error reporting. Update users.
2397 (linux_disable_btrace): Change return type. Update users.
2398 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2400 (btrace_error): New.
2401 (btrace_block) <begin>: Comment on BEGIN == 0.
2402 * btrace.c (btrace_compute_ftrace): Start from the end of
2404 (btrace_stitch_trace, btrace_clear_history): New.
2405 (btrace_fetch): Read delta trace, return if replaying.
2406 (btrace_clear): Move clear history code to btrace_clear_history.
2407 (parse_xml_btrace): Throw an error if parsing failed.
2408 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2409 and return type to allow error reporting.
2410 (target_read_btrace): Change parameters and return type to allow
2412 * target.c (target_read_btrace): Update.
2413 * remote.c (remote_read_btrace): Support delta reads. Pass
2415 * NEWS: Announce it.
2417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2419 * record.h (record_btrace_frame_unwind)
2420 (record_btrace_tailcall_frame_unwind): New declarations.
2421 * dwarf2-frame: Include record.h
2422 (dwarf2_frame_cfa): Throw an error for btrace frames.
2423 * record-btrace.c: Include hashtab.h.
2424 (btrace_get_bfun_name): New.
2425 (btrace_call_history): Call btrace_get_bfun_name.
2426 (struct btrace_frame_cache): New.
2428 (bfcache_hash, bfcache_eq, bfcache_new): New.
2429 (btrace_get_frame_function): New.
2430 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2431 (record_btrace_frame_this_id): Compute own id.
2432 (record_btrace_frame_prev_register): Provide PC, throw_error
2433 for all other registers.
2434 (record_btrace_frame_sniffer): Detect btrace frames.
2435 (record_btrace_tailcall_frame_sniffer): New.
2436 (record_btrace_frame_dealloc_cache): New.
2437 (record_btrace_frame_unwind): Add new functions.
2438 (record_btrace_tailcall_frame_unwind): New.
2439 (_initialize_record_btrace): Allocate cache.
2440 * btrace.c (btrace_clear): Call reinit_frame_cache.
2441 * NEWS: Announce it.
2443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2445 * record-btrace.c (record_btrace_set_replay)
2446 (record_btrace_goto_begin, record_btrace_goto_end)
2447 (record_btrace_goto): New.
2448 (init_record_btrace_ops): Initialize them.
2449 * NEWS: Announce it.
2451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2453 * record-btrace.c (record_btrace_find_new_threads)
2454 (record_btrace_thread_alive): New.
2455 (init_record_btrace_ops): Initialize to_find_new_threads and
2458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2460 * record-btrace.c (record_btrace_resume): New.
2461 (record_btrace_wait): New.
2462 (init_record_btrace_ops): Initialize to_wait and to_resume.
2464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2466 * record-btrace.c (record_btrace_xfer_partial)
2467 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2468 (record_btrace_allow_memory_access): New.
2469 (init_record_btrace_ops): Initialize new methods.
2470 * target.c (raw_memory_xfer_partial): Bail out if target reports
2471 that this memory is not available.
2473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2475 * target.h (target_ops) <to_insert_breakpoint>
2476 <to_remove_breakpoint>: Add target_ops parameter.
2477 (forward_target_insert_breakpoint): New.
2478 (forward_target_remove_breakpoint): New.
2479 (memory_remove_breakpoint, memory_insert_breakpoint):
2480 Add target_ops parameter.
2481 * target.c (target_insert_breakpoint): Split into this and ...
2482 (forward_target_insert_breakpoint): ... this.
2483 (target_remove_breakpoint): Split into this and ...
2484 (forward_target_remove_breakpoint): ... this.
2485 (debug_to_insert_breakpoint): Add target_ops parameter.
2486 Call forward_target_insert_breakpoint.
2487 (debug_to_remove_breakpoint): Add target_ops parameter.
2488 Call forward_target_remove_breakpoint.
2489 (update_current_target): Do not inherit or default to_insert_breakpoint
2490 and to_remove_breakpoint.
2491 * corelow.c (ignore): Add target_ops parameter.
2492 * exec.c (ignore): Add target_ops parameter.
2493 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2494 Add target_ops parameter.
2495 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2496 Add target_ops parameter.
2497 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2498 Add target_ops parameter.
2499 * record-full.c (record_full_beneath_to_insert_breakpoint)
2500 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2501 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2502 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2503 (record_full_core_remove_breakpoint): Add target_ops parameter.
2505 (record_full_beneath_to_insert_breakpoint_ops)
2506 (record_full_beneath_to_remove_breakpoint_ops)
2507 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2508 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2509 tmp_to_remove_breakpoint_ops,
2510 record_full_beneath_to_insert_breakpoint_ops, and
2511 record_full_beneath_to_remove_breakpoint_ops.
2512 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2513 (m32r_remove_breakpoint): Add target_ops parameter.
2514 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2515 Add target_ops parameter.
2516 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2517 Add target_ops parameter.
2519 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2520 Markus Metzger <markus.t.metzger@intel.com>
2522 * record-btrace.c: Include frame-unwind.h.
2523 (record_btrace_frame_unwind_stop_reason)
2524 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2525 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2527 (init_record_btrace_ops): Install it.
2529 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2534 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2536 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2539 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2541 * frame-unwind.c: Include target.h.
2542 (frame_unwind_try_unwinder): New function with code from ...
2543 (frame_unwind_find_by_frame): ... here. New variable
2544 unwinder_from_target, call also target_get_unwinder)
2545 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2546 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2547 * target.h (struct target_ops): New fields to_get_unwinder and
2548 to_get_tailcall_unwinder.
2549 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2551 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2553 * record-btrace.c (record_btrace_fetch_registers)
2554 (record_btrace_store_registers)
2555 (record_btrace_to_prepare_to_store): New.
2556 (init_record_btrace_ops): Add the above.
2558 2014-01-16 Tom Tromey <tromey@redhat.com>
2560 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2561 * target.h (struct target_ops) <to_prepare_to_store>: Add
2563 (target_prepare_to_store): Add argument.
2564 * target.c (debug_to_prepare_to_store): Add argument.
2565 (update_current_target): Update.
2566 * remote.c (remote_prepare_to_store): Add 'self' argument.
2567 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2568 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2569 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2570 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2572 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2573 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2574 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2575 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2576 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2580 * btrace.h (replay) <replay>: New.
2581 (btrace_is_replaying): New.
2582 * btrace.c (btrace_clear): Free replay iterator.
2583 (btrace_is_replaying): New.
2584 * record-btrace.c (record_btrace_is_replaying): New.
2585 (record_btrace_info): Print insn number if replaying.
2586 (record_btrace_insn_history): Start at replay position.
2587 (record_btrace_call_history): Start at replay position.
2588 (init_record_btrace_ops): Init to_record_is_replaying.
2590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2592 * record-btrace.c (record_btrace_insn_history_range): Include
2594 (record_btrace_insn_history_from): Adjust range.
2595 (record_btrace_call_history_range): Include
2597 (record_btrace_call_history_from): Adjust range.
2598 * NEWS: Announce changes.
2600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2602 * record.h (enum record_print_flag)
2603 <record_print_indent_calls>: New.
2604 * record.c (get_call_history_modifiers): Recognize /c modifier.
2605 (_initialize_record): Document /c modifier.
2606 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2607 Reorder fields. Optionally indent the function name. Update
2609 * NEWS: Announce changes.
2611 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2613 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2617 * btrace.c (ftrace_new_function): Start counting at one.
2618 * record-btrace.c (record_btrace_info): Adjust number of calls
2620 * NEWS: Announce it.
2622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2624 * record-btrace.c (btrace_call_history_insn_range): Print
2625 insn range as [begin, end].
2627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2629 * btrace.h (struct btrace_func_link): New.
2630 (enum btrace_function_flag): New.
2631 (struct btrace_inst): Rename to ...
2632 (struct btrace_insn): ...this. Update all users.
2633 (struct btrace_func) <ibegin, iend>: Remove.
2634 (struct btrace_func_link): New.
2635 (struct btrace_func): Rename to ...
2636 (struct btrace_function): ...this. Update all users.
2637 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2638 (number, level, flags>: New.
2639 (struct btrace_insn_iterator): Rename to ...
2640 (struct btrace_insn_history): ...this.
2642 (struct btrace_insn_iterator, btrace_call_iterator): New.
2643 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2644 (struct btrace_target_info) <begin, end, level>
2645 <insn_history, call_history>: New.
2646 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2647 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2648 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2649 (btrace_call_number, btrace_call_begin, btrace_call_end)
2650 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2651 (btrace_find_function_by_number, btrace_set_insn_history)
2652 (btrace_set_call_history): New.
2653 * btrace.c (btrace_init_insn_iterator)
2654 (btrace_init_func_iterator, compute_itrace): Remove.
2655 (ftrace_print_function_name, ftrace_print_filename)
2656 (ftrace_skip_file): Change
2658 (ftrace_init_func): Remove.
2659 (ftrace_debug): Use new btrace_function fields.
2660 (ftrace_function_switched): Also consider gaining and
2661 losing symbol information).
2662 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2663 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2664 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2666 (ftrace_new_function): Move. Remove debug print.
2667 (ftrace_update_lines, ftrace_update_insns): New.
2668 (ftrace_update_function): Check for call, ret, and jump.
2669 (compute_ftrace): Renamed to ...
2670 (btrace_compute_ftrace): ...this. Rewritten to compute call
2672 (btrace_fetch, btrace_clear): Updated.
2673 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2674 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2675 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2676 (btrace_call_number, btrace_call_begin, btrace_call_end)
2677 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2678 (btrace_find_function_by_number, btrace_set_insn_history)
2679 (btrace_set_call_history): New.
2680 * record-btrace.c (require_btrace): Use new btrace thread
2682 (record_btrace_info, btrace_insn_history)
2683 (record_btrace_insn_history, record_btrace_insn_history_range):
2684 Use new btrace thread info fields and new iterator.
2685 (btrace_func_history_src_line): Rename to ...
2686 (btrace_call_history_src_line): ...this. Use new btrace
2688 (btrace_func_history): Rename to ...
2689 (btrace_call_history): ...this. Use new btrace thread info
2690 fields and new iterator.
2691 (record_btrace_call_history, record_btrace_call_history_range):
2692 Use new btrace thread info fields and new iterator.
2694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2696 * frame.h (frame_id_build_unavailable_stack_special): New.
2697 * frame.c (frame_id_build_unavailable_stack_special): New.
2699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2701 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2702 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2703 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2705 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2706 (i386_insn_is_jump, i386_jmp_p): New.
2707 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2708 insn_is_jump to gdbarch.
2709 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2710 * gdbarch.h: Regenerated.
2711 * gdbarch.c: Regenerated.
2712 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2713 (default_insn_is_jump): New.
2714 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2715 (default_insn_is_jump): New.
2717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2719 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2721 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2722 (btrace_read_type) <btrace_read_new>: Change to ...
2723 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2727 * common/linux-btrace.c (linux_read_btrace): Free trace from
2730 2014-01-15 Doug Evans <dje@google.com>
2732 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2735 2014-01-15 Tom Tromey <tromey@redhat.com>
2737 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2738 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2739 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2740 (set_objfile_main_name): New function.
2741 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2742 language_of_main>: New fields.
2743 (set_objfile_main_name): Declare.
2744 * symtab.c (find_main_name): Loop over objfiles to find the main
2746 (set_main_name): Now static.
2747 (get_main_info): Add comment.
2748 * symtab.h (set_main_name): Don't declare.
2750 2014-01-15 Tom Tromey <tromey@redhat.com>
2752 * symtab.c (main_progspace_key): New global.
2753 (struct main_info): New.
2754 (name_of_main, language_of_main): Remove.
2755 (get_main_info, main_info_cleanup): New function.
2756 (set_main_name, main_name, main_language): Use get_main_info.
2757 (_initialize_symtab): Initialize main_progspace_key.
2759 2014-01-15 Tom Tromey <tromey@redhat.com>
2761 * dbxread.c (process_one_symbol): Update.
2762 * dwarf2read.c (read_partial_die): Update.
2763 * symfile.c (set_initial_language): Call main_language.
2764 * symtab.c (language_of_main): Now static.
2765 (set_main_name): Add 'lang' parameter.
2766 (find_main_name): Update.
2767 (main_language): New function.
2768 (symtab_observer_executable_changed): Update.
2769 * symtab.h (set_main_name): Update.
2770 (language_of_main): Remove.
2771 (main_language): Declare.
2773 2014-01-15 Tom Tromey <tromey@redhat.com>
2775 * symfile.c (init_entry_point_info): Use new "initialized" field.
2777 * objfiles.h (struct entry_point) <initialized>: New field.
2778 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2779 (struct objfile) <ei>: ...here. Remove.
2780 * objfiles.c (entry_point_address_query): Update.
2782 2014-01-15 Tom Tromey <tromey@redhat.com>
2784 * objfiles.c (entry_point_address_query): Relocate entry point
2786 (objfile_relocate1): Do not relocate entry point address.
2787 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2788 <the_bfd_section_index>: New field.
2789 * symfile.c (init_entry_point_info): Find the entry point's
2792 2014-01-15 Tom Tromey <tromey@redhat.com>
2794 * solib-frv.c (enable_break): Use entry_point_address_query.
2796 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2798 * NEWS: Add note on improved process record-replay on
2799 arm*-linux* targets.
2801 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2803 * arm-tdep.c (enum arm_record_result): New enum.
2804 (arm_record_unsupported_insn): New function.
2805 (arm_record_coproc_data_proc): Removed.
2806 (thumb2_record_ld_st_multiple): New function.
2807 (thumb2_record_ld_st_dual_ex_tbb): New function.
2808 (thumb2_record_data_proc_sreg_mimm): New function.
2809 (thumb2_record_ps_dest_generic): New function.
2810 (thumb2_record_branch_misc_cntrl): New function.
2811 (thumb2_record_str_single_data): New function.
2812 (thumb2_record_ld_mem_hints): New function.
2813 (thumb2_record_ld_word): New function.
2814 (thumb2_record_lmul_lmla_div): New function.
2815 (thumb2_record_decode_insn_handler): New function.
2816 (decode_insn): Add thumb32 instruction handlers.
2818 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2820 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2821 (struct arm_linux_record_tdep): Declare.
2822 (arm_canonicalize_syscall): New function.
2823 (arm_all_but_pc_registers_record): New function.
2824 (arm_linux_syscall_record): New function.
2825 (arm_linux_init_abi): Add syscall recording constructs.
2826 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2827 decoding. (arm_record_coproc_data_proc): Update arm syscall
2829 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2830 <arm_syscall_record>: New field.
2831 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2834 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2836 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2837 register for push instruction recording.
2839 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2841 * arm-tdep.c (thumb_record_misc): Update to correct logical
2842 error while recording ldm, ldmia and pop instructions.
2844 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2846 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2848 2014-01-15 Pedro Alves <palves@redhat.com>
2850 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2851 (go32_resume, go32_fetch_registers, store_register)
2852 (go32_store_registers, go32_prepare_to_store)
2853 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2854 (go32_create_inferior, go32_can_run, go32_terminal_init)
2855 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2858 2014-01-15 Tom Tromey <tromey@redhat.com>
2860 * target.h (async_callback_ftype): New typedef.
2861 (struct target_ops) <to_async>: Use it.
2863 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2865 * python/py-value.c (get_field_type): Remove unnecessary curly
2866 braces for single-statement if block.
2868 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2870 * python/py-type.c (convert_field): Add missing empty line
2873 2014-01-14 Doug Evans <dje@google.com>
2875 * symfile.h (expand_symtabs_matching): Renamed from
2876 expand_partial_symbol_names. Update prototype.
2877 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2878 * symfile.c (expand_symtabs_matching): Renamed from
2879 expand_partial_symbol_names. New args file_matcher, kind.
2880 Rename arg fun to symbol_matcher.
2881 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2882 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2883 ada_expand_partial_symbol_name.
2884 (ada_make_symbol_completion_list): Update to call
2885 expand_symtabs_matching.
2886 (ada_add_global_exceptions): Call expand_symtabs_matching.
2887 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2888 call map_symbol_filenames.
2889 * symtab.c (sources_info): Update to call map_symbol_filenames.
2890 (search_symbols): Call expand_symtabs_matching.
2891 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2892 (default_make_symbol_completion_list_break_on): Update to call
2893 expand_symtabs_matching.
2894 (make_source_files_completion_list): Update to call
2895 map_symbol_filenames.
2897 2014-01-14 Doug Evans <dje@google.com>
2899 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2900 (expand_symtabs_symbol_matcher_ftype): New typedef.
2901 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2902 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2903 * symfile.c (expand_partial_symbol_names): Update to use
2904 expand_symtabs_symbol_matcher_ftype.
2905 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2906 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2907 Arg name_matcher renamed to symbol_matcher.
2908 * psymtab.c (recursively_search_psymtabs): Update to use
2909 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2911 (expand_symtabs_matching_via_partial): Update to use
2912 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2913 Arg name_matcher renamed to symbol_matcher.
2915 2014-01-14 Doug Evans <dje@google.com>
2917 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2918 (map_partial_symbol_filenames): Ditto.
2919 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2920 (map_partial_symbol_filenames): Ditto.
2921 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2922 (map_partial_symbol_filenames): Ditto.
2923 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2924 (map_partial_symbol_filenames): Ditto.
2925 * symtab.c: Delete #include "psymtab.h".
2927 2014-01-14 Pedro Alves <palves@redhat.com>
2928 Tom Tromey <tromey@redhat.com>
2930 * infrun.c (use_displaced_stepping): Use find_record_target
2931 instead of RECORD_IS_USED.
2932 (adjust_pc_after_break): Use record_full_is_used instead of
2934 * record-btrace.c (record_btrace_open): Call record_preopen
2935 instead of checking RECORD_IS_USED.
2936 * record-full.c (record_full_shortname)
2937 (record_full_core_shortname): New globals.
2938 (record_full_is_used): New function.
2939 (find_full_open): Call record_preopen instead of checking
2941 (init_record_full_ops): Set the target's shortname to
2942 record_full_shortname.
2943 (init_record_full_core_ops): Set the target's shortname to
2944 record_full_core_shortname.
2945 * record-full.h (record_full_is_used): Declare.
2946 * record.c (find_record_target): Make extern.
2947 (record_preopen): New function.
2948 * record.h (RECORD_IS_USED): Delete macro.
2949 (find_record_target, record_preopen): Declare functions.
2951 2014-01-14 Yao Qi <yao@codesourcery.com>
2953 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2954 'len''s type to ULONGEST.
2955 (core_xfer_shared_libraries_aix): Likewise.
2956 * gdbarch.c, gdbarch.h: Regenerated.
2957 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2958 Change type of 'len' to ULONGEST.
2959 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2960 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2962 2014-01-14 Yao Qi <yao@codesourcery.com>
2964 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2965 type of 'len' to ULONGEST.
2966 (linux_xfer_osdata_processgroups): Likewise.
2967 (linux_xfer_osdata_threads): Likewise.
2968 (linux_xfer_osdata_fds): Likewise.
2969 (linux_xfer_osdata_isockets): Likewise.
2970 (linux_xfer_osdata_shm): Likewise.
2971 (linux_xfer_osdata_sem): Likewise.
2972 (linux_xfer_osdata_msg): Likewise.
2973 (linux_common_xfer_osdata): Likewise.
2974 (struct osdata_type) <getter>: Likewise.
2975 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2978 2014-01-14 Yao Qi <yao@codesourcery.com>
2980 * target.h (target_xfer_partial_ftype): Update.
2981 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2983 * aix-thread.c (aix_thread_xfer_partial): Change type of
2984 argument 'len' to ULONGEST.
2985 * auxv.c (procfs_xfer_auxv): Likewise.
2986 (ld_so_xfer_auxv): Likewise.
2987 (memory_xfer_auxv): Likewise.
2988 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2989 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2990 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2991 * corelow.c (core_xfer_partial): Likewise.
2992 * ctf.c (ctf_xfer_partial): Likewise.
2993 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2995 (darwin_read_dyld_info): Likewise.
2996 (darwin_xfer_partial): Likewise.
2997 * exec.c (section_table_xfer_memory_partial): Likewise.
2998 (exec_xfer_partial): Likewise.
2999 * exec.h (section_table_xfer_memory_partial): Update
3001 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3002 instead of plongest.
3003 (gnu_xfer_partial): Likewise.
3004 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3005 (ia64_hpux_xfer_solib_got): Likewise.
3006 (ia64_hpux_xfer_partial): Likewise.
3007 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3008 * inf-ptrace.c (inf_ptrace_xfer_partial):
3009 * inf-ttrace.c (inf_ttrace_xfer_partial):
3010 * linux-nat.c (linux_xfer_siginfo): Likewise.
3011 (linux_nat_xfer_partial): Likewise.
3012 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3013 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3014 * monitor.c (monitor_xfer_memory): Likewise.
3015 (monitor_xfer_partial): Likewise.
3016 * procfs.c (procfs_xfer_partial): Likewise.
3017 * record-full.c (record_full_xfer_partial): Likewise.
3018 (record_full_core_xfer_partial): Likewise.
3019 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3020 instead of plongest.
3021 (gdbsim_xfer_partial): Likewise.
3022 * remote.c (remote_xfer_partial): Likewise.
3023 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3024 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3026 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3027 (rs6000_xfer_shared_libraries): Likewise.
3028 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3029 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3030 (sparc_xfer_partial): Likewise.
3031 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3032 (spu_xfer_partial): Likewise.
3033 * spu-multiarch.c (spu_xfer_partial): Likewise.
3034 * target.c (target_read_live_memory): Likewise.
3035 (memory_xfer_live_readonly_partial): Likewise.
3036 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3037 (target_xfer_partial, default_xfer_partial): Likewise.
3038 (current_xfer_partial): Likewise.
3039 * tracepoint.c (tfile_xfer_partial): Likewise.
3040 * windows-nat.c (windows_xfer_memory): Likewise. Call
3041 pulongest instead of plongest.
3042 (windows_xfer_partial): Likewise.
3043 (windows_xfer_shared_libraries): Likewise.
3045 2014-01-14 Yao Qi <yao@codesourcery.com>
3047 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3048 target_xfer_partial_ftype.
3050 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3054 * valops.c (value_struct_elt_bitpos): New function
3055 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3056 object to 'None' if the field name is an empty string ("").
3057 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3058 attribute to look for a field when 'name' is 'None'.
3059 (get_field_type): New function
3061 2014-01-13 Doug Evans <dje@google.com>
3064 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3065 (try_open_dwop_file): Ditto.
3066 * gdb_bfd.c: #include "vec.h".
3067 (bfdp): New typedef.
3068 (struct gdb_bfd_data): New member included_bfds.
3069 (gdb_bfd_unref): Unref all included bfds.
3070 (gdb_bfd_record_inclusion): New function.
3071 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3073 2014-01-13 Tom Tromey <tromey@redhat.com>
3075 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3077 2014-01-13 Tom Tromey <tromey@redhat.com>
3079 * defs.h (use_windows): Remove.
3080 * gdb.c (main): Update.
3081 * main.c (captured_main, gdb_main): Update.
3082 * main.h (struct captured_main_args) <use_windows>: Remove.
3083 * top.c (use_windows): Remove.
3085 2014-01-13 Tom Tromey <tromey@redhat.com>
3087 * defs.h (deprecated_flush_hook): Remove.
3089 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3092 * linux-thread-db.c (try_thread_db_load): Add parameter
3093 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3094 (try_thread_db_load_from_pdir_1): Move it there from here.
3095 (try_thread_db_load_from_sdir): Update caller.
3096 (try_thread_db_load_from_dir): Move it there from here.
3098 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3100 * regformats/regdat.sh: Always rewrite the register file.
3102 2014-01-13 Pedro Alves <palves@redhat.com>
3104 * Makefile.in (CHECK_HEADERS): New variable.
3105 (check-headers:): New rule.
3107 2014-01-13 Tom Tromey <tromey@redhat.com>
3109 * cli/cli-setshow.c (do_set_command): Update.
3110 * defs.h (deprecated_set_hook): Remove.
3111 * top.c (deprecated_set_hook): Remove.
3113 2014-01-13 Pedro Alves <palves@redhat.com>
3115 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3116 the tracepoint if the PC is a pseudo-register.
3118 2014-01-13 Tom Tromey <tromey@redhat.com>
3120 * defs.h (XCALLOC): Remove.
3121 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3122 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3123 * dwarf2loc.c (allocate_piece_closure): Likewise.
3124 * elfread.c (elf_symfile_segments): Likewise.
3125 (elf_symfile_segments): Likewise.
3126 * gdbtypes.c (copy_type_recursive): Likewise.
3127 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3128 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3129 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3131 * mt-tdep.c (mt_gdbarch_init): Likewise.
3132 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3134 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3135 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3136 * registry.c (registry_alloc_data): Likewise.
3137 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3138 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3139 * serial.c (serial_fdopen_ops): Likewise.
3140 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3142 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3143 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3146 2014-01-13 Tom Tromey <tromey@redhat.com>
3148 * defs.h (XMALLOC): Remove.
3149 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3150 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3151 * cli-out.c (struct ui_out *): Likewise.
3152 * cli/cli-dump.c (add_dump_command): Likewise.
3153 (add_dump_command): Likewise.
3154 * complaints.c (get_complaints): Likewise.
3155 (find_complaint): Likewise.
3156 * dwarf2-frame.c (execute_cfa_program): Likewise.
3157 * dwarf2read.c (abbrev_table_read_table): Likewise.
3158 * gdbarch.sh: Likewise.
3159 * gdbarch.c: Rebuild.
3160 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3161 * interps.c (interp_new): Likewise.
3162 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3163 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3164 * mi/mi-console.c (mi_console_file_new): Likewise.
3165 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3166 * mi/mi-out.c (mi_out_new): Likewise.
3167 * mi/mi-parse.c (mi_parse): Likewise.
3168 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3169 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3170 * observer.c (xalloc_observer_list_node): Likewise.
3171 * regcache.c (regcache_xmalloc_1): Likewise.
3172 * reggroups.c (reggroup_new): Likewise.
3173 (_initialize_reggroup): Likewise.
3174 * registry.c (register_data_with_cleanup): Likewise.
3175 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3176 * ser-base.c (serial_ttystate): Likewise.
3177 * ser-mingw.c (make_pipe_state): Likewise.
3178 * ser-pipe.c (pipe_open): Likewise.
3179 * serial.c (serial_open): Likewise.
3180 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3181 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3182 (tui_alloc_win_info): Likewise.
3183 (tui_add_content_elements): Likewise.
3184 * tui/tui-file.c (tui_file_new): Likewise.
3185 * tui/tui-out.c (tui_out_new): Likewise.
3186 * ui-file.c (mem_file_new): Likewise.
3187 * ui-out.c (push_level): Likewise.
3188 (make_cleanup_ui_out_end): Likewise.
3189 (append_header_to_list): Likewise.
3190 (ui_out_new): Likewise.
3191 * user-regs.c (user_reg_add_builtin): Likewise.
3193 2014-01-13 Tom Tromey <tromey@redhat.com>
3195 * defs.h (XZALLOC): Remove.
3196 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3197 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3198 (get_ada_tasks_inferior_data): Likewise.
3199 * auto-load.c (get_auto_load_pspace_data): Likewise.
3200 * auxv.c (get_auxv_inferior_data): Likewise.
3201 * bfd-target.c (target_bfd_reopen): Likewise.
3202 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3203 (deprecated_insert_raw_breakpoint): Likewise.
3204 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3205 * corelow.c (core_open): Likewise.
3206 * darwin-nat.c (darwin_check_new_threads): Likewise.
3207 (darwin_attach_pid): Likewise.
3208 * dummy-frame.c (dummy_frame_push): Likewise.
3209 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3210 * dwarf2loc.c (allocate_piece_closure): Likewise.
3211 * elfread.c (elf_symfile_segments): Likewise.
3212 * eval.c (ptrmath_type_p): Likewise.
3213 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3214 * gdbtypes.c (alloc_type_arch): Likewise.
3215 (alloc_type_instance): Likewise.
3216 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3217 * inf-child.c (inf_child_can_use_agent): Likewise.
3218 * inflow.c (get_inflow_inferior_data): Likewise.
3219 * infrun.c (save_infcall_suspend_state): Likewise.
3220 * jit.c (jit_reader_load): Likewise.
3221 (get_jit_objfile_data): Likewise.
3222 (get_jit_program_space_data): Likewise.
3223 (jit_object_open_impl): Likewise.
3224 (jit_symtab_open_impl): Likewise.
3225 (jit_block_open_impl): Likewise.
3226 (jit_frame_sniffer): Likewise.
3227 * linux-fork.c (add_fork): Likewise.
3228 * maint.c (make_command_stats_cleanup): Likewise.
3229 * objfiles.c (get_objfile_pspace_data): Likewise.
3230 * opencl-lang.c (struct lval_closure): Likewise.
3231 * osdata.c (osdata_start_osdata): Likewise.
3232 * progspace.c (new_address_space): Likewise.
3233 (add_program_space): Likewise.
3234 * remote-sim.c (get_sim_inferior_data): Likewise.
3235 * sh-tdep.c (sh_gdbarch_init): Likewise.
3236 * skip.c (Ignore): Likewise.
3237 (skip_delete_command): Likewise.
3238 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3239 (library_list_start_library): Likewise.
3240 (solib_aix_current_sos): Likewise.
3241 * solib-darwin.c (get_darwin_info): Likewise.
3242 (darwin_current_sos): Likewise.
3243 * solib-dsbt.c (get_dsbt_info): Likewise.
3244 * solib-ia64-hpux.c (new_so_list): Likewise.
3245 (ia64_hpux_get_solib_linkage_addr): Likewise.
3246 * solib-spu.c (append_ocl_sos): Likewise.
3247 (spu_current_sos): Likewise.
3248 * solib-svr4.c (get_svr4_info): Likewise.
3249 (svr4_keep_data_in_core): Likewise.
3250 (library_list_start_library): Likewise.
3251 (svr4_default_sos): Likewise.
3252 (svr4_read_so_list): Likewise.
3253 * solib-target.c (library_list_start_library): Likewise.
3254 (solib_target_current_sos): Likewise.
3255 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3256 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3257 * symfile.c (default_symfile_segments): Likewise.
3258 * target-descriptions.c (tdesc_data_init): Likewise.
3259 (tdesc_create_reg): Likewise.
3260 (struct tdesc_type *): Likewise.
3261 (tdesc_create_vector): Likewise.
3262 (tdesc_set_struct_size): Likewise.
3263 (struct tdesc_type *): Likewise.
3264 (tdesc_free_feature): Likewise.
3265 (tdesc_create_feature): Likewise.
3266 * windows-nat.c (windows_add_thread): Likewise.
3267 (windows_make_so): Likewise.
3268 * xml-support.c (gdb_xml_body_text): Likewise.
3269 (gdb_xml_create_parser_and_cleanup): Likewise.
3270 (xml_process_xincludes): Likewise.
3271 * xml-syscall.c (allocate_syscalls_info): Likewise.
3272 (syscall_create_syscall_desc): Likewise.
3274 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3276 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3277 function, with code from i386_stap_parse_special_token.
3278 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3279 (i386_stap_parse_special_token): Move code to the two functions
3282 2014-01-09 Pedro Alves <palves@redhat.com>
3283 Hui Zhu <hui@codesourcery.com>
3286 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3287 bp_err_string. Don't mark the location shlib_disabled if the
3288 error thrown wasn't a generic or memory error. Catch errors
3289 thrown while inserting breakpoints in overlayed code. Output
3290 error message of software breakpoints.
3291 * remote.c (remote_insert_breakpoint): If this breakpoint has
3292 target-side commands but this stub doesn't support Z0 packets,
3293 throw NOT_SUPPORTED_ERROR error.
3294 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3295 * target.h (target_insert_breakpoint): Extend comment.
3296 (target_insert_hw_breakpoint): Add comment.
3298 2014-01-08 Pedro Alves <palves@redhat.com>
3300 * remote.c (remote_add_thread): Add threads silently if starting
3302 (remote_notice_new_inferior): If in all-stop, and starting up,
3303 don't call notice_new_inferior.
3304 (get_current_thread): New function, factored out from ...
3305 (add_current_inferior_and_thread): ... this. Adjust.
3306 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3307 found any thread, then select the remote's current thread as GDB's
3310 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3312 * NEWS: Create a new section for the next release branch.
3313 Rename the section of the current branch, now that it has
3316 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3318 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3319 * version.in: Bump version to 7.7.50.DATE-cvs.
3321 2014-01-08 Yao Qi <yao@codesourcery.com>
3323 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3324 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3325 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3327 2014-01-08 Yao Qi <yao@codesourcery.com>
3329 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3330 return value of bfd_get_filename to symbol_file_add_from_bfd.
3332 2014-01-08 Pierre Muller <muller@sourceware.org>
3335 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3336 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3337 to prim_record_mininal_symbol_and_info.
3338 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3339 in call to prim_record_minimal_symbol_and_info.
3340 (read_pe_exported_syms): Set index field of section_data.
3342 2014-01-07 Andrew Pinski <apinski@cavium.com>
3344 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3345 * features/aarch64.c: Regenerate.
3347 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3349 * target.c (return_null): Define.
3350 (update_current_target): Use it instead of return_zero for
3351 functions that return a pointer.
3353 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3355 * source.c (add_path): Fix check for duplicated paths in the previously
3358 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3360 * ada-lang.c: Remove duplicated include statements.
3361 * alphabsd-nat.c: Ditto.
3362 * amd64-darwin-tdep.c: Ditto.
3363 * amd64fbsd-nat.c: Ditto.
3364 * auto-load.c: Ditto.
3366 * breakpoint.c: Ditto.
3368 * fork-child.c: Ditto.
3369 * gdb_usleep.c: Ditto.
3370 * i386-darwin-tdep.c: Ditto.
3371 * i386fbsd-nat.c: Ditto.
3373 * inferior.c: Ditto.
3375 * linux-nat.c: Ditto.
3376 * linux-tdep.c: Ditto.
3377 * m68kbsd-nat.c: Ditto.
3378 * m68klinux-nat.c: Ditto.
3379 * microblaze-tdep.c: Ditto.
3380 * mips-linux-tdep.c: Ditto.
3381 * mn10300-tdep.c: Ditto.
3382 * nto-tdep.c: Ditto.
3383 * opencl-lang.c: Ditto.
3385 * printcmd.c: Ditto.
3386 * regcache.c: Ditto.
3387 * remote-m32r-sdi.c: Ditto.
3391 * tilegx-linux-nat.c: Ditto.
3392 * tilegx-tdep.c: Ditto.
3393 * tracepoint.c: Ditto.
3395 * vaxbsd-nat.c: Ditto.
3396 * windows-nat.c: Ditto.
3397 * xtensa-tdep.c: Ditto.
3399 2014-01-07 Yao Qi <yao@codesourcery.com>
3401 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3403 2014-01-07 Yao Qi <yao@codesourcery.com>
3404 Joel Brobecker <brobecker@adacore.com>
3406 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3407 (pdc_write_regs): Likewise.
3408 (fetch_regs_kernel_thread): Likewise.
3409 (store_regs_kernel_thread): Likewise.
3411 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3413 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3414 tagged type objects to their actual type.
3416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3418 * ada-valprint.c (print_field_values): Add "language" parameter.
3419 Update calls to print_field_values and print_variant_part.
3420 Pass new parameter "language" in call to val_print instead
3421 of "current_language". Replace call to ada_val_print by call
3423 (print_variant_part): Add "language" parameter.
3424 (ada_val_print_struct_union): Update call to print_field_values.
3426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3428 * ada-valprint.c (ui_memcpy): Delete.
3429 (ada_print_floating): Update documentation. Add empty line
3430 between between function documentation and implementation.
3431 Delete variable "buffer". Use ui_file_xstrdup in place of
3432 ui_file_put. Minor adjustments following this change.
3434 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3436 * ada-valprint.c (ada_val_print_string): New function,
3437 extracted from ada_val_print_array.
3438 (ada_val_print_array): Replace extracted code by call
3439 to ada_val_print_string followed by a return. Move
3440 "else" branch to the function's top block.
3442 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3444 * ada-valprint.c (ada_val_print_array): Move implementation
3445 down. Rename parameter "offset" and "val" into "offset_aligned"
3446 and "original_value" respectively. Add parameter "offset".
3448 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3450 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3451 re-organizing the code. Change the "???" message printed
3452 when target type is a TYPE_CODE_UNDEF into
3453 "<ref to undefined type>".
3455 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3457 * ada-valprint.c (print_record): Delete, implementation inlined...
3458 (ada_val_print_struct_union): ... here. Remove call to
3459 ada_check_typedef in inlined implementation.
3461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3463 * ada-valprint.c (ada_val_print_gnat_array): New function,
3464 extracted from ada_val_print_1;
3465 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3466 (ada_val_print_flt, ada_val_print_struct_union)
3467 (ada_val_print_ref): Likewise.
3468 (ada_val_print_1): Delete variables i and elttype.
3469 Replace extracted-out code by call to corresponding
3472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3474 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3478 * ada-valprint.c (ada_val_print_1): Replace calls to
3479 ada_val_print_1 by calls to val_print.
3481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3483 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3484 Update calls to self accordingly. Replace calls to c_val_print
3485 by calls to val_print.
3487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3489 * ada-valprint.c (print_record): Delete declaration.
3490 (adjust_type_signedness, ada_val_print_1): Likewise.
3491 (ada_val_print): Move function implementation down.
3492 (print_variant_part, print_field_values, print_record):
3493 Move function implementation up.
3495 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3497 * python/py-type.c (typy_get_name): New function.
3498 (type_object_getset): Add entry for attribute "name".
3499 * NEWS: Add entry mentioning this new attribute.
3501 2014-01-07 Yao Qi <yao@codesourcery.com>
3503 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3506 2014-01-07 Yao Qi <yao@codesourcery.com>
3508 * gnu-nat.c (info_port_rights): Add qualifier const to
3511 2014-01-07 Yao Qi <yao@codesourcery.com>
3513 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3515 2014-01-07 Yao Qi <yao@codesourcery.com>
3517 * gnu-nat.c (make_inf) Update declaration.
3518 (make_inf): Make it static.
3519 (inf_set_traced): Likewise.
3520 (inf_port_to_thread, inf_task_died_status): Likewise.
3522 2014-01-07 Yao Qi <yao@codesourcery.com>
3524 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3526 2014-01-07 Yao Qi <yao@codesourcery.com>
3528 * gnu-nat.c (_initialize_gnu_nat): Declare.
3530 2014-01-07 Yao Qi <yao@codesourcery.com>
3532 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3534 (struct gdbarch_info) <byte_order>: Change type to
3536 <byte_order_for_code>: Likewise.
3537 * gdbarch.c, gdbarch.h: Regenerated.
3539 2014-01-06 Sasha Smundak <asmundak@google.com>
3541 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3543 2014-01-06 Tom Tromey <tromey@redhat.com>
3545 * doublest.c (convert_doublest_to_floatformat): Use const, not
3547 * somread.c (som_symtab_read): Likewise.
3549 2014-01-07 Hui Zhu <hui@codesourcery.com>
3551 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3552 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3553 (gdb_bfd_fopen): Ditto.
3554 (gdb_bfd_openr): Ditto.
3555 (gdb_bfd_openw): Ditto.
3556 (gdb_bfd_openr_iovec): Ditto.
3557 (gdb_bfd_fdopenr): Ditto.
3558 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3559 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3561 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3563 * symfile-mem.c (symbol_file_add_from_memory): Removed
3564 gdb_bfd_stash_filename.
3566 2014-01-03 Doug Evans <dje@google.com>
3568 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3571 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3573 Update year range in copyright notice of all files.
3575 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3577 * top.c (print_gdb_version): Set copyright year to 2014.
3579 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3581 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3583 For older changes see ChangeLog-2013.
3589 version-control: never