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_multi_process.
6 * target.h (struct target_ops) <to_supports_multi_process>: Use
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
14 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
17 2014-02-19 Tom Tromey <tromey@redhat.com>
19 * target-delegates.c: Rebuild.
20 * target.c (update_current_target): Don't inherit or default
21 to_thread_architecture.
22 * target.h (struct target_ops) <to_thread_architecture>: Use
25 2014-02-19 Tom Tromey <tromey@redhat.com>
27 * target-delegates.c: Rebuild.
28 * target.c (update_current_target): Don't inherit or default
29 to_execution_direction.
30 * target.h (struct target_ops) <to_execution_direction>: Use
33 2014-02-19 Tom Tromey <tromey@redhat.com>
35 * target-delegates.c: Rebuild.
36 * target.c (update_current_target): Don't inherit or default
37 to_can_execute_reverse.
38 * target.h (struct target_ops) <to_can_execute_reverse>: Use
39 TARGET_DEFAULT_RETURN.
40 (target_can_execute_reverse): Unconditionally delegate.
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
47 (dummy_goto_bookmark): Remove.
48 (init_dummy_target): Don't inherit or default to_goto_bookmark.
49 * target.h (struct target_ops) <to_goto_bookmark>: Use
50 TARGET_DEFAULT_NORETURN.
52 2014-02-19 Tom Tromey <tromey@redhat.com>
54 * target-delegates.c: Rebuild.
55 * target.c (update_current_target): Don't inherit or default
57 (dummy_get_bookmark): Remove.
58 (init_dummy_target): Don't inherit or default to_get_bookmark.
59 * target.h (struct target_ops) <to_get_bookmark>: Use
60 TARGET_DEFAULT_NORETURN
62 2014-02-19 Tom Tromey <tromey@redhat.com>
64 * target-delegates.c: Rebuild.
65 * target.c (update_current_target): Don't inherit or default
66 to_make_corefile_notes.
67 (init_dummy_target): Don't initialize to_make_corefile_notes.
68 * target.h (struct target_ops) <to_make_corefile_notes>: Use
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_find_memory_regions.
76 (init_dummy_target): Don't initialize to_find_memory_regions.
77 * target.h (struct target_ops) <to_find_memory_regions>: 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
85 * target.h (struct target_ops) <to_log_command>: Use
86 TARGET_DEFAULT_IGNORE.
87 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file>: Use
95 TARGET_DEFAULT_RETURN.
97 2014-02-19 Tom Tromey <tromey@redhat.com>
99 * target-delegates.c: Rebuild.
100 * target.c (update_current_target): Don't inherit or default
102 (target_thread_name): Unconditionally delegate.
103 * target.h (struct target_ops) <to_thread_name>: 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
110 to_extra_thread_info.
111 * target.h (struct target_ops) <to_extra_thread_info>: Use
112 TARGET_DEFAULT_RETURN.
114 2014-02-19 Tom Tromey <tromey@redhat.com>
116 * target-delegates.c: Rebuild.
117 * target.c (update_current_target): Don't inherit or default
119 * target.h (struct target_ops) <to_has_exited>: Use
120 TARGET_DEFAULT_RETURN..
122 2014-02-19 Tom Tromey <tromey@redhat.com>
124 * target-delegates.c: Rebuild.
125 * target.c (update_current_target): Don't inherit or default
126 to_set_syscall_catchpoint.
127 (return_one): Remove.
128 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
136 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
137 TARGET_DEFAULT_RETURN.
139 2014-01-08 Tom Tromey <tromey@redhat.com>
141 * target-delegates.c: Rebuild.
142 * target.c (update_current_target): Don't inherit or default
143 to_insert_exec_catchpoint.
144 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
145 TARGET_DEFAULT_RETURN.
147 2014-02-19 Tom Tromey <tromey@redhat.com>
149 * target-delegates.c: Rebuild.
150 * target.c (update_current_target): Don't inherit or default
151 to_remove_vfork_catchpoint.
152 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
153 TARGET_DEFAULT_RETURN.
155 2014-02-19 Tom Tromey <tromey@redhat.com>
157 * target-delegates.c: Rebuild.
158 * target.c (update_current_target): Don't inherit or default
159 to_insert_vfork_catchpoint.
160 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
161 TARGET_DEFAULT_RETURN.
163 2014-02-19 Tom Tromey <tromey@redhat.com>
165 * target-delegates.c: Rebuild.
166 * target.c (update_current_target): Don't inherit or default
167 to_remove_fork_catchpoint.
168 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
169 TARGET_DEFAULT_RETURN.
171 2014-02-19 Tom Tromey <tromey@redhat.com>
173 * target-delegates.c: Rebuild.
174 * target.c (update_current_target): Don't inherit or default
175 to_insert_fork_catchpoint.
176 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
177 TARGET_DEFAULT_RETURN.
179 2014-02-19 Tom Tromey <tromey@redhat.com>
181 * target-delegates.c: Rebuild.
182 * target.c (update_current_target): Don't inherit or default
183 to_post_startup_inferior.
184 * target.h (struct target_ops) <to_post_startup_inferior>: Use
185 TARGET_DEFAULT_IGNORE.
187 2014-02-19 Tom Tromey <tromey@redhat.com>
189 * target-delegates.c: Rebuild.
190 * target.c (update_current_target): Don't inherit or default
192 * target.h (struct target_ops) <to_load>: Use
193 TARGET_DEFAULT_NORETURN.
195 2014-02-19 Tom Tromey <tromey@redhat.com>
197 * target-delegates.c: Rebuild.
198 * target.c (update_current_target): Don't inherit or default
200 * target.h (struct target_ops) <to_terminal_info>: Use
203 2014-02-19 Tom Tromey <tromey@redhat.com>
205 * target-delegates.c: Rebuild.
206 * target.c (update_current_target): Don't inherit or default
207 to_terminal_save_ours.
208 * target.h (struct target_ops) <to_terminal_save_ours>: Use
209 TARGET_DEFAULT_IGNORE.
211 2014-02-19 Tom Tromey <tromey@redhat.com>
213 * target-delegates.c: Rebuild.
214 * target.c (update_current_target): Don't inherit or default
216 * target.h (struct target_ops) <to_terminal_ours>: Use
217 TARGET_DEFAULT_IGNORE.
219 2014-02-19 Tom Tromey <tromey@redhat.com>
221 * target-delegates.c: Rebuild.
222 * target.c (update_current_target): Don't inherit or default
223 to_terminal_ours_for_output.
224 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
225 TARGET_DEFAULT_IGNORE.
227 2014-02-19 Tom Tromey <tromey@redhat.com>
229 * target-delegates.c: Rebuild.
230 * target.c (update_current_target): Don't inherit or default
231 to_terminal_inferior.
232 * target.h (struct target_ops) <to_terminal_inferior>: Use
233 TARGET_DEFAULT_IGNORE.
235 2014-02-19 Tom Tromey <tromey@redhat.com>
237 * target-delegates.c: Rebuild.
238 * target.c (update_current_target): Don't inherit or default
240 * target.h (struct target_ops) <to_terminal_init>: Use
241 TARGET_DEFAULT_IGNORE.
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target-delegates.c: Rebuild.
246 * target.c (update_current_target): Don't inherit or default
247 to_can_accel_watchpoint_condition.
248 * target.h (struct target_ops)
249 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
251 2014-02-19 Tom Tromey <tromey@redhat.com>
253 * target-delegates.c: Rebuild.
254 * target.c (update_current_target): Don't inherit or default
255 to_region_ok_for_hw_watchpoint.
256 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
257 Use TARGET_DEFAULT_FUNC.
259 2014-02-19 Tom Tromey <tromey@redhat.com>
261 * target-delegates.c: Rebuild.
262 * target.c (update_current_target): Don't inherit or default
263 to_watchpoint_addr_within_range.
264 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
265 Use TARGET_DEFAULT_FUNC.
267 2014-02-19 Tom Tromey <tromey@redhat.com>
269 * target-delegates.c: Rebuild.
270 * target.c (update_current_target): Don't inherit or default
271 to_remove_watchpoint.
272 * target.h (struct target_ops) <to_remove_watchpoint>: Use
273 TARGET_DEFAULT_NORETURN.
275 2014-02-19 Tom Tromey <tromey@redhat.com>
277 * target-delegates.c: Rebuild.
278 * target.c (update_current_target): Don't inherit or default
279 to_insert_watchpoint.
280 * target.h (struct target_ops) <to_insert_watchpoint>: Use
281 TARGET_DEFAULT_RETURN.
283 2014-02-19 Tom Tromey <tromey@redhat.com>
285 * target-delegates.c: Rebuild.
286 * target.c (update_current_target): Don't inherit or default
287 to_remove_hw_breakpoint.
288 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
289 TARGET_DEFAULT_RETURN.
291 2014-02-19 Tom Tromey <tromey@redhat.com>
293 * target-delegates.c: Rebuild.
294 * target.c (update_current_target): Don't inherit or default
295 to_insert_hw_breakpoint.
296 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
297 TARGET_DEFAULT_RETURN.
299 2014-02-19 Tom Tromey <tromey@redhat.com>
301 * target-delegates.c: Rebuild.
302 * target.c (update_current_target): Don't inherit or default
303 to_can_use_hw_breakpoint.
304 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
305 TARGET_DEFAULT_RETURN.
307 2014-02-19 Tom Tromey <tromey@redhat.com>
309 * target-delegates.c: Rebuild.
310 * target.c (update_current_target): Don't inherit or default
312 * target.h (struct target_ops) <to_files_info>: Use
313 TARGET_DEFAULT_IGNORE.
315 2014-02-19 Tom Tromey <tromey@redhat.com>
317 * target-delegates.c: Rebuild.
318 * target.c (update_current_target): Don't inherit or default
320 * target.h (struct target_ops) <to_store>: Use
321 TARGET_DEFAULT_NORETURN.
323 2014-02-19 Tom Tromey <tromey@redhat.com>
325 * target-delegates.c: Rebuild.
326 * target.c (update_current_target): Don't inherit or default
328 * target.h (struct target_ops) <to_post_attach>: Use
329 TARGET_DEFAULT_IGNORE.
331 2014-02-19 Tom Tromey <tromey@redhat.com>
333 * target-delegates.c: Rebuild.
334 * target.c (update_current_target): Don't inherit or default
336 (default_rcmd): New function.
337 (do_monitor_command): Unconditionally delegate.
338 * target.h (struct target_ops) <to_rmcd>: Use
341 2014-02-19 Tom Tromey <tromey@redhat.com>
343 * target-delegates.c: Rebuild.
344 * target.c (init_dummy_target): Don't initialize to_attach.
345 (target_attach): Unconditionally delegate.
346 * target.h (struct target_ops) <to_attach>: Use
349 2014-02-19 Tom Tromey <tromey@redhat.com>
351 * target-delegates.c: Rebuild.
352 * target.c (target_detach): Unconditionally delegate.
353 (init_dummy_target): Don't initialize to_detach.
354 * target.h (struct target_ops) <to_detach>: Use
355 TARGET_DEFAULT_IGNORE.
357 2014-02-19 Tom Tromey <tromey@redhat.com>
359 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
361 (target_augmented_libraries_svr4_read): Add argument.
362 * target.c (update_current_target): Update.
363 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_call_history_range>: Add
370 * target.c (target_call_history_range): Add argument.
371 * record-btrace.c (record_btrace_call_history_range): Add 'self'
373 (record_btrace_call_history_from): Update.
375 2014-02-19 Tom Tromey <tromey@redhat.com>
377 * target.h (struct target_ops) <to_call_history_from>: Add
379 * target.c (target_call_history_from): Add argument.
380 * record-btrace.c (record_btrace_call_history_from): Add 'self'
383 2014-02-19 Tom Tromey <tromey@redhat.com>
385 * target.h (struct target_ops) <to_call_history>: Add argument.
386 * target.c (target_call_history): Add argument.
387 * record-btrace.c (record_btrace_call_history): Add 'self'
390 2014-02-19 Tom Tromey <tromey@redhat.com>
392 * target.h (struct target_ops) <to_insn_history_range>: Add
394 * target.c (target_insn_history_range): Add argument.
395 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
397 (record_btrace_insn_history_from): Update.
399 2014-02-19 Tom Tromey <tromey@redhat.com>
401 * target.h (struct target_ops) <to_insn_history_from>: Add
403 * target.c (target_insn_history_from): Add argument.
404 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
407 2014-02-19 Tom Tromey <tromey@redhat.com>
409 * target.h (struct target_ops) <to_insn_history>: Add argument.
410 * target.c (target_insn_history): Add argument.
411 * record-btrace.c (record_btrace_insn_history): Add 'self'
414 2014-02-19 Tom Tromey <tromey@redhat.com>
416 * target.h (struct target_ops) <to_goto_record>: Add argument.
417 * target.c (target_goto_record): Add argument.
418 * record-full.c (record_full_goto): Add 'self' argument.
419 * record-btrace.c (record_btrace_goto): Add 'self' argument.
421 2014-02-19 Tom Tromey <tromey@redhat.com>
423 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
424 * target.c (target_goto_record_end): Add argument.
425 * record-full.c (record_full_goto_end): Add 'self' argument.
426 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
428 2014-02-19 Tom Tromey <tromey@redhat.com>
430 * target.h (struct target_ops) <to_goto_record_begin>: Add
432 * target.c (target_goto_record_begin): Add argument.
433 * record-full.c (record_full_goto_begin): Add 'self' argument.
434 * record-btrace.c (record_btrace_goto_begin): Add 'self'
437 2014-02-19 Tom Tromey <tromey@redhat.com>
439 * target.h (struct target_ops) <to_record_is_replaying>: Add
441 * target.c (target_record_is_replaying): Add argument.
442 * record-full.c (record_full_is_replaying): Add 'self' argument.
443 * record-btrace.c (record_btrace_is_replaying): Add 'self'
445 (record_btrace_xfer_partial, record_btrace_store_registers)
446 (record_btrace_prepare_to_store, record_btrace_resume)
447 (record_btrace_wait, record_btrace_decr_pc_after_break)
448 (record_btrace_find_new_threads, record_btrace_thread_alive):
451 2014-02-19 Tom Tromey <tromey@redhat.com>
453 * target.h (struct target_ops) <to_delete_record>: Add argument.
454 * target.c (target_delete_record): Add argument.
455 * record-full.c (record_full_delete): Add 'self' argument.
457 2014-02-19 Tom Tromey <tromey@redhat.com>
459 * target.h (struct target_ops) <to_save_record>: Add argument.
460 * target.c (target_save_record): Add argument.
461 * record-full.c (record_full_save): Add 'self' argument.
462 (record_full_save): Add 'self' argument.
464 2014-02-19 Tom Tromey <tromey@redhat.com>
466 * target.h (struct target_ops) <to_info_record>: Add argument.
467 * target.c (target_info_record): Add argument.
468 * record.c (info_record_command): Add argument.
469 * record-full.c (record_full_info): Add 'self' argument.
470 * record-btrace.c (record_btrace_info): Add 'self' argument.
472 2014-02-19 Tom Tromey <tromey@redhat.com>
474 * target.h (struct target_ops) <to_stop_recording>: Add argument.
475 * target.c (target_stop_recording): Add argument.
476 * record.c (record_stop): Add argument.
477 * record-btrace.c (record_btrace_stop_recording): Add 'self'
480 2014-02-19 Tom Tromey <tromey@redhat.com>
482 * target.h (struct target_ops) <to_read_btrace>: Add argument.
483 * target.c (struct target_ops) <to_read_btrace>: Add argument.
484 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
486 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
487 (_initialize_amd64_linux_nat): Use it.
488 * i386-linux-nat.c (i386_linux_read_btrace): New function.
489 (_initialize_i386_linux_nat): Use it.
491 2014-02-19 Tom Tromey <tromey@redhat.com>
493 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
494 * target.c (target_teardown_btrace): Add argument.
495 * remote.c (remote_teardown_btrace): Add 'self' argument.
496 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
498 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
501 2014-02-19 Tom Tromey <tromey@redhat.com>
503 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
504 * target.c (target_disable_btrace): Add argument.
505 * remote.c (remote_disable_btrace): Add 'self' argument.
506 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
508 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
511 2014-02-19 Tom Tromey <tromey@redhat.com>
513 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
514 * target.c (target_enable_btrace): Add argument.
515 * remote.c (remote_enable_btrace): Add 'self' argument.
516 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
518 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
521 2014-02-19 Tom Tromey <tromey@redhat.com>
523 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
524 (target_can_use_agent): Add argument.
525 * target.c (update_current_target): Update.
526 * remote.c (remote_can_use_agent): Add 'self' argument.
527 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
529 2014-02-19 Tom Tromey <tromey@redhat.com>
531 * target.h (struct target_ops) <to_use_agent>: Add argument.
532 (target_use_agent): Add argument.
533 * target.c (update_current_target): Update.
534 * remote.c (remote_use_agent): Add 'self' argument.
535 * inf-child.c (inf_child_use_agent): Add 'self' argument.
537 2014-02-19 Tom Tromey <tromey@redhat.com>
539 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
540 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
541 (target_traceframe_info): Add argument.
542 * target.c (update_current_target): Update.
543 * remote.c (remote_traceframe_info): Add 'self' argument.
544 * ctf.c (ctf_traceframe_info): Add 'self' argument.
546 2014-02-19 Tom Tromey <tromey@redhat.com>
548 * target.h (target_static_tracepoint_markers_by_strid): Add
550 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
552 * target.c (update_current_target): Update.
553 * remote.c (struct target_ops)
554 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
555 * linux-nat.c (struct target_ops)
556 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
558 2014-02-19 Tom Tromey <tromey@redhat.com>
560 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
562 (target_static_tracepoint_marker_at): Add argument.
563 * target.c (update_current_target): Update.
564 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
567 2014-02-19 Tom Tromey <tromey@redhat.com>
569 * target.h (struct target_ops) <to_set_permissions>: Add argument.
570 (target_set_permissions): Add argument.
571 * target.c (update_current_target): Update.
572 * remote.c (remote_set_permissions): Add 'self' argument.
573 (remote_start_remote): Update.
575 2014-02-19 Tom Tromey <tromey@redhat.com>
577 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
578 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
579 (target_get_tib_address): Add argument.
580 * target.c (update_current_target): Update.
581 * remote.c (remote_get_tib_address): Add 'self' argument.
583 2014-02-19 Tom Tromey <tromey@redhat.com>
585 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
586 (target_set_trace_notes): Add argument.
587 * target.c (update_current_target): Update.
588 * remote.c (remote_set_trace_notes): Add 'self' argument.
590 2014-02-19 Tom Tromey <tromey@redhat.com>
592 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
594 (target_set_trace_buffer_size): Add argument.
595 * target.c (update_current_target): Update.
596 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
598 2014-02-19 Tom Tromey <tromey@redhat.com>
600 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
602 (target_set_circular_trace_buffer): Add argument.
603 * target.c (update_current_target): Update.
604 * remote.c (remote_set_circular_trace_buffer): Add 'self'
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
611 (target_set_disconnected_tracing): Add argument.
612 * target.c (update_current_target): Update.
613 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
615 2014-02-19 Tom Tromey <tromey@redhat.com>
617 * target.h (struct target_ops)
618 <to_get_min_fast_tracepoint_insn_len>: Add argument.
619 (target_get_min_fast_tracepoint_insn_len): Add argument.
620 * target.c (update_current_target): Update.
621 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
624 2014-02-19 Tom Tromey <tromey@redhat.com>
626 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
628 (target_get_raw_trace_data): Add argument.
629 * target.c (update_current_target): Update.
630 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
632 2014-02-19 Tom Tromey <tromey@redhat.com>
634 * target.h (struct target_ops) <to_upload_trace_state_variables>:
636 (target_upload_trace_state_variables): Add argument.
637 * target.c (update_current_target): Update.
638 * remote.c (remote_upload_trace_state_variables): Add 'self'
640 (remote_start_remote): Update.
642 2014-02-19 Tom Tromey <tromey@redhat.com>
644 * target.h (struct target_ops) <to_upload_tracepoints>: Add
646 (target_upload_tracepoints): Add argument.
647 * target.c (update_current_target): Update.
648 * remote.c (remote_upload_tracepoints): Add 'self' argument.
649 (remote_start_remote): Update.
651 2014-02-19 Tom Tromey <tromey@redhat.com>
653 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
654 (target_save_trace_data): Add argument.
655 * target.c (update_current_target): Update.
656 * remote.c (remote_save_trace_data): Add 'self' argument.
658 2014-02-19 Tom Tromey <tromey@redhat.com>
660 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
662 * target.h (struct target_ops)
663 <to_get_trace_state_variable_value>: Add argument.
664 (target_get_trace_state_variable_value): Add argument.
665 * target.c (update_current_target): Update.
666 * remote.c (remote_get_trace_state_variable_value): Add 'self'
668 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
670 2014-02-19 Tom Tromey <tromey@redhat.com>
672 * tracepoint.c (tfile_trace_find): Add 'self' argument.
673 * target.h (struct target_ops) <to_trace_find>: Add argument.
674 (target_trace_find): Add argument.
675 * target.c (update_current_target): Update.
676 * remote.c (remote_trace_find): Add 'self' argument.
677 * ctf.c (ctf_trace_find): Add 'self' argument.
679 2014-02-19 Tom Tromey <tromey@redhat.com>
681 * target.h (struct target_ops) <to_trace_stop>: Add argument.
682 (target_trace_stop): Add argument.
683 * target.c (update_current_target): Update.
684 * remote.c (remote_trace_stop): Add 'self' argument.
686 2014-02-19 Tom Tromey <tromey@redhat.com>
688 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
689 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
691 (target_get_tracepoint_status): Add argument.
692 * target.c (update_current_target): Update.
693 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
695 2014-02-19 Tom Tromey <tromey@redhat.com>
697 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
698 * target.h (struct target_ops) <to_get_trace_status>: Add
700 (target_get_trace_status): Add argument.
701 * target.c (update_current_target): Update.
702 * remote.c (remote_get_trace_status): Add 'self' argument.
703 (remote_start_remote, remote_can_download_tracepoint): Update.
704 * ctf.c (ctf_get_trace_status): Add 'self' argument.
706 2014-02-19 Tom Tromey <tromey@redhat.com>
708 * target.h (struct target_ops) <to_trace_start>: Add argument.
709 (target_trace_start): Add argument.
710 * target.c (update_current_target): Update.
711 * remote.c (remote_trace_start): Add 'self' argument.
713 2014-02-19 Tom Tromey <tromey@redhat.com>
715 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
717 (target_trace_set_readonly_regions): Add argument.
718 * target.c (update_current_target): Update.
719 * remote.c (remote_trace_set_readonly_regions): Add 'self'
722 2014-02-19 Tom Tromey <tromey@redhat.com>
724 * target.h (struct target_ops) <to_disable_tracepoint>: Add
726 (target_disable_tracepoint): Add argument.
727 * target.c (update_current_target): Update.
728 * remote.c (remote_disable_tracepoint): Add 'self' argument.
730 2014-02-19 Tom Tromey <tromey@redhat.com>
732 * target.h (struct target_ops) <to_enable_tracepoint>: Add
734 (target_enable_tracepoint): Add argument.
735 * target.c (update_current_target): Update.
736 * remote.c (remote_enable_tracepoint): Add 'self' argument.
738 2014-02-19 Tom Tromey <tromey@redhat.com>
740 * target.h (struct target_ops) <to_download_trace_state_variable>:
742 (target_download_trace_state_variable): Add argument.
743 * target.c (update_current_target): Update.
744 * remote.c (remote_download_trace_state_variable): Add 'self'
747 2014-02-19 Tom Tromey <tromey@redhat.com>
749 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
751 (target_can_download_tracepoint): Add argument.
752 * target.c (update_current_target): Update.
753 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
755 2014-02-19 Tom Tromey <tromey@redhat.com>
757 * target.h (struct target_ops) <to_download_tracepoint>: Add
759 (target_download_tracepoint): Add argument.
760 * target.c (update_current_target): Update.
761 * remote.c (remote_download_tracepoint): Add 'self' argument.
763 2014-02-19 Tom Tromey <tromey@redhat.com>
765 * target.h (struct target_ops) <to_trace_init>: Add argument.
766 (target_trace_init): Add argument.
767 * target.c (update_current_target): Update.
768 * remote.c (remote_trace_init): Add 'self' argument.
770 2014-02-19 Tom Tromey <tromey@redhat.com>
772 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
773 * target.c (target_fileio_readlink): Add argument.
774 * remote.c (remote_hostio_readlink): Add 'self' argument.
775 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
777 2014-02-19 Tom Tromey <tromey@redhat.com>
779 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
780 * target.c (target_fileio_unlink): Add argument.
781 * remote.c (remote_hostio_unlink): Add 'self' argument.
782 (remote_file_delete): Update.
783 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
785 2014-02-19 Tom Tromey <tromey@redhat.com>
787 * target.h (struct target_ops) <to_fileio_close>: Add argument.
788 * target.c (target_fileio_close): Add argument.
789 * remote.c (remote_hostio_close): Add 'self' argument.
790 (remote_hostio_close_cleanup): Update.
791 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
793 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
795 2014-02-19 Tom Tromey <tromey@redhat.com>
797 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
798 * target.c (target_fileio_pread): Add argument.
799 * remote.c (remote_hostio_pread): Add 'self' argument.
800 (remote_bfd_iovec_pread, remote_file_get): Update.
801 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
803 2014-02-19 Tom Tromey <tromey@redhat.com>
805 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
806 * target.c (target_fileio_pwrite): Add argument.
807 * remote.c (remote_hostio_pwrite): Add 'self' argument.
808 (remote_file_put): Update.
809 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
811 2014-02-19 Tom Tromey <tromey@redhat.com>
813 * target.h (struct target_ops) <to_fileio_open>: Add argument.
814 * target.c (target_fileio_open): Add argument.
815 * remote.c (remote_hostio_open): Add 'self' argument.
816 (remote_bfd_iovec_open): Add 'self' argument.
817 (remote_file_put): Add 'self' argument.
818 (remote_file_get): Add 'self' argument.
819 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
821 2014-02-19 Tom Tromey <tromey@redhat.com>
823 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
825 (target_can_run_breakpoint_commands): Add argument.
826 * target.c (update_current_target): Update.
827 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
829 (remote_insert_breakpoint): Add 'self' argument.
830 (remote_insert_hw_breakpoint): Add 'self' argument.
831 (remote_can_run_breakpoint_commands): Add 'self' argument.
833 2014-02-19 Tom Tromey <tromey@redhat.com>
835 * target.h (struct target_ops)
836 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
837 (target_supports_evaluation_of_breakpoint_conditions): Add
839 * target.c (update_current_target): Update.
840 * remote.c (remote_supports_cond_breakpoints): Add 'self'
842 (remote_insert_breakpoint): Add 'self' argument.
843 (remote_insert_hw_breakpoint): Add 'self' argument.
844 (remote_supports_cond_breakpoints): Add 'self' argument.
846 2014-02-19 Tom Tromey <tromey@redhat.com>
848 * target.h (struct target_ops) <to_supports_string_tracing>: Add
850 (target_supports_string_tracing): Add argument.
851 * target.c (update_current_target): Update.
852 * remote.c (remote_supports_string_tracing): Add 'self' argument.
854 2014-02-19 Tom Tromey <tromey@redhat.com>
856 * target.h (struct target_ops)
857 <to_supports_disable_randomization>: Add argument.
858 * target.c (find_default_supports_disable_randomization): Add
860 (target_supports_disable_randomization): Add argument.
861 (find_default_supports_disable_randomization): Add 'self'
863 * remote.c (extended_remote_supports_disable_randomization): Add
865 (remote_supports_disable_randomization): Add 'self' argument.
866 (extended_remote_create_inferior): Update.
867 * linux-nat.c (linux_nat_supports_disable_randomization): Add
870 2014-02-19 Tom Tromey <tromey@redhat.com>
872 * target.h (struct target_ops)
873 <to_supports_enable_disable_tracepoint>: Add argument.
874 (target_supports_enable_disable_tracepoint): Add argument.
875 * target.c (update_current_target): Update.
876 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
879 2014-02-19 Tom Tromey <tromey@redhat.com>
881 * target.h (struct target_ops) <to_supports_multi_process>: Add
883 (target_supports_multi_process): Add argument.
884 * target.c (update_current_target): Update.
885 * remote.c (remote_supports_multi_process): Add 'self' argument.
886 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
888 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
891 2014-02-19 Tom Tromey <tromey@redhat.com>
893 * target.h (struct target_ops) <to_execution_direction>: Add
895 (target_execution_direction): Add argument.
896 * target.c (default_execution_direction): Add 'self' argument.
897 * record-full.c (record_full_execution_direction): Add 'self'
900 2014-02-19 Tom Tromey <tromey@redhat.com>
902 * target.h (struct target_ops) <to_can_execute_reverse>: Add
904 (target_can_execute_reverse): Add argument.
905 * remote.c (remote_can_execute_reverse): Add 'self' argument.
906 * record-full.c (record_full_can_execute_reverse): Add 'self'
908 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
911 2014-02-19 Tom Tromey <tromey@redhat.com>
913 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
914 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
916 (target_get_ada_task_ptid): Add argument.
917 * target.c (update_current_target): Update.
918 (default_get_ada_task_ptid): Add 'self' argument.
919 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
920 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
921 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
923 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
925 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
927 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
929 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
930 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
933 2014-02-19 Tom Tromey <tromey@redhat.com>
935 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
936 (target_goto_bookmark): Add argument.
937 * target.c (dummy_goto_bookmark): Add 'self' argument.
938 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
940 2014-02-19 Tom Tromey <tromey@redhat.com>
942 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
943 (target_get_bookmark): Add argument.
944 * target.c (dummy_get_bookmark): Add 'self' argument.
945 * record-full.c (record_full_get_bookmark): Add 'self' argument.
947 2014-02-19 Tom Tromey <tromey@redhat.com>
949 * target.h (struct target_ops) <to_make_corefile_notes>: Add
951 (target_make_corefile_notes): Add argument.
952 * target.c (dummy_make_corefile_notes): Add 'self' argument.
953 * procfs.c (procfs_make_note_section): Add 'self' argument.
954 (procfs_make_note_section): Add 'self' argument.
955 (procfs_make_note_section): Add 'self' argument.
956 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
958 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
959 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
960 * exec.c (exec_make_note_section): Add 'self' argument.
961 (exec_make_note_section): Add 'self' argument.
963 2014-02-19 Tom Tromey <tromey@redhat.com>
965 * target.h (struct target_ops) <to_find_memory_regions>: Add
967 (target_find_memory_regions): Add argument.
968 * target.c (dummy_find_memory_regions): Add 'self' argument.
969 * procfs.c (proc_find_memory_regions): Add 'self' argument.
970 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
971 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
972 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
973 * exec. (exec_do_find_memory_regions): New global.
974 (exec_set_find_memory_regions): Rewrite.
975 (exec_find_memory_regions): New function.
976 (init_exec_ops): Use exec_find_memory_regions.
978 2014-02-19 Tom Tromey <tromey@redhat.com>
980 * target.h (struct target_ops) <to_supports_non_stop>: Add
982 * target.c (find_default_supports_non_stop): Add argument.
983 (target_supports_non_stop): Add argument.
984 (find_default_supports_non_stop): Add 'self' argument.
985 * remote.c (remote_supports_non_stop): Add 'self' argument.
986 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
988 2014-02-19 Tom Tromey <tromey@redhat.com>
990 * target.h (struct target_ops) <to_log_command>: Add argument.
991 (target_log_command): Add argument.
992 * serial.h (serial_log_command): Add 'self' argument.
993 * serial.c (serial_log_command): Add 'self' argument.
995 2014-02-19 Tom Tromey <tromey@redhat.com>
997 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
998 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
1000 (target_pid_to_exec_file): Add argument.
1001 * target.c (debug_to_pid_to_exec_file): Add argument.
1002 (update_current_target): Update.
1003 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
1004 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
1005 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
1006 (linux_handle_extended_wait): Update.
1007 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
1008 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
1009 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
1010 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
1012 2014-02-19 Tom Tromey <tromey@redhat.com>
1014 * target.h (struct target_ops) <to_rcmd>: Add argument.
1015 (target_rcmd): Add argument.
1016 * target.c (debug_to_rcmd): Add argument.
1017 (update_current_target, do_monitor_command): Update.
1018 * remote.c (remote_rcmd): Add 'self' argument.
1019 * monitor.c (monitor_rcmd): Add 'self' argument.
1021 2014-02-19 Tom Tromey <tromey@redhat.com>
1023 * windows-nat.c (windows_stop): Add 'self' argument.
1024 * target.h (struct target_ops) <to_stop>: Add argument.
1025 * target.c (target_stop): Add argument.
1026 (debug_to_stop): Add argument.
1027 (update_current_target): Update.
1028 * remote.c (remote_stop): Add 'self' argument.
1029 * remote-sim.c (gdbsim_stop): Add 'self' argument.
1030 (gdbsim_cntrl_c): Update.
1031 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
1032 * procfs.c (procfs_stop): Add 'self' argument.
1033 * nto-procfs.c (procfs_stop): Add 'self' argument.
1034 * monitor.c (monitor_stop): Add 'self' argument.
1035 (monitor_open): Update.
1036 * linux-nat.c (linux_nat_stop): Add argument.
1037 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
1038 * gnu-nat.c (gnu_stop): Add 'self' argument.
1039 * darwin-nat.c (darwin_stop): Add 'self' argument.
1041 2014-02-19 Tom Tromey <tromey@redhat.com>
1043 * target.h (struct target_ops) <to_thread_name>: Add argument.
1044 * target.c (target_thread_name): Add argument.
1045 (update_current_target): Update.
1046 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
1048 2014-02-19 Tom Tromey <tromey@redhat.com>
1050 * target.h (struct target_ops) <to_extra_thread_info>: Add
1052 (target_extra_thread_info): Add argument.
1053 * target.c (update_current_target): Update.
1054 * remote.c (remote_threads_extra_info): Add 'self' argument.
1055 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
1057 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
1058 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
1059 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
1061 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
1063 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
1065 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
1068 2014-02-19 Tom Tromey <tromey@redhat.com>
1070 * target.h (struct target_ops) <to_program_signals>: Add argument.
1071 * target.c (target_program_signals): Add argument.
1072 * remote.c (remote_program_signals): Add 'self' argument.
1074 2014-02-19 Tom Tromey <tromey@redhat.com>
1076 * target.h (struct target_ops) <to_pass_signals>: Add argument.
1077 * target.c (target_pass_signals): Add argument.
1078 * remote.c (remote_pass_signals): Add 'self' argument.
1079 (remote_start_remote): Update.
1080 * procfs.c (procfs_pass_signals): Add 'self' argument.
1081 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
1082 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
1083 (linux_nat_create_inferior, linux_nat_attach): Update.
1085 2014-02-19 Tom Tromey <tromey@redhat.com>
1087 * windows-nat.c (windows_can_run): Add 'self' argument.
1088 * target.h (struct target_ops) <to_can_run>: Add argument.
1089 (target_can_run): Add argument.
1090 * target.c (debug_to_can_run): Add argument.
1091 (update_current_target): Update.
1092 * nto-procfs.c (procfs_can_run): Add 'self' argument.
1093 * inf-child.c (inf_child_can_run): Add 'self' argument.
1094 * go32-nat.c (go32_can_run): Add 'self' argument.
1096 2014-02-19 Tom Tromey <tromey@redhat.com>
1098 * target.h (struct target_ops) <to_has_exited>: Add argument.
1099 (target_has_exited): Add argument.
1100 * target.c (debug_to_has_exited): Add argument.
1101 (update_current_target): Update.
1103 2014-02-19 Tom Tromey <tromey@redhat.com>
1105 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
1107 (target_set_syscall_catchpoint): Add argument.
1108 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
1110 * target.c (update_current_target): Update.
1112 2014-02-19 Tom Tromey <tromey@redhat.com>
1114 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1116 (target_remove_exec_catchpoint): Add argument.
1117 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1118 (update_current_target): Update.
1119 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1122 2014-02-19 Tom Tromey <tromey@redhat.com>
1124 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1126 (target_insert_exec_catchpoint): Add argument.
1127 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1128 (update_current_target): Update.
1129 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1132 2014-02-19 Tom Tromey <tromey@redhat.com>
1134 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1136 (target_remove_vfork_catchpoint): Add argument.
1137 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1138 (update_current_target): Update.
1139 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1142 2014-02-19 Tom Tromey <tromey@redhat.com>
1144 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1146 (target_insert_vfork_catchpoint): Add argument.
1147 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1148 (update_current_target): Update.
1149 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1152 2014-02-19 Tom Tromey <tromey@redhat.com>
1154 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1156 (target_remove_fork_catchpoint): Add argument.
1157 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1158 (update_current_target): Update.
1159 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1162 2014-02-19 Tom Tromey <tromey@redhat.com>
1164 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1166 (target_insert_fork_catchpoint): Add argument.
1167 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1168 (update_current_target): Update.
1169 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1172 2014-02-19 Tom Tromey <tromey@redhat.com>
1174 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1176 (target_post_startup_inferior): Add argument.
1177 * target.c (debug_to_post_startup_inferior): Add argument.
1178 (update_current_target): Update.
1179 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1181 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1183 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1185 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1187 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1189 (super_post_startup_inferior): Likewise.
1190 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1192 (super_post_startup_inferior): Likewise.
1193 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1194 Add 'self' argument.
1195 (super_post_startup_inferior): Likewise.
1197 2014-02-19 Tom Tromey <tromey@redhat.com>
1199 * target.h (struct target_ops) <to_load>: Add argument.
1200 * target.c (target_load): Add argument.
1201 (debug_to_load): Add argument.
1202 (update_current_target): Update.
1203 * remote.c (remote_load): Add 'self' argument.
1204 * remote-sim.c (gdbsim_load): Add 'self' argument.
1205 * remote-mips.c (mips_load): Add 'self' argument.
1206 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1207 * monitor.c (monitor_load): Add 'self' argument.
1208 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1210 2014-02-19 Tom Tromey <tromey@redhat.com>
1212 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1213 (target_terminal_info): Add argument.
1214 * target.c (debug_to_terminal_info): Add argument.
1215 (default_terminal_info): Likewise.
1216 * inflow.c (child_terminal_info): Add 'self' argument.
1217 * inferior.h (child_terminal_info): Add 'self' argument.
1218 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1220 2014-02-19 Tom Tromey <tromey@redhat.com>
1222 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1224 (target_terminal_save_ours): Add argument.
1225 * target.c (debug_to_terminal_save_ours): Add argument.
1226 (update_current_target): Update.
1227 * inflow.c (terminal_save_ours): Add 'self' argument.
1228 * inferior.h (terminal_save_ours): Add 'self' argument.
1230 2014-02-19 Tom Tromey <tromey@redhat.com>
1232 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1233 (target_terminal_ours): Add argument.
1234 * target.c (debug_to_terminal_ours): Add argument.
1235 (update_current_target): Update.
1236 * remote.c (remote_terminal_ours): Add 'self' argument.
1237 (remote_close): Update.
1238 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1239 * inflow.c (terminal_ours): Add 'self' argument.
1240 * inferior.h (terminal_ours): Add 'self' argument.
1241 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1243 2014-02-19 Pedro Alves <palves@redhat.com>
1244 Tom Tromey <tromey@redhat.com>
1246 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1248 (target_terminal_ours_for_output): Add argument.
1249 * target.c (debug_to_terminal_ours_for_output): Add argument.
1250 (update_current_target): Update.
1251 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1252 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1253 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1255 2014-02-19 Tom Tromey <tromey@redhat.com>
1257 * target.h (struct target_ops) <to_terminal_inferior>: Add
1259 * target.c (target_terminal_inferior): Add argument.
1260 (update_current_target): Update.
1261 * remote.c (remote_terminal_inferior): Add 'self' argument.
1262 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1263 * inflow.c (terminal_inferior): Add 'self' argument.
1264 * inferior.h (terminal_inferior): Add 'self' argument.
1265 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1266 (go32_terminal_inferior): Add 'self' argument.
1268 2014-02-19 Tom Tromey <tromey@redhat.com>
1270 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1271 (target_terminal_init): Add argument.
1272 * target.c (debug_to_terminal_init): Add argument.
1273 (update_current_target): Update.
1274 * inflow.c (terminal_init_inferior): Add 'self' argument.
1275 * inferior.h (terminal_init_inferior): Add 'self' argument.
1276 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1277 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1279 2014-02-19 Tom Tromey <tromey@redhat.com>
1281 * target.h (struct target_ops)
1282 <to_can_accel_watchpoint_condition>: Add argument.
1283 (target_can_accel_watchpoint_condition): Add argument.
1284 * target.c (debug_to_can_accel_watchpoint_condition): Add
1286 (update_current_target): Update.
1287 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1290 2014-02-19 Tom Tromey <tromey@redhat.com>
1292 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1294 (target_region_ok_for_hw_watchpoint): Add argument.
1295 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1296 (default_region_ok_for_hw_watchpoint): Add argument.
1297 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1298 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1300 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1302 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1304 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1306 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1308 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1310 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1311 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1313 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1314 Add 'self' argument.
1316 2014-02-19 Tom Tromey <tromey@redhat.com>
1318 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1320 (target_insert_watchpoint): Add argument.
1321 * target.c (debug_to_insert_watchpoint): Add argument.
1322 (update_current_target): Update.
1323 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1324 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1325 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1326 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1327 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1328 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1330 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1331 (procfs_insert_hw_watchpoint): Add 'self' argument.
1332 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1334 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1336 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1338 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1339 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1341 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1344 2014-02-19 Tom Tromey <tromey@redhat.com>
1346 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1348 (target_remove_watchpoint): Add argument.
1349 * target.c (debug_to_remove_watchpoint): Add argument.
1350 (update_current_target): Update.
1351 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1352 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1353 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1354 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1355 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1356 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1358 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1359 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1361 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1363 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1365 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1366 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1368 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1371 2014-02-19 Tom Tromey <tromey@redhat.com>
1373 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1375 (target_remove_hw_breakpoint): Add argument.
1376 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1377 (update_current_target): Update.
1378 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1379 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1381 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1382 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1384 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1387 2014-02-19 Tom Tromey <tromey@redhat.com>
1389 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1391 (target_insert_hw_breakpoint): Add argument.
1392 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1393 (update_current_target): Update.
1394 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1395 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1397 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1398 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1399 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1401 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1404 2014-02-19 Tom Tromey <tromey@redhat.com>
1406 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1408 (target_can_use_hardware_watchpoint): Add argument.
1409 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1410 (update_current_target): Update.
1411 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1413 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1415 * remote.c (remote_check_watch_resources): Add 'self' argument.
1416 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1417 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1419 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1420 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1422 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1424 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1426 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1428 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1430 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1432 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1433 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1435 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1438 2014-02-19 Tom Tromey <tromey@redhat.com>
1440 * target.h (struct target_ops) <to_post_attach>: Add argument.
1441 (target_post_attach): Add argument.
1442 * target.c (debug_to_post_attach): Add argument.
1443 (update_current_target): Update.
1444 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1445 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1446 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1447 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1448 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1450 2014-02-19 Tom Tromey <tromey@redhat.com>
1452 * windows-nat.c (windows_close): Add 'self' argument.
1453 * tracepoint.c (tfile_close): Add 'self' argument.
1454 * target.h (struct target_ops) <to_close>: Add argument.
1455 * target.c (target_close): Add argument.
1456 (update_current_target): Update.
1457 * remote.c (remote_close): Add 'self' argument.
1458 * remote-sim.c (gdbsim_close): Add 'self' argument.
1459 * remote-mips.c (mips_close): Add 'self' argument.
1460 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1461 * record-full.c (record_full_close): Add 'self' argument.
1462 * record-btrace.c (record_btrace_close): Add 'self' argument.
1463 * monitor.h (monitor_close): Add 'self' argument.
1464 * monitor.c (monitor_close): Add 'self' argument.
1465 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1466 * linux-nat.c (linux_nat_close): Add argument.
1467 * go32-nat.c (go32_close): Add 'self' argument.
1468 * exec.c (exec_close_1): Add 'self' argument.
1469 * ctf.c (ctf_close): Add 'self' argument.
1470 * corelow.c (core_close): Add 'self' argument.
1471 (core_close_cleanup): Update.
1472 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1473 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1475 2014-02-19 Tom Tromey <tromey@redhat.com>
1477 * remote.c (remote_load): New function.
1478 (init_remote_ops): Use it.
1480 2014-02-19 Tom Tromey <tromey@redhat.com>
1482 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1484 * common/linux-btrace.h (linux_supports_btrace): Update.
1485 * remote.c (remote_supports_btrace): Add "self" argument.
1486 * target-delegates.c: Rebuild.
1487 * target.c (target_supports_btrace): Remove.
1488 * target.h (struct target_ops) <to_supports_btrace>: Add
1489 target_ops argument.
1490 (target_supports_btrace): New define.
1492 2014-02-19 Tom Tromey <tromey@redhat.com>
1494 * record-full.c (record_full_beneath_to_resume_ops)
1495 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1496 (record_full_beneath_to_wait)
1497 (record_full_beneath_to_store_registers_ops)
1498 (record_full_beneath_to_store_registers)
1499 (record_full_beneath_to_xfer_partial_ops)
1500 (record_full_beneath_to_xfer_partial)
1501 (record_full_beneath_to_insert_breakpoint_ops)
1502 (record_full_beneath_to_insert_breakpoint)
1503 (record_full_beneath_to_remove_breakpoint_ops)
1504 (record_full_beneath_to_remove_breakpoint)
1505 (record_full_beneath_to_stopped_by_watchpoint)
1506 (record_full_beneath_to_stopped_data_address)
1507 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1508 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1509 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1510 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1511 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1512 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1513 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1514 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1515 (record_full_resume, record_full_wait_1)
1516 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1517 (record_full_store_registers, record_full_xfer_partial)
1518 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1519 (record_full_async, record_full_core_xfer_partial): Use target
1521 * target-delegates.c: Rebuild.
1522 * target.c (current_xfer_partial): Remove.
1523 (update_current_target): Do not INHERIT or de_fault
1524 to_insert_breakpoint, to_remove_breakpoint,
1525 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1526 to_is_async_p, to_async. Do not set to_xfer_partial field.
1527 (default_xfer_partial): Simplify.
1528 (current_xfer_partial): Remove.
1529 (target_wait, target_resume): Simplify.
1530 (find_default_can_async_p, find_default_is_async_p): Update.
1531 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1532 to_xfer_partial, to_stopped_by_watchpoint,
1533 to_stopped_data_address.
1534 (target_store_registers): Simplify.
1535 (forward_target_remove_breakpoint)
1536 (forward_target_insert_breakpoint): Remove.
1537 (target_remove_breakpoint, target_insert_breakpoint)
1538 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1539 * target.h (struct target_ops) <to_resume, to_wait,
1540 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1541 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1542 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1544 (forward_target_remove_breakpoint)
1545 (forward_target_insert_breakpoint): Remove.
1546 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1548 (record_btrace_insert_breakpoint): Delegate directly.
1550 2014-02-19 Tom Tromey <tromey@redhat.com>
1553 * target-delegates.c: New file.
1554 * target.c: Include target-delegates.c.
1555 (init_dummy_target): Call install_dummy_methods.
1556 (complete_target_initialization): Call install_delegators.
1557 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1558 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1559 * make-target-delegates: New file.
1561 2014-02-19 Tom Tromey <tromey@redhat.com>
1563 * record.c (find_record_target): Use find_target_at.
1564 * target.c (find_target_at): New function.
1565 * target.h (find_target_at): Declare.
1567 2014-02-19 Tom Tromey <tromey@redhat.com>
1569 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1571 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1573 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1574 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1576 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1578 * linux-nat.c (save_sigtrap): Update.
1579 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1580 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1581 (linux_nat_close): Update.
1582 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1584 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1586 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1587 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1588 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1589 (tmp_to_async): Add 'ops' argument.
1590 (record_full_stopped_by_watchpoint, record_full_async)
1591 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1593 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1594 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1595 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1596 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1597 (remote_is_async_p, remote_async): Add 'ops' argument.
1598 (remote_stopped_data_address): Update.
1599 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1600 * target.c (update_current_target)
1601 (find_default_can_async_p, find_default_is_async_p): Update.
1602 (init_dummy_target): Update.
1603 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1604 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1605 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1606 (target_can_async_p, target_is_async_p, target_async)
1607 (target_stopped_by_watchpoint): Update.
1609 2014-02-19 Yao Qi <yao@codesourcery.com>
1612 * gdbarch.sh: Remove startup_gdbarch.
1613 * gdbarch.c: Regenerated.
1614 * gdbarch.h: Likewise.
1616 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1618 * rl78-tdep.c (rl78_g10_register_name): New function.
1619 (rl78_return_value): Add g10 support.
1620 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1623 2014-02-17 Doug Evans <xdje42@gmail.com>
1625 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1626 (SUBDIR_GUILE_SRCS): Ditto.
1627 (scm-gsmob.o): Ditto.
1629 2014-02-17 Yao Qi <yao@codesourcery.com>
1631 * gnu-nat.c (ILL_RPC): Declare defined function.
1633 2014-02-17 Yao Qi <yao@codesourcery.com>
1635 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1636 mach_msg_type_number_t.
1637 (gnu_write_inferior): Likewise.
1639 2014-02-17 Yao Qi <yao@codesourcery.com>
1641 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1643 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1644 (inf_validate_procs, inf_signal): Likewise.
1645 (S_exception_raise_request): Likewise.
1646 (do_mach_notify_dead_name): Likewise.
1647 (steal_exc_port): Likewise.
1648 (gnu_read_inferior): Change 'copy_count''s type to
1649 mach_msg_type_number_t.
1650 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1653 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1655 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1656 flag. Adjust all users; in particular...
1657 (gnu_wait): ..., don't decrement its value in here...
1658 (gnu_create_inferior): ..., and instead set the flag in here,
1659 around the startup_inferior call, and call that one with
1660 START_INFERIOR_TRAPS_EXPECTED.
1662 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1663 (ILL_RPC): ... new macro.
1664 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1665 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1666 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1667 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1668 functions with ILL_RPC macro.
1669 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1670 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1671 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1672 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1673 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1674 (S_proc_getlogin_reply, S_proc_getsid_reply)
1675 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1676 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1677 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1678 (S_proc_getnports_reply, S_proc_is_important_reply)
1679 (S_proc_get_code_reply): New stub functions, generated with
1682 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1683 collected the type check structures.
1685 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1687 2014-02-14 Doug Evans <dje@google.com>
1689 * target.c (target_write_partial): Fix result type.
1691 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1693 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1694 the proper offsets to access fpregset_t.
1696 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1698 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1699 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1700 * h8300-tdep.c (setmachinelist): Remove global.
1701 * hppa-tdep.c (hppa_sigtramp): Remove global.
1702 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1703 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1704 * ravenscar-thread.c (update_target_observer): Remove global.
1705 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1707 2014-02-12 Tom Tromey <tromey@redhat.com>
1709 * common/rsp-low.c: Update comments.
1710 * common/rsp-low.h: Update comments.
1712 2014-02-12 Tom Tromey <tromey@redhat.com>
1714 * common/rsp-low.c (convert_ascii_to_int): Remove.
1715 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1717 2014-02-12 Tom Tromey <tromey@redhat.com>
1719 * common/rsp-low.h (unhexify): Don't declare.
1720 * common/rsp-low.c (unhexify): Remove.
1722 2014-02-12 Tom Tromey <tromey@redhat.com>
1724 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1725 * common/rsp-low.c (convert_int_to_ascii): Remove.
1727 2014-02-12 Tom Tromey <tromey@redhat.com>
1729 * common/rsp-low.h (hexify): Don't declare.
1730 * common/rsp-low.c (hexify): Remove.
1732 2014-02-12 Tom Tromey <tromey@redhat.com>
1734 * common/rsp-low.c (hexify): Never take strlen of argument.
1736 2014-02-12 Tom Tromey <tromey@redhat.com>
1738 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1739 * remote.c (extended_remote_run, remote_rcmd)
1740 (remote_download_trace_state_variable, remote_save_trace_data)
1741 (remote_set_trace_notes): Update.
1742 * tracepoint.c (encode_source_string, tfile_write_status)
1743 (tfile_write_uploaded_tsv): Update.
1745 2014-02-12 Tom Tromey <tromey@redhat.com>
1747 * tracepoint.c: Include rsp-low.h.
1748 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1749 * remote.c: Include rsp-low.h.
1750 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1751 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1752 (remote_unescape_input): Move to common/rsp-low.c.
1753 * common/rsp-low.h: New file.
1754 * common/rsp-low.c: New file.
1755 * Makefile.in (SFILES): Add common/rsp-low.c.
1756 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1757 (COMMON_OBS): Add rsp-low.o.
1758 (rsp-low.o): New target.
1760 2014-02-12 Tom Tromey <tromey@redhat.com>
1762 * utils.h: Include print-utils.h.
1763 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1764 (int_string, core_addr_to_string, core_addr_to_string_nz)
1765 (hex_string, hex_string_custom): Don't declare.
1766 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1767 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1768 (hex_string_custom, int_string, core_addr_to_string)
1769 (core_addr_to_string_nz, host_address_to_string): Move to
1770 common/print-utils.c.
1771 * common/print-utils.h: New file.
1772 * common/print-utils.c: New file
1773 * Makefile.in (SFILES): Add common/print-utils.c.
1774 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1775 (COMMON_OBS): Add print-utils.o.
1776 (print-utils.o): New target.
1778 2014-02-12 Tom Tromey <tromey@redhat.com>
1780 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1782 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1784 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1786 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1788 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1789 if a PT_IO ptrace request returns sucessfully but indicates that 0
1790 bytes were transferred.
1792 2014-02-12 Pedro Alves <palves@redhat.com>
1793 Kevin Buettner <kevinb@redhat.com>
1795 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1796 TYPE_INSTANCE_FLAG_CODE_SPACE.
1798 2014-02-12 Pedro Alves <palves@redhat.com>
1800 * h8300-tdep.c (pseudo_from_raw_register)
1801 (raw_from_pseudo_register): New functions.
1802 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1805 2014-02-12 Pedro Alves <palves@redhat.com>
1807 * h8300-tdep.c (h8300_register_sim_regno): New function.
1808 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1809 gdbarch_register_sim_regno hook.
1811 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1813 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1815 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1817 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1819 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1821 * obsd-tdep.h (obsd_init_abi): New prototype.
1822 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1823 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1824 (obsd_init_abi): New functions.
1825 * i386obsd-tdep.c: Include "obsd-tdep.h".
1826 (i386obsd_init_abi): Call obsd_init_abi.
1827 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1828 (amd64obsd_init_abi): Call obsd_init_abi.
1829 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1830 obsd-tdep.c to gdb_target_obs.
1832 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1834 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1835 double float arguments to 16-byte in the argument slots.
1837 2014-02-11 Doug Evans <xdje42@gmail.com>
1839 * configure.ac: Don't crash if pkg-config is not found and guile
1840 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1842 * configure: Regenerate.
1844 2014-02-11 Yao Qi <yao@codesourcery.com>
1846 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1847 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1848 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1849 * gnu-nat.c (gnu_xfer_memory): Likewise.
1850 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1851 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1852 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1855 2014-02-11 Yao Qi <yao@codesourcery.com>
1857 * target.h (enum target_xfer_error): Rename to ...
1858 (enum target_xfer_status): ... it. New. All users updated.
1859 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1861 (TARGET_XFER_STATUS_ERROR_P): New macro.
1862 (target_xfer_error_to_string): Remove declaration.
1863 (target_xfer_status_to_string): Declare.
1864 (target_xfer_partial_ftype): Adjust it.
1865 (struct target_ops) <to_xfer_partial>: Return
1866 target_xfer_status. Add argument xfered_len. Update
1868 * target.c (target_xfer_error_to_string): Rename to ...
1869 (target_xfer_status_to_string): ... it. New. All callers
1871 (target_read_live_memory): Likewise. Call target_xfer_partial
1872 instead of target_read.
1873 (memory_xfer_live_readonly_partial): Return
1874 target_xfer_status. Add argument xfered_len.
1875 (raw_memory_xfer_partial): Likewise.
1876 (memory_xfer_partial_1): Likewise.
1877 (memory_xfer_partial): Likewise.
1878 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1879 properly. Update debug message.
1880 (default_xfer_partial, current_xfer_partial): Likewise.
1881 (target_write_partial): Likewise.
1882 (target_read_partial): Likewise. All callers updated.
1883 (read_whatever_is_readable): Likewise.
1884 (target_write_with_progress): Likewise.
1885 (target_read_alloc_1): Likewise.
1887 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1888 * auxv.c (procfs_xfer_auxv): Likewise.
1889 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1890 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1891 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1892 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1893 * corefile.c (read_memory): Adjust.
1894 * corelow.c (core_xfer_partial): Likewise.
1895 * ctf.c (ctf_xfer_partial): Likewise.
1896 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1898 (darwin_xfer_partial): Likewise.
1899 * exec.c (section_table_xfer_memory_partial): Likewise. All
1901 (exec_xfer_partial): Likewise.
1902 * exec.h (section_table_xfer_memory_partial): Update
1904 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1906 (gnu_xfer_partial): Likewise.
1907 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1908 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1909 (ia64_hpux_xfer_solib_got): Likewise.
1910 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1911 type of 'partial_len' to ULONGEST.
1912 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1913 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1914 (linux_nat_xfer_partial): Likewise.
1915 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1916 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1917 * monitor.c (monitor_xfer_memory): Likewise.
1918 (monitor_xfer_partial): Likewise.
1919 * procfs.c (procfs_xfer_partial): Likewise.
1920 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1921 * record-full.c (record_full_xfer_partial): Likewise.
1922 (record_full_core_xfer_partial): Likewise.
1923 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1924 (gdbsim_xfer_partial): Likewise.
1925 * remote.c (remote_write_bytes_aux): Likewise. All callers
1927 (remote_write_bytes, remote_read_bytes): Likewise. All
1929 (remote_flash_erase): Likewise. All callers updated.
1930 (remote_write_qxfer): Likewise. All callers updated.
1931 (remote_read_qxfer): Likewise. All callers updated.
1932 (remote_xfer_partial): Likewise.
1933 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1934 (rs6000_xfer_shared_libraries): Likewise.
1935 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1936 (sol_thread_xfer_partial): Likewise.
1937 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1938 (sparc_xfer_partial): Likewise.
1939 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1941 (spu_xfer_partial): Likewise.
1942 * spu-multiarch.c (spu_xfer_partial): Likewise.
1943 * tracepoint.c (tfile_xfer_partial): Likewise.
1944 * windows-nat.c (windows_xfer_memory): Likewise.
1945 (windows_xfer_shared_libraries): Likewise.
1946 (windows_xfer_partial): Likewise.
1947 * valprint.c: Replace 'target_xfer_error' with
1948 'target_xfer_status' in comments.
1950 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1952 Checked in by Joel Brobecker <brobecker@adacore.com>.
1953 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1955 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1957 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1958 function parameters.
1960 2014-02-10 Will Newton <will.newton@linaro.org>
1962 * elfread.c (elf_rel_plt_read): Look for a .got section if
1963 looking up .got.plt fails.
1964 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1965 on address passed to elf_gnu_ifunc_record_cache.
1966 (elf_gnu_ifunc_resolve_addr): Likewise.
1967 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1969 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1971 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1972 (X_RETTURN): New macro.
1973 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1975 * sparc64-tdep.c (sparc64_init_abi): Hook
1976 sparc_in_function_epilogue_p.
1978 2014-02-10 Gary Benson <gbenson@redhat.com>
1980 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1981 Rename name_matcher to symbol_matcher.
1983 2014-02-10 Gary Benson <gbenson@redhat.com>
1985 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1986 Use expand_symtabs_file_matcher_ftype and
1987 expand_symtabs_symbol_matcher_ftype.
1989 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1991 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1992 (struct ada_symbol_cache): New.
1993 (ada_free_symbol_cache): Forward declare.
1994 (struct ada_pspace_data): New.
1995 (ada_pspace_data_handle): New static global.
1996 (get_ada_pspace_data, ada_pspace_data_cleanup)
1997 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1998 (cache_space, cache): Delete, now folded inside struct
2000 (ada_get_symbol_cache): New function.
2001 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
2003 (_initialize_ada_language): Remove initialization of cache_space.
2004 Move call to observer_attach_inferior_exit up, grouping it
2005 with the other observer registrations inside this function.
2006 Rename command to be more general. Add call to
2007 register_program_space_data_with_cleanup.
2009 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2011 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
2012 ada_new_objfile_observer.
2013 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
2014 (_initialize_tasks): Update uses of ada_new_objfile_observer
2015 and ada_tasks_normal_stop_observer.
2017 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2019 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
2020 returned by the 'Length attribute to integer.
2022 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2024 * ada-lang.c (_initialize_ada_language): Initialize
2025 cache_space obstack.
2027 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2029 * ada-lang.c (HASH_SIZE): New macro.
2030 (struct cache_entry): New type.
2031 (cache_space, cache): New static globals.
2032 (ada_clear_symbol_cache, find_entry): New functions.
2033 (lookup_cached_symbol, cache_symbol): Implement.
2034 (ada_new_objfile_observer, ada_free_objfile_observer): New.
2035 (_initialize_ada_language): Attach ada_new_objfile_observer
2036 and ada_free_objfile_observer.
2038 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2040 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
2041 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
2042 struct block * parameter.
2043 (ada_lookup_symbol_list_worker): Constify local variable "block".
2044 Remove cast which is no longer necessary.
2046 2014-02-10 Doug Evans <xdje42@gmail.com>
2048 Add Guile as an extension language.
2049 * NEWS: Mention Guile scripting.
2050 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
2051 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
2052 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
2053 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
2054 (CLIBS): Add GUILE_LIBS.
2055 (install-guile): New rule.
2056 (guile.o): New rule.
2057 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
2058 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
2059 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
2060 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
2061 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
2062 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
2063 (scm-type.o, scm-utils.o, scm-value.o): New rules.
2064 * configure.ac: New option --with-guile.
2065 * configure: Regenerate.
2066 * config.in: Regenerate.
2067 * auto-load.c: Remove #include "python/python.h". Add #include
2068 "gdb/section-scripts.h".
2069 (source_section_scripts): Handle Guile scripts.
2070 (_initialize_auto_load): Add name of Guile objfile script to
2071 scripts-directory help text.
2072 * breakpoint.c (condition_command): Tweak comment to include Scheme.
2073 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
2074 (struct breakpoint): New member scm_bp_object.
2075 * defs.h (enum command_control_type): New value guile_control.
2076 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
2078 (show_user): Update comment.
2079 (_initialize_cli_cmds): Update help text for "show user". Update help
2080 text for max-user-call-depth.
2081 * cli/cli-script.c: Remove #include "python/python.h". Add #include
2083 (multi_line_command_p): Add guile_control.
2084 (print_command_lines): Handle guile_control.
2085 (execute_control_command, recurse_read_control_structure): Ditto.
2086 (process_next_line): Recognize "guile" commands.
2087 * disasm.c (gdb_disassemble_info): Make non-static.
2088 * disasm.h: #include "dis-asm.h".
2089 (struct gdbarch): Add forward decl.
2090 (gdb_disassemble_info): Declare.
2091 * extension.c: #include "guile/guile.h".
2092 (extension_languages): Add guile.
2093 (get_ext_lang_defn): Handle EXT_LANG_GDB.
2094 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
2095 * gdbtypes.c (get_unsigned_type_max): New function.
2096 (get_signed_type_minmax): New function.
2097 * gdbtypes.h (get_unsigned_type_max): Declare.
2098 (get_signed_type_minmax): Declare.
2099 * guile/README: New file.
2100 * guile/guile-internal.h: New file.
2101 * guile/guile.c: New file.
2102 * guile/guile.h: New file.
2103 * guile/scm-arch.c: New file.
2104 * guile/scm-auto-load.c: New file.
2105 * guile/scm-block.c: New file.
2106 * guile/scm-breakpoint.c: New file.
2107 * guile/scm-disasm.c: New file.
2108 * guile/scm-exception.c: New file.
2109 * guile/scm-frame.c: New file.
2110 * guile/scm-gsmob.c: New file.
2111 * guile/scm-iterator.c: New file.
2112 * guile/scm-lazy-string.c: New file.
2113 * guile/scm-math.c: New file.
2114 * guile/scm-objfile.c: New file.
2115 * guile/scm-ports.c: New file.
2116 * guile/scm-pretty-print.c: New file.
2117 * guile/scm-safe-call.c: New file.
2118 * guile/scm-string.c: New file.
2119 * guile/scm-symbol.c: New file.
2120 * guile/scm-symtab.c: New file.
2121 * guile/scm-type.c: New file.
2122 * guile/scm-utils.c: New file.
2123 * guile/scm-value.c: New file.
2124 * guile/lib/gdb.scm: New file.
2125 * guile/lib/gdb/boot.scm: New file.
2126 * guile/lib/gdb/experimental.scm: New file.
2127 * guile/lib/gdb/init.scm: New file.
2128 * guile/lib/gdb/iterator.scm: New file.
2129 * guile/lib/gdb/printing.scm: New file.
2130 * guile/lib/gdb/types.scm: New file.
2131 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2132 (VPATH): Add $(GUILE_SRCDIR).
2133 (GUILE_DIR): New variable.
2134 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2135 (all): Add stamp-guile dependency.
2136 (stamp-guile): New rule.
2137 (clean-guile, install-guile, uninstall-guile): New rules.
2138 (install-only): Add install-guile dependency.
2139 (uninstall): Add uninstall-guile dependency.
2140 (clean): Add clean-guile dependency.
2142 2014-02-09 Doug Evans <xdje42@gmail.com>
2144 Revert this patch (which I approved, mea culpa).
2146 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2148 * Makefile.in (all-lib): Remove.
2149 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2151 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 Fix Python stack corruption.
2154 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2157 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2159 * Makefile.in (all-lib): Remove.
2160 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2162 2014-02-07 Doug Evans <dje@google.com>
2164 * extension-priv.h (extension_language_script_ops): Add comment.
2165 (extension_language_ops): Add comment.
2166 (active_ext_lang_state): Fix typo in comment.
2168 2014-02-07 Pedro Alves <palves@redhat.com>
2170 * infrun.c (handle_signal_stop) <signal arrives while stepping
2171 over a breakpoint>: Switch back to the stepping thread.
2173 2014-02-07 Yao Qi <yao@codesourcery.com>
2175 * target.c (target_xfer_partial): Return zero if LEN is zero.
2177 2014-02-07 Yao Qi <yao@codesourcery.com>
2179 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2180 (ld_so_xfer_auxv): Likewise.
2181 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2182 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2183 * corelow.c (core_xfer_partial): Likewise.
2184 * ctf.c (ctf_xfer_partial): Likewise.
2185 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2186 (darwin_xfer_partial): Likewise.
2187 * exec.c (exec_xfer_partial): Likewise.
2188 * gnu-nat.c (gnu_xfer_partial): Likewise.
2189 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2190 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2191 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2192 * linux-nat.c (linux_xfer_siginfo): Likewise.
2193 (linux_proc_xfer_spu): Likewise.
2194 * procfs.c (procfs_xfer_partial): Likewise.
2195 * record-full.c (record_full_xfer_partial): Likewise.
2196 (record_full_core_xfer_partial): Likewise.
2197 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2198 * remote.c (remote_write_qxfer): Likewise.
2199 (remote_write_qxfer, remote_read_qxfer): Likewise.
2200 (remote_xfer_partial): Likewise.
2201 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2202 (rs6000_xfer_shared_libraries): Likewise.
2203 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2204 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2205 (spu_xfer_partial): Likewise.
2206 * target.c (memory_xfer_partial_1): Likewise.
2207 * tracepoint.c (tfile_xfer_partial): Likewise.
2208 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2209 (windows_xfer_partial): Likewise.
2211 2014-02-07 Yao Qi <yao@codesourcery.com>
2213 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2215 (core_xfer_shared_libraries_aix): Likewise.
2216 * gdbarch.c, gdbarch.h: Regenerated.
2217 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2218 ULONGEST. Change 'len_avail' type to ULONGEST.
2219 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2220 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2222 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2224 2014-02-07 Yao Qi <yao@codesourcery.com>
2226 * corefile.c (memory_error): Get 'exception' from ERR and pass
2227 'exception' to throw_error.
2229 2014-02-06 Doug Evans <xdje42@gmail.com>
2231 * configure.ac (libpython checking): Remove all but python.o from
2232 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2233 * configure: Regenerate.
2235 * Makefile.in (SFILES): Add extension.c.
2236 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2237 (COMMON_OBS): Add extension.o.
2238 * extension.h: New file.
2239 * extension-priv.h: New file.
2240 * extension.c: New file.
2242 * python/python-internal.h: #include "extension.h".
2243 (gdbpy_auto_load_enabled): Declare.
2244 (gdbpy_apply_val_pretty_printer): Declare.
2245 (gdbpy_apply_frame_filter): Declare.
2246 (gdbpy_preserve_values): Declare.
2247 (gdbpy_breakpoint_cond_says_stop): Declare.
2248 (gdbpy_breakpoint_has_cond): Declare.
2249 (void source_python_script_for_objfile): Delete.
2250 * python/python.c: #include "extension-priv.h".
2251 Delete inclusion of "observer.h".
2252 (extension_language_python): Moved here and renamed from
2253 script_language_python in py-auto-load.c.
2254 Redefined to be of type extension_language_defn.
2255 (python_extension_script_ops): New global.
2256 (python_extension_ops): New global.
2257 (struct python_env): New member previous_active.
2258 (restore_python_env): Call restore_active_ext_lang.
2259 (ensure_python_env): Call set_active_ext_lang.
2260 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2262 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2264 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2266 (gdbpy_eval_from_control_command): Renamed from
2267 eval_python_from_control_command, made static. New arg extlang.
2268 (gdbpy_source_script) Renamed from source_python_script, made static.
2270 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2271 result to int. New arg extlang.
2272 (gdbpy_source_objfile_script): Renamed from
2273 source_python_script_for_objfile, made static. New arg extlang.
2274 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2275 static. New args extlang, extlang_printers. Change result type to
2277 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2278 static. New arg extlang. Rename arg printers to extlang_printers
2279 and change type to ext_lang_type_printers *.
2280 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2281 static. Replace argument arg with extlang, extlang_printers.
2282 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2283 (!HAVE_PYTHON, source_python_script): Delete.
2284 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2285 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2286 (!HAVE_PYTHON, start_type_printers): Delete.
2287 (!HAVE_PYTHON, apply_type_printers): Delete.
2288 (!HAVE_PYTHON, free_type_printers): Delete.
2289 (_initialize_python): Delete call to observer_attach_before_prompt.
2290 (finalize_python): Set/restore active extension language.
2291 (gdbpy_finish_initialization) Renamed from
2292 finish_python_initialization, made static. New arg extlang.
2293 (gdbpy_initialized): New function.
2294 * python/python.h: #include "extension.h". Delete #include
2295 "value.h", "mi/mi-cmds.h".
2296 (extension_language_python): Declare.
2297 (GDBPY_AUTO_FILE_NAME): Delete.
2298 (enum py_bt_status): Moved to extension.h and renamed to
2300 (enum frame_filter_flags): Moved to extension.h.
2301 (enum py_frame_args): Moved to extension.h and renamed to
2302 ext_lang_frame_args.
2303 (finish_python_initialization): Delete.
2304 (eval_python_from_control_command): Delete.
2305 (source_python_script): Delete.
2306 (apply_val_pretty_printer): Delete.
2307 (apply_frame_filter): Delete.
2308 (preserve_python_values): Delete.
2309 (gdbpy_script_language_defn): Delete.
2310 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2311 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2313 * auto-load.c: #include "extension.h".
2314 (GDB_AUTO_FILE_NAME): Delete.
2315 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2316 (script_language_gdb): Delete, moved to extension.c and renamed to
2317 extension_language_gdb.
2318 (source_gdb_script_for_objfile): Delete.
2319 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2320 (loaded_script): Change type of language member to
2321 struct extension_language_defn *.
2322 (init_loaded_scripts_info): Initialize
2323 unsupported_script_warning_printed.
2324 (maybe_add_script): Make static. Change type of language arg to
2325 struct extension_language_defn *.
2326 (clear_section_scripts): Reset unsupported_script_warning_printed.
2327 (auto_load_objfile_script_1): Rewrite to use extension language API.
2328 (auto_load_objfile_script): Make public. Remove support-compiled-in
2329 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2330 (source_section_scripts): Rewrite to use extension language API.
2331 (load_auto_scripts_for_objfile): Rewrite to use
2332 auto_load_scripts_for_objfile.
2333 (collect_matching_scripts_data): Change type of language member to
2334 struct extension_language_defn *.
2335 (auto_load_info_scripts): Change type of language arg to
2336 struct extension_language_defn *.
2337 (unsupported_script_warning_print): New function.
2338 (script_not_found_warning_print): Make static.
2339 (_initialize_auto_load): Rewrite construction of scripts-directory
2341 * auto-load.h (struct objfile): Add forward decl.
2342 (struct script_language): Delete.
2343 (struct auto_load_pspace_info): Add forward decl.
2344 (struct extension_language_defn): Add forward decl.
2345 (maybe_add_script): Delete.
2346 (auto_load_objfile_script): Declare.
2347 (script_not_found_warning_print): Delete.
2348 (auto_load_info_scripts): Update prototype.
2349 (auto_load_gdb_scripts_enabled): Declare.
2350 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2351 auto_load_python_scripts_enabled and made public.
2352 (script_language_python): Delete, moved to python.c.
2353 (gdbpy_script_language_defn): Delete.
2354 (info_auto_load_python_scripts): Update to use
2355 extension_language_python.
2357 * breakpoint.c (condition_command): Replace call to
2358 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2359 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2360 with call to breakpoint_ext_lang_cond_says_stop.
2361 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2362 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2363 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2364 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2366 (local_setattro): Print name of extension language with existing
2369 * valprint.c (val_print, value_print): Update to call
2370 apply_ext_lang_val_pretty_printer.
2371 * cp-valprint.c (cp_print_value): Update call to
2372 apply_ext_lang_val_pretty_printer.
2373 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2374 (gdbpy_apply_val_pretty_printer): Renamed from
2375 apply_val_pretty_printer. New arg extlang.
2376 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2378 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2379 extension language API.
2380 * cli/cli-script.c (execute_control_command): Update to call
2381 eval_ext_lang_from_control_command.
2383 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2384 enum ext_lang_bt_status values. Update call to
2385 apply_ext_lang_frame_filter.
2386 (mi_cmd_stack_list_locals): Ditto.
2387 (mi_cmd_stack_list_args): Ditto.
2388 (mi_cmd_stack_list_variables): Ditto.
2389 * mi/mi-main.c: Delete #include "python/python-internal.h".
2390 Add #include "extension.h".
2391 (mi_cmd_list_features): Replace reference to python internal variable
2392 gdb_python_initialized with call to ext_lang_initialized_p.
2394 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2395 Update to use enum ext_lang_frame_args. Update to call
2396 apply_ext_lang_frame_filter.
2397 * python/py-framefilter.c (extract_sym): Update to use enum
2399 (extract_value, py_print_type, py_print_value): Ditto.
2400 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2401 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2402 (py_print_frame): Ditto.
2403 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2404 New arg extlang. Update to use enum ext_lang_bt_status.
2406 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2407 finish_python_initialization. Replace with call to
2408 finish_ext_lang_initialization.
2410 * typeprint.c (do_free_global_table): Update to call
2411 free_ext_lang_type_printers.
2412 (create_global_typedef_table): Update to call
2413 start_ext_lang_type_printers.
2414 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2415 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2416 (type_print_options): Change type of global_printers from "void *"
2417 to "struct ext_lang_type_printers *".
2419 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2420 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2421 (gdbpy_preserve_values): Renamed from preserve_python_values.
2423 (!HAVE_PYTHON, preserve_python_values): Delete.
2425 * utils.c (quit_flag): Delete, moved to extension.c.
2426 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2429 * eval.c: Delete #include "python/python.h".
2430 * main.c: Delete #include "python/python.h".
2432 * defs.h: Update comment.
2434 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2438 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2440 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2443 2014-02-05 Yao Qi <yao@codesourcery.com>
2445 * remote.c (remote_pass_signals): Remove local 'buf' and use
2447 (remote_program_signals): Likewise.
2449 2014-02-05 Yao Qi <yao@codesourcery.com>
2451 * ctf.c: Include "inferior.h" and "gdbthread.h".
2452 (CTF_PID): A new macro.
2453 (ctf_open): Call inferior_appeared and add_thread_silent.
2454 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2455 (ctf_thread_alive): New function.
2456 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2458 2014-02-05 Yao Qi <yao@codesourcery.com>
2462 2013-05-24 Yao Qi <yao@codesourcery.com>
2464 * tracepoint.c (TFILE_PID): Remove.
2465 (tfile_open): Don't add thread and inferior.
2466 (tfile_close): Don't set 'inferior_ptid'. Don't call
2467 exit_inferior_silent.
2468 (tfile_thread_alive): Remove.
2469 (init_tfile_ops): Don't set field 'to_thread_alive' of
2472 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2474 * remote.c (remote_start_remote): Call remote_check_symbols even
2475 if only symbol-file (not file) has been given.
2477 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2479 * gdbarch.sh (skip_entrypoint): New callback.
2480 * gdbarch.c, gdbarch.h: Regenerate.
2481 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2482 * infrun.c (fill_in_stop_func): Likewise.
2483 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2484 (ppc_elfv2_elf_make_msymbol_special): New function.
2485 (ppc_elfv2_skip_entrypoint): Likewise.
2486 (ppc_linux_init_abi): Install them for ELFv2.
2488 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2490 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2491 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2492 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2493 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2494 structures returned in GPRs.
2496 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2498 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2499 offset to the stack parameter list for the ELFv2 ABI.
2501 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2503 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2504 set_gdbarch_convert_from_func_ptr_addr and
2505 set_gdbarch_elf_make_msymbol_special for ELFv1.
2506 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2507 function descriptors on ELFv1.
2508 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2509 set up r12 at function entry.
2511 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2513 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2514 (struct gdbarch_tdep): New member elf_abi.
2516 * rs6000-tdep.c: Include "elf/ppc64.h".
2517 (rs6000_gdbarch_init): Detect ELF ABI version.
2519 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2521 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2522 within a register pair holding a DFP 128-bit value on little-endian.
2523 (ppc64_sysv_abi_return_value_base): Likewise.
2524 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2525 (dfp_pseudo_register_write): Likewise.
2527 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2530 offset on little-endian when passing _Decimal32.
2531 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2533 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2535 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2536 of the overlapped FP register within the VSX register on little-
2538 (efpr_pseudo_register_write): Likewise.
2540 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2542 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2543 offset on little-endian when passing small structures.
2545 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2547 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2548 (struct ppc64_sysv_argpos): New data structure.
2549 (ppc64_sysv_abi_push_float): Remove.
2550 (ppc64_sysv_abi_push_val): New function.
2551 (ppc64_sysv_abi_push_integer): Likewise.
2552 (ppc64_sysv_abi_push_freg): Likewise.
2553 (ppc64_sysv_abi_push_vreg): Likewise.
2554 (ppc64_sysv_abi_push_param): Likewise.
2555 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2556 (ppc64_sysv_abi_return_value_base): New function.
2557 (ppc64_sysv_abi_return_value): Refactor to use it.
2559 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2561 * NEWS: Document new target powerpc64le-*-linux*.
2563 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2565 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2566 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2568 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2569 register set used in ELF core dumps. Add floating-point register set.
2571 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2573 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2574 dwarf2_to_gdb[] table using symbolic constants. Adjust
2575 penultimate entry from number representing the PC register
2576 to symbolic constant representing the MDR register. Add
2577 constant for the PC register to the end of the table.
2579 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2581 * bsd-kvm.c: Include <sys/param.h>
2583 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2585 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2587 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2589 * ada-lang.h (clear_ada_sym_cache): Delete.
2591 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2593 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2595 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2597 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2598 the sigreturn register save area only if the syscall is
2601 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2603 * valops.c (value_slice): Minor reformatting.
2605 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2607 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2609 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2611 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2613 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2614 (ada_ignore_descriptive_types_p): New static global.
2615 (find_parallel_type_by_descriptive_type): Return immediately
2616 if ada_ignore_descriptive_types_p is set.
2617 (_initialize_ada_language): Register new commands "maintenance
2618 set ada", "maintenance show ada", "maintenance set ada
2619 ignore-descriptive-types" and "maintenance show ada
2620 ignore-descriptive-types".
2621 * NEWS: Add entry for new "maint ada set/show
2622 ignore-descriptive-types" commands.
2624 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2626 * record-btrace.c (record_btrace_close): Call btrace_teardown
2629 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2631 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2634 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2636 * ada-typeprint (type_is_full_subrange_of_target_type):
2638 (print_range): Add parameter bounds_prefered_p. If not set,
2639 try printing range types using the name of their base type.
2640 (print_range_type): Add parameter bounds_prefered_p.
2641 Use it in call to print_range.
2642 (print_array_type, ada_print_type): Update calls to print_range
2643 and print_range_type.
2645 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2647 * ada-typeprint.c (print_array_type, print_choices, print_range)
2648 (print_range_bound, print_dynamic_range_bound, print_range_type):
2651 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2653 * ada-typeprint.c (print_range): Add missing empty line
2654 after local declaration.
2656 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2658 * ada-valprint.c (print_optional_low_bound): Get index_type's
2659 target type for as long as it is a TYPE_CODE_RANGE.
2661 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2663 * procfs.c (procfs_make_note_section): Remove assertion and
2666 2014-01-24 Yao Qi <yao@codesourcery.com>
2668 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2669 * corelow.c (get_core_siginfo): Likewise.
2671 2014-01-24 Yao Qi <yao@codesourcery.com>
2673 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2674 ULONGEST. Don't check 'len' is negative.
2675 (remote_write_bytes): Change type of 'len' to ULONGEST.
2677 2014-01-23 Tom Tromey <tromey@redhat.com>
2680 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2681 Handle exception from frame.block.
2682 (FrameVars.fetch_frame_locals): Likewise.
2684 2014-01-23 Tom Tromey <tromey@redhat.com>
2687 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2688 on a NULL pointer. Move "goto error" to correct place.
2690 2014-01-23 Tom Tromey <tromey@redhat.com>
2693 * python/py-framefilter.c (apply_frame_filter): Call
2694 ensure_python_env after computing gdbarch.
2696 2014-01-23 Yao Qi <yao@codesourcery.com>
2698 * target.c (raw_memory_xfer_partial): Change argument type
2699 from void * to gdb_byte *.
2700 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2702 2014-01-22 Doug Evans <dje@google.com>
2704 New gdbserver option --debug-format=timestamp.
2707 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2709 * syscalls/s390x-linux.xml: New file.
2710 * syscalls/s390-linux.xml: New file.
2711 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2712 (XML_SYSCALL_FILENAME_S390X): Likewise.
2713 (op_svc): New enum value for SVC opcode.
2714 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2715 (s390_linux_get_syscall_number): New function.
2716 (s390_gdbarch_init): Register '*get_syscall_number' and the
2717 syscall xml file name.
2718 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2719 "s390-linux.xml" and "s390x-linux.xml".
2720 * NEWS: Announce new feature.
2722 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2724 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2726 2014-01-22 Pedro Alves <palves@redhat.com>
2728 * xtensa-config.c: Include defs.h.
2730 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2732 * common/common-utils.h: Add "ARI:" comment beside __func__
2735 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2737 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2738 documentation a bit.
2740 2014-01-21 Roland McGrath <mcgrathr@google.com>
2742 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2743 * configure: Regenerate.
2744 * aclocal.m4: Regenerate.
2745 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2746 New substituted variables.
2747 (install-strip): New target.
2748 (INSTALL_SCRIPT): New substituted variable.
2749 (FLAGS_TO_PASS): Add it.
2750 (install-only): Use $(INSTALL_SCRIPT) rather than
2751 $(INSTALL_PROGRAM) for gcore.
2753 2014-01-20 Tom Tromey <tromey@redhat.com>
2755 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2758 2014-01-20 Tom Tromey <tromey@redhat.com>
2760 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2761 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2762 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2763 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2764 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2765 (struct cmd_list_element) <flags>: Remove.
2766 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2767 doc_allocated>: New fields.
2768 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2770 * maint.c (maintenance_do_deprecate): Update.
2771 * top.c (execute_command): Update.
2773 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2775 * xtensa-linux-nat.c: Include asm/ptrace.h.
2777 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2779 * Makefile.in (SFILES): Add d-support.c.
2780 (COMMON_OBS): Add d-support.o.
2781 * d-lang.h (d_parse_symbol): Add comment, now defined in
2783 * d-lang.c (parse_call_convention)
2784 (parse_attributes, parse_function_types)
2785 (parse_function_args, parse_type, parse_identifier)
2786 (call_convention_p, d_parse_symbol): Move functions to ...
2787 * d-support.c: ... New file.
2789 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2791 * d-lang.h (d_parse_symbol): Add declaration.
2792 * d-lang.c (extract_identifiers)
2793 (extract_type_info): Remove functions.
2794 (parse_call_convention, parse_attributes)
2795 (parse_function_types, parse_function_args)
2796 (parse_type, parse_identifier, call_convention_p)
2797 (d_parse_symbol): New functions.
2798 (d_demangle): Use d_parse_symbol to demangle D symbols.
2800 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2802 * d-lang.h (struct builtin_d_type): New data type.
2803 (builtin_d_type): Add declaration.
2804 * d-lang.c (d_language_arch_info, build_d_types)
2805 (builtin_d_type): New functions.
2806 (enum d_primitive_types): New data type.
2807 (d_language_defn): Change c_language_arch_info to
2808 d_language_arch_info.
2809 (d_type_data): New static variable.
2810 (_initialize_d_language): Initialize d_type_data.
2812 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2814 * d-lang.h (d_main_name): Add declaration.
2815 * d-lang.c (d_main_name): New function.
2816 * symtab.c (find_main_name): Add call to d_main_name.
2818 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2820 * d-lang.c (d_language_defn): Change macro_expansion_c to
2823 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2825 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2827 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2829 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2830 gdb_exception" declaration.
2831 * remote.c (getpkt_or_notif_sane): Likewise.
2833 2014-01-17 Doug Evans <dje@google.com>
2835 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2836 function, contents of dirnames_to_char_ptr_vec_append moved here.
2837 (delim_string_to_char_ptr_vec): New function.
2838 (dirnames_to_char_ptr_vec_append): Rewrite.
2839 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2841 2014-01-17 Doug Evans <dje@google.com>
2843 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2845 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2846 #include "common-utils.h".
2847 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2848 * common/vec.h (VEC_ASSERT_PASS): Update.
2849 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2850 (MACH_CHECK_ERROR): Update.
2852 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2854 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2856 * gdbarch.h: Regenerate.
2858 2014-01-16 Tom Tromey <tromey@redhat.com>
2860 * value.c (struct value) <regnum>: Move earlier.
2862 2014-01-16 Tom Tromey <tromey@redhat.com>
2864 * remote.c (extended_remote_create_inferior): Rename from
2865 extended_remote_create_inferior_1. Add "ops" argument. Remove
2868 2014-01-16 Pedro Alves <palves@redhat.com>
2870 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2871 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2874 2014-01-16 Doug Evans <dje@google.com>
2876 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2880 * btrace.h (btrace_thread_flag): New.
2881 (struct btrace_thread_info) <flags>: New.
2882 * record-btrace.c (record_btrace_resume_thread)
2883 (record_btrace_find_thread_to_move, btrace_step_no_history)
2884 (btrace_step_stopped, record_btrace_start_replaying)
2885 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2886 (record_btrace_find_resume_thread): New.
2887 (record_btrace_resume, record_btrace_wait): Extend.
2888 (record_btrace_can_execute_reverse): New.
2889 (record_btrace_open): Fail in non-stop mode.
2890 (record_btrace_set_replay): Split into this, ...
2891 (record_btrace_stop_replaying): ... this, ...
2892 (record_btrace_clear_histories): ... and this.
2893 (init_record_btrace_ops): Init to_can_execute_reverse.
2894 * NEWS: Announce it.
2896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2898 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2899 (forward_target_decr_pc_after_break)
2900 (target_decr_pc_after_break): New.
2901 * target.c (forward_target_decr_pc_after_break)
2902 (target_decr_pc_after_break): New.
2903 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2904 instead of gdbarch_decr_pc_after_break.
2905 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2906 instead of gdbarch_decr_pc_after_break.
2907 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2908 instead of gdbarch_decr_pc_after_break.
2909 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2910 instead of gdbarch_decr_pc_after_break.
2911 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2912 instead of gdbarch_decr_pc_after_break.
2913 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2914 instead of gdbarch_decr_pc_after_break.
2916 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2918 * btrace.c: Include regcache.h.
2919 (btrace_add_pc): New.
2920 (btrace_enable): Call btrace_add_pc.
2921 (btrace_is_empty): New.
2922 * btrace.h (btrace_is_empty): New.
2923 * record-btrace.c (require_btrace, record_btrace_info): Call
2926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2928 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2929 Support delta reads.
2930 (linux_disable_btrace): Change return type.
2931 * common/linux-btrace.h (linux_read_btrace): Change parameters
2932 and return type to allow error reporting. Update users.
2933 (linux_disable_btrace): Change return type. Update users.
2934 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2936 (btrace_error): New.
2937 (btrace_block) <begin>: Comment on BEGIN == 0.
2938 * btrace.c (btrace_compute_ftrace): Start from the end of
2940 (btrace_stitch_trace, btrace_clear_history): New.
2941 (btrace_fetch): Read delta trace, return if replaying.
2942 (btrace_clear): Move clear history code to btrace_clear_history.
2943 (parse_xml_btrace): Throw an error if parsing failed.
2944 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2945 and return type to allow error reporting.
2946 (target_read_btrace): Change parameters and return type to allow
2948 * target.c (target_read_btrace): Update.
2949 * remote.c (remote_read_btrace): Support delta reads. Pass
2951 * NEWS: Announce it.
2953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2955 * record.h (record_btrace_frame_unwind)
2956 (record_btrace_tailcall_frame_unwind): New declarations.
2957 * dwarf2-frame: Include record.h
2958 (dwarf2_frame_cfa): Throw an error for btrace frames.
2959 * record-btrace.c: Include hashtab.h.
2960 (btrace_get_bfun_name): New.
2961 (btrace_call_history): Call btrace_get_bfun_name.
2962 (struct btrace_frame_cache): New.
2964 (bfcache_hash, bfcache_eq, bfcache_new): New.
2965 (btrace_get_frame_function): New.
2966 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2967 (record_btrace_frame_this_id): Compute own id.
2968 (record_btrace_frame_prev_register): Provide PC, throw_error
2969 for all other registers.
2970 (record_btrace_frame_sniffer): Detect btrace frames.
2971 (record_btrace_tailcall_frame_sniffer): New.
2972 (record_btrace_frame_dealloc_cache): New.
2973 (record_btrace_frame_unwind): Add new functions.
2974 (record_btrace_tailcall_frame_unwind): New.
2975 (_initialize_record_btrace): Allocate cache.
2976 * btrace.c (btrace_clear): Call reinit_frame_cache.
2977 * NEWS: Announce it.
2979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2981 * record-btrace.c (record_btrace_set_replay)
2982 (record_btrace_goto_begin, record_btrace_goto_end)
2983 (record_btrace_goto): New.
2984 (init_record_btrace_ops): Initialize them.
2985 * NEWS: Announce it.
2987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2989 * record-btrace.c (record_btrace_find_new_threads)
2990 (record_btrace_thread_alive): New.
2991 (init_record_btrace_ops): Initialize to_find_new_threads and
2994 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2996 * record-btrace.c (record_btrace_resume): New.
2997 (record_btrace_wait): New.
2998 (init_record_btrace_ops): Initialize to_wait and to_resume.
3000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3002 * record-btrace.c (record_btrace_xfer_partial)
3003 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
3004 (record_btrace_allow_memory_access): New.
3005 (init_record_btrace_ops): Initialize new methods.
3006 * target.c (raw_memory_xfer_partial): Bail out if target reports
3007 that this memory is not available.
3009 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3011 * target.h (target_ops) <to_insert_breakpoint>
3012 <to_remove_breakpoint>: Add target_ops parameter.
3013 (forward_target_insert_breakpoint): New.
3014 (forward_target_remove_breakpoint): New.
3015 (memory_remove_breakpoint, memory_insert_breakpoint):
3016 Add target_ops parameter.
3017 * target.c (target_insert_breakpoint): Split into this and ...
3018 (forward_target_insert_breakpoint): ... this.
3019 (target_remove_breakpoint): Split into this and ...
3020 (forward_target_remove_breakpoint): ... this.
3021 (debug_to_insert_breakpoint): Add target_ops parameter.
3022 Call forward_target_insert_breakpoint.
3023 (debug_to_remove_breakpoint): Add target_ops parameter.
3024 Call forward_target_remove_breakpoint.
3025 (update_current_target): Do not inherit or default to_insert_breakpoint
3026 and to_remove_breakpoint.
3027 * corelow.c (ignore): Add target_ops parameter.
3028 * exec.c (ignore): Add target_ops parameter.
3029 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
3030 Add target_ops parameter.
3031 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
3032 Add target_ops parameter.
3033 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
3034 Add target_ops parameter.
3035 * record-full.c (record_full_beneath_to_insert_breakpoint)
3036 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
3037 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
3038 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
3039 (record_full_core_remove_breakpoint): Add target_ops parameter.
3041 (record_full_beneath_to_insert_breakpoint_ops)
3042 (record_full_beneath_to_remove_breakpoint_ops)
3043 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
3044 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
3045 tmp_to_remove_breakpoint_ops,
3046 record_full_beneath_to_insert_breakpoint_ops, and
3047 record_full_beneath_to_remove_breakpoint_ops.
3048 * remote-m32r-sdi.c (m32r_insert_breakpoint)
3049 (m32r_remove_breakpoint): Add target_ops parameter.
3050 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
3051 Add target_ops parameter.
3052 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
3053 Add target_ops parameter.
3055 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3056 Markus Metzger <markus.t.metzger@intel.com>
3058 * record-btrace.c: Include frame-unwind.h.
3059 (record_btrace_frame_unwind_stop_reason)
3060 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
3061 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
3063 (init_record_btrace_ops): Install it.
3065 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3067 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
3070 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3072 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
3075 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3077 * frame-unwind.c: Include target.h.
3078 (frame_unwind_try_unwinder): New function with code from ...
3079 (frame_unwind_find_by_frame): ... here. New variable
3080 unwinder_from_target, call also target_get_unwinder)
3081 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
3082 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
3083 * target.h (struct target_ops): New fields to_get_unwinder and
3084 to_get_tailcall_unwinder.
3085 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
3087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3089 * record-btrace.c (record_btrace_fetch_registers)
3090 (record_btrace_store_registers)
3091 (record_btrace_to_prepare_to_store): New.
3092 (init_record_btrace_ops): Add the above.
3094 2014-01-16 Tom Tromey <tromey@redhat.com>
3096 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
3097 * target.h (struct target_ops) <to_prepare_to_store>: Add
3099 (target_prepare_to_store): Add argument.
3100 * target.c (debug_to_prepare_to_store): Add argument.
3101 (update_current_target): Update.
3102 * remote.c (remote_prepare_to_store): Add 'self' argument.
3103 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
3104 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
3105 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
3106 * record-full.c (record_full_core_prepare_to_store): Add 'self'
3108 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
3109 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
3110 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
3111 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
3112 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3114 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3116 * btrace.h (replay) <replay>: New.
3117 (btrace_is_replaying): New.
3118 * btrace.c (btrace_clear): Free replay iterator.
3119 (btrace_is_replaying): New.
3120 * record-btrace.c (record_btrace_is_replaying): New.
3121 (record_btrace_info): Print insn number if replaying.
3122 (record_btrace_insn_history): Start at replay position.
3123 (record_btrace_call_history): Start at replay position.
3124 (init_record_btrace_ops): Init to_record_is_replaying.
3126 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3128 * record-btrace.c (record_btrace_insn_history_range): Include
3130 (record_btrace_insn_history_from): Adjust range.
3131 (record_btrace_call_history_range): Include
3133 (record_btrace_call_history_from): Adjust range.
3134 * NEWS: Announce changes.
3136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3138 * record.h (enum record_print_flag)
3139 <record_print_indent_calls>: New.
3140 * record.c (get_call_history_modifiers): Recognize /c modifier.
3141 (_initialize_record): Document /c modifier.
3142 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3143 Reorder fields. Optionally indent the function name. Update
3145 * NEWS: Announce changes.
3147 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3149 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3153 * btrace.c (ftrace_new_function): Start counting at one.
3154 * record-btrace.c (record_btrace_info): Adjust number of calls
3156 * NEWS: Announce it.
3158 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3160 * record-btrace.c (btrace_call_history_insn_range): Print
3161 insn range as [begin, end].
3163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3165 * btrace.h (struct btrace_func_link): New.
3166 (enum btrace_function_flag): New.
3167 (struct btrace_inst): Rename to ...
3168 (struct btrace_insn): ...this. Update all users.
3169 (struct btrace_func) <ibegin, iend>: Remove.
3170 (struct btrace_func_link): New.
3171 (struct btrace_func): Rename to ...
3172 (struct btrace_function): ...this. Update all users.
3173 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3174 (number, level, flags>: New.
3175 (struct btrace_insn_iterator): Rename to ...
3176 (struct btrace_insn_history): ...this.
3178 (struct btrace_insn_iterator, btrace_call_iterator): New.
3179 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3180 (struct btrace_target_info) <begin, end, level>
3181 <insn_history, call_history>: New.
3182 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3183 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3184 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3185 (btrace_call_number, btrace_call_begin, btrace_call_end)
3186 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3187 (btrace_find_function_by_number, btrace_set_insn_history)
3188 (btrace_set_call_history): New.
3189 * btrace.c (btrace_init_insn_iterator)
3190 (btrace_init_func_iterator, compute_itrace): Remove.
3191 (ftrace_print_function_name, ftrace_print_filename)
3192 (ftrace_skip_file): Change
3194 (ftrace_init_func): Remove.
3195 (ftrace_debug): Use new btrace_function fields.
3196 (ftrace_function_switched): Also consider gaining and
3197 losing symbol information).
3198 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3199 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3200 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3202 (ftrace_new_function): Move. Remove debug print.
3203 (ftrace_update_lines, ftrace_update_insns): New.
3204 (ftrace_update_function): Check for call, ret, and jump.
3205 (compute_ftrace): Renamed to ...
3206 (btrace_compute_ftrace): ...this. Rewritten to compute call
3208 (btrace_fetch, btrace_clear): Updated.
3209 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3210 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3211 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3212 (btrace_call_number, btrace_call_begin, btrace_call_end)
3213 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3214 (btrace_find_function_by_number, btrace_set_insn_history)
3215 (btrace_set_call_history): New.
3216 * record-btrace.c (require_btrace): Use new btrace thread
3218 (record_btrace_info, btrace_insn_history)
3219 (record_btrace_insn_history, record_btrace_insn_history_range):
3220 Use new btrace thread info fields and new iterator.
3221 (btrace_func_history_src_line): Rename to ...
3222 (btrace_call_history_src_line): ...this. Use new btrace
3224 (btrace_func_history): Rename to ...
3225 (btrace_call_history): ...this. Use new btrace thread info
3226 fields and new iterator.
3227 (record_btrace_call_history, record_btrace_call_history_range):
3228 Use new btrace thread info fields and new iterator.
3230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3232 * frame.h (frame_id_build_unavailable_stack_special): New.
3233 * frame.c (frame_id_build_unavailable_stack_special): New.
3235 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3237 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3238 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3239 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3241 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3242 (i386_insn_is_jump, i386_jmp_p): New.
3243 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3244 insn_is_jump to gdbarch.
3245 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3246 * gdbarch.h: Regenerated.
3247 * gdbarch.c: Regenerated.
3248 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3249 (default_insn_is_jump): New.
3250 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3251 (default_insn_is_jump): New.
3253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3255 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3257 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3258 (btrace_read_type) <btrace_read_new>: Change to ...
3259 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3263 * common/linux-btrace.c (linux_read_btrace): Free trace from
3266 2014-01-15 Doug Evans <dje@google.com>
3268 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3271 2014-01-15 Tom Tromey <tromey@redhat.com>
3273 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3274 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3275 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3276 (set_objfile_main_name): New function.
3277 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3278 language_of_main>: New fields.
3279 (set_objfile_main_name): Declare.
3280 * symtab.c (find_main_name): Loop over objfiles to find the main
3282 (set_main_name): Now static.
3283 (get_main_info): Add comment.
3284 * symtab.h (set_main_name): Don't declare.
3286 2014-01-15 Tom Tromey <tromey@redhat.com>
3288 * symtab.c (main_progspace_key): New global.
3289 (struct main_info): New.
3290 (name_of_main, language_of_main): Remove.
3291 (get_main_info, main_info_cleanup): New function.
3292 (set_main_name, main_name, main_language): Use get_main_info.
3293 (_initialize_symtab): Initialize main_progspace_key.
3295 2014-01-15 Tom Tromey <tromey@redhat.com>
3297 * dbxread.c (process_one_symbol): Update.
3298 * dwarf2read.c (read_partial_die): Update.
3299 * symfile.c (set_initial_language): Call main_language.
3300 * symtab.c (language_of_main): Now static.
3301 (set_main_name): Add 'lang' parameter.
3302 (find_main_name): Update.
3303 (main_language): New function.
3304 (symtab_observer_executable_changed): Update.
3305 * symtab.h (set_main_name): Update.
3306 (language_of_main): Remove.
3307 (main_language): Declare.
3309 2014-01-15 Tom Tromey <tromey@redhat.com>
3311 * symfile.c (init_entry_point_info): Use new "initialized" field.
3313 * objfiles.h (struct entry_point) <initialized>: New field.
3314 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3315 (struct objfile) <ei>: ...here. Remove.
3316 * objfiles.c (entry_point_address_query): Update.
3318 2014-01-15 Tom Tromey <tromey@redhat.com>
3320 * objfiles.c (entry_point_address_query): Relocate entry point
3322 (objfile_relocate1): Do not relocate entry point address.
3323 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3324 <the_bfd_section_index>: New field.
3325 * symfile.c (init_entry_point_info): Find the entry point's
3328 2014-01-15 Tom Tromey <tromey@redhat.com>
3330 * solib-frv.c (enable_break): Use entry_point_address_query.
3332 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3334 * NEWS: Add note on improved process record-replay on
3335 arm*-linux* targets.
3337 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3339 * arm-tdep.c (enum arm_record_result): New enum.
3340 (arm_record_unsupported_insn): New function.
3341 (arm_record_coproc_data_proc): Removed.
3342 (thumb2_record_ld_st_multiple): New function.
3343 (thumb2_record_ld_st_dual_ex_tbb): New function.
3344 (thumb2_record_data_proc_sreg_mimm): New function.
3345 (thumb2_record_ps_dest_generic): New function.
3346 (thumb2_record_branch_misc_cntrl): New function.
3347 (thumb2_record_str_single_data): New function.
3348 (thumb2_record_ld_mem_hints): New function.
3349 (thumb2_record_ld_word): New function.
3350 (thumb2_record_lmul_lmla_div): New function.
3351 (thumb2_record_decode_insn_handler): New function.
3352 (decode_insn): Add thumb32 instruction handlers.
3354 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3356 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3357 (struct arm_linux_record_tdep): Declare.
3358 (arm_canonicalize_syscall): New function.
3359 (arm_all_but_pc_registers_record): New function.
3360 (arm_linux_syscall_record): New function.
3361 (arm_linux_init_abi): Add syscall recording constructs.
3362 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3363 decoding. (arm_record_coproc_data_proc): Update arm syscall
3365 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3366 <arm_syscall_record>: New field.
3367 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3370 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3372 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3373 register for push instruction recording.
3375 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3377 * arm-tdep.c (thumb_record_misc): Update to correct logical
3378 error while recording ldm, ldmia and pop instructions.
3380 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3382 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3384 2014-01-15 Pedro Alves <palves@redhat.com>
3386 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3387 (go32_resume, go32_fetch_registers, store_register)
3388 (go32_store_registers, go32_prepare_to_store)
3389 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3390 (go32_create_inferior, go32_can_run, go32_terminal_init)
3391 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3394 2014-01-15 Tom Tromey <tromey@redhat.com>
3396 * target.h (async_callback_ftype): New typedef.
3397 (struct target_ops) <to_async>: Use it.
3399 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3401 * python/py-value.c (get_field_type): Remove unnecessary curly
3402 braces for single-statement if block.
3404 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3406 * python/py-type.c (convert_field): Add missing empty line
3409 2014-01-14 Doug Evans <dje@google.com>
3411 * symfile.h (expand_symtabs_matching): Renamed from
3412 expand_partial_symbol_names. Update prototype.
3413 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3414 * symfile.c (expand_symtabs_matching): Renamed from
3415 expand_partial_symbol_names. New args file_matcher, kind.
3416 Rename arg fun to symbol_matcher.
3417 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3418 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3419 ada_expand_partial_symbol_name.
3420 (ada_make_symbol_completion_list): Update to call
3421 expand_symtabs_matching.
3422 (ada_add_global_exceptions): Call expand_symtabs_matching.
3423 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3424 call map_symbol_filenames.
3425 * symtab.c (sources_info): Update to call map_symbol_filenames.
3426 (search_symbols): Call expand_symtabs_matching.
3427 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3428 (default_make_symbol_completion_list_break_on): Update to call
3429 expand_symtabs_matching.
3430 (make_source_files_completion_list): Update to call
3431 map_symbol_filenames.
3433 2014-01-14 Doug Evans <dje@google.com>
3435 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3436 (expand_symtabs_symbol_matcher_ftype): New typedef.
3437 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3438 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3439 * symfile.c (expand_partial_symbol_names): Update to use
3440 expand_symtabs_symbol_matcher_ftype.
3441 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3442 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3443 Arg name_matcher renamed to symbol_matcher.
3444 * psymtab.c (recursively_search_psymtabs): Update to use
3445 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3447 (expand_symtabs_matching_via_partial): Update to use
3448 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3449 Arg name_matcher renamed to symbol_matcher.
3451 2014-01-14 Doug Evans <dje@google.com>
3453 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3454 (map_partial_symbol_filenames): Ditto.
3455 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3456 (map_partial_symbol_filenames): Ditto.
3457 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3458 (map_partial_symbol_filenames): Ditto.
3459 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3460 (map_partial_symbol_filenames): Ditto.
3461 * symtab.c: Delete #include "psymtab.h".
3463 2014-01-14 Pedro Alves <palves@redhat.com>
3464 Tom Tromey <tromey@redhat.com>
3466 * infrun.c (use_displaced_stepping): Use find_record_target
3467 instead of RECORD_IS_USED.
3468 (adjust_pc_after_break): Use record_full_is_used instead of
3470 * record-btrace.c (record_btrace_open): Call record_preopen
3471 instead of checking RECORD_IS_USED.
3472 * record-full.c (record_full_shortname)
3473 (record_full_core_shortname): New globals.
3474 (record_full_is_used): New function.
3475 (find_full_open): Call record_preopen instead of checking
3477 (init_record_full_ops): Set the target's shortname to
3478 record_full_shortname.
3479 (init_record_full_core_ops): Set the target's shortname to
3480 record_full_core_shortname.
3481 * record-full.h (record_full_is_used): Declare.
3482 * record.c (find_record_target): Make extern.
3483 (record_preopen): New function.
3484 * record.h (RECORD_IS_USED): Delete macro.
3485 (find_record_target, record_preopen): Declare functions.
3487 2014-01-14 Yao Qi <yao@codesourcery.com>
3489 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3490 'len''s type to ULONGEST.
3491 (core_xfer_shared_libraries_aix): Likewise.
3492 * gdbarch.c, gdbarch.h: Regenerated.
3493 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3494 Change type of 'len' to ULONGEST.
3495 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3496 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3498 2014-01-14 Yao Qi <yao@codesourcery.com>
3500 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3501 type of 'len' to ULONGEST.
3502 (linux_xfer_osdata_processgroups): Likewise.
3503 (linux_xfer_osdata_threads): Likewise.
3504 (linux_xfer_osdata_fds): Likewise.
3505 (linux_xfer_osdata_isockets): Likewise.
3506 (linux_xfer_osdata_shm): Likewise.
3507 (linux_xfer_osdata_sem): Likewise.
3508 (linux_xfer_osdata_msg): Likewise.
3509 (linux_common_xfer_osdata): Likewise.
3510 (struct osdata_type) <getter>: Likewise.
3511 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3514 2014-01-14 Yao Qi <yao@codesourcery.com>
3516 * target.h (target_xfer_partial_ftype): Update.
3517 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3519 * aix-thread.c (aix_thread_xfer_partial): Change type of
3520 argument 'len' to ULONGEST.
3521 * auxv.c (procfs_xfer_auxv): Likewise.
3522 (ld_so_xfer_auxv): Likewise.
3523 (memory_xfer_auxv): Likewise.
3524 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3525 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3526 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3527 * corelow.c (core_xfer_partial): Likewise.
3528 * ctf.c (ctf_xfer_partial): Likewise.
3529 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3531 (darwin_read_dyld_info): Likewise.
3532 (darwin_xfer_partial): Likewise.
3533 * exec.c (section_table_xfer_memory_partial): Likewise.
3534 (exec_xfer_partial): Likewise.
3535 * exec.h (section_table_xfer_memory_partial): Update
3537 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3538 instead of plongest.
3539 (gnu_xfer_partial): Likewise.
3540 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3541 (ia64_hpux_xfer_solib_got): Likewise.
3542 (ia64_hpux_xfer_partial): Likewise.
3543 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3544 * inf-ptrace.c (inf_ptrace_xfer_partial):
3545 * inf-ttrace.c (inf_ttrace_xfer_partial):
3546 * linux-nat.c (linux_xfer_siginfo): Likewise.
3547 (linux_nat_xfer_partial): Likewise.
3548 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3549 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3550 * monitor.c (monitor_xfer_memory): Likewise.
3551 (monitor_xfer_partial): Likewise.
3552 * procfs.c (procfs_xfer_partial): Likewise.
3553 * record-full.c (record_full_xfer_partial): Likewise.
3554 (record_full_core_xfer_partial): Likewise.
3555 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3556 instead of plongest.
3557 (gdbsim_xfer_partial): Likewise.
3558 * remote.c (remote_xfer_partial): Likewise.
3559 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3560 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3562 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3563 (rs6000_xfer_shared_libraries): Likewise.
3564 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3565 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3566 (sparc_xfer_partial): Likewise.
3567 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3568 (spu_xfer_partial): Likewise.
3569 * spu-multiarch.c (spu_xfer_partial): Likewise.
3570 * target.c (target_read_live_memory): Likewise.
3571 (memory_xfer_live_readonly_partial): Likewise.
3572 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3573 (target_xfer_partial, default_xfer_partial): Likewise.
3574 (current_xfer_partial): Likewise.
3575 * tracepoint.c (tfile_xfer_partial): Likewise.
3576 * windows-nat.c (windows_xfer_memory): Likewise. Call
3577 pulongest instead of plongest.
3578 (windows_xfer_partial): Likewise.
3579 (windows_xfer_shared_libraries): Likewise.
3581 2014-01-14 Yao Qi <yao@codesourcery.com>
3583 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3584 target_xfer_partial_ftype.
3586 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3590 * valops.c (value_struct_elt_bitpos): New function
3591 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3592 object to 'None' if the field name is an empty string ("").
3593 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3594 attribute to look for a field when 'name' is 'None'.
3595 (get_field_type): New function
3597 2014-01-13 Doug Evans <dje@google.com>
3600 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3601 (try_open_dwop_file): Ditto.
3602 * gdb_bfd.c: #include "vec.h".
3603 (bfdp): New typedef.
3604 (struct gdb_bfd_data): New member included_bfds.
3605 (gdb_bfd_unref): Unref all included bfds.
3606 (gdb_bfd_record_inclusion): New function.
3607 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3609 2014-01-13 Tom Tromey <tromey@redhat.com>
3611 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3613 2014-01-13 Tom Tromey <tromey@redhat.com>
3615 * defs.h (use_windows): Remove.
3616 * gdb.c (main): Update.
3617 * main.c (captured_main, gdb_main): Update.
3618 * main.h (struct captured_main_args) <use_windows>: Remove.
3619 * top.c (use_windows): Remove.
3621 2014-01-13 Tom Tromey <tromey@redhat.com>
3623 * defs.h (deprecated_flush_hook): Remove.
3625 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3628 * linux-thread-db.c (try_thread_db_load): Add parameter
3629 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3630 (try_thread_db_load_from_pdir_1): Move it there from here.
3631 (try_thread_db_load_from_sdir): Update caller.
3632 (try_thread_db_load_from_dir): Move it there from here.
3634 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3636 * regformats/regdat.sh: Always rewrite the register file.
3638 2014-01-13 Pedro Alves <palves@redhat.com>
3640 * Makefile.in (CHECK_HEADERS): New variable.
3641 (check-headers:): New rule.
3643 2014-01-13 Tom Tromey <tromey@redhat.com>
3645 * cli/cli-setshow.c (do_set_command): Update.
3646 * defs.h (deprecated_set_hook): Remove.
3647 * top.c (deprecated_set_hook): Remove.
3649 2014-01-13 Pedro Alves <palves@redhat.com>
3651 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3652 the tracepoint if the PC is a pseudo-register.
3654 2014-01-13 Tom Tromey <tromey@redhat.com>
3656 * defs.h (XCALLOC): Remove.
3657 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3658 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3659 * dwarf2loc.c (allocate_piece_closure): Likewise.
3660 * elfread.c (elf_symfile_segments): Likewise.
3661 (elf_symfile_segments): Likewise.
3662 * gdbtypes.c (copy_type_recursive): Likewise.
3663 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3664 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3665 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3667 * mt-tdep.c (mt_gdbarch_init): Likewise.
3668 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3670 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3671 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3672 * registry.c (registry_alloc_data): Likewise.
3673 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3674 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3675 * serial.c (serial_fdopen_ops): Likewise.
3676 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3678 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3679 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3682 2014-01-13 Tom Tromey <tromey@redhat.com>
3684 * defs.h (XMALLOC): Remove.
3685 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3686 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3687 * cli-out.c (struct ui_out *): Likewise.
3688 * cli/cli-dump.c (add_dump_command): Likewise.
3689 (add_dump_command): Likewise.
3690 * complaints.c (get_complaints): Likewise.
3691 (find_complaint): Likewise.
3692 * dwarf2-frame.c (execute_cfa_program): Likewise.
3693 * dwarf2read.c (abbrev_table_read_table): Likewise.
3694 * gdbarch.sh: Likewise.
3695 * gdbarch.c: Rebuild.
3696 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3697 * interps.c (interp_new): Likewise.
3698 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3699 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3700 * mi/mi-console.c (mi_console_file_new): Likewise.
3701 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3702 * mi/mi-out.c (mi_out_new): Likewise.
3703 * mi/mi-parse.c (mi_parse): Likewise.
3704 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3705 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3706 * observer.c (xalloc_observer_list_node): Likewise.
3707 * regcache.c (regcache_xmalloc_1): Likewise.
3708 * reggroups.c (reggroup_new): Likewise.
3709 (_initialize_reggroup): Likewise.
3710 * registry.c (register_data_with_cleanup): Likewise.
3711 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3712 * ser-base.c (serial_ttystate): Likewise.
3713 * ser-mingw.c (make_pipe_state): Likewise.
3714 * ser-pipe.c (pipe_open): Likewise.
3715 * serial.c (serial_open): Likewise.
3716 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3717 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3718 (tui_alloc_win_info): Likewise.
3719 (tui_add_content_elements): Likewise.
3720 * tui/tui-file.c (tui_file_new): Likewise.
3721 * tui/tui-out.c (tui_out_new): Likewise.
3722 * ui-file.c (mem_file_new): Likewise.
3723 * ui-out.c (push_level): Likewise.
3724 (make_cleanup_ui_out_end): Likewise.
3725 (append_header_to_list): Likewise.
3726 (ui_out_new): Likewise.
3727 * user-regs.c (user_reg_add_builtin): Likewise.
3729 2014-01-13 Tom Tromey <tromey@redhat.com>
3731 * defs.h (XZALLOC): Remove.
3732 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3733 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3734 (get_ada_tasks_inferior_data): Likewise.
3735 * auto-load.c (get_auto_load_pspace_data): Likewise.
3736 * auxv.c (get_auxv_inferior_data): Likewise.
3737 * bfd-target.c (target_bfd_reopen): Likewise.
3738 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3739 (deprecated_insert_raw_breakpoint): Likewise.
3740 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3741 * corelow.c (core_open): Likewise.
3742 * darwin-nat.c (darwin_check_new_threads): Likewise.
3743 (darwin_attach_pid): Likewise.
3744 * dummy-frame.c (dummy_frame_push): Likewise.
3745 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3746 * dwarf2loc.c (allocate_piece_closure): Likewise.
3747 * elfread.c (elf_symfile_segments): Likewise.
3748 * eval.c (ptrmath_type_p): Likewise.
3749 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3750 * gdbtypes.c (alloc_type_arch): Likewise.
3751 (alloc_type_instance): Likewise.
3752 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3753 * inf-child.c (inf_child_can_use_agent): Likewise.
3754 * inflow.c (get_inflow_inferior_data): Likewise.
3755 * infrun.c (save_infcall_suspend_state): Likewise.
3756 * jit.c (jit_reader_load): Likewise.
3757 (get_jit_objfile_data): Likewise.
3758 (get_jit_program_space_data): Likewise.
3759 (jit_object_open_impl): Likewise.
3760 (jit_symtab_open_impl): Likewise.
3761 (jit_block_open_impl): Likewise.
3762 (jit_frame_sniffer): Likewise.
3763 * linux-fork.c (add_fork): Likewise.
3764 * maint.c (make_command_stats_cleanup): Likewise.
3765 * objfiles.c (get_objfile_pspace_data): Likewise.
3766 * opencl-lang.c (struct lval_closure): Likewise.
3767 * osdata.c (osdata_start_osdata): Likewise.
3768 * progspace.c (new_address_space): Likewise.
3769 (add_program_space): Likewise.
3770 * remote-sim.c (get_sim_inferior_data): Likewise.
3771 * sh-tdep.c (sh_gdbarch_init): Likewise.
3772 * skip.c (Ignore): Likewise.
3773 (skip_delete_command): Likewise.
3774 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3775 (library_list_start_library): Likewise.
3776 (solib_aix_current_sos): Likewise.
3777 * solib-darwin.c (get_darwin_info): Likewise.
3778 (darwin_current_sos): Likewise.
3779 * solib-dsbt.c (get_dsbt_info): Likewise.
3780 * solib-ia64-hpux.c (new_so_list): Likewise.
3781 (ia64_hpux_get_solib_linkage_addr): Likewise.
3782 * solib-spu.c (append_ocl_sos): Likewise.
3783 (spu_current_sos): Likewise.
3784 * solib-svr4.c (get_svr4_info): Likewise.
3785 (svr4_keep_data_in_core): Likewise.
3786 (library_list_start_library): Likewise.
3787 (svr4_default_sos): Likewise.
3788 (svr4_read_so_list): Likewise.
3789 * solib-target.c (library_list_start_library): Likewise.
3790 (solib_target_current_sos): Likewise.
3791 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3792 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3793 * symfile.c (default_symfile_segments): Likewise.
3794 * target-descriptions.c (tdesc_data_init): Likewise.
3795 (tdesc_create_reg): Likewise.
3796 (struct tdesc_type *): Likewise.
3797 (tdesc_create_vector): Likewise.
3798 (tdesc_set_struct_size): Likewise.
3799 (struct tdesc_type *): Likewise.
3800 (tdesc_free_feature): Likewise.
3801 (tdesc_create_feature): Likewise.
3802 * windows-nat.c (windows_add_thread): Likewise.
3803 (windows_make_so): Likewise.
3804 * xml-support.c (gdb_xml_body_text): Likewise.
3805 (gdb_xml_create_parser_and_cleanup): Likewise.
3806 (xml_process_xincludes): Likewise.
3807 * xml-syscall.c (allocate_syscalls_info): Likewise.
3808 (syscall_create_syscall_desc): Likewise.
3810 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3812 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3813 function, with code from i386_stap_parse_special_token.
3814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3815 (i386_stap_parse_special_token): Move code to the two functions
3818 2014-01-09 Pedro Alves <palves@redhat.com>
3819 Hui Zhu <hui@codesourcery.com>
3822 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3823 bp_err_string. Don't mark the location shlib_disabled if the
3824 error thrown wasn't a generic or memory error. Catch errors
3825 thrown while inserting breakpoints in overlayed code. Output
3826 error message of software breakpoints.
3827 * remote.c (remote_insert_breakpoint): If this breakpoint has
3828 target-side commands but this stub doesn't support Z0 packets,
3829 throw NOT_SUPPORTED_ERROR error.
3830 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3831 * target.h (target_insert_breakpoint): Extend comment.
3832 (target_insert_hw_breakpoint): Add comment.
3834 2014-01-08 Pedro Alves <palves@redhat.com>
3836 * remote.c (remote_add_thread): Add threads silently if starting
3838 (remote_notice_new_inferior): If in all-stop, and starting up,
3839 don't call notice_new_inferior.
3840 (get_current_thread): New function, factored out from ...
3841 (add_current_inferior_and_thread): ... this. Adjust.
3842 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3843 found any thread, then select the remote's current thread as GDB's
3846 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3848 * NEWS: Create a new section for the next release branch.
3849 Rename the section of the current branch, now that it has
3852 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3854 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3855 * version.in: Bump version to 7.7.50.DATE-cvs.
3857 2014-01-08 Yao Qi <yao@codesourcery.com>
3859 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3860 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3861 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3863 2014-01-08 Yao Qi <yao@codesourcery.com>
3865 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3866 return value of bfd_get_filename to symbol_file_add_from_bfd.
3868 2014-01-08 Pierre Muller <muller@sourceware.org>
3871 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3872 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3873 to prim_record_mininal_symbol_and_info.
3874 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3875 in call to prim_record_minimal_symbol_and_info.
3876 (read_pe_exported_syms): Set index field of section_data.
3878 2014-01-07 Andrew Pinski <apinski@cavium.com>
3880 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3881 * features/aarch64.c: Regenerate.
3883 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3885 * target.c (return_null): Define.
3886 (update_current_target): Use it instead of return_zero for
3887 functions that return a pointer.
3889 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3891 * source.c (add_path): Fix check for duplicated paths in the previously
3894 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3896 * ada-lang.c: Remove duplicated include statements.
3897 * alphabsd-nat.c: Ditto.
3898 * amd64-darwin-tdep.c: Ditto.
3899 * amd64fbsd-nat.c: Ditto.
3900 * auto-load.c: Ditto.
3902 * breakpoint.c: Ditto.
3904 * fork-child.c: Ditto.
3905 * gdb_usleep.c: Ditto.
3906 * i386-darwin-tdep.c: Ditto.
3907 * i386fbsd-nat.c: Ditto.
3909 * inferior.c: Ditto.
3911 * linux-nat.c: Ditto.
3912 * linux-tdep.c: Ditto.
3913 * m68kbsd-nat.c: Ditto.
3914 * m68klinux-nat.c: Ditto.
3915 * microblaze-tdep.c: Ditto.
3916 * mips-linux-tdep.c: Ditto.
3917 * mn10300-tdep.c: Ditto.
3918 * nto-tdep.c: Ditto.
3919 * opencl-lang.c: Ditto.
3921 * printcmd.c: Ditto.
3922 * regcache.c: Ditto.
3923 * remote-m32r-sdi.c: Ditto.
3927 * tilegx-linux-nat.c: Ditto.
3928 * tilegx-tdep.c: Ditto.
3929 * tracepoint.c: Ditto.
3931 * vaxbsd-nat.c: Ditto.
3932 * windows-nat.c: Ditto.
3933 * xtensa-tdep.c: Ditto.
3935 2014-01-07 Yao Qi <yao@codesourcery.com>
3937 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3939 2014-01-07 Yao Qi <yao@codesourcery.com>
3940 Joel Brobecker <brobecker@adacore.com>
3942 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3943 (pdc_write_regs): Likewise.
3944 (fetch_regs_kernel_thread): Likewise.
3945 (store_regs_kernel_thread): Likewise.
3947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3949 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3950 tagged type objects to their actual type.
3952 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3954 * ada-valprint.c (print_field_values): Add "language" parameter.
3955 Update calls to print_field_values and print_variant_part.
3956 Pass new parameter "language" in call to val_print instead
3957 of "current_language". Replace call to ada_val_print by call
3959 (print_variant_part): Add "language" parameter.
3960 (ada_val_print_struct_union): Update call to print_field_values.
3962 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3964 * ada-valprint.c (ui_memcpy): Delete.
3965 (ada_print_floating): Update documentation. Add empty line
3966 between between function documentation and implementation.
3967 Delete variable "buffer". Use ui_file_xstrdup in place of
3968 ui_file_put. Minor adjustments following this change.
3970 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3972 * ada-valprint.c (ada_val_print_string): New function,
3973 extracted from ada_val_print_array.
3974 (ada_val_print_array): Replace extracted code by call
3975 to ada_val_print_string followed by a return. Move
3976 "else" branch to the function's top block.
3978 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3980 * ada-valprint.c (ada_val_print_array): Move implementation
3981 down. Rename parameter "offset" and "val" into "offset_aligned"
3982 and "original_value" respectively. Add parameter "offset".
3984 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3986 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3987 re-organizing the code. Change the "???" message printed
3988 when target type is a TYPE_CODE_UNDEF into
3989 "<ref to undefined type>".
3991 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3993 * ada-valprint.c (print_record): Delete, implementation inlined...
3994 (ada_val_print_struct_union): ... here. Remove call to
3995 ada_check_typedef in inlined implementation.
3997 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3999 * ada-valprint.c (ada_val_print_gnat_array): New function,
4000 extracted from ada_val_print_1;
4001 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
4002 (ada_val_print_flt, ada_val_print_struct_union)
4003 (ada_val_print_ref): Likewise.
4004 (ada_val_print_1): Delete variables i and elttype.
4005 Replace extracted-out code by call to corresponding
4008 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4010 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
4012 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4014 * ada-valprint.c (ada_val_print_1): Replace calls to
4015 ada_val_print_1 by calls to val_print.
4017 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4019 * ada-valprint.c (ada_val_print_1): Add parameter "language".
4020 Update calls to self accordingly. Replace calls to c_val_print
4021 by calls to val_print.
4023 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4025 * ada-valprint.c (print_record): Delete declaration.
4026 (adjust_type_signedness, ada_val_print_1): Likewise.
4027 (ada_val_print): Move function implementation down.
4028 (print_variant_part, print_field_values, print_record):
4029 Move function implementation up.
4031 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4033 * python/py-type.c (typy_get_name): New function.
4034 (type_object_getset): Add entry for attribute "name".
4035 * NEWS: Add entry mentioning this new attribute.
4037 2014-01-07 Yao Qi <yao@codesourcery.com>
4039 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
4042 2014-01-07 Yao Qi <yao@codesourcery.com>
4044 * gnu-nat.c (info_port_rights): Add qualifier const to
4047 2014-01-07 Yao Qi <yao@codesourcery.com>
4049 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
4051 2014-01-07 Yao Qi <yao@codesourcery.com>
4053 * gnu-nat.c (make_inf) Update declaration.
4054 (make_inf): Make it static.
4055 (inf_set_traced): Likewise.
4056 (inf_port_to_thread, inf_task_died_status): Likewise.
4058 2014-01-07 Yao Qi <yao@codesourcery.com>
4060 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
4062 2014-01-07 Yao Qi <yao@codesourcery.com>
4064 * gnu-nat.c (_initialize_gnu_nat): Declare.
4066 2014-01-07 Yao Qi <yao@codesourcery.com>
4068 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
4070 (struct gdbarch_info) <byte_order>: Change type to
4072 <byte_order_for_code>: Likewise.
4073 * gdbarch.c, gdbarch.h: Regenerated.
4075 2014-01-06 Sasha Smundak <asmundak@google.com>
4077 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
4079 2014-01-06 Tom Tromey <tromey@redhat.com>
4081 * doublest.c (convert_doublest_to_floatformat): Use const, not
4083 * somread.c (som_symtab_read): Likewise.
4085 2014-01-07 Hui Zhu <hui@codesourcery.com>
4087 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
4088 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
4089 (gdb_bfd_fopen): Ditto.
4090 (gdb_bfd_openr): Ditto.
4091 (gdb_bfd_openw): Ditto.
4092 (gdb_bfd_openr_iovec): Ditto.
4093 (gdb_bfd_fdopenr): Ditto.
4094 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
4095 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
4097 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
4099 * symfile-mem.c (symbol_file_add_from_memory): Removed
4100 gdb_bfd_stash_filename.
4102 2014-01-03 Doug Evans <dje@google.com>
4104 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
4107 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4109 Update year range in copyright notice of all files.
4111 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4113 * top.c (print_gdb_version): Set copyright year to 2014.
4115 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4117 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4119 For older changes see ChangeLog-2013.
4125 version-control: never