1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target-delegates.c: Rebuild.
4 * target.c (update_current_target): Don't inherit or default
5 to_supports_enable_disable_tracepoint.
6 * target.h (struct target_ops)
7 <to_supports_enable_disable_tracepoint>: Use
10 2014-02-19 Tom Tromey <tromey@redhat.com>
12 * target-delegates.c: Rebuild.
13 * target.c (update_current_target): Don't inherit or default
14 to_supports_multi_process.
15 * target.h (struct target_ops) <to_supports_multi_process>: Use
16 TARGET_DEFAULT_RETURN.
18 2014-02-19 Tom Tromey <tromey@redhat.com>
20 * target-delegates.c: Rebuild.
21 * target.c (update_current_target): Don't inherit or default
23 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
26 2014-02-19 Tom Tromey <tromey@redhat.com>
28 * target-delegates.c: Rebuild.
29 * target.c (update_current_target): Don't inherit or default
30 to_thread_architecture.
31 * target.h (struct target_ops) <to_thread_architecture>: Use
34 2014-02-19 Tom Tromey <tromey@redhat.com>
36 * target-delegates.c: Rebuild.
37 * target.c (update_current_target): Don't inherit or default
38 to_execution_direction.
39 * target.h (struct target_ops) <to_execution_direction>: Use
42 2014-02-19 Tom Tromey <tromey@redhat.com>
44 * target-delegates.c: Rebuild.
45 * target.c (update_current_target): Don't inherit or default
46 to_can_execute_reverse.
47 * target.h (struct target_ops) <to_can_execute_reverse>: Use
48 TARGET_DEFAULT_RETURN.
49 (target_can_execute_reverse): Unconditionally delegate.
51 2014-02-19 Tom Tromey <tromey@redhat.com>
53 * target-delegates.c: Rebuild.
54 * target.c (update_current_target): Don't inherit or default
56 (dummy_goto_bookmark): Remove.
57 (init_dummy_target): Don't inherit or default to_goto_bookmark.
58 * target.h (struct target_ops) <to_goto_bookmark>: Use
59 TARGET_DEFAULT_NORETURN.
61 2014-02-19 Tom Tromey <tromey@redhat.com>
63 * target-delegates.c: Rebuild.
64 * target.c (update_current_target): Don't inherit or default
66 (dummy_get_bookmark): Remove.
67 (init_dummy_target): Don't inherit or default to_get_bookmark.
68 * target.h (struct target_ops) <to_get_bookmark>: Use
69 TARGET_DEFAULT_NORETURN
71 2014-02-19 Tom Tromey <tromey@redhat.com>
73 * target-delegates.c: Rebuild.
74 * target.c (update_current_target): Don't inherit or default
75 to_make_corefile_notes.
76 (init_dummy_target): Don't initialize to_make_corefile_notes.
77 * target.h (struct target_ops) <to_make_corefile_notes>: Use
80 2014-02-19 Tom Tromey <tromey@redhat.com>
82 * target-delegates.c: Rebuild.
83 * target.c (update_current_target): Don't inherit or default
84 to_find_memory_regions.
85 (init_dummy_target): Don't initialize to_find_memory_regions.
86 * target.h (struct target_ops) <to_find_memory_regions>: Use
89 2014-02-19 Tom Tromey <tromey@redhat.com>
91 * target-delegates.c: Rebuild.
92 * target.c (update_current_target): Don't inherit or default
94 * target.h (struct target_ops) <to_log_command>: Use
95 TARGET_DEFAULT_IGNORE.
96 (target_log_command): Unconditionally delegate.
98 2014-02-19 Tom Tromey <tromey@redhat.com>
100 * target-delegates.c: Rebuild.
101 * target.c (update_current_target): Don't inherit or default
103 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
104 TARGET_DEFAULT_RETURN.
106 2014-02-19 Tom Tromey <tromey@redhat.com>
108 * target-delegates.c: Rebuild.
109 * target.c (update_current_target): Don't inherit or default
111 (target_thread_name): Unconditionally delegate.
112 * target.h (struct target_ops) <to_thread_name>: Use
113 TARGET_DEFAULT_RETURN.
115 2014-02-19 Tom Tromey <tromey@redhat.com>
117 * target-delegates.c: Rebuild.
118 * target.c (update_current_target): Don't inherit or default
119 to_extra_thread_info.
120 * target.h (struct target_ops) <to_extra_thread_info>: Use
121 TARGET_DEFAULT_RETURN.
123 2014-02-19 Tom Tromey <tromey@redhat.com>
125 * target-delegates.c: Rebuild.
126 * target.c (update_current_target): Don't inherit or default
128 * target.h (struct target_ops) <to_has_exited>: Use
129 TARGET_DEFAULT_RETURN..
131 2014-02-19 Tom Tromey <tromey@redhat.com>
133 * target-delegates.c: Rebuild.
134 * target.c (update_current_target): Don't inherit or default
135 to_set_syscall_catchpoint.
136 (return_one): Remove.
137 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
138 TARGET_DEFAULT_RETURN.
140 2014-02-19 Tom Tromey <tromey@redhat.com>
142 * target-delegates.c: Rebuild.
143 * target.c (update_current_target): Don't inherit or default
144 to_insert_exec_catchpoint.
145 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
146 TARGET_DEFAULT_RETURN.
148 2014-01-08 Tom Tromey <tromey@redhat.com>
150 * target-delegates.c: Rebuild.
151 * target.c (update_current_target): Don't inherit or default
152 to_insert_exec_catchpoint.
153 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
154 TARGET_DEFAULT_RETURN.
156 2014-02-19 Tom Tromey <tromey@redhat.com>
158 * target-delegates.c: Rebuild.
159 * target.c (update_current_target): Don't inherit or default
160 to_remove_vfork_catchpoint.
161 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
162 TARGET_DEFAULT_RETURN.
164 2014-02-19 Tom Tromey <tromey@redhat.com>
166 * target-delegates.c: Rebuild.
167 * target.c (update_current_target): Don't inherit or default
168 to_insert_vfork_catchpoint.
169 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
170 TARGET_DEFAULT_RETURN.
172 2014-02-19 Tom Tromey <tromey@redhat.com>
174 * target-delegates.c: Rebuild.
175 * target.c (update_current_target): Don't inherit or default
176 to_remove_fork_catchpoint.
177 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
178 TARGET_DEFAULT_RETURN.
180 2014-02-19 Tom Tromey <tromey@redhat.com>
182 * target-delegates.c: Rebuild.
183 * target.c (update_current_target): Don't inherit or default
184 to_insert_fork_catchpoint.
185 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
186 TARGET_DEFAULT_RETURN.
188 2014-02-19 Tom Tromey <tromey@redhat.com>
190 * target-delegates.c: Rebuild.
191 * target.c (update_current_target): Don't inherit or default
192 to_post_startup_inferior.
193 * target.h (struct target_ops) <to_post_startup_inferior>: Use
194 TARGET_DEFAULT_IGNORE.
196 2014-02-19 Tom Tromey <tromey@redhat.com>
198 * target-delegates.c: Rebuild.
199 * target.c (update_current_target): Don't inherit or default
201 * target.h (struct target_ops) <to_load>: Use
202 TARGET_DEFAULT_NORETURN.
204 2014-02-19 Tom Tromey <tromey@redhat.com>
206 * target-delegates.c: Rebuild.
207 * target.c (update_current_target): Don't inherit or default
209 * target.h (struct target_ops) <to_terminal_info>: Use
212 2014-02-19 Tom Tromey <tromey@redhat.com>
214 * target-delegates.c: Rebuild.
215 * target.c (update_current_target): Don't inherit or default
216 to_terminal_save_ours.
217 * target.h (struct target_ops) <to_terminal_save_ours>: Use
218 TARGET_DEFAULT_IGNORE.
220 2014-02-19 Tom Tromey <tromey@redhat.com>
222 * target-delegates.c: Rebuild.
223 * target.c (update_current_target): Don't inherit or default
225 * target.h (struct target_ops) <to_terminal_ours>: Use
226 TARGET_DEFAULT_IGNORE.
228 2014-02-19 Tom Tromey <tromey@redhat.com>
230 * target-delegates.c: Rebuild.
231 * target.c (update_current_target): Don't inherit or default
232 to_terminal_ours_for_output.
233 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
234 TARGET_DEFAULT_IGNORE.
236 2014-02-19 Tom Tromey <tromey@redhat.com>
238 * target-delegates.c: Rebuild.
239 * target.c (update_current_target): Don't inherit or default
240 to_terminal_inferior.
241 * target.h (struct target_ops) <to_terminal_inferior>: Use
242 TARGET_DEFAULT_IGNORE.
244 2014-02-19 Tom Tromey <tromey@redhat.com>
246 * target-delegates.c: Rebuild.
247 * target.c (update_current_target): Don't inherit or default
249 * target.h (struct target_ops) <to_terminal_init>: Use
250 TARGET_DEFAULT_IGNORE.
252 2014-02-19 Tom Tromey <tromey@redhat.com>
254 * target-delegates.c: Rebuild.
255 * target.c (update_current_target): Don't inherit or default
256 to_can_accel_watchpoint_condition.
257 * target.h (struct target_ops)
258 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
260 2014-02-19 Tom Tromey <tromey@redhat.com>
262 * target-delegates.c: Rebuild.
263 * target.c (update_current_target): Don't inherit or default
264 to_region_ok_for_hw_watchpoint.
265 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
266 Use TARGET_DEFAULT_FUNC.
268 2014-02-19 Tom Tromey <tromey@redhat.com>
270 * target-delegates.c: Rebuild.
271 * target.c (update_current_target): Don't inherit or default
272 to_watchpoint_addr_within_range.
273 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
274 Use TARGET_DEFAULT_FUNC.
276 2014-02-19 Tom Tromey <tromey@redhat.com>
278 * target-delegates.c: Rebuild.
279 * target.c (update_current_target): Don't inherit or default
280 to_remove_watchpoint.
281 * target.h (struct target_ops) <to_remove_watchpoint>: Use
282 TARGET_DEFAULT_NORETURN.
284 2014-02-19 Tom Tromey <tromey@redhat.com>
286 * target-delegates.c: Rebuild.
287 * target.c (update_current_target): Don't inherit or default
288 to_insert_watchpoint.
289 * target.h (struct target_ops) <to_insert_watchpoint>: Use
290 TARGET_DEFAULT_RETURN.
292 2014-02-19 Tom Tromey <tromey@redhat.com>
294 * target-delegates.c: Rebuild.
295 * target.c (update_current_target): Don't inherit or default
296 to_remove_hw_breakpoint.
297 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
298 TARGET_DEFAULT_RETURN.
300 2014-02-19 Tom Tromey <tromey@redhat.com>
302 * target-delegates.c: Rebuild.
303 * target.c (update_current_target): Don't inherit or default
304 to_insert_hw_breakpoint.
305 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
306 TARGET_DEFAULT_RETURN.
308 2014-02-19 Tom Tromey <tromey@redhat.com>
310 * target-delegates.c: Rebuild.
311 * target.c (update_current_target): Don't inherit or default
312 to_can_use_hw_breakpoint.
313 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
314 TARGET_DEFAULT_RETURN.
316 2014-02-19 Tom Tromey <tromey@redhat.com>
318 * target-delegates.c: Rebuild.
319 * target.c (update_current_target): Don't inherit or default
321 * target.h (struct target_ops) <to_files_info>: Use
322 TARGET_DEFAULT_IGNORE.
324 2014-02-19 Tom Tromey <tromey@redhat.com>
326 * target-delegates.c: Rebuild.
327 * target.c (update_current_target): Don't inherit or default
329 * target.h (struct target_ops) <to_store>: Use
330 TARGET_DEFAULT_NORETURN.
332 2014-02-19 Tom Tromey <tromey@redhat.com>
334 * target-delegates.c: Rebuild.
335 * target.c (update_current_target): Don't inherit or default
337 * target.h (struct target_ops) <to_post_attach>: Use
338 TARGET_DEFAULT_IGNORE.
340 2014-02-19 Tom Tromey <tromey@redhat.com>
342 * target-delegates.c: Rebuild.
343 * target.c (update_current_target): Don't inherit or default
345 (default_rcmd): New function.
346 (do_monitor_command): Unconditionally delegate.
347 * target.h (struct target_ops) <to_rmcd>: Use
350 2014-02-19 Tom Tromey <tromey@redhat.com>
352 * target-delegates.c: Rebuild.
353 * target.c (init_dummy_target): Don't initialize to_attach.
354 (target_attach): Unconditionally delegate.
355 * target.h (struct target_ops) <to_attach>: Use
358 2014-02-19 Tom Tromey <tromey@redhat.com>
360 * target-delegates.c: Rebuild.
361 * target.c (target_detach): Unconditionally delegate.
362 (init_dummy_target): Don't initialize to_detach.
363 * target.h (struct target_ops) <to_detach>: Use
364 TARGET_DEFAULT_IGNORE.
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
370 (target_augmented_libraries_svr4_read): Add argument.
371 * target.c (update_current_target): Update.
372 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
375 2014-02-19 Tom Tromey <tromey@redhat.com>
377 * target.h (struct target_ops) <to_call_history_range>: Add
379 * target.c (target_call_history_range): Add argument.
380 * record-btrace.c (record_btrace_call_history_range): Add 'self'
382 (record_btrace_call_history_from): Update.
384 2014-02-19 Tom Tromey <tromey@redhat.com>
386 * target.h (struct target_ops) <to_call_history_from>: Add
388 * target.c (target_call_history_from): Add argument.
389 * record-btrace.c (record_btrace_call_history_from): Add 'self'
392 2014-02-19 Tom Tromey <tromey@redhat.com>
394 * target.h (struct target_ops) <to_call_history>: Add argument.
395 * target.c (target_call_history): Add argument.
396 * record-btrace.c (record_btrace_call_history): Add 'self'
399 2014-02-19 Tom Tromey <tromey@redhat.com>
401 * target.h (struct target_ops) <to_insn_history_range>: Add
403 * target.c (target_insn_history_range): Add argument.
404 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
406 (record_btrace_insn_history_from): Update.
408 2014-02-19 Tom Tromey <tromey@redhat.com>
410 * target.h (struct target_ops) <to_insn_history_from>: Add
412 * target.c (target_insn_history_from): Add argument.
413 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
416 2014-02-19 Tom Tromey <tromey@redhat.com>
418 * target.h (struct target_ops) <to_insn_history>: Add argument.
419 * target.c (target_insn_history): Add argument.
420 * record-btrace.c (record_btrace_insn_history): Add 'self'
423 2014-02-19 Tom Tromey <tromey@redhat.com>
425 * target.h (struct target_ops) <to_goto_record>: Add argument.
426 * target.c (target_goto_record): Add argument.
427 * record-full.c (record_full_goto): Add 'self' argument.
428 * record-btrace.c (record_btrace_goto): Add 'self' argument.
430 2014-02-19 Tom Tromey <tromey@redhat.com>
432 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
433 * target.c (target_goto_record_end): Add argument.
434 * record-full.c (record_full_goto_end): Add 'self' argument.
435 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
437 2014-02-19 Tom Tromey <tromey@redhat.com>
439 * target.h (struct target_ops) <to_goto_record_begin>: Add
441 * target.c (target_goto_record_begin): Add argument.
442 * record-full.c (record_full_goto_begin): Add 'self' argument.
443 * record-btrace.c (record_btrace_goto_begin): Add 'self'
446 2014-02-19 Tom Tromey <tromey@redhat.com>
448 * target.h (struct target_ops) <to_record_is_replaying>: Add
450 * target.c (target_record_is_replaying): Add argument.
451 * record-full.c (record_full_is_replaying): Add 'self' argument.
452 * record-btrace.c (record_btrace_is_replaying): Add 'self'
454 (record_btrace_xfer_partial, record_btrace_store_registers)
455 (record_btrace_prepare_to_store, record_btrace_resume)
456 (record_btrace_wait, record_btrace_decr_pc_after_break)
457 (record_btrace_find_new_threads, record_btrace_thread_alive):
460 2014-02-19 Tom Tromey <tromey@redhat.com>
462 * target.h (struct target_ops) <to_delete_record>: Add argument.
463 * target.c (target_delete_record): Add argument.
464 * record-full.c (record_full_delete): Add 'self' argument.
466 2014-02-19 Tom Tromey <tromey@redhat.com>
468 * target.h (struct target_ops) <to_save_record>: Add argument.
469 * target.c (target_save_record): Add argument.
470 * record-full.c (record_full_save): Add 'self' argument.
471 (record_full_save): Add 'self' argument.
473 2014-02-19 Tom Tromey <tromey@redhat.com>
475 * target.h (struct target_ops) <to_info_record>: Add argument.
476 * target.c (target_info_record): Add argument.
477 * record.c (info_record_command): Add argument.
478 * record-full.c (record_full_info): Add 'self' argument.
479 * record-btrace.c (record_btrace_info): Add 'self' argument.
481 2014-02-19 Tom Tromey <tromey@redhat.com>
483 * target.h (struct target_ops) <to_stop_recording>: Add argument.
484 * target.c (target_stop_recording): Add argument.
485 * record.c (record_stop): Add argument.
486 * record-btrace.c (record_btrace_stop_recording): Add 'self'
489 2014-02-19 Tom Tromey <tromey@redhat.com>
491 * target.h (struct target_ops) <to_read_btrace>: Add argument.
492 * target.c (struct target_ops) <to_read_btrace>: Add argument.
493 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
495 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
496 (_initialize_amd64_linux_nat): Use it.
497 * i386-linux-nat.c (i386_linux_read_btrace): New function.
498 (_initialize_i386_linux_nat): Use it.
500 2014-02-19 Tom Tromey <tromey@redhat.com>
502 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
503 * target.c (target_teardown_btrace): Add argument.
504 * remote.c (remote_teardown_btrace): Add 'self' argument.
505 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
507 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
510 2014-02-19 Tom Tromey <tromey@redhat.com>
512 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
513 * target.c (target_disable_btrace): Add argument.
514 * remote.c (remote_disable_btrace): Add 'self' argument.
515 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
517 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
520 2014-02-19 Tom Tromey <tromey@redhat.com>
522 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
523 * target.c (target_enable_btrace): Add argument.
524 * remote.c (remote_enable_btrace): Add 'self' argument.
525 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
527 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
530 2014-02-19 Tom Tromey <tromey@redhat.com>
532 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
533 (target_can_use_agent): Add argument.
534 * target.c (update_current_target): Update.
535 * remote.c (remote_can_use_agent): Add 'self' argument.
536 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
538 2014-02-19 Tom Tromey <tromey@redhat.com>
540 * target.h (struct target_ops) <to_use_agent>: Add argument.
541 (target_use_agent): Add argument.
542 * target.c (update_current_target): Update.
543 * remote.c (remote_use_agent): Add 'self' argument.
544 * inf-child.c (inf_child_use_agent): Add 'self' argument.
546 2014-02-19 Tom Tromey <tromey@redhat.com>
548 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
549 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
550 (target_traceframe_info): Add argument.
551 * target.c (update_current_target): Update.
552 * remote.c (remote_traceframe_info): Add 'self' argument.
553 * ctf.c (ctf_traceframe_info): Add 'self' argument.
555 2014-02-19 Tom Tromey <tromey@redhat.com>
557 * target.h (target_static_tracepoint_markers_by_strid): Add
559 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
561 * target.c (update_current_target): Update.
562 * remote.c (struct target_ops)
563 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
564 * linux-nat.c (struct target_ops)
565 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
567 2014-02-19 Tom Tromey <tromey@redhat.com>
569 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
571 (target_static_tracepoint_marker_at): Add argument.
572 * target.c (update_current_target): Update.
573 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
576 2014-02-19 Tom Tromey <tromey@redhat.com>
578 * target.h (struct target_ops) <to_set_permissions>: Add argument.
579 (target_set_permissions): Add argument.
580 * target.c (update_current_target): Update.
581 * remote.c (remote_set_permissions): Add 'self' argument.
582 (remote_start_remote): Update.
584 2014-02-19 Tom Tromey <tromey@redhat.com>
586 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
587 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
588 (target_get_tib_address): Add argument.
589 * target.c (update_current_target): Update.
590 * remote.c (remote_get_tib_address): Add 'self' argument.
592 2014-02-19 Tom Tromey <tromey@redhat.com>
594 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
595 (target_set_trace_notes): Add argument.
596 * target.c (update_current_target): Update.
597 * remote.c (remote_set_trace_notes): Add 'self' argument.
599 2014-02-19 Tom Tromey <tromey@redhat.com>
601 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
603 (target_set_trace_buffer_size): Add argument.
604 * target.c (update_current_target): Update.
605 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
611 (target_set_circular_trace_buffer): Add argument.
612 * target.c (update_current_target): Update.
613 * remote.c (remote_set_circular_trace_buffer): Add 'self'
616 2014-02-19 Tom Tromey <tromey@redhat.com>
618 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
620 (target_set_disconnected_tracing): Add argument.
621 * target.c (update_current_target): Update.
622 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
624 2014-02-19 Tom Tromey <tromey@redhat.com>
626 * target.h (struct target_ops)
627 <to_get_min_fast_tracepoint_insn_len>: Add argument.
628 (target_get_min_fast_tracepoint_insn_len): Add argument.
629 * target.c (update_current_target): Update.
630 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
633 2014-02-19 Tom Tromey <tromey@redhat.com>
635 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
637 (target_get_raw_trace_data): Add argument.
638 * target.c (update_current_target): Update.
639 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
641 2014-02-19 Tom Tromey <tromey@redhat.com>
643 * target.h (struct target_ops) <to_upload_trace_state_variables>:
645 (target_upload_trace_state_variables): Add argument.
646 * target.c (update_current_target): Update.
647 * remote.c (remote_upload_trace_state_variables): Add 'self'
649 (remote_start_remote): Update.
651 2014-02-19 Tom Tromey <tromey@redhat.com>
653 * target.h (struct target_ops) <to_upload_tracepoints>: Add
655 (target_upload_tracepoints): Add argument.
656 * target.c (update_current_target): Update.
657 * remote.c (remote_upload_tracepoints): Add 'self' argument.
658 (remote_start_remote): Update.
660 2014-02-19 Tom Tromey <tromey@redhat.com>
662 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
663 (target_save_trace_data): Add argument.
664 * target.c (update_current_target): Update.
665 * remote.c (remote_save_trace_data): Add 'self' argument.
667 2014-02-19 Tom Tromey <tromey@redhat.com>
669 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
671 * target.h (struct target_ops)
672 <to_get_trace_state_variable_value>: Add argument.
673 (target_get_trace_state_variable_value): Add argument.
674 * target.c (update_current_target): Update.
675 * remote.c (remote_get_trace_state_variable_value): Add 'self'
677 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
679 2014-02-19 Tom Tromey <tromey@redhat.com>
681 * tracepoint.c (tfile_trace_find): Add 'self' argument.
682 * target.h (struct target_ops) <to_trace_find>: Add argument.
683 (target_trace_find): Add argument.
684 * target.c (update_current_target): Update.
685 * remote.c (remote_trace_find): Add 'self' argument.
686 * ctf.c (ctf_trace_find): Add 'self' argument.
688 2014-02-19 Tom Tromey <tromey@redhat.com>
690 * target.h (struct target_ops) <to_trace_stop>: Add argument.
691 (target_trace_stop): Add argument.
692 * target.c (update_current_target): Update.
693 * remote.c (remote_trace_stop): Add 'self' argument.
695 2014-02-19 Tom Tromey <tromey@redhat.com>
697 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
698 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
700 (target_get_tracepoint_status): Add argument.
701 * target.c (update_current_target): Update.
702 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
704 2014-02-19 Tom Tromey <tromey@redhat.com>
706 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
707 * target.h (struct target_ops) <to_get_trace_status>: Add
709 (target_get_trace_status): Add argument.
710 * target.c (update_current_target): Update.
711 * remote.c (remote_get_trace_status): Add 'self' argument.
712 (remote_start_remote, remote_can_download_tracepoint): Update.
713 * ctf.c (ctf_get_trace_status): Add 'self' argument.
715 2014-02-19 Tom Tromey <tromey@redhat.com>
717 * target.h (struct target_ops) <to_trace_start>: Add argument.
718 (target_trace_start): Add argument.
719 * target.c (update_current_target): Update.
720 * remote.c (remote_trace_start): Add 'self' argument.
722 2014-02-19 Tom Tromey <tromey@redhat.com>
724 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
726 (target_trace_set_readonly_regions): Add argument.
727 * target.c (update_current_target): Update.
728 * remote.c (remote_trace_set_readonly_regions): Add 'self'
731 2014-02-19 Tom Tromey <tromey@redhat.com>
733 * target.h (struct target_ops) <to_disable_tracepoint>: Add
735 (target_disable_tracepoint): Add argument.
736 * target.c (update_current_target): Update.
737 * remote.c (remote_disable_tracepoint): Add 'self' argument.
739 2014-02-19 Tom Tromey <tromey@redhat.com>
741 * target.h (struct target_ops) <to_enable_tracepoint>: Add
743 (target_enable_tracepoint): Add argument.
744 * target.c (update_current_target): Update.
745 * remote.c (remote_enable_tracepoint): Add 'self' argument.
747 2014-02-19 Tom Tromey <tromey@redhat.com>
749 * target.h (struct target_ops) <to_download_trace_state_variable>:
751 (target_download_trace_state_variable): Add argument.
752 * target.c (update_current_target): Update.
753 * remote.c (remote_download_trace_state_variable): Add 'self'
756 2014-02-19 Tom Tromey <tromey@redhat.com>
758 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
760 (target_can_download_tracepoint): Add argument.
761 * target.c (update_current_target): Update.
762 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
764 2014-02-19 Tom Tromey <tromey@redhat.com>
766 * target.h (struct target_ops) <to_download_tracepoint>: Add
768 (target_download_tracepoint): Add argument.
769 * target.c (update_current_target): Update.
770 * remote.c (remote_download_tracepoint): Add 'self' argument.
772 2014-02-19 Tom Tromey <tromey@redhat.com>
774 * target.h (struct target_ops) <to_trace_init>: Add argument.
775 (target_trace_init): Add argument.
776 * target.c (update_current_target): Update.
777 * remote.c (remote_trace_init): Add 'self' argument.
779 2014-02-19 Tom Tromey <tromey@redhat.com>
781 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
782 * target.c (target_fileio_readlink): Add argument.
783 * remote.c (remote_hostio_readlink): Add 'self' argument.
784 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
786 2014-02-19 Tom Tromey <tromey@redhat.com>
788 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
789 * target.c (target_fileio_unlink): Add argument.
790 * remote.c (remote_hostio_unlink): Add 'self' argument.
791 (remote_file_delete): Update.
792 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
794 2014-02-19 Tom Tromey <tromey@redhat.com>
796 * target.h (struct target_ops) <to_fileio_close>: Add argument.
797 * target.c (target_fileio_close): Add argument.
798 * remote.c (remote_hostio_close): Add 'self' argument.
799 (remote_hostio_close_cleanup): Update.
800 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
802 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
804 2014-02-19 Tom Tromey <tromey@redhat.com>
806 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
807 * target.c (target_fileio_pread): Add argument.
808 * remote.c (remote_hostio_pread): Add 'self' argument.
809 (remote_bfd_iovec_pread, remote_file_get): Update.
810 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
812 2014-02-19 Tom Tromey <tromey@redhat.com>
814 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
815 * target.c (target_fileio_pwrite): Add argument.
816 * remote.c (remote_hostio_pwrite): Add 'self' argument.
817 (remote_file_put): Update.
818 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
820 2014-02-19 Tom Tromey <tromey@redhat.com>
822 * target.h (struct target_ops) <to_fileio_open>: Add argument.
823 * target.c (target_fileio_open): Add argument.
824 * remote.c (remote_hostio_open): Add 'self' argument.
825 (remote_bfd_iovec_open): Add 'self' argument.
826 (remote_file_put): Add 'self' argument.
827 (remote_file_get): Add 'self' argument.
828 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
830 2014-02-19 Tom Tromey <tromey@redhat.com>
832 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
834 (target_can_run_breakpoint_commands): Add argument.
835 * target.c (update_current_target): Update.
836 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
838 (remote_insert_breakpoint): Add 'self' argument.
839 (remote_insert_hw_breakpoint): Add 'self' argument.
840 (remote_can_run_breakpoint_commands): Add 'self' argument.
842 2014-02-19 Tom Tromey <tromey@redhat.com>
844 * target.h (struct target_ops)
845 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
846 (target_supports_evaluation_of_breakpoint_conditions): Add
848 * target.c (update_current_target): Update.
849 * remote.c (remote_supports_cond_breakpoints): Add 'self'
851 (remote_insert_breakpoint): Add 'self' argument.
852 (remote_insert_hw_breakpoint): Add 'self' argument.
853 (remote_supports_cond_breakpoints): Add 'self' argument.
855 2014-02-19 Tom Tromey <tromey@redhat.com>
857 * target.h (struct target_ops) <to_supports_string_tracing>: Add
859 (target_supports_string_tracing): Add argument.
860 * target.c (update_current_target): Update.
861 * remote.c (remote_supports_string_tracing): Add 'self' argument.
863 2014-02-19 Tom Tromey <tromey@redhat.com>
865 * target.h (struct target_ops)
866 <to_supports_disable_randomization>: Add argument.
867 * target.c (find_default_supports_disable_randomization): Add
869 (target_supports_disable_randomization): Add argument.
870 (find_default_supports_disable_randomization): Add 'self'
872 * remote.c (extended_remote_supports_disable_randomization): Add
874 (remote_supports_disable_randomization): Add 'self' argument.
875 (extended_remote_create_inferior): Update.
876 * linux-nat.c (linux_nat_supports_disable_randomization): Add
879 2014-02-19 Tom Tromey <tromey@redhat.com>
881 * target.h (struct target_ops)
882 <to_supports_enable_disable_tracepoint>: Add argument.
883 (target_supports_enable_disable_tracepoint): Add argument.
884 * target.c (update_current_target): Update.
885 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
888 2014-02-19 Tom Tromey <tromey@redhat.com>
890 * target.h (struct target_ops) <to_supports_multi_process>: Add
892 (target_supports_multi_process): Add argument.
893 * target.c (update_current_target): Update.
894 * remote.c (remote_supports_multi_process): Add 'self' argument.
895 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
897 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
900 2014-02-19 Tom Tromey <tromey@redhat.com>
902 * target.h (struct target_ops) <to_execution_direction>: Add
904 (target_execution_direction): Add argument.
905 * target.c (default_execution_direction): Add 'self' argument.
906 * record-full.c (record_full_execution_direction): Add 'self'
909 2014-02-19 Tom Tromey <tromey@redhat.com>
911 * target.h (struct target_ops) <to_can_execute_reverse>: Add
913 (target_can_execute_reverse): Add argument.
914 * remote.c (remote_can_execute_reverse): Add 'self' argument.
915 * record-full.c (record_full_can_execute_reverse): Add 'self'
917 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
920 2014-02-19 Tom Tromey <tromey@redhat.com>
922 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
923 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
925 (target_get_ada_task_ptid): Add argument.
926 * target.c (update_current_target): Update.
927 (default_get_ada_task_ptid): Add 'self' argument.
928 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
929 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
930 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
932 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
934 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
936 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
938 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
939 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
942 2014-02-19 Tom Tromey <tromey@redhat.com>
944 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
945 (target_goto_bookmark): Add argument.
946 * target.c (dummy_goto_bookmark): Add 'self' argument.
947 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
949 2014-02-19 Tom Tromey <tromey@redhat.com>
951 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
952 (target_get_bookmark): Add argument.
953 * target.c (dummy_get_bookmark): Add 'self' argument.
954 * record-full.c (record_full_get_bookmark): Add 'self' argument.
956 2014-02-19 Tom Tromey <tromey@redhat.com>
958 * target.h (struct target_ops) <to_make_corefile_notes>: Add
960 (target_make_corefile_notes): Add argument.
961 * target.c (dummy_make_corefile_notes): Add 'self' argument.
962 * procfs.c (procfs_make_note_section): Add 'self' argument.
963 (procfs_make_note_section): Add 'self' argument.
964 (procfs_make_note_section): Add 'self' argument.
965 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
967 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
968 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
969 * exec.c (exec_make_note_section): Add 'self' argument.
970 (exec_make_note_section): Add 'self' argument.
972 2014-02-19 Tom Tromey <tromey@redhat.com>
974 * target.h (struct target_ops) <to_find_memory_regions>: Add
976 (target_find_memory_regions): Add argument.
977 * target.c (dummy_find_memory_regions): Add 'self' argument.
978 * procfs.c (proc_find_memory_regions): Add 'self' argument.
979 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
980 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
981 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
982 * exec. (exec_do_find_memory_regions): New global.
983 (exec_set_find_memory_regions): Rewrite.
984 (exec_find_memory_regions): New function.
985 (init_exec_ops): Use exec_find_memory_regions.
987 2014-02-19 Tom Tromey <tromey@redhat.com>
989 * target.h (struct target_ops) <to_supports_non_stop>: Add
991 * target.c (find_default_supports_non_stop): Add argument.
992 (target_supports_non_stop): Add argument.
993 (find_default_supports_non_stop): Add 'self' argument.
994 * remote.c (remote_supports_non_stop): Add 'self' argument.
995 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
997 2014-02-19 Tom Tromey <tromey@redhat.com>
999 * target.h (struct target_ops) <to_log_command>: Add argument.
1000 (target_log_command): Add argument.
1001 * serial.h (serial_log_command): Add 'self' argument.
1002 * serial.c (serial_log_command): Add 'self' argument.
1004 2014-02-19 Tom Tromey <tromey@redhat.com>
1006 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
1007 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
1009 (target_pid_to_exec_file): Add argument.
1010 * target.c (debug_to_pid_to_exec_file): Add argument.
1011 (update_current_target): Update.
1012 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
1013 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
1014 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
1015 (linux_handle_extended_wait): Update.
1016 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
1017 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
1018 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
1019 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
1021 2014-02-19 Tom Tromey <tromey@redhat.com>
1023 * target.h (struct target_ops) <to_rcmd>: Add argument.
1024 (target_rcmd): Add argument.
1025 * target.c (debug_to_rcmd): Add argument.
1026 (update_current_target, do_monitor_command): Update.
1027 * remote.c (remote_rcmd): Add 'self' argument.
1028 * monitor.c (monitor_rcmd): Add 'self' argument.
1030 2014-02-19 Tom Tromey <tromey@redhat.com>
1032 * windows-nat.c (windows_stop): Add 'self' argument.
1033 * target.h (struct target_ops) <to_stop>: Add argument.
1034 * target.c (target_stop): Add argument.
1035 (debug_to_stop): Add argument.
1036 (update_current_target): Update.
1037 * remote.c (remote_stop): Add 'self' argument.
1038 * remote-sim.c (gdbsim_stop): Add 'self' argument.
1039 (gdbsim_cntrl_c): Update.
1040 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
1041 * procfs.c (procfs_stop): Add 'self' argument.
1042 * nto-procfs.c (procfs_stop): Add 'self' argument.
1043 * monitor.c (monitor_stop): Add 'self' argument.
1044 (monitor_open): Update.
1045 * linux-nat.c (linux_nat_stop): Add argument.
1046 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
1047 * gnu-nat.c (gnu_stop): Add 'self' argument.
1048 * darwin-nat.c (darwin_stop): Add 'self' argument.
1050 2014-02-19 Tom Tromey <tromey@redhat.com>
1052 * target.h (struct target_ops) <to_thread_name>: Add argument.
1053 * target.c (target_thread_name): Add argument.
1054 (update_current_target): Update.
1055 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
1057 2014-02-19 Tom Tromey <tromey@redhat.com>
1059 * target.h (struct target_ops) <to_extra_thread_info>: Add
1061 (target_extra_thread_info): Add argument.
1062 * target.c (update_current_target): Update.
1063 * remote.c (remote_threads_extra_info): Add 'self' argument.
1064 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
1066 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
1067 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
1068 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
1070 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
1072 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
1074 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
1077 2014-02-19 Tom Tromey <tromey@redhat.com>
1079 * target.h (struct target_ops) <to_program_signals>: Add argument.
1080 * target.c (target_program_signals): Add argument.
1081 * remote.c (remote_program_signals): Add 'self' argument.
1083 2014-02-19 Tom Tromey <tromey@redhat.com>
1085 * target.h (struct target_ops) <to_pass_signals>: Add argument.
1086 * target.c (target_pass_signals): Add argument.
1087 * remote.c (remote_pass_signals): Add 'self' argument.
1088 (remote_start_remote): Update.
1089 * procfs.c (procfs_pass_signals): Add 'self' argument.
1090 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
1091 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
1092 (linux_nat_create_inferior, linux_nat_attach): Update.
1094 2014-02-19 Tom Tromey <tromey@redhat.com>
1096 * windows-nat.c (windows_can_run): Add 'self' argument.
1097 * target.h (struct target_ops) <to_can_run>: Add argument.
1098 (target_can_run): Add argument.
1099 * target.c (debug_to_can_run): Add argument.
1100 (update_current_target): Update.
1101 * nto-procfs.c (procfs_can_run): Add 'self' argument.
1102 * inf-child.c (inf_child_can_run): Add 'self' argument.
1103 * go32-nat.c (go32_can_run): Add 'self' argument.
1105 2014-02-19 Tom Tromey <tromey@redhat.com>
1107 * target.h (struct target_ops) <to_has_exited>: Add argument.
1108 (target_has_exited): Add argument.
1109 * target.c (debug_to_has_exited): Add argument.
1110 (update_current_target): Update.
1112 2014-02-19 Tom Tromey <tromey@redhat.com>
1114 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
1116 (target_set_syscall_catchpoint): Add argument.
1117 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
1119 * target.c (update_current_target): Update.
1121 2014-02-19 Tom Tromey <tromey@redhat.com>
1123 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1125 (target_remove_exec_catchpoint): Add argument.
1126 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1127 (update_current_target): Update.
1128 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1131 2014-02-19 Tom Tromey <tromey@redhat.com>
1133 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1135 (target_insert_exec_catchpoint): Add argument.
1136 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1137 (update_current_target): Update.
1138 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1141 2014-02-19 Tom Tromey <tromey@redhat.com>
1143 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1145 (target_remove_vfork_catchpoint): Add argument.
1146 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1147 (update_current_target): Update.
1148 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1151 2014-02-19 Tom Tromey <tromey@redhat.com>
1153 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1155 (target_insert_vfork_catchpoint): Add argument.
1156 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1157 (update_current_target): Update.
1158 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1161 2014-02-19 Tom Tromey <tromey@redhat.com>
1163 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1165 (target_remove_fork_catchpoint): Add argument.
1166 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1167 (update_current_target): Update.
1168 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1171 2014-02-19 Tom Tromey <tromey@redhat.com>
1173 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1175 (target_insert_fork_catchpoint): Add argument.
1176 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1177 (update_current_target): Update.
1178 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1181 2014-02-19 Tom Tromey <tromey@redhat.com>
1183 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1185 (target_post_startup_inferior): Add argument.
1186 * target.c (debug_to_post_startup_inferior): Add argument.
1187 (update_current_target): Update.
1188 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1190 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1192 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1194 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1196 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1198 (super_post_startup_inferior): Likewise.
1199 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1201 (super_post_startup_inferior): Likewise.
1202 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1203 Add 'self' argument.
1204 (super_post_startup_inferior): Likewise.
1206 2014-02-19 Tom Tromey <tromey@redhat.com>
1208 * target.h (struct target_ops) <to_load>: Add argument.
1209 * target.c (target_load): Add argument.
1210 (debug_to_load): Add argument.
1211 (update_current_target): Update.
1212 * remote.c (remote_load): Add 'self' argument.
1213 * remote-sim.c (gdbsim_load): Add 'self' argument.
1214 * remote-mips.c (mips_load): Add 'self' argument.
1215 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1216 * monitor.c (monitor_load): Add 'self' argument.
1217 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1219 2014-02-19 Tom Tromey <tromey@redhat.com>
1221 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1222 (target_terminal_info): Add argument.
1223 * target.c (debug_to_terminal_info): Add argument.
1224 (default_terminal_info): Likewise.
1225 * inflow.c (child_terminal_info): Add 'self' argument.
1226 * inferior.h (child_terminal_info): Add 'self' argument.
1227 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1229 2014-02-19 Tom Tromey <tromey@redhat.com>
1231 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1233 (target_terminal_save_ours): Add argument.
1234 * target.c (debug_to_terminal_save_ours): Add argument.
1235 (update_current_target): Update.
1236 * inflow.c (terminal_save_ours): Add 'self' argument.
1237 * inferior.h (terminal_save_ours): Add 'self' argument.
1239 2014-02-19 Tom Tromey <tromey@redhat.com>
1241 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1242 (target_terminal_ours): Add argument.
1243 * target.c (debug_to_terminal_ours): Add argument.
1244 (update_current_target): Update.
1245 * remote.c (remote_terminal_ours): Add 'self' argument.
1246 (remote_close): Update.
1247 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1248 * inflow.c (terminal_ours): Add 'self' argument.
1249 * inferior.h (terminal_ours): Add 'self' argument.
1250 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1252 2014-02-19 Pedro Alves <palves@redhat.com>
1253 Tom Tromey <tromey@redhat.com>
1255 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1257 (target_terminal_ours_for_output): Add argument.
1258 * target.c (debug_to_terminal_ours_for_output): Add argument.
1259 (update_current_target): Update.
1260 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1261 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1262 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1264 2014-02-19 Tom Tromey <tromey@redhat.com>
1266 * target.h (struct target_ops) <to_terminal_inferior>: Add
1268 * target.c (target_terminal_inferior): Add argument.
1269 (update_current_target): Update.
1270 * remote.c (remote_terminal_inferior): Add 'self' argument.
1271 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1272 * inflow.c (terminal_inferior): Add 'self' argument.
1273 * inferior.h (terminal_inferior): Add 'self' argument.
1274 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1275 (go32_terminal_inferior): Add 'self' argument.
1277 2014-02-19 Tom Tromey <tromey@redhat.com>
1279 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1280 (target_terminal_init): Add argument.
1281 * target.c (debug_to_terminal_init): Add argument.
1282 (update_current_target): Update.
1283 * inflow.c (terminal_init_inferior): Add 'self' argument.
1284 * inferior.h (terminal_init_inferior): Add 'self' argument.
1285 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1286 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1288 2014-02-19 Tom Tromey <tromey@redhat.com>
1290 * target.h (struct target_ops)
1291 <to_can_accel_watchpoint_condition>: Add argument.
1292 (target_can_accel_watchpoint_condition): Add argument.
1293 * target.c (debug_to_can_accel_watchpoint_condition): Add
1295 (update_current_target): Update.
1296 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1299 2014-02-19 Tom Tromey <tromey@redhat.com>
1301 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1303 (target_region_ok_for_hw_watchpoint): Add argument.
1304 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1305 (default_region_ok_for_hw_watchpoint): Add argument.
1306 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1307 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1309 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1311 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1313 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1315 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1317 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1319 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1320 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1322 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1323 Add 'self' argument.
1325 2014-02-19 Tom Tromey <tromey@redhat.com>
1327 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1329 (target_insert_watchpoint): Add argument.
1330 * target.c (debug_to_insert_watchpoint): Add argument.
1331 (update_current_target): Update.
1332 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1333 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1334 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1335 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1336 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1337 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1339 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1340 (procfs_insert_hw_watchpoint): Add 'self' argument.
1341 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1343 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1345 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1347 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1348 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1350 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1353 2014-02-19 Tom Tromey <tromey@redhat.com>
1355 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1357 (target_remove_watchpoint): Add argument.
1358 * target.c (debug_to_remove_watchpoint): Add argument.
1359 (update_current_target): Update.
1360 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1361 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1362 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1363 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1364 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1365 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1367 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1368 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1370 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1372 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1374 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1375 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1377 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1380 2014-02-19 Tom Tromey <tromey@redhat.com>
1382 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1384 (target_remove_hw_breakpoint): Add argument.
1385 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1386 (update_current_target): Update.
1387 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1388 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1390 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1391 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1393 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1396 2014-02-19 Tom Tromey <tromey@redhat.com>
1398 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1400 (target_insert_hw_breakpoint): Add argument.
1401 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1402 (update_current_target): Update.
1403 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1404 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1406 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1407 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1408 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1410 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1413 2014-02-19 Tom Tromey <tromey@redhat.com>
1415 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1417 (target_can_use_hardware_watchpoint): Add argument.
1418 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1419 (update_current_target): Update.
1420 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1422 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1424 * remote.c (remote_check_watch_resources): Add 'self' argument.
1425 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1426 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1428 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1429 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1431 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1433 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1435 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1437 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1439 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1441 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1442 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1444 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1447 2014-02-19 Tom Tromey <tromey@redhat.com>
1449 * target.h (struct target_ops) <to_post_attach>: Add argument.
1450 (target_post_attach): Add argument.
1451 * target.c (debug_to_post_attach): Add argument.
1452 (update_current_target): Update.
1453 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1454 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1455 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1456 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1457 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1459 2014-02-19 Tom Tromey <tromey@redhat.com>
1461 * windows-nat.c (windows_close): Add 'self' argument.
1462 * tracepoint.c (tfile_close): Add 'self' argument.
1463 * target.h (struct target_ops) <to_close>: Add argument.
1464 * target.c (target_close): Add argument.
1465 (update_current_target): Update.
1466 * remote.c (remote_close): Add 'self' argument.
1467 * remote-sim.c (gdbsim_close): Add 'self' argument.
1468 * remote-mips.c (mips_close): Add 'self' argument.
1469 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1470 * record-full.c (record_full_close): Add 'self' argument.
1471 * record-btrace.c (record_btrace_close): Add 'self' argument.
1472 * monitor.h (monitor_close): Add 'self' argument.
1473 * monitor.c (monitor_close): Add 'self' argument.
1474 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1475 * linux-nat.c (linux_nat_close): Add argument.
1476 * go32-nat.c (go32_close): Add 'self' argument.
1477 * exec.c (exec_close_1): Add 'self' argument.
1478 * ctf.c (ctf_close): Add 'self' argument.
1479 * corelow.c (core_close): Add 'self' argument.
1480 (core_close_cleanup): Update.
1481 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1482 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1484 2014-02-19 Tom Tromey <tromey@redhat.com>
1486 * remote.c (remote_load): New function.
1487 (init_remote_ops): Use it.
1489 2014-02-19 Tom Tromey <tromey@redhat.com>
1491 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1493 * common/linux-btrace.h (linux_supports_btrace): Update.
1494 * remote.c (remote_supports_btrace): Add "self" argument.
1495 * target-delegates.c: Rebuild.
1496 * target.c (target_supports_btrace): Remove.
1497 * target.h (struct target_ops) <to_supports_btrace>: Add
1498 target_ops argument.
1499 (target_supports_btrace): New define.
1501 2014-02-19 Tom Tromey <tromey@redhat.com>
1503 * record-full.c (record_full_beneath_to_resume_ops)
1504 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1505 (record_full_beneath_to_wait)
1506 (record_full_beneath_to_store_registers_ops)
1507 (record_full_beneath_to_store_registers)
1508 (record_full_beneath_to_xfer_partial_ops)
1509 (record_full_beneath_to_xfer_partial)
1510 (record_full_beneath_to_insert_breakpoint_ops)
1511 (record_full_beneath_to_insert_breakpoint)
1512 (record_full_beneath_to_remove_breakpoint_ops)
1513 (record_full_beneath_to_remove_breakpoint)
1514 (record_full_beneath_to_stopped_by_watchpoint)
1515 (record_full_beneath_to_stopped_data_address)
1516 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1517 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1518 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1519 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1520 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1521 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1522 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1523 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1524 (record_full_resume, record_full_wait_1)
1525 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1526 (record_full_store_registers, record_full_xfer_partial)
1527 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1528 (record_full_async, record_full_core_xfer_partial): Use target
1530 * target-delegates.c: Rebuild.
1531 * target.c (current_xfer_partial): Remove.
1532 (update_current_target): Do not INHERIT or de_fault
1533 to_insert_breakpoint, to_remove_breakpoint,
1534 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1535 to_is_async_p, to_async. Do not set to_xfer_partial field.
1536 (default_xfer_partial): Simplify.
1537 (current_xfer_partial): Remove.
1538 (target_wait, target_resume): Simplify.
1539 (find_default_can_async_p, find_default_is_async_p): Update.
1540 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1541 to_xfer_partial, to_stopped_by_watchpoint,
1542 to_stopped_data_address.
1543 (target_store_registers): Simplify.
1544 (forward_target_remove_breakpoint)
1545 (forward_target_insert_breakpoint): Remove.
1546 (target_remove_breakpoint, target_insert_breakpoint)
1547 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1548 * target.h (struct target_ops) <to_resume, to_wait,
1549 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1550 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1551 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1553 (forward_target_remove_breakpoint)
1554 (forward_target_insert_breakpoint): Remove.
1555 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1557 (record_btrace_insert_breakpoint): Delegate directly.
1559 2014-02-19 Tom Tromey <tromey@redhat.com>
1562 * target-delegates.c: New file.
1563 * target.c: Include target-delegates.c.
1564 (init_dummy_target): Call install_dummy_methods.
1565 (complete_target_initialization): Call install_delegators.
1566 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1567 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1568 * make-target-delegates: New file.
1570 2014-02-19 Tom Tromey <tromey@redhat.com>
1572 * record.c (find_record_target): Use find_target_at.
1573 * target.c (find_target_at): New function.
1574 * target.h (find_target_at): Declare.
1576 2014-02-19 Tom Tromey <tromey@redhat.com>
1578 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1580 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1582 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1583 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1585 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1587 * linux-nat.c (save_sigtrap): Update.
1588 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1589 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1590 (linux_nat_close): Update.
1591 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1593 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1595 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1596 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1597 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1598 (tmp_to_async): Add 'ops' argument.
1599 (record_full_stopped_by_watchpoint, record_full_async)
1600 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1602 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1603 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1604 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1605 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1606 (remote_is_async_p, remote_async): Add 'ops' argument.
1607 (remote_stopped_data_address): Update.
1608 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1609 * target.c (update_current_target)
1610 (find_default_can_async_p, find_default_is_async_p): Update.
1611 (init_dummy_target): Update.
1612 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1613 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1614 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1615 (target_can_async_p, target_is_async_p, target_async)
1616 (target_stopped_by_watchpoint): Update.
1618 2014-02-19 Yao Qi <yao@codesourcery.com>
1621 * gdbarch.sh: Remove startup_gdbarch.
1622 * gdbarch.c: Regenerated.
1623 * gdbarch.h: Likewise.
1625 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1627 * rl78-tdep.c (rl78_g10_register_name): New function.
1628 (rl78_return_value): Add g10 support.
1629 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1632 2014-02-17 Doug Evans <xdje42@gmail.com>
1634 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1635 (SUBDIR_GUILE_SRCS): Ditto.
1636 (scm-gsmob.o): Ditto.
1638 2014-02-17 Yao Qi <yao@codesourcery.com>
1640 * gnu-nat.c (ILL_RPC): Declare defined function.
1642 2014-02-17 Yao Qi <yao@codesourcery.com>
1644 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1645 mach_msg_type_number_t.
1646 (gnu_write_inferior): Likewise.
1648 2014-02-17 Yao Qi <yao@codesourcery.com>
1650 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1652 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1653 (inf_validate_procs, inf_signal): Likewise.
1654 (S_exception_raise_request): Likewise.
1655 (do_mach_notify_dead_name): Likewise.
1656 (steal_exc_port): Likewise.
1657 (gnu_read_inferior): Change 'copy_count''s type to
1658 mach_msg_type_number_t.
1659 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1662 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1664 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1665 flag. Adjust all users; in particular...
1666 (gnu_wait): ..., don't decrement its value in here...
1667 (gnu_create_inferior): ..., and instead set the flag in here,
1668 around the startup_inferior call, and call that one with
1669 START_INFERIOR_TRAPS_EXPECTED.
1671 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1672 (ILL_RPC): ... new macro.
1673 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1674 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1675 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1676 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1677 functions with ILL_RPC macro.
1678 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1679 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1680 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1681 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1682 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1683 (S_proc_getlogin_reply, S_proc_getsid_reply)
1684 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1685 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1686 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1687 (S_proc_getnports_reply, S_proc_is_important_reply)
1688 (S_proc_get_code_reply): New stub functions, generated with
1691 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1692 collected the type check structures.
1694 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1696 2014-02-14 Doug Evans <dje@google.com>
1698 * target.c (target_write_partial): Fix result type.
1700 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1702 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1703 the proper offsets to access fpregset_t.
1705 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1707 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1708 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1709 * h8300-tdep.c (setmachinelist): Remove global.
1710 * hppa-tdep.c (hppa_sigtramp): Remove global.
1711 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1712 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1713 * ravenscar-thread.c (update_target_observer): Remove global.
1714 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1716 2014-02-12 Tom Tromey <tromey@redhat.com>
1718 * common/rsp-low.c: Update comments.
1719 * common/rsp-low.h: Update comments.
1721 2014-02-12 Tom Tromey <tromey@redhat.com>
1723 * common/rsp-low.c (convert_ascii_to_int): Remove.
1724 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1726 2014-02-12 Tom Tromey <tromey@redhat.com>
1728 * common/rsp-low.h (unhexify): Don't declare.
1729 * common/rsp-low.c (unhexify): Remove.
1731 2014-02-12 Tom Tromey <tromey@redhat.com>
1733 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1734 * common/rsp-low.c (convert_int_to_ascii): Remove.
1736 2014-02-12 Tom Tromey <tromey@redhat.com>
1738 * common/rsp-low.h (hexify): Don't declare.
1739 * common/rsp-low.c (hexify): Remove.
1741 2014-02-12 Tom Tromey <tromey@redhat.com>
1743 * common/rsp-low.c (hexify): Never take strlen of argument.
1745 2014-02-12 Tom Tromey <tromey@redhat.com>
1747 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1748 * remote.c (extended_remote_run, remote_rcmd)
1749 (remote_download_trace_state_variable, remote_save_trace_data)
1750 (remote_set_trace_notes): Update.
1751 * tracepoint.c (encode_source_string, tfile_write_status)
1752 (tfile_write_uploaded_tsv): Update.
1754 2014-02-12 Tom Tromey <tromey@redhat.com>
1756 * tracepoint.c: Include rsp-low.h.
1757 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1758 * remote.c: Include rsp-low.h.
1759 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1760 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1761 (remote_unescape_input): Move to common/rsp-low.c.
1762 * common/rsp-low.h: New file.
1763 * common/rsp-low.c: New file.
1764 * Makefile.in (SFILES): Add common/rsp-low.c.
1765 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1766 (COMMON_OBS): Add rsp-low.o.
1767 (rsp-low.o): New target.
1769 2014-02-12 Tom Tromey <tromey@redhat.com>
1771 * utils.h: Include print-utils.h.
1772 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1773 (int_string, core_addr_to_string, core_addr_to_string_nz)
1774 (hex_string, hex_string_custom): Don't declare.
1775 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1776 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1777 (hex_string_custom, int_string, core_addr_to_string)
1778 (core_addr_to_string_nz, host_address_to_string): Move to
1779 common/print-utils.c.
1780 * common/print-utils.h: New file.
1781 * common/print-utils.c: New file
1782 * Makefile.in (SFILES): Add common/print-utils.c.
1783 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1784 (COMMON_OBS): Add print-utils.o.
1785 (print-utils.o): New target.
1787 2014-02-12 Tom Tromey <tromey@redhat.com>
1789 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1791 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1793 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1795 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1797 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1798 if a PT_IO ptrace request returns sucessfully but indicates that 0
1799 bytes were transferred.
1801 2014-02-12 Pedro Alves <palves@redhat.com>
1802 Kevin Buettner <kevinb@redhat.com>
1804 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1805 TYPE_INSTANCE_FLAG_CODE_SPACE.
1807 2014-02-12 Pedro Alves <palves@redhat.com>
1809 * h8300-tdep.c (pseudo_from_raw_register)
1810 (raw_from_pseudo_register): New functions.
1811 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1814 2014-02-12 Pedro Alves <palves@redhat.com>
1816 * h8300-tdep.c (h8300_register_sim_regno): New function.
1817 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1818 gdbarch_register_sim_regno hook.
1820 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1822 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1824 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1826 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1828 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1830 * obsd-tdep.h (obsd_init_abi): New prototype.
1831 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1832 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1833 (obsd_init_abi): New functions.
1834 * i386obsd-tdep.c: Include "obsd-tdep.h".
1835 (i386obsd_init_abi): Call obsd_init_abi.
1836 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1837 (amd64obsd_init_abi): Call obsd_init_abi.
1838 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1839 obsd-tdep.c to gdb_target_obs.
1841 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1843 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1844 double float arguments to 16-byte in the argument slots.
1846 2014-02-11 Doug Evans <xdje42@gmail.com>
1848 * configure.ac: Don't crash if pkg-config is not found and guile
1849 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1851 * configure: Regenerate.
1853 2014-02-11 Yao Qi <yao@codesourcery.com>
1855 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1856 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1857 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1858 * gnu-nat.c (gnu_xfer_memory): Likewise.
1859 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1860 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1861 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1864 2014-02-11 Yao Qi <yao@codesourcery.com>
1866 * target.h (enum target_xfer_error): Rename to ...
1867 (enum target_xfer_status): ... it. New. All users updated.
1868 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1870 (TARGET_XFER_STATUS_ERROR_P): New macro.
1871 (target_xfer_error_to_string): Remove declaration.
1872 (target_xfer_status_to_string): Declare.
1873 (target_xfer_partial_ftype): Adjust it.
1874 (struct target_ops) <to_xfer_partial>: Return
1875 target_xfer_status. Add argument xfered_len. Update
1877 * target.c (target_xfer_error_to_string): Rename to ...
1878 (target_xfer_status_to_string): ... it. New. All callers
1880 (target_read_live_memory): Likewise. Call target_xfer_partial
1881 instead of target_read.
1882 (memory_xfer_live_readonly_partial): Return
1883 target_xfer_status. Add argument xfered_len.
1884 (raw_memory_xfer_partial): Likewise.
1885 (memory_xfer_partial_1): Likewise.
1886 (memory_xfer_partial): Likewise.
1887 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1888 properly. Update debug message.
1889 (default_xfer_partial, current_xfer_partial): Likewise.
1890 (target_write_partial): Likewise.
1891 (target_read_partial): Likewise. All callers updated.
1892 (read_whatever_is_readable): Likewise.
1893 (target_write_with_progress): Likewise.
1894 (target_read_alloc_1): Likewise.
1896 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1897 * auxv.c (procfs_xfer_auxv): Likewise.
1898 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1899 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1900 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1901 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1902 * corefile.c (read_memory): Adjust.
1903 * corelow.c (core_xfer_partial): Likewise.
1904 * ctf.c (ctf_xfer_partial): Likewise.
1905 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1907 (darwin_xfer_partial): Likewise.
1908 * exec.c (section_table_xfer_memory_partial): Likewise. All
1910 (exec_xfer_partial): Likewise.
1911 * exec.h (section_table_xfer_memory_partial): Update
1913 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1915 (gnu_xfer_partial): Likewise.
1916 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1917 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1918 (ia64_hpux_xfer_solib_got): Likewise.
1919 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1920 type of 'partial_len' to ULONGEST.
1921 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1922 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1923 (linux_nat_xfer_partial): Likewise.
1924 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1925 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1926 * monitor.c (monitor_xfer_memory): Likewise.
1927 (monitor_xfer_partial): Likewise.
1928 * procfs.c (procfs_xfer_partial): Likewise.
1929 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1930 * record-full.c (record_full_xfer_partial): Likewise.
1931 (record_full_core_xfer_partial): Likewise.
1932 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1933 (gdbsim_xfer_partial): Likewise.
1934 * remote.c (remote_write_bytes_aux): Likewise. All callers
1936 (remote_write_bytes, remote_read_bytes): Likewise. All
1938 (remote_flash_erase): Likewise. All callers updated.
1939 (remote_write_qxfer): Likewise. All callers updated.
1940 (remote_read_qxfer): Likewise. All callers updated.
1941 (remote_xfer_partial): Likewise.
1942 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1943 (rs6000_xfer_shared_libraries): Likewise.
1944 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1945 (sol_thread_xfer_partial): Likewise.
1946 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1947 (sparc_xfer_partial): Likewise.
1948 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1950 (spu_xfer_partial): Likewise.
1951 * spu-multiarch.c (spu_xfer_partial): Likewise.
1952 * tracepoint.c (tfile_xfer_partial): Likewise.
1953 * windows-nat.c (windows_xfer_memory): Likewise.
1954 (windows_xfer_shared_libraries): Likewise.
1955 (windows_xfer_partial): Likewise.
1956 * valprint.c: Replace 'target_xfer_error' with
1957 'target_xfer_status' in comments.
1959 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1961 Checked in by Joel Brobecker <brobecker@adacore.com>.
1962 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1964 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1966 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1967 function parameters.
1969 2014-02-10 Will Newton <will.newton@linaro.org>
1971 * elfread.c (elf_rel_plt_read): Look for a .got section if
1972 looking up .got.plt fails.
1973 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1974 on address passed to elf_gnu_ifunc_record_cache.
1975 (elf_gnu_ifunc_resolve_addr): Likewise.
1976 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1978 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1980 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1981 (X_RETTURN): New macro.
1982 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1984 * sparc64-tdep.c (sparc64_init_abi): Hook
1985 sparc_in_function_epilogue_p.
1987 2014-02-10 Gary Benson <gbenson@redhat.com>
1989 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1990 Rename name_matcher to symbol_matcher.
1992 2014-02-10 Gary Benson <gbenson@redhat.com>
1994 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1995 Use expand_symtabs_file_matcher_ftype and
1996 expand_symtabs_symbol_matcher_ftype.
1998 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2000 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
2001 (struct ada_symbol_cache): New.
2002 (ada_free_symbol_cache): Forward declare.
2003 (struct ada_pspace_data): New.
2004 (ada_pspace_data_handle): New static global.
2005 (get_ada_pspace_data, ada_pspace_data_cleanup)
2006 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
2007 (cache_space, cache): Delete, now folded inside struct
2009 (ada_get_symbol_cache): New function.
2010 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
2012 (_initialize_ada_language): Remove initialization of cache_space.
2013 Move call to observer_attach_inferior_exit up, grouping it
2014 with the other observer registrations inside this function.
2015 Rename command to be more general. Add call to
2016 register_program_space_data_with_cleanup.
2018 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2020 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
2021 ada_new_objfile_observer.
2022 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
2023 (_initialize_tasks): Update uses of ada_new_objfile_observer
2024 and ada_tasks_normal_stop_observer.
2026 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2028 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
2029 returned by the 'Length attribute to integer.
2031 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2033 * ada-lang.c (_initialize_ada_language): Initialize
2034 cache_space obstack.
2036 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2038 * ada-lang.c (HASH_SIZE): New macro.
2039 (struct cache_entry): New type.
2040 (cache_space, cache): New static globals.
2041 (ada_clear_symbol_cache, find_entry): New functions.
2042 (lookup_cached_symbol, cache_symbol): Implement.
2043 (ada_new_objfile_observer, ada_free_objfile_observer): New.
2044 (_initialize_ada_language): Attach ada_new_objfile_observer
2045 and ada_free_objfile_observer.
2047 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2049 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
2050 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
2051 struct block * parameter.
2052 (ada_lookup_symbol_list_worker): Constify local variable "block".
2053 Remove cast which is no longer necessary.
2055 2014-02-10 Doug Evans <xdje42@gmail.com>
2057 Add Guile as an extension language.
2058 * NEWS: Mention Guile scripting.
2059 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
2060 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
2061 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
2062 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
2063 (CLIBS): Add GUILE_LIBS.
2064 (install-guile): New rule.
2065 (guile.o): New rule.
2066 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
2067 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
2068 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
2069 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
2070 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
2071 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
2072 (scm-type.o, scm-utils.o, scm-value.o): New rules.
2073 * configure.ac: New option --with-guile.
2074 * configure: Regenerate.
2075 * config.in: Regenerate.
2076 * auto-load.c: Remove #include "python/python.h". Add #include
2077 "gdb/section-scripts.h".
2078 (source_section_scripts): Handle Guile scripts.
2079 (_initialize_auto_load): Add name of Guile objfile script to
2080 scripts-directory help text.
2081 * breakpoint.c (condition_command): Tweak comment to include Scheme.
2082 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
2083 (struct breakpoint): New member scm_bp_object.
2084 * defs.h (enum command_control_type): New value guile_control.
2085 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
2087 (show_user): Update comment.
2088 (_initialize_cli_cmds): Update help text for "show user". Update help
2089 text for max-user-call-depth.
2090 * cli/cli-script.c: Remove #include "python/python.h". Add #include
2092 (multi_line_command_p): Add guile_control.
2093 (print_command_lines): Handle guile_control.
2094 (execute_control_command, recurse_read_control_structure): Ditto.
2095 (process_next_line): Recognize "guile" commands.
2096 * disasm.c (gdb_disassemble_info): Make non-static.
2097 * disasm.h: #include "dis-asm.h".
2098 (struct gdbarch): Add forward decl.
2099 (gdb_disassemble_info): Declare.
2100 * extension.c: #include "guile/guile.h".
2101 (extension_languages): Add guile.
2102 (get_ext_lang_defn): Handle EXT_LANG_GDB.
2103 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
2104 * gdbtypes.c (get_unsigned_type_max): New function.
2105 (get_signed_type_minmax): New function.
2106 * gdbtypes.h (get_unsigned_type_max): Declare.
2107 (get_signed_type_minmax): Declare.
2108 * guile/README: New file.
2109 * guile/guile-internal.h: New file.
2110 * guile/guile.c: New file.
2111 * guile/guile.h: New file.
2112 * guile/scm-arch.c: New file.
2113 * guile/scm-auto-load.c: New file.
2114 * guile/scm-block.c: New file.
2115 * guile/scm-breakpoint.c: New file.
2116 * guile/scm-disasm.c: New file.
2117 * guile/scm-exception.c: New file.
2118 * guile/scm-frame.c: New file.
2119 * guile/scm-gsmob.c: New file.
2120 * guile/scm-iterator.c: New file.
2121 * guile/scm-lazy-string.c: New file.
2122 * guile/scm-math.c: New file.
2123 * guile/scm-objfile.c: New file.
2124 * guile/scm-ports.c: New file.
2125 * guile/scm-pretty-print.c: New file.
2126 * guile/scm-safe-call.c: New file.
2127 * guile/scm-string.c: New file.
2128 * guile/scm-symbol.c: New file.
2129 * guile/scm-symtab.c: New file.
2130 * guile/scm-type.c: New file.
2131 * guile/scm-utils.c: New file.
2132 * guile/scm-value.c: New file.
2133 * guile/lib/gdb.scm: New file.
2134 * guile/lib/gdb/boot.scm: New file.
2135 * guile/lib/gdb/experimental.scm: New file.
2136 * guile/lib/gdb/init.scm: New file.
2137 * guile/lib/gdb/iterator.scm: New file.
2138 * guile/lib/gdb/printing.scm: New file.
2139 * guile/lib/gdb/types.scm: New file.
2140 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2141 (VPATH): Add $(GUILE_SRCDIR).
2142 (GUILE_DIR): New variable.
2143 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2144 (all): Add stamp-guile dependency.
2145 (stamp-guile): New rule.
2146 (clean-guile, install-guile, uninstall-guile): New rules.
2147 (install-only): Add install-guile dependency.
2148 (uninstall): Add uninstall-guile dependency.
2149 (clean): Add clean-guile dependency.
2151 2014-02-09 Doug Evans <xdje42@gmail.com>
2153 Revert this patch (which I approved, mea culpa).
2155 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2157 * Makefile.in (all-lib): Remove.
2158 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2160 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 Fix Python stack corruption.
2163 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2166 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2168 * Makefile.in (all-lib): Remove.
2169 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2171 2014-02-07 Doug Evans <dje@google.com>
2173 * extension-priv.h (extension_language_script_ops): Add comment.
2174 (extension_language_ops): Add comment.
2175 (active_ext_lang_state): Fix typo in comment.
2177 2014-02-07 Pedro Alves <palves@redhat.com>
2179 * infrun.c (handle_signal_stop) <signal arrives while stepping
2180 over a breakpoint>: Switch back to the stepping thread.
2182 2014-02-07 Yao Qi <yao@codesourcery.com>
2184 * target.c (target_xfer_partial): Return zero if LEN is zero.
2186 2014-02-07 Yao Qi <yao@codesourcery.com>
2188 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2189 (ld_so_xfer_auxv): Likewise.
2190 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2191 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2192 * corelow.c (core_xfer_partial): Likewise.
2193 * ctf.c (ctf_xfer_partial): Likewise.
2194 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2195 (darwin_xfer_partial): Likewise.
2196 * exec.c (exec_xfer_partial): Likewise.
2197 * gnu-nat.c (gnu_xfer_partial): Likewise.
2198 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2199 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2200 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2201 * linux-nat.c (linux_xfer_siginfo): Likewise.
2202 (linux_proc_xfer_spu): Likewise.
2203 * procfs.c (procfs_xfer_partial): Likewise.
2204 * record-full.c (record_full_xfer_partial): Likewise.
2205 (record_full_core_xfer_partial): Likewise.
2206 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2207 * remote.c (remote_write_qxfer): Likewise.
2208 (remote_write_qxfer, remote_read_qxfer): Likewise.
2209 (remote_xfer_partial): Likewise.
2210 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2211 (rs6000_xfer_shared_libraries): Likewise.
2212 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2213 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2214 (spu_xfer_partial): Likewise.
2215 * target.c (memory_xfer_partial_1): Likewise.
2216 * tracepoint.c (tfile_xfer_partial): Likewise.
2217 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2218 (windows_xfer_partial): Likewise.
2220 2014-02-07 Yao Qi <yao@codesourcery.com>
2222 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2224 (core_xfer_shared_libraries_aix): Likewise.
2225 * gdbarch.c, gdbarch.h: Regenerated.
2226 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2227 ULONGEST. Change 'len_avail' type to ULONGEST.
2228 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2229 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2231 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2233 2014-02-07 Yao Qi <yao@codesourcery.com>
2235 * corefile.c (memory_error): Get 'exception' from ERR and pass
2236 'exception' to throw_error.
2238 2014-02-06 Doug Evans <xdje42@gmail.com>
2240 * configure.ac (libpython checking): Remove all but python.o from
2241 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2242 * configure: Regenerate.
2244 * Makefile.in (SFILES): Add extension.c.
2245 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2246 (COMMON_OBS): Add extension.o.
2247 * extension.h: New file.
2248 * extension-priv.h: New file.
2249 * extension.c: New file.
2251 * python/python-internal.h: #include "extension.h".
2252 (gdbpy_auto_load_enabled): Declare.
2253 (gdbpy_apply_val_pretty_printer): Declare.
2254 (gdbpy_apply_frame_filter): Declare.
2255 (gdbpy_preserve_values): Declare.
2256 (gdbpy_breakpoint_cond_says_stop): Declare.
2257 (gdbpy_breakpoint_has_cond): Declare.
2258 (void source_python_script_for_objfile): Delete.
2259 * python/python.c: #include "extension-priv.h".
2260 Delete inclusion of "observer.h".
2261 (extension_language_python): Moved here and renamed from
2262 script_language_python in py-auto-load.c.
2263 Redefined to be of type extension_language_defn.
2264 (python_extension_script_ops): New global.
2265 (python_extension_ops): New global.
2266 (struct python_env): New member previous_active.
2267 (restore_python_env): Call restore_active_ext_lang.
2268 (ensure_python_env): Call set_active_ext_lang.
2269 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2271 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2273 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2275 (gdbpy_eval_from_control_command): Renamed from
2276 eval_python_from_control_command, made static. New arg extlang.
2277 (gdbpy_source_script) Renamed from source_python_script, made static.
2279 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2280 result to int. New arg extlang.
2281 (gdbpy_source_objfile_script): Renamed from
2282 source_python_script_for_objfile, made static. New arg extlang.
2283 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2284 static. New args extlang, extlang_printers. Change result type to
2286 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2287 static. New arg extlang. Rename arg printers to extlang_printers
2288 and change type to ext_lang_type_printers *.
2289 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2290 static. Replace argument arg with extlang, extlang_printers.
2291 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2292 (!HAVE_PYTHON, source_python_script): Delete.
2293 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2294 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2295 (!HAVE_PYTHON, start_type_printers): Delete.
2296 (!HAVE_PYTHON, apply_type_printers): Delete.
2297 (!HAVE_PYTHON, free_type_printers): Delete.
2298 (_initialize_python): Delete call to observer_attach_before_prompt.
2299 (finalize_python): Set/restore active extension language.
2300 (gdbpy_finish_initialization) Renamed from
2301 finish_python_initialization, made static. New arg extlang.
2302 (gdbpy_initialized): New function.
2303 * python/python.h: #include "extension.h". Delete #include
2304 "value.h", "mi/mi-cmds.h".
2305 (extension_language_python): Declare.
2306 (GDBPY_AUTO_FILE_NAME): Delete.
2307 (enum py_bt_status): Moved to extension.h and renamed to
2309 (enum frame_filter_flags): Moved to extension.h.
2310 (enum py_frame_args): Moved to extension.h and renamed to
2311 ext_lang_frame_args.
2312 (finish_python_initialization): Delete.
2313 (eval_python_from_control_command): Delete.
2314 (source_python_script): Delete.
2315 (apply_val_pretty_printer): Delete.
2316 (apply_frame_filter): Delete.
2317 (preserve_python_values): Delete.
2318 (gdbpy_script_language_defn): Delete.
2319 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2320 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2322 * auto-load.c: #include "extension.h".
2323 (GDB_AUTO_FILE_NAME): Delete.
2324 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2325 (script_language_gdb): Delete, moved to extension.c and renamed to
2326 extension_language_gdb.
2327 (source_gdb_script_for_objfile): Delete.
2328 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2329 (loaded_script): Change type of language member to
2330 struct extension_language_defn *.
2331 (init_loaded_scripts_info): Initialize
2332 unsupported_script_warning_printed.
2333 (maybe_add_script): Make static. Change type of language arg to
2334 struct extension_language_defn *.
2335 (clear_section_scripts): Reset unsupported_script_warning_printed.
2336 (auto_load_objfile_script_1): Rewrite to use extension language API.
2337 (auto_load_objfile_script): Make public. Remove support-compiled-in
2338 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2339 (source_section_scripts): Rewrite to use extension language API.
2340 (load_auto_scripts_for_objfile): Rewrite to use
2341 auto_load_scripts_for_objfile.
2342 (collect_matching_scripts_data): Change type of language member to
2343 struct extension_language_defn *.
2344 (auto_load_info_scripts): Change type of language arg to
2345 struct extension_language_defn *.
2346 (unsupported_script_warning_print): New function.
2347 (script_not_found_warning_print): Make static.
2348 (_initialize_auto_load): Rewrite construction of scripts-directory
2350 * auto-load.h (struct objfile): Add forward decl.
2351 (struct script_language): Delete.
2352 (struct auto_load_pspace_info): Add forward decl.
2353 (struct extension_language_defn): Add forward decl.
2354 (maybe_add_script): Delete.
2355 (auto_load_objfile_script): Declare.
2356 (script_not_found_warning_print): Delete.
2357 (auto_load_info_scripts): Update prototype.
2358 (auto_load_gdb_scripts_enabled): Declare.
2359 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2360 auto_load_python_scripts_enabled and made public.
2361 (script_language_python): Delete, moved to python.c.
2362 (gdbpy_script_language_defn): Delete.
2363 (info_auto_load_python_scripts): Update to use
2364 extension_language_python.
2366 * breakpoint.c (condition_command): Replace call to
2367 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2368 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2369 with call to breakpoint_ext_lang_cond_says_stop.
2370 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2371 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2372 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2373 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2375 (local_setattro): Print name of extension language with existing
2378 * valprint.c (val_print, value_print): Update to call
2379 apply_ext_lang_val_pretty_printer.
2380 * cp-valprint.c (cp_print_value): Update call to
2381 apply_ext_lang_val_pretty_printer.
2382 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2383 (gdbpy_apply_val_pretty_printer): Renamed from
2384 apply_val_pretty_printer. New arg extlang.
2385 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2387 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2388 extension language API.
2389 * cli/cli-script.c (execute_control_command): Update to call
2390 eval_ext_lang_from_control_command.
2392 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2393 enum ext_lang_bt_status values. Update call to
2394 apply_ext_lang_frame_filter.
2395 (mi_cmd_stack_list_locals): Ditto.
2396 (mi_cmd_stack_list_args): Ditto.
2397 (mi_cmd_stack_list_variables): Ditto.
2398 * mi/mi-main.c: Delete #include "python/python-internal.h".
2399 Add #include "extension.h".
2400 (mi_cmd_list_features): Replace reference to python internal variable
2401 gdb_python_initialized with call to ext_lang_initialized_p.
2403 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2404 Update to use enum ext_lang_frame_args. Update to call
2405 apply_ext_lang_frame_filter.
2406 * python/py-framefilter.c (extract_sym): Update to use enum
2408 (extract_value, py_print_type, py_print_value): Ditto.
2409 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2410 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2411 (py_print_frame): Ditto.
2412 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2413 New arg extlang. Update to use enum ext_lang_bt_status.
2415 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2416 finish_python_initialization. Replace with call to
2417 finish_ext_lang_initialization.
2419 * typeprint.c (do_free_global_table): Update to call
2420 free_ext_lang_type_printers.
2421 (create_global_typedef_table): Update to call
2422 start_ext_lang_type_printers.
2423 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2424 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2425 (type_print_options): Change type of global_printers from "void *"
2426 to "struct ext_lang_type_printers *".
2428 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2429 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2430 (gdbpy_preserve_values): Renamed from preserve_python_values.
2432 (!HAVE_PYTHON, preserve_python_values): Delete.
2434 * utils.c (quit_flag): Delete, moved to extension.c.
2435 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2438 * eval.c: Delete #include "python/python.h".
2439 * main.c: Delete #include "python/python.h".
2441 * defs.h: Update comment.
2443 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2447 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2449 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2452 2014-02-05 Yao Qi <yao@codesourcery.com>
2454 * remote.c (remote_pass_signals): Remove local 'buf' and use
2456 (remote_program_signals): Likewise.
2458 2014-02-05 Yao Qi <yao@codesourcery.com>
2460 * ctf.c: Include "inferior.h" and "gdbthread.h".
2461 (CTF_PID): A new macro.
2462 (ctf_open): Call inferior_appeared and add_thread_silent.
2463 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2464 (ctf_thread_alive): New function.
2465 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2467 2014-02-05 Yao Qi <yao@codesourcery.com>
2471 2013-05-24 Yao Qi <yao@codesourcery.com>
2473 * tracepoint.c (TFILE_PID): Remove.
2474 (tfile_open): Don't add thread and inferior.
2475 (tfile_close): Don't set 'inferior_ptid'. Don't call
2476 exit_inferior_silent.
2477 (tfile_thread_alive): Remove.
2478 (init_tfile_ops): Don't set field 'to_thread_alive' of
2481 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2483 * remote.c (remote_start_remote): Call remote_check_symbols even
2484 if only symbol-file (not file) has been given.
2486 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2488 * gdbarch.sh (skip_entrypoint): New callback.
2489 * gdbarch.c, gdbarch.h: Regenerate.
2490 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2491 * infrun.c (fill_in_stop_func): Likewise.
2492 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2493 (ppc_elfv2_elf_make_msymbol_special): New function.
2494 (ppc_elfv2_skip_entrypoint): Likewise.
2495 (ppc_linux_init_abi): Install them for ELFv2.
2497 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2499 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2500 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2501 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2502 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2503 structures returned in GPRs.
2505 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2507 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2508 offset to the stack parameter list for the ELFv2 ABI.
2510 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2512 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2513 set_gdbarch_convert_from_func_ptr_addr and
2514 set_gdbarch_elf_make_msymbol_special for ELFv1.
2515 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2516 function descriptors on ELFv1.
2517 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2518 set up r12 at function entry.
2520 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2522 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2523 (struct gdbarch_tdep): New member elf_abi.
2525 * rs6000-tdep.c: Include "elf/ppc64.h".
2526 (rs6000_gdbarch_init): Detect ELF ABI version.
2528 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2530 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2531 within a register pair holding a DFP 128-bit value on little-endian.
2532 (ppc64_sysv_abi_return_value_base): Likewise.
2533 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2534 (dfp_pseudo_register_write): Likewise.
2536 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2538 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2539 offset on little-endian when passing _Decimal32.
2540 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2542 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2544 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2545 of the overlapped FP register within the VSX register on little-
2547 (efpr_pseudo_register_write): Likewise.
2549 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2551 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2552 offset on little-endian when passing small structures.
2554 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2556 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2557 (struct ppc64_sysv_argpos): New data structure.
2558 (ppc64_sysv_abi_push_float): Remove.
2559 (ppc64_sysv_abi_push_val): New function.
2560 (ppc64_sysv_abi_push_integer): Likewise.
2561 (ppc64_sysv_abi_push_freg): Likewise.
2562 (ppc64_sysv_abi_push_vreg): Likewise.
2563 (ppc64_sysv_abi_push_param): Likewise.
2564 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2565 (ppc64_sysv_abi_return_value_base): New function.
2566 (ppc64_sysv_abi_return_value): Refactor to use it.
2568 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2570 * NEWS: Document new target powerpc64le-*-linux*.
2572 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2574 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2575 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2577 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2578 register set used in ELF core dumps. Add floating-point register set.
2580 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2582 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2583 dwarf2_to_gdb[] table using symbolic constants. Adjust
2584 penultimate entry from number representing the PC register
2585 to symbolic constant representing the MDR register. Add
2586 constant for the PC register to the end of the table.
2588 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2590 * bsd-kvm.c: Include <sys/param.h>
2592 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2594 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2596 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2598 * ada-lang.h (clear_ada_sym_cache): Delete.
2600 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2602 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2604 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2606 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2607 the sigreturn register save area only if the syscall is
2610 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2612 * valops.c (value_slice): Minor reformatting.
2614 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2616 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2618 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2620 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2622 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2623 (ada_ignore_descriptive_types_p): New static global.
2624 (find_parallel_type_by_descriptive_type): Return immediately
2625 if ada_ignore_descriptive_types_p is set.
2626 (_initialize_ada_language): Register new commands "maintenance
2627 set ada", "maintenance show ada", "maintenance set ada
2628 ignore-descriptive-types" and "maintenance show ada
2629 ignore-descriptive-types".
2630 * NEWS: Add entry for new "maint ada set/show
2631 ignore-descriptive-types" commands.
2633 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2635 * record-btrace.c (record_btrace_close): Call btrace_teardown
2638 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2640 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2643 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2645 * ada-typeprint (type_is_full_subrange_of_target_type):
2647 (print_range): Add parameter bounds_prefered_p. If not set,
2648 try printing range types using the name of their base type.
2649 (print_range_type): Add parameter bounds_prefered_p.
2650 Use it in call to print_range.
2651 (print_array_type, ada_print_type): Update calls to print_range
2652 and print_range_type.
2654 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2656 * ada-typeprint.c (print_array_type, print_choices, print_range)
2657 (print_range_bound, print_dynamic_range_bound, print_range_type):
2660 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2662 * ada-typeprint.c (print_range): Add missing empty line
2663 after local declaration.
2665 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2667 * ada-valprint.c (print_optional_low_bound): Get index_type's
2668 target type for as long as it is a TYPE_CODE_RANGE.
2670 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2672 * procfs.c (procfs_make_note_section): Remove assertion and
2675 2014-01-24 Yao Qi <yao@codesourcery.com>
2677 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2678 * corelow.c (get_core_siginfo): Likewise.
2680 2014-01-24 Yao Qi <yao@codesourcery.com>
2682 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2683 ULONGEST. Don't check 'len' is negative.
2684 (remote_write_bytes): Change type of 'len' to ULONGEST.
2686 2014-01-23 Tom Tromey <tromey@redhat.com>
2689 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2690 Handle exception from frame.block.
2691 (FrameVars.fetch_frame_locals): Likewise.
2693 2014-01-23 Tom Tromey <tromey@redhat.com>
2696 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2697 on a NULL pointer. Move "goto error" to correct place.
2699 2014-01-23 Tom Tromey <tromey@redhat.com>
2702 * python/py-framefilter.c (apply_frame_filter): Call
2703 ensure_python_env after computing gdbarch.
2705 2014-01-23 Yao Qi <yao@codesourcery.com>
2707 * target.c (raw_memory_xfer_partial): Change argument type
2708 from void * to gdb_byte *.
2709 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2711 2014-01-22 Doug Evans <dje@google.com>
2713 New gdbserver option --debug-format=timestamp.
2716 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2718 * syscalls/s390x-linux.xml: New file.
2719 * syscalls/s390-linux.xml: New file.
2720 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2721 (XML_SYSCALL_FILENAME_S390X): Likewise.
2722 (op_svc): New enum value for SVC opcode.
2723 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2724 (s390_linux_get_syscall_number): New function.
2725 (s390_gdbarch_init): Register '*get_syscall_number' and the
2726 syscall xml file name.
2727 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2728 "s390-linux.xml" and "s390x-linux.xml".
2729 * NEWS: Announce new feature.
2731 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2733 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2735 2014-01-22 Pedro Alves <palves@redhat.com>
2737 * xtensa-config.c: Include defs.h.
2739 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2741 * common/common-utils.h: Add "ARI:" comment beside __func__
2744 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2746 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2747 documentation a bit.
2749 2014-01-21 Roland McGrath <mcgrathr@google.com>
2751 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2752 * configure: Regenerate.
2753 * aclocal.m4: Regenerate.
2754 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2755 New substituted variables.
2756 (install-strip): New target.
2757 (INSTALL_SCRIPT): New substituted variable.
2758 (FLAGS_TO_PASS): Add it.
2759 (install-only): Use $(INSTALL_SCRIPT) rather than
2760 $(INSTALL_PROGRAM) for gcore.
2762 2014-01-20 Tom Tromey <tromey@redhat.com>
2764 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2767 2014-01-20 Tom Tromey <tromey@redhat.com>
2769 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2770 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2771 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2772 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2773 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2774 (struct cmd_list_element) <flags>: Remove.
2775 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2776 doc_allocated>: New fields.
2777 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2779 * maint.c (maintenance_do_deprecate): Update.
2780 * top.c (execute_command): Update.
2782 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2784 * xtensa-linux-nat.c: Include asm/ptrace.h.
2786 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2788 * Makefile.in (SFILES): Add d-support.c.
2789 (COMMON_OBS): Add d-support.o.
2790 * d-lang.h (d_parse_symbol): Add comment, now defined in
2792 * d-lang.c (parse_call_convention)
2793 (parse_attributes, parse_function_types)
2794 (parse_function_args, parse_type, parse_identifier)
2795 (call_convention_p, d_parse_symbol): Move functions to ...
2796 * d-support.c: ... New file.
2798 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2800 * d-lang.h (d_parse_symbol): Add declaration.
2801 * d-lang.c (extract_identifiers)
2802 (extract_type_info): Remove functions.
2803 (parse_call_convention, parse_attributes)
2804 (parse_function_types, parse_function_args)
2805 (parse_type, parse_identifier, call_convention_p)
2806 (d_parse_symbol): New functions.
2807 (d_demangle): Use d_parse_symbol to demangle D symbols.
2809 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2811 * d-lang.h (struct builtin_d_type): New data type.
2812 (builtin_d_type): Add declaration.
2813 * d-lang.c (d_language_arch_info, build_d_types)
2814 (builtin_d_type): New functions.
2815 (enum d_primitive_types): New data type.
2816 (d_language_defn): Change c_language_arch_info to
2817 d_language_arch_info.
2818 (d_type_data): New static variable.
2819 (_initialize_d_language): Initialize d_type_data.
2821 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2823 * d-lang.h (d_main_name): Add declaration.
2824 * d-lang.c (d_main_name): New function.
2825 * symtab.c (find_main_name): Add call to d_main_name.
2827 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2829 * d-lang.c (d_language_defn): Change macro_expansion_c to
2832 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2834 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2836 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2838 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2839 gdb_exception" declaration.
2840 * remote.c (getpkt_or_notif_sane): Likewise.
2842 2014-01-17 Doug Evans <dje@google.com>
2844 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2845 function, contents of dirnames_to_char_ptr_vec_append moved here.
2846 (delim_string_to_char_ptr_vec): New function.
2847 (dirnames_to_char_ptr_vec_append): Rewrite.
2848 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2850 2014-01-17 Doug Evans <dje@google.com>
2852 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2854 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2855 #include "common-utils.h".
2856 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2857 * common/vec.h (VEC_ASSERT_PASS): Update.
2858 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2859 (MACH_CHECK_ERROR): Update.
2861 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2863 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2865 * gdbarch.h: Regenerate.
2867 2014-01-16 Tom Tromey <tromey@redhat.com>
2869 * value.c (struct value) <regnum>: Move earlier.
2871 2014-01-16 Tom Tromey <tromey@redhat.com>
2873 * remote.c (extended_remote_create_inferior): Rename from
2874 extended_remote_create_inferior_1. Add "ops" argument. Remove
2877 2014-01-16 Pedro Alves <palves@redhat.com>
2879 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2880 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2883 2014-01-16 Doug Evans <dje@google.com>
2885 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2889 * btrace.h (btrace_thread_flag): New.
2890 (struct btrace_thread_info) <flags>: New.
2891 * record-btrace.c (record_btrace_resume_thread)
2892 (record_btrace_find_thread_to_move, btrace_step_no_history)
2893 (btrace_step_stopped, record_btrace_start_replaying)
2894 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2895 (record_btrace_find_resume_thread): New.
2896 (record_btrace_resume, record_btrace_wait): Extend.
2897 (record_btrace_can_execute_reverse): New.
2898 (record_btrace_open): Fail in non-stop mode.
2899 (record_btrace_set_replay): Split into this, ...
2900 (record_btrace_stop_replaying): ... this, ...
2901 (record_btrace_clear_histories): ... and this.
2902 (init_record_btrace_ops): Init to_can_execute_reverse.
2903 * NEWS: Announce it.
2905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2907 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2908 (forward_target_decr_pc_after_break)
2909 (target_decr_pc_after_break): New.
2910 * target.c (forward_target_decr_pc_after_break)
2911 (target_decr_pc_after_break): New.
2912 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2913 instead of gdbarch_decr_pc_after_break.
2914 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2915 instead of gdbarch_decr_pc_after_break.
2916 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2917 instead of gdbarch_decr_pc_after_break.
2918 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2919 instead of gdbarch_decr_pc_after_break.
2920 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2921 instead of gdbarch_decr_pc_after_break.
2922 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2923 instead of gdbarch_decr_pc_after_break.
2925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2927 * btrace.c: Include regcache.h.
2928 (btrace_add_pc): New.
2929 (btrace_enable): Call btrace_add_pc.
2930 (btrace_is_empty): New.
2931 * btrace.h (btrace_is_empty): New.
2932 * record-btrace.c (require_btrace, record_btrace_info): Call
2935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2937 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2938 Support delta reads.
2939 (linux_disable_btrace): Change return type.
2940 * common/linux-btrace.h (linux_read_btrace): Change parameters
2941 and return type to allow error reporting. Update users.
2942 (linux_disable_btrace): Change return type. Update users.
2943 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2945 (btrace_error): New.
2946 (btrace_block) <begin>: Comment on BEGIN == 0.
2947 * btrace.c (btrace_compute_ftrace): Start from the end of
2949 (btrace_stitch_trace, btrace_clear_history): New.
2950 (btrace_fetch): Read delta trace, return if replaying.
2951 (btrace_clear): Move clear history code to btrace_clear_history.
2952 (parse_xml_btrace): Throw an error if parsing failed.
2953 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2954 and return type to allow error reporting.
2955 (target_read_btrace): Change parameters and return type to allow
2957 * target.c (target_read_btrace): Update.
2958 * remote.c (remote_read_btrace): Support delta reads. Pass
2960 * NEWS: Announce it.
2962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2964 * record.h (record_btrace_frame_unwind)
2965 (record_btrace_tailcall_frame_unwind): New declarations.
2966 * dwarf2-frame: Include record.h
2967 (dwarf2_frame_cfa): Throw an error for btrace frames.
2968 * record-btrace.c: Include hashtab.h.
2969 (btrace_get_bfun_name): New.
2970 (btrace_call_history): Call btrace_get_bfun_name.
2971 (struct btrace_frame_cache): New.
2973 (bfcache_hash, bfcache_eq, bfcache_new): New.
2974 (btrace_get_frame_function): New.
2975 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2976 (record_btrace_frame_this_id): Compute own id.
2977 (record_btrace_frame_prev_register): Provide PC, throw_error
2978 for all other registers.
2979 (record_btrace_frame_sniffer): Detect btrace frames.
2980 (record_btrace_tailcall_frame_sniffer): New.
2981 (record_btrace_frame_dealloc_cache): New.
2982 (record_btrace_frame_unwind): Add new functions.
2983 (record_btrace_tailcall_frame_unwind): New.
2984 (_initialize_record_btrace): Allocate cache.
2985 * btrace.c (btrace_clear): Call reinit_frame_cache.
2986 * NEWS: Announce it.
2988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2990 * record-btrace.c (record_btrace_set_replay)
2991 (record_btrace_goto_begin, record_btrace_goto_end)
2992 (record_btrace_goto): New.
2993 (init_record_btrace_ops): Initialize them.
2994 * NEWS: Announce it.
2996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2998 * record-btrace.c (record_btrace_find_new_threads)
2999 (record_btrace_thread_alive): New.
3000 (init_record_btrace_ops): Initialize to_find_new_threads and
3003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3005 * record-btrace.c (record_btrace_resume): New.
3006 (record_btrace_wait): New.
3007 (init_record_btrace_ops): Initialize to_wait and to_resume.
3009 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3011 * record-btrace.c (record_btrace_xfer_partial)
3012 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
3013 (record_btrace_allow_memory_access): New.
3014 (init_record_btrace_ops): Initialize new methods.
3015 * target.c (raw_memory_xfer_partial): Bail out if target reports
3016 that this memory is not available.
3018 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3020 * target.h (target_ops) <to_insert_breakpoint>
3021 <to_remove_breakpoint>: Add target_ops parameter.
3022 (forward_target_insert_breakpoint): New.
3023 (forward_target_remove_breakpoint): New.
3024 (memory_remove_breakpoint, memory_insert_breakpoint):
3025 Add target_ops parameter.
3026 * target.c (target_insert_breakpoint): Split into this and ...
3027 (forward_target_insert_breakpoint): ... this.
3028 (target_remove_breakpoint): Split into this and ...
3029 (forward_target_remove_breakpoint): ... this.
3030 (debug_to_insert_breakpoint): Add target_ops parameter.
3031 Call forward_target_insert_breakpoint.
3032 (debug_to_remove_breakpoint): Add target_ops parameter.
3033 Call forward_target_remove_breakpoint.
3034 (update_current_target): Do not inherit or default to_insert_breakpoint
3035 and to_remove_breakpoint.
3036 * corelow.c (ignore): Add target_ops parameter.
3037 * exec.c (ignore): Add target_ops parameter.
3038 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
3039 Add target_ops parameter.
3040 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
3041 Add target_ops parameter.
3042 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
3043 Add target_ops parameter.
3044 * record-full.c (record_full_beneath_to_insert_breakpoint)
3045 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
3046 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
3047 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
3048 (record_full_core_remove_breakpoint): Add target_ops parameter.
3050 (record_full_beneath_to_insert_breakpoint_ops)
3051 (record_full_beneath_to_remove_breakpoint_ops)
3052 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
3053 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
3054 tmp_to_remove_breakpoint_ops,
3055 record_full_beneath_to_insert_breakpoint_ops, and
3056 record_full_beneath_to_remove_breakpoint_ops.
3057 * remote-m32r-sdi.c (m32r_insert_breakpoint)
3058 (m32r_remove_breakpoint): Add target_ops parameter.
3059 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
3060 Add target_ops parameter.
3061 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
3062 Add target_ops parameter.
3064 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3065 Markus Metzger <markus.t.metzger@intel.com>
3067 * record-btrace.c: Include frame-unwind.h.
3068 (record_btrace_frame_unwind_stop_reason)
3069 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
3070 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
3072 (init_record_btrace_ops): Install it.
3074 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3076 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
3079 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3081 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
3084 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3086 * frame-unwind.c: Include target.h.
3087 (frame_unwind_try_unwinder): New function with code from ...
3088 (frame_unwind_find_by_frame): ... here. New variable
3089 unwinder_from_target, call also target_get_unwinder)
3090 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
3091 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
3092 * target.h (struct target_ops): New fields to_get_unwinder and
3093 to_get_tailcall_unwinder.
3094 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
3096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3098 * record-btrace.c (record_btrace_fetch_registers)
3099 (record_btrace_store_registers)
3100 (record_btrace_to_prepare_to_store): New.
3101 (init_record_btrace_ops): Add the above.
3103 2014-01-16 Tom Tromey <tromey@redhat.com>
3105 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
3106 * target.h (struct target_ops) <to_prepare_to_store>: Add
3108 (target_prepare_to_store): Add argument.
3109 * target.c (debug_to_prepare_to_store): Add argument.
3110 (update_current_target): Update.
3111 * remote.c (remote_prepare_to_store): Add 'self' argument.
3112 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
3113 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
3114 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
3115 * record-full.c (record_full_core_prepare_to_store): Add 'self'
3117 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
3118 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
3119 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
3120 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
3121 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3123 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3125 * btrace.h (replay) <replay>: New.
3126 (btrace_is_replaying): New.
3127 * btrace.c (btrace_clear): Free replay iterator.
3128 (btrace_is_replaying): New.
3129 * record-btrace.c (record_btrace_is_replaying): New.
3130 (record_btrace_info): Print insn number if replaying.
3131 (record_btrace_insn_history): Start at replay position.
3132 (record_btrace_call_history): Start at replay position.
3133 (init_record_btrace_ops): Init to_record_is_replaying.
3135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3137 * record-btrace.c (record_btrace_insn_history_range): Include
3139 (record_btrace_insn_history_from): Adjust range.
3140 (record_btrace_call_history_range): Include
3142 (record_btrace_call_history_from): Adjust range.
3143 * NEWS: Announce changes.
3145 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3147 * record.h (enum record_print_flag)
3148 <record_print_indent_calls>: New.
3149 * record.c (get_call_history_modifiers): Recognize /c modifier.
3150 (_initialize_record): Document /c modifier.
3151 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3152 Reorder fields. Optionally indent the function name. Update
3154 * NEWS: Announce changes.
3156 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3158 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3160 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3162 * btrace.c (ftrace_new_function): Start counting at one.
3163 * record-btrace.c (record_btrace_info): Adjust number of calls
3165 * NEWS: Announce it.
3167 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3169 * record-btrace.c (btrace_call_history_insn_range): Print
3170 insn range as [begin, end].
3172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3174 * btrace.h (struct btrace_func_link): New.
3175 (enum btrace_function_flag): New.
3176 (struct btrace_inst): Rename to ...
3177 (struct btrace_insn): ...this. Update all users.
3178 (struct btrace_func) <ibegin, iend>: Remove.
3179 (struct btrace_func_link): New.
3180 (struct btrace_func): Rename to ...
3181 (struct btrace_function): ...this. Update all users.
3182 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3183 (number, level, flags>: New.
3184 (struct btrace_insn_iterator): Rename to ...
3185 (struct btrace_insn_history): ...this.
3187 (struct btrace_insn_iterator, btrace_call_iterator): New.
3188 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3189 (struct btrace_target_info) <begin, end, level>
3190 <insn_history, call_history>: New.
3191 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3192 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3193 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3194 (btrace_call_number, btrace_call_begin, btrace_call_end)
3195 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3196 (btrace_find_function_by_number, btrace_set_insn_history)
3197 (btrace_set_call_history): New.
3198 * btrace.c (btrace_init_insn_iterator)
3199 (btrace_init_func_iterator, compute_itrace): Remove.
3200 (ftrace_print_function_name, ftrace_print_filename)
3201 (ftrace_skip_file): Change
3203 (ftrace_init_func): Remove.
3204 (ftrace_debug): Use new btrace_function fields.
3205 (ftrace_function_switched): Also consider gaining and
3206 losing symbol information).
3207 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3208 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3209 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3211 (ftrace_new_function): Move. Remove debug print.
3212 (ftrace_update_lines, ftrace_update_insns): New.
3213 (ftrace_update_function): Check for call, ret, and jump.
3214 (compute_ftrace): Renamed to ...
3215 (btrace_compute_ftrace): ...this. Rewritten to compute call
3217 (btrace_fetch, btrace_clear): Updated.
3218 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3219 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3220 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3221 (btrace_call_number, btrace_call_begin, btrace_call_end)
3222 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3223 (btrace_find_function_by_number, btrace_set_insn_history)
3224 (btrace_set_call_history): New.
3225 * record-btrace.c (require_btrace): Use new btrace thread
3227 (record_btrace_info, btrace_insn_history)
3228 (record_btrace_insn_history, record_btrace_insn_history_range):
3229 Use new btrace thread info fields and new iterator.
3230 (btrace_func_history_src_line): Rename to ...
3231 (btrace_call_history_src_line): ...this. Use new btrace
3233 (btrace_func_history): Rename to ...
3234 (btrace_call_history): ...this. Use new btrace thread info
3235 fields and new iterator.
3236 (record_btrace_call_history, record_btrace_call_history_range):
3237 Use new btrace thread info fields and new iterator.
3239 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3241 * frame.h (frame_id_build_unavailable_stack_special): New.
3242 * frame.c (frame_id_build_unavailable_stack_special): New.
3244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3246 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3247 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3248 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3250 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3251 (i386_insn_is_jump, i386_jmp_p): New.
3252 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3253 insn_is_jump to gdbarch.
3254 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3255 * gdbarch.h: Regenerated.
3256 * gdbarch.c: Regenerated.
3257 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3258 (default_insn_is_jump): New.
3259 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3260 (default_insn_is_jump): New.
3262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3264 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3266 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3267 (btrace_read_type) <btrace_read_new>: Change to ...
3268 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3270 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3272 * common/linux-btrace.c (linux_read_btrace): Free trace from
3275 2014-01-15 Doug Evans <dje@google.com>
3277 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3280 2014-01-15 Tom Tromey <tromey@redhat.com>
3282 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3283 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3284 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3285 (set_objfile_main_name): New function.
3286 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3287 language_of_main>: New fields.
3288 (set_objfile_main_name): Declare.
3289 * symtab.c (find_main_name): Loop over objfiles to find the main
3291 (set_main_name): Now static.
3292 (get_main_info): Add comment.
3293 * symtab.h (set_main_name): Don't declare.
3295 2014-01-15 Tom Tromey <tromey@redhat.com>
3297 * symtab.c (main_progspace_key): New global.
3298 (struct main_info): New.
3299 (name_of_main, language_of_main): Remove.
3300 (get_main_info, main_info_cleanup): New function.
3301 (set_main_name, main_name, main_language): Use get_main_info.
3302 (_initialize_symtab): Initialize main_progspace_key.
3304 2014-01-15 Tom Tromey <tromey@redhat.com>
3306 * dbxread.c (process_one_symbol): Update.
3307 * dwarf2read.c (read_partial_die): Update.
3308 * symfile.c (set_initial_language): Call main_language.
3309 * symtab.c (language_of_main): Now static.
3310 (set_main_name): Add 'lang' parameter.
3311 (find_main_name): Update.
3312 (main_language): New function.
3313 (symtab_observer_executable_changed): Update.
3314 * symtab.h (set_main_name): Update.
3315 (language_of_main): Remove.
3316 (main_language): Declare.
3318 2014-01-15 Tom Tromey <tromey@redhat.com>
3320 * symfile.c (init_entry_point_info): Use new "initialized" field.
3322 * objfiles.h (struct entry_point) <initialized>: New field.
3323 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3324 (struct objfile) <ei>: ...here. Remove.
3325 * objfiles.c (entry_point_address_query): Update.
3327 2014-01-15 Tom Tromey <tromey@redhat.com>
3329 * objfiles.c (entry_point_address_query): Relocate entry point
3331 (objfile_relocate1): Do not relocate entry point address.
3332 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3333 <the_bfd_section_index>: New field.
3334 * symfile.c (init_entry_point_info): Find the entry point's
3337 2014-01-15 Tom Tromey <tromey@redhat.com>
3339 * solib-frv.c (enable_break): Use entry_point_address_query.
3341 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3343 * NEWS: Add note on improved process record-replay on
3344 arm*-linux* targets.
3346 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3348 * arm-tdep.c (enum arm_record_result): New enum.
3349 (arm_record_unsupported_insn): New function.
3350 (arm_record_coproc_data_proc): Removed.
3351 (thumb2_record_ld_st_multiple): New function.
3352 (thumb2_record_ld_st_dual_ex_tbb): New function.
3353 (thumb2_record_data_proc_sreg_mimm): New function.
3354 (thumb2_record_ps_dest_generic): New function.
3355 (thumb2_record_branch_misc_cntrl): New function.
3356 (thumb2_record_str_single_data): New function.
3357 (thumb2_record_ld_mem_hints): New function.
3358 (thumb2_record_ld_word): New function.
3359 (thumb2_record_lmul_lmla_div): New function.
3360 (thumb2_record_decode_insn_handler): New function.
3361 (decode_insn): Add thumb32 instruction handlers.
3363 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3365 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3366 (struct arm_linux_record_tdep): Declare.
3367 (arm_canonicalize_syscall): New function.
3368 (arm_all_but_pc_registers_record): New function.
3369 (arm_linux_syscall_record): New function.
3370 (arm_linux_init_abi): Add syscall recording constructs.
3371 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3372 decoding. (arm_record_coproc_data_proc): Update arm syscall
3374 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3375 <arm_syscall_record>: New field.
3376 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3379 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3381 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3382 register for push instruction recording.
3384 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3386 * arm-tdep.c (thumb_record_misc): Update to correct logical
3387 error while recording ldm, ldmia and pop instructions.
3389 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3391 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3393 2014-01-15 Pedro Alves <palves@redhat.com>
3395 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3396 (go32_resume, go32_fetch_registers, store_register)
3397 (go32_store_registers, go32_prepare_to_store)
3398 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3399 (go32_create_inferior, go32_can_run, go32_terminal_init)
3400 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3403 2014-01-15 Tom Tromey <tromey@redhat.com>
3405 * target.h (async_callback_ftype): New typedef.
3406 (struct target_ops) <to_async>: Use it.
3408 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3410 * python/py-value.c (get_field_type): Remove unnecessary curly
3411 braces for single-statement if block.
3413 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3415 * python/py-type.c (convert_field): Add missing empty line
3418 2014-01-14 Doug Evans <dje@google.com>
3420 * symfile.h (expand_symtabs_matching): Renamed from
3421 expand_partial_symbol_names. Update prototype.
3422 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3423 * symfile.c (expand_symtabs_matching): Renamed from
3424 expand_partial_symbol_names. New args file_matcher, kind.
3425 Rename arg fun to symbol_matcher.
3426 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3427 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3428 ada_expand_partial_symbol_name.
3429 (ada_make_symbol_completion_list): Update to call
3430 expand_symtabs_matching.
3431 (ada_add_global_exceptions): Call expand_symtabs_matching.
3432 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3433 call map_symbol_filenames.
3434 * symtab.c (sources_info): Update to call map_symbol_filenames.
3435 (search_symbols): Call expand_symtabs_matching.
3436 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3437 (default_make_symbol_completion_list_break_on): Update to call
3438 expand_symtabs_matching.
3439 (make_source_files_completion_list): Update to call
3440 map_symbol_filenames.
3442 2014-01-14 Doug Evans <dje@google.com>
3444 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3445 (expand_symtabs_symbol_matcher_ftype): New typedef.
3446 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3447 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3448 * symfile.c (expand_partial_symbol_names): Update to use
3449 expand_symtabs_symbol_matcher_ftype.
3450 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3451 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3452 Arg name_matcher renamed to symbol_matcher.
3453 * psymtab.c (recursively_search_psymtabs): Update to use
3454 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3456 (expand_symtabs_matching_via_partial): Update to use
3457 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3458 Arg name_matcher renamed to symbol_matcher.
3460 2014-01-14 Doug Evans <dje@google.com>
3462 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3463 (map_partial_symbol_filenames): Ditto.
3464 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3465 (map_partial_symbol_filenames): Ditto.
3466 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3467 (map_partial_symbol_filenames): Ditto.
3468 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3469 (map_partial_symbol_filenames): Ditto.
3470 * symtab.c: Delete #include "psymtab.h".
3472 2014-01-14 Pedro Alves <palves@redhat.com>
3473 Tom Tromey <tromey@redhat.com>
3475 * infrun.c (use_displaced_stepping): Use find_record_target
3476 instead of RECORD_IS_USED.
3477 (adjust_pc_after_break): Use record_full_is_used instead of
3479 * record-btrace.c (record_btrace_open): Call record_preopen
3480 instead of checking RECORD_IS_USED.
3481 * record-full.c (record_full_shortname)
3482 (record_full_core_shortname): New globals.
3483 (record_full_is_used): New function.
3484 (find_full_open): Call record_preopen instead of checking
3486 (init_record_full_ops): Set the target's shortname to
3487 record_full_shortname.
3488 (init_record_full_core_ops): Set the target's shortname to
3489 record_full_core_shortname.
3490 * record-full.h (record_full_is_used): Declare.
3491 * record.c (find_record_target): Make extern.
3492 (record_preopen): New function.
3493 * record.h (RECORD_IS_USED): Delete macro.
3494 (find_record_target, record_preopen): Declare functions.
3496 2014-01-14 Yao Qi <yao@codesourcery.com>
3498 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3499 'len''s type to ULONGEST.
3500 (core_xfer_shared_libraries_aix): Likewise.
3501 * gdbarch.c, gdbarch.h: Regenerated.
3502 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3503 Change type of 'len' to ULONGEST.
3504 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3505 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3507 2014-01-14 Yao Qi <yao@codesourcery.com>
3509 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3510 type of 'len' to ULONGEST.
3511 (linux_xfer_osdata_processgroups): Likewise.
3512 (linux_xfer_osdata_threads): Likewise.
3513 (linux_xfer_osdata_fds): Likewise.
3514 (linux_xfer_osdata_isockets): Likewise.
3515 (linux_xfer_osdata_shm): Likewise.
3516 (linux_xfer_osdata_sem): Likewise.
3517 (linux_xfer_osdata_msg): Likewise.
3518 (linux_common_xfer_osdata): Likewise.
3519 (struct osdata_type) <getter>: Likewise.
3520 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3523 2014-01-14 Yao Qi <yao@codesourcery.com>
3525 * target.h (target_xfer_partial_ftype): Update.
3526 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3528 * aix-thread.c (aix_thread_xfer_partial): Change type of
3529 argument 'len' to ULONGEST.
3530 * auxv.c (procfs_xfer_auxv): Likewise.
3531 (ld_so_xfer_auxv): Likewise.
3532 (memory_xfer_auxv): Likewise.
3533 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3534 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3535 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3536 * corelow.c (core_xfer_partial): Likewise.
3537 * ctf.c (ctf_xfer_partial): Likewise.
3538 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3540 (darwin_read_dyld_info): Likewise.
3541 (darwin_xfer_partial): Likewise.
3542 * exec.c (section_table_xfer_memory_partial): Likewise.
3543 (exec_xfer_partial): Likewise.
3544 * exec.h (section_table_xfer_memory_partial): Update
3546 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3547 instead of plongest.
3548 (gnu_xfer_partial): Likewise.
3549 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3550 (ia64_hpux_xfer_solib_got): Likewise.
3551 (ia64_hpux_xfer_partial): Likewise.
3552 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3553 * inf-ptrace.c (inf_ptrace_xfer_partial):
3554 * inf-ttrace.c (inf_ttrace_xfer_partial):
3555 * linux-nat.c (linux_xfer_siginfo): Likewise.
3556 (linux_nat_xfer_partial): Likewise.
3557 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3558 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3559 * monitor.c (monitor_xfer_memory): Likewise.
3560 (monitor_xfer_partial): Likewise.
3561 * procfs.c (procfs_xfer_partial): Likewise.
3562 * record-full.c (record_full_xfer_partial): Likewise.
3563 (record_full_core_xfer_partial): Likewise.
3564 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3565 instead of plongest.
3566 (gdbsim_xfer_partial): Likewise.
3567 * remote.c (remote_xfer_partial): Likewise.
3568 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3569 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3571 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3572 (rs6000_xfer_shared_libraries): Likewise.
3573 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3574 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3575 (sparc_xfer_partial): Likewise.
3576 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3577 (spu_xfer_partial): Likewise.
3578 * spu-multiarch.c (spu_xfer_partial): Likewise.
3579 * target.c (target_read_live_memory): Likewise.
3580 (memory_xfer_live_readonly_partial): Likewise.
3581 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3582 (target_xfer_partial, default_xfer_partial): Likewise.
3583 (current_xfer_partial): Likewise.
3584 * tracepoint.c (tfile_xfer_partial): Likewise.
3585 * windows-nat.c (windows_xfer_memory): Likewise. Call
3586 pulongest instead of plongest.
3587 (windows_xfer_partial): Likewise.
3588 (windows_xfer_shared_libraries): Likewise.
3590 2014-01-14 Yao Qi <yao@codesourcery.com>
3592 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3593 target_xfer_partial_ftype.
3595 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3599 * valops.c (value_struct_elt_bitpos): New function
3600 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3601 object to 'None' if the field name is an empty string ("").
3602 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3603 attribute to look for a field when 'name' is 'None'.
3604 (get_field_type): New function
3606 2014-01-13 Doug Evans <dje@google.com>
3609 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3610 (try_open_dwop_file): Ditto.
3611 * gdb_bfd.c: #include "vec.h".
3612 (bfdp): New typedef.
3613 (struct gdb_bfd_data): New member included_bfds.
3614 (gdb_bfd_unref): Unref all included bfds.
3615 (gdb_bfd_record_inclusion): New function.
3616 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3618 2014-01-13 Tom Tromey <tromey@redhat.com>
3620 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3622 2014-01-13 Tom Tromey <tromey@redhat.com>
3624 * defs.h (use_windows): Remove.
3625 * gdb.c (main): Update.
3626 * main.c (captured_main, gdb_main): Update.
3627 * main.h (struct captured_main_args) <use_windows>: Remove.
3628 * top.c (use_windows): Remove.
3630 2014-01-13 Tom Tromey <tromey@redhat.com>
3632 * defs.h (deprecated_flush_hook): Remove.
3634 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3637 * linux-thread-db.c (try_thread_db_load): Add parameter
3638 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3639 (try_thread_db_load_from_pdir_1): Move it there from here.
3640 (try_thread_db_load_from_sdir): Update caller.
3641 (try_thread_db_load_from_dir): Move it there from here.
3643 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3645 * regformats/regdat.sh: Always rewrite the register file.
3647 2014-01-13 Pedro Alves <palves@redhat.com>
3649 * Makefile.in (CHECK_HEADERS): New variable.
3650 (check-headers:): New rule.
3652 2014-01-13 Tom Tromey <tromey@redhat.com>
3654 * cli/cli-setshow.c (do_set_command): Update.
3655 * defs.h (deprecated_set_hook): Remove.
3656 * top.c (deprecated_set_hook): Remove.
3658 2014-01-13 Pedro Alves <palves@redhat.com>
3660 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3661 the tracepoint if the PC is a pseudo-register.
3663 2014-01-13 Tom Tromey <tromey@redhat.com>
3665 * defs.h (XCALLOC): Remove.
3666 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3667 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3668 * dwarf2loc.c (allocate_piece_closure): Likewise.
3669 * elfread.c (elf_symfile_segments): Likewise.
3670 (elf_symfile_segments): Likewise.
3671 * gdbtypes.c (copy_type_recursive): Likewise.
3672 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3673 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3674 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3676 * mt-tdep.c (mt_gdbarch_init): Likewise.
3677 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3679 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3680 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3681 * registry.c (registry_alloc_data): Likewise.
3682 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3683 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3684 * serial.c (serial_fdopen_ops): Likewise.
3685 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3687 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3688 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3691 2014-01-13 Tom Tromey <tromey@redhat.com>
3693 * defs.h (XMALLOC): Remove.
3694 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3695 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3696 * cli-out.c (struct ui_out *): Likewise.
3697 * cli/cli-dump.c (add_dump_command): Likewise.
3698 (add_dump_command): Likewise.
3699 * complaints.c (get_complaints): Likewise.
3700 (find_complaint): Likewise.
3701 * dwarf2-frame.c (execute_cfa_program): Likewise.
3702 * dwarf2read.c (abbrev_table_read_table): Likewise.
3703 * gdbarch.sh: Likewise.
3704 * gdbarch.c: Rebuild.
3705 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3706 * interps.c (interp_new): Likewise.
3707 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3708 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3709 * mi/mi-console.c (mi_console_file_new): Likewise.
3710 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3711 * mi/mi-out.c (mi_out_new): Likewise.
3712 * mi/mi-parse.c (mi_parse): Likewise.
3713 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3714 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3715 * observer.c (xalloc_observer_list_node): Likewise.
3716 * regcache.c (regcache_xmalloc_1): Likewise.
3717 * reggroups.c (reggroup_new): Likewise.
3718 (_initialize_reggroup): Likewise.
3719 * registry.c (register_data_with_cleanup): Likewise.
3720 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3721 * ser-base.c (serial_ttystate): Likewise.
3722 * ser-mingw.c (make_pipe_state): Likewise.
3723 * ser-pipe.c (pipe_open): Likewise.
3724 * serial.c (serial_open): Likewise.
3725 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3726 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3727 (tui_alloc_win_info): Likewise.
3728 (tui_add_content_elements): Likewise.
3729 * tui/tui-file.c (tui_file_new): Likewise.
3730 * tui/tui-out.c (tui_out_new): Likewise.
3731 * ui-file.c (mem_file_new): Likewise.
3732 * ui-out.c (push_level): Likewise.
3733 (make_cleanup_ui_out_end): Likewise.
3734 (append_header_to_list): Likewise.
3735 (ui_out_new): Likewise.
3736 * user-regs.c (user_reg_add_builtin): Likewise.
3738 2014-01-13 Tom Tromey <tromey@redhat.com>
3740 * defs.h (XZALLOC): Remove.
3741 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3742 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3743 (get_ada_tasks_inferior_data): Likewise.
3744 * auto-load.c (get_auto_load_pspace_data): Likewise.
3745 * auxv.c (get_auxv_inferior_data): Likewise.
3746 * bfd-target.c (target_bfd_reopen): Likewise.
3747 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3748 (deprecated_insert_raw_breakpoint): Likewise.
3749 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3750 * corelow.c (core_open): Likewise.
3751 * darwin-nat.c (darwin_check_new_threads): Likewise.
3752 (darwin_attach_pid): Likewise.
3753 * dummy-frame.c (dummy_frame_push): Likewise.
3754 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3755 * dwarf2loc.c (allocate_piece_closure): Likewise.
3756 * elfread.c (elf_symfile_segments): Likewise.
3757 * eval.c (ptrmath_type_p): Likewise.
3758 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3759 * gdbtypes.c (alloc_type_arch): Likewise.
3760 (alloc_type_instance): Likewise.
3761 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3762 * inf-child.c (inf_child_can_use_agent): Likewise.
3763 * inflow.c (get_inflow_inferior_data): Likewise.
3764 * infrun.c (save_infcall_suspend_state): Likewise.
3765 * jit.c (jit_reader_load): Likewise.
3766 (get_jit_objfile_data): Likewise.
3767 (get_jit_program_space_data): Likewise.
3768 (jit_object_open_impl): Likewise.
3769 (jit_symtab_open_impl): Likewise.
3770 (jit_block_open_impl): Likewise.
3771 (jit_frame_sniffer): Likewise.
3772 * linux-fork.c (add_fork): Likewise.
3773 * maint.c (make_command_stats_cleanup): Likewise.
3774 * objfiles.c (get_objfile_pspace_data): Likewise.
3775 * opencl-lang.c (struct lval_closure): Likewise.
3776 * osdata.c (osdata_start_osdata): Likewise.
3777 * progspace.c (new_address_space): Likewise.
3778 (add_program_space): Likewise.
3779 * remote-sim.c (get_sim_inferior_data): Likewise.
3780 * sh-tdep.c (sh_gdbarch_init): Likewise.
3781 * skip.c (Ignore): Likewise.
3782 (skip_delete_command): Likewise.
3783 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3784 (library_list_start_library): Likewise.
3785 (solib_aix_current_sos): Likewise.
3786 * solib-darwin.c (get_darwin_info): Likewise.
3787 (darwin_current_sos): Likewise.
3788 * solib-dsbt.c (get_dsbt_info): Likewise.
3789 * solib-ia64-hpux.c (new_so_list): Likewise.
3790 (ia64_hpux_get_solib_linkage_addr): Likewise.
3791 * solib-spu.c (append_ocl_sos): Likewise.
3792 (spu_current_sos): Likewise.
3793 * solib-svr4.c (get_svr4_info): Likewise.
3794 (svr4_keep_data_in_core): Likewise.
3795 (library_list_start_library): Likewise.
3796 (svr4_default_sos): Likewise.
3797 (svr4_read_so_list): Likewise.
3798 * solib-target.c (library_list_start_library): Likewise.
3799 (solib_target_current_sos): Likewise.
3800 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3801 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3802 * symfile.c (default_symfile_segments): Likewise.
3803 * target-descriptions.c (tdesc_data_init): Likewise.
3804 (tdesc_create_reg): Likewise.
3805 (struct tdesc_type *): Likewise.
3806 (tdesc_create_vector): Likewise.
3807 (tdesc_set_struct_size): Likewise.
3808 (struct tdesc_type *): Likewise.
3809 (tdesc_free_feature): Likewise.
3810 (tdesc_create_feature): Likewise.
3811 * windows-nat.c (windows_add_thread): Likewise.
3812 (windows_make_so): Likewise.
3813 * xml-support.c (gdb_xml_body_text): Likewise.
3814 (gdb_xml_create_parser_and_cleanup): Likewise.
3815 (xml_process_xincludes): Likewise.
3816 * xml-syscall.c (allocate_syscalls_info): Likewise.
3817 (syscall_create_syscall_desc): Likewise.
3819 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3821 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3822 function, with code from i386_stap_parse_special_token.
3823 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3824 (i386_stap_parse_special_token): Move code to the two functions
3827 2014-01-09 Pedro Alves <palves@redhat.com>
3828 Hui Zhu <hui@codesourcery.com>
3831 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3832 bp_err_string. Don't mark the location shlib_disabled if the
3833 error thrown wasn't a generic or memory error. Catch errors
3834 thrown while inserting breakpoints in overlayed code. Output
3835 error message of software breakpoints.
3836 * remote.c (remote_insert_breakpoint): If this breakpoint has
3837 target-side commands but this stub doesn't support Z0 packets,
3838 throw NOT_SUPPORTED_ERROR error.
3839 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3840 * target.h (target_insert_breakpoint): Extend comment.
3841 (target_insert_hw_breakpoint): Add comment.
3843 2014-01-08 Pedro Alves <palves@redhat.com>
3845 * remote.c (remote_add_thread): Add threads silently if starting
3847 (remote_notice_new_inferior): If in all-stop, and starting up,
3848 don't call notice_new_inferior.
3849 (get_current_thread): New function, factored out from ...
3850 (add_current_inferior_and_thread): ... this. Adjust.
3851 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3852 found any thread, then select the remote's current thread as GDB's
3855 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3857 * NEWS: Create a new section for the next release branch.
3858 Rename the section of the current branch, now that it has
3861 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3863 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3864 * version.in: Bump version to 7.7.50.DATE-cvs.
3866 2014-01-08 Yao Qi <yao@codesourcery.com>
3868 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3869 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3870 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3872 2014-01-08 Yao Qi <yao@codesourcery.com>
3874 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3875 return value of bfd_get_filename to symbol_file_add_from_bfd.
3877 2014-01-08 Pierre Muller <muller@sourceware.org>
3880 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3881 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3882 to prim_record_mininal_symbol_and_info.
3883 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3884 in call to prim_record_minimal_symbol_and_info.
3885 (read_pe_exported_syms): Set index field of section_data.
3887 2014-01-07 Andrew Pinski <apinski@cavium.com>
3889 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3890 * features/aarch64.c: Regenerate.
3892 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3894 * target.c (return_null): Define.
3895 (update_current_target): Use it instead of return_zero for
3896 functions that return a pointer.
3898 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3900 * source.c (add_path): Fix check for duplicated paths in the previously
3903 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3905 * ada-lang.c: Remove duplicated include statements.
3906 * alphabsd-nat.c: Ditto.
3907 * amd64-darwin-tdep.c: Ditto.
3908 * amd64fbsd-nat.c: Ditto.
3909 * auto-load.c: Ditto.
3911 * breakpoint.c: Ditto.
3913 * fork-child.c: Ditto.
3914 * gdb_usleep.c: Ditto.
3915 * i386-darwin-tdep.c: Ditto.
3916 * i386fbsd-nat.c: Ditto.
3918 * inferior.c: Ditto.
3920 * linux-nat.c: Ditto.
3921 * linux-tdep.c: Ditto.
3922 * m68kbsd-nat.c: Ditto.
3923 * m68klinux-nat.c: Ditto.
3924 * microblaze-tdep.c: Ditto.
3925 * mips-linux-tdep.c: Ditto.
3926 * mn10300-tdep.c: Ditto.
3927 * nto-tdep.c: Ditto.
3928 * opencl-lang.c: Ditto.
3930 * printcmd.c: Ditto.
3931 * regcache.c: Ditto.
3932 * remote-m32r-sdi.c: Ditto.
3936 * tilegx-linux-nat.c: Ditto.
3937 * tilegx-tdep.c: Ditto.
3938 * tracepoint.c: Ditto.
3940 * vaxbsd-nat.c: Ditto.
3941 * windows-nat.c: Ditto.
3942 * xtensa-tdep.c: Ditto.
3944 2014-01-07 Yao Qi <yao@codesourcery.com>
3946 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3948 2014-01-07 Yao Qi <yao@codesourcery.com>
3949 Joel Brobecker <brobecker@adacore.com>
3951 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3952 (pdc_write_regs): Likewise.
3953 (fetch_regs_kernel_thread): Likewise.
3954 (store_regs_kernel_thread): Likewise.
3956 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3958 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3959 tagged type objects to their actual type.
3961 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3963 * ada-valprint.c (print_field_values): Add "language" parameter.
3964 Update calls to print_field_values and print_variant_part.
3965 Pass new parameter "language" in call to val_print instead
3966 of "current_language". Replace call to ada_val_print by call
3968 (print_variant_part): Add "language" parameter.
3969 (ada_val_print_struct_union): Update call to print_field_values.
3971 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3973 * ada-valprint.c (ui_memcpy): Delete.
3974 (ada_print_floating): Update documentation. Add empty line
3975 between between function documentation and implementation.
3976 Delete variable "buffer". Use ui_file_xstrdup in place of
3977 ui_file_put. Minor adjustments following this change.
3979 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3981 * ada-valprint.c (ada_val_print_string): New function,
3982 extracted from ada_val_print_array.
3983 (ada_val_print_array): Replace extracted code by call
3984 to ada_val_print_string followed by a return. Move
3985 "else" branch to the function's top block.
3987 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3989 * ada-valprint.c (ada_val_print_array): Move implementation
3990 down. Rename parameter "offset" and "val" into "offset_aligned"
3991 and "original_value" respectively. Add parameter "offset".
3993 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3995 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3996 re-organizing the code. Change the "???" message printed
3997 when target type is a TYPE_CODE_UNDEF into
3998 "<ref to undefined type>".
4000 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4002 * ada-valprint.c (print_record): Delete, implementation inlined...
4003 (ada_val_print_struct_union): ... here. Remove call to
4004 ada_check_typedef in inlined implementation.
4006 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4008 * ada-valprint.c (ada_val_print_gnat_array): New function,
4009 extracted from ada_val_print_1;
4010 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
4011 (ada_val_print_flt, ada_val_print_struct_union)
4012 (ada_val_print_ref): Likewise.
4013 (ada_val_print_1): Delete variables i and elttype.
4014 Replace extracted-out code by call to corresponding
4017 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4019 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
4021 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4023 * ada-valprint.c (ada_val_print_1): Replace calls to
4024 ada_val_print_1 by calls to val_print.
4026 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4028 * ada-valprint.c (ada_val_print_1): Add parameter "language".
4029 Update calls to self accordingly. Replace calls to c_val_print
4030 by calls to val_print.
4032 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4034 * ada-valprint.c (print_record): Delete declaration.
4035 (adjust_type_signedness, ada_val_print_1): Likewise.
4036 (ada_val_print): Move function implementation down.
4037 (print_variant_part, print_field_values, print_record):
4038 Move function implementation up.
4040 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4042 * python/py-type.c (typy_get_name): New function.
4043 (type_object_getset): Add entry for attribute "name".
4044 * NEWS: Add entry mentioning this new attribute.
4046 2014-01-07 Yao Qi <yao@codesourcery.com>
4048 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
4051 2014-01-07 Yao Qi <yao@codesourcery.com>
4053 * gnu-nat.c (info_port_rights): Add qualifier const to
4056 2014-01-07 Yao Qi <yao@codesourcery.com>
4058 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
4060 2014-01-07 Yao Qi <yao@codesourcery.com>
4062 * gnu-nat.c (make_inf) Update declaration.
4063 (make_inf): Make it static.
4064 (inf_set_traced): Likewise.
4065 (inf_port_to_thread, inf_task_died_status): Likewise.
4067 2014-01-07 Yao Qi <yao@codesourcery.com>
4069 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
4071 2014-01-07 Yao Qi <yao@codesourcery.com>
4073 * gnu-nat.c (_initialize_gnu_nat): Declare.
4075 2014-01-07 Yao Qi <yao@codesourcery.com>
4077 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
4079 (struct gdbarch_info) <byte_order>: Change type to
4081 <byte_order_for_code>: Likewise.
4082 * gdbarch.c, gdbarch.h: Regenerated.
4084 2014-01-06 Sasha Smundak <asmundak@google.com>
4086 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
4088 2014-01-06 Tom Tromey <tromey@redhat.com>
4090 * doublest.c (convert_doublest_to_floatformat): Use const, not
4092 * somread.c (som_symtab_read): Likewise.
4094 2014-01-07 Hui Zhu <hui@codesourcery.com>
4096 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
4097 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
4098 (gdb_bfd_fopen): Ditto.
4099 (gdb_bfd_openr): Ditto.
4100 (gdb_bfd_openw): Ditto.
4101 (gdb_bfd_openr_iovec): Ditto.
4102 (gdb_bfd_fdopenr): Ditto.
4103 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
4104 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
4106 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
4108 * symfile-mem.c (symbol_file_add_from_memory): Removed
4109 gdb_bfd_stash_filename.
4111 2014-01-03 Doug Evans <dje@google.com>
4113 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
4116 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4118 Update year range in copyright notice of all files.
4120 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4122 * top.c (print_gdb_version): Set copyright year to 2014.
4124 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4126 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4128 For older changes see ChangeLog-2013.
4134 version-control: never