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
6 (dummy_get_bookmark): Remove.
7 (init_dummy_target): Don't inherit or default to_get_bookmark.
8 * target.h (struct target_ops) <to_get_bookmark>: Use
9 TARGET_DEFAULT_NORETURN
11 2014-02-19 Tom Tromey <tromey@redhat.com>
13 * target-delegates.c: Rebuild.
14 * target.c (update_current_target): Don't inherit or default
15 to_make_corefile_notes.
16 (init_dummy_target): Don't initialize to_make_corefile_notes.
17 * target.h (struct target_ops) <to_make_corefile_notes>: Use
20 2014-02-19 Tom Tromey <tromey@redhat.com>
22 * target-delegates.c: Rebuild.
23 * target.c (update_current_target): Don't inherit or default
24 to_find_memory_regions.
25 (init_dummy_target): Don't initialize to_find_memory_regions.
26 * target.h (struct target_ops) <to_find_memory_regions>: Use
29 2014-02-19 Tom Tromey <tromey@redhat.com>
31 * target-delegates.c: Rebuild.
32 * target.c (update_current_target): Don't inherit or default
34 * target.h (struct target_ops) <to_log_command>: Use
35 TARGET_DEFAULT_IGNORE.
36 (target_log_command): Unconditionally delegate.
38 2014-02-19 Tom Tromey <tromey@redhat.com>
40 * target-delegates.c: Rebuild.
41 * target.c (update_current_target): Don't inherit or default
43 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
44 TARGET_DEFAULT_RETURN.
46 2014-02-19 Tom Tromey <tromey@redhat.com>
48 * target-delegates.c: Rebuild.
49 * target.c (update_current_target): Don't inherit or default
51 (target_thread_name): Unconditionally delegate.
52 * target.h (struct target_ops) <to_thread_name>: Use
53 TARGET_DEFAULT_RETURN.
55 2014-02-19 Tom Tromey <tromey@redhat.com>
57 * target-delegates.c: Rebuild.
58 * target.c (update_current_target): Don't inherit or default
60 * target.h (struct target_ops) <to_extra_thread_info>: Use
61 TARGET_DEFAULT_RETURN.
63 2014-02-19 Tom Tromey <tromey@redhat.com>
65 * target-delegates.c: Rebuild.
66 * target.c (update_current_target): Don't inherit or default
68 * target.h (struct target_ops) <to_has_exited>: Use
69 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
77 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
78 TARGET_DEFAULT_RETURN.
80 2014-02-19 Tom Tromey <tromey@redhat.com>
82 * target-delegates.c: Rebuild.
83 * target.c (update_current_target): Don't inherit or default
84 to_insert_exec_catchpoint.
85 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
86 TARGET_DEFAULT_RETURN.
88 2014-01-08 Tom Tromey <tromey@redhat.com>
90 * target-delegates.c: Rebuild.
91 * target.c (update_current_target): Don't inherit or default
92 to_insert_exec_catchpoint.
93 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
94 TARGET_DEFAULT_RETURN.
96 2014-02-19 Tom Tromey <tromey@redhat.com>
98 * target-delegates.c: Rebuild.
99 * target.c (update_current_target): Don't inherit or default
100 to_remove_vfork_catchpoint.
101 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
102 TARGET_DEFAULT_RETURN.
104 2014-02-19 Tom Tromey <tromey@redhat.com>
106 * target-delegates.c: Rebuild.
107 * target.c (update_current_target): Don't inherit or default
108 to_insert_vfork_catchpoint.
109 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
110 TARGET_DEFAULT_RETURN.
112 2014-02-19 Tom Tromey <tromey@redhat.com>
114 * target-delegates.c: Rebuild.
115 * target.c (update_current_target): Don't inherit or default
116 to_remove_fork_catchpoint.
117 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
118 TARGET_DEFAULT_RETURN.
120 2014-02-19 Tom Tromey <tromey@redhat.com>
122 * target-delegates.c: Rebuild.
123 * target.c (update_current_target): Don't inherit or default
124 to_insert_fork_catchpoint.
125 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
126 TARGET_DEFAULT_RETURN.
128 2014-02-19 Tom Tromey <tromey@redhat.com>
130 * target-delegates.c: Rebuild.
131 * target.c (update_current_target): Don't inherit or default
132 to_post_startup_inferior.
133 * target.h (struct target_ops) <to_post_startup_inferior>: Use
134 TARGET_DEFAULT_IGNORE.
136 2014-02-19 Tom Tromey <tromey@redhat.com>
138 * target-delegates.c: Rebuild.
139 * target.c (update_current_target): Don't inherit or default
141 * target.h (struct target_ops) <to_load>: Use
142 TARGET_DEFAULT_NORETURN.
144 2014-02-19 Tom Tromey <tromey@redhat.com>
146 * target-delegates.c: Rebuild.
147 * target.c (update_current_target): Don't inherit or default
149 * target.h (struct target_ops) <to_terminal_info>: Use
152 2014-02-19 Tom Tromey <tromey@redhat.com>
154 * target-delegates.c: Rebuild.
155 * target.c (update_current_target): Don't inherit or default
156 to_terminal_save_ours.
157 * target.h (struct target_ops) <to_terminal_save_ours>: Use
158 TARGET_DEFAULT_IGNORE.
160 2014-02-19 Tom Tromey <tromey@redhat.com>
162 * target-delegates.c: Rebuild.
163 * target.c (update_current_target): Don't inherit or default
165 * target.h (struct target_ops) <to_terminal_ours>: Use
166 TARGET_DEFAULT_IGNORE.
168 2014-02-19 Tom Tromey <tromey@redhat.com>
170 * target-delegates.c: Rebuild.
171 * target.c (update_current_target): Don't inherit or default
172 to_terminal_ours_for_output.
173 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
174 TARGET_DEFAULT_IGNORE.
176 2014-02-19 Tom Tromey <tromey@redhat.com>
178 * target-delegates.c: Rebuild.
179 * target.c (update_current_target): Don't inherit or default
180 to_terminal_inferior.
181 * target.h (struct target_ops) <to_terminal_inferior>: Use
182 TARGET_DEFAULT_IGNORE.
184 2014-02-19 Tom Tromey <tromey@redhat.com>
186 * target-delegates.c: Rebuild.
187 * target.c (update_current_target): Don't inherit or default
189 * target.h (struct target_ops) <to_terminal_init>: Use
190 TARGET_DEFAULT_IGNORE.
192 2014-02-19 Tom Tromey <tromey@redhat.com>
194 * target-delegates.c: Rebuild.
195 * target.c (update_current_target): Don't inherit or default
196 to_can_accel_watchpoint_condition.
197 * target.h (struct target_ops)
198 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
200 2014-02-19 Tom Tromey <tromey@redhat.com>
202 * target-delegates.c: Rebuild.
203 * target.c (update_current_target): Don't inherit or default
204 to_region_ok_for_hw_watchpoint.
205 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
206 Use TARGET_DEFAULT_FUNC.
208 2014-02-19 Tom Tromey <tromey@redhat.com>
210 * target-delegates.c: Rebuild.
211 * target.c (update_current_target): Don't inherit or default
212 to_watchpoint_addr_within_range.
213 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
214 Use TARGET_DEFAULT_FUNC.
216 2014-02-19 Tom Tromey <tromey@redhat.com>
218 * target-delegates.c: Rebuild.
219 * target.c (update_current_target): Don't inherit or default
220 to_remove_watchpoint.
221 * target.h (struct target_ops) <to_remove_watchpoint>: Use
222 TARGET_DEFAULT_NORETURN.
224 2014-02-19 Tom Tromey <tromey@redhat.com>
226 * target-delegates.c: Rebuild.
227 * target.c (update_current_target): Don't inherit or default
228 to_insert_watchpoint.
229 * target.h (struct target_ops) <to_insert_watchpoint>: Use
230 TARGET_DEFAULT_RETURN.
232 2014-02-19 Tom Tromey <tromey@redhat.com>
234 * target-delegates.c: Rebuild.
235 * target.c (update_current_target): Don't inherit or default
236 to_remove_hw_breakpoint.
237 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
238 TARGET_DEFAULT_RETURN.
240 2014-02-19 Tom Tromey <tromey@redhat.com>
242 * target-delegates.c: Rebuild.
243 * target.c (update_current_target): Don't inherit or default
244 to_insert_hw_breakpoint.
245 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
246 TARGET_DEFAULT_RETURN.
248 2014-02-19 Tom Tromey <tromey@redhat.com>
250 * target-delegates.c: Rebuild.
251 * target.c (update_current_target): Don't inherit or default
252 to_can_use_hw_breakpoint.
253 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
254 TARGET_DEFAULT_RETURN.
256 2014-02-19 Tom Tromey <tromey@redhat.com>
258 * target-delegates.c: Rebuild.
259 * target.c (update_current_target): Don't inherit or default
261 * target.h (struct target_ops) <to_files_info>: Use
262 TARGET_DEFAULT_IGNORE.
264 2014-02-19 Tom Tromey <tromey@redhat.com>
266 * target-delegates.c: Rebuild.
267 * target.c (update_current_target): Don't inherit or default
269 * target.h (struct target_ops) <to_store>: Use
270 TARGET_DEFAULT_NORETURN.
272 2014-02-19 Tom Tromey <tromey@redhat.com>
274 * target-delegates.c: Rebuild.
275 * target.c (update_current_target): Don't inherit or default
277 * target.h (struct target_ops) <to_post_attach>: Use
278 TARGET_DEFAULT_IGNORE.
280 2014-02-19 Tom Tromey <tromey@redhat.com>
282 * target-delegates.c: Rebuild.
283 * target.c (update_current_target): Don't inherit or default
285 (default_rcmd): New function.
286 (do_monitor_command): Unconditionally delegate.
287 * target.h (struct target_ops) <to_rmcd>: Use
290 2014-02-19 Tom Tromey <tromey@redhat.com>
292 * target-delegates.c: Rebuild.
293 * target.c (init_dummy_target): Don't initialize to_attach.
294 (target_attach): Unconditionally delegate.
295 * target.h (struct target_ops) <to_attach>: Use
298 2014-02-19 Tom Tromey <tromey@redhat.com>
300 * target-delegates.c: Rebuild.
301 * target.c (target_detach): Unconditionally delegate.
302 (init_dummy_target): Don't initialize to_detach.
303 * target.h (struct target_ops) <to_detach>: Use
304 TARGET_DEFAULT_IGNORE.
306 2014-02-19 Tom Tromey <tromey@redhat.com>
308 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
310 (target_augmented_libraries_svr4_read): Add argument.
311 * target.c (update_current_target): Update.
312 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
315 2014-02-19 Tom Tromey <tromey@redhat.com>
317 * target.h (struct target_ops) <to_call_history_range>: Add
319 * target.c (target_call_history_range): Add argument.
320 * record-btrace.c (record_btrace_call_history_range): Add 'self'
322 (record_btrace_call_history_from): Update.
324 2014-02-19 Tom Tromey <tromey@redhat.com>
326 * target.h (struct target_ops) <to_call_history_from>: Add
328 * target.c (target_call_history_from): Add argument.
329 * record-btrace.c (record_btrace_call_history_from): Add 'self'
332 2014-02-19 Tom Tromey <tromey@redhat.com>
334 * target.h (struct target_ops) <to_call_history>: Add argument.
335 * target.c (target_call_history): Add argument.
336 * record-btrace.c (record_btrace_call_history): Add 'self'
339 2014-02-19 Tom Tromey <tromey@redhat.com>
341 * target.h (struct target_ops) <to_insn_history_range>: Add
343 * target.c (target_insn_history_range): Add argument.
344 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
346 (record_btrace_insn_history_from): Update.
348 2014-02-19 Tom Tromey <tromey@redhat.com>
350 * target.h (struct target_ops) <to_insn_history_from>: Add
352 * target.c (target_insn_history_from): Add argument.
353 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
356 2014-02-19 Tom Tromey <tromey@redhat.com>
358 * target.h (struct target_ops) <to_insn_history>: Add argument.
359 * target.c (target_insn_history): Add argument.
360 * record-btrace.c (record_btrace_insn_history): Add 'self'
363 2014-02-19 Tom Tromey <tromey@redhat.com>
365 * target.h (struct target_ops) <to_goto_record>: Add argument.
366 * target.c (target_goto_record): Add argument.
367 * record-full.c (record_full_goto): Add 'self' argument.
368 * record-btrace.c (record_btrace_goto): Add 'self' argument.
370 2014-02-19 Tom Tromey <tromey@redhat.com>
372 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
373 * target.c (target_goto_record_end): Add argument.
374 * record-full.c (record_full_goto_end): Add 'self' argument.
375 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
377 2014-02-19 Tom Tromey <tromey@redhat.com>
379 * target.h (struct target_ops) <to_goto_record_begin>: Add
381 * target.c (target_goto_record_begin): Add argument.
382 * record-full.c (record_full_goto_begin): Add 'self' argument.
383 * record-btrace.c (record_btrace_goto_begin): Add 'self'
386 2014-02-19 Tom Tromey <tromey@redhat.com>
388 * target.h (struct target_ops) <to_record_is_replaying>: Add
390 * target.c (target_record_is_replaying): Add argument.
391 * record-full.c (record_full_is_replaying): Add 'self' argument.
392 * record-btrace.c (record_btrace_is_replaying): Add 'self'
394 (record_btrace_xfer_partial, record_btrace_store_registers)
395 (record_btrace_prepare_to_store, record_btrace_resume)
396 (record_btrace_wait, record_btrace_decr_pc_after_break)
397 (record_btrace_find_new_threads, record_btrace_thread_alive):
400 2014-02-19 Tom Tromey <tromey@redhat.com>
402 * target.h (struct target_ops) <to_delete_record>: Add argument.
403 * target.c (target_delete_record): Add argument.
404 * record-full.c (record_full_delete): Add 'self' argument.
406 2014-02-19 Tom Tromey <tromey@redhat.com>
408 * target.h (struct target_ops) <to_save_record>: Add argument.
409 * target.c (target_save_record): Add argument.
410 * record-full.c (record_full_save): Add 'self' argument.
411 (record_full_save): Add 'self' argument.
413 2014-02-19 Tom Tromey <tromey@redhat.com>
415 * target.h (struct target_ops) <to_info_record>: Add argument.
416 * target.c (target_info_record): Add argument.
417 * record.c (info_record_command): Add argument.
418 * record-full.c (record_full_info): Add 'self' argument.
419 * record-btrace.c (record_btrace_info): Add 'self' argument.
421 2014-02-19 Tom Tromey <tromey@redhat.com>
423 * target.h (struct target_ops) <to_stop_recording>: Add argument.
424 * target.c (target_stop_recording): Add argument.
425 * record.c (record_stop): Add argument.
426 * record-btrace.c (record_btrace_stop_recording): Add 'self'
429 2014-02-19 Tom Tromey <tromey@redhat.com>
431 * target.h (struct target_ops) <to_read_btrace>: Add argument.
432 * target.c (struct target_ops) <to_read_btrace>: Add argument.
433 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
435 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
436 (_initialize_amd64_linux_nat): Use it.
437 * i386-linux-nat.c (i386_linux_read_btrace): New function.
438 (_initialize_i386_linux_nat): Use it.
440 2014-02-19 Tom Tromey <tromey@redhat.com>
442 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
443 * target.c (target_teardown_btrace): Add argument.
444 * remote.c (remote_teardown_btrace): Add 'self' argument.
445 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
447 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
450 2014-02-19 Tom Tromey <tromey@redhat.com>
452 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
453 * target.c (target_disable_btrace): Add argument.
454 * remote.c (remote_disable_btrace): Add 'self' argument.
455 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
457 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
460 2014-02-19 Tom Tromey <tromey@redhat.com>
462 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
463 * target.c (target_enable_btrace): Add argument.
464 * remote.c (remote_enable_btrace): Add 'self' argument.
465 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
467 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
470 2014-02-19 Tom Tromey <tromey@redhat.com>
472 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
473 (target_can_use_agent): Add argument.
474 * target.c (update_current_target): Update.
475 * remote.c (remote_can_use_agent): Add 'self' argument.
476 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
478 2014-02-19 Tom Tromey <tromey@redhat.com>
480 * target.h (struct target_ops) <to_use_agent>: Add argument.
481 (target_use_agent): Add argument.
482 * target.c (update_current_target): Update.
483 * remote.c (remote_use_agent): Add 'self' argument.
484 * inf-child.c (inf_child_use_agent): Add 'self' argument.
486 2014-02-19 Tom Tromey <tromey@redhat.com>
488 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
489 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
490 (target_traceframe_info): Add argument.
491 * target.c (update_current_target): Update.
492 * remote.c (remote_traceframe_info): Add 'self' argument.
493 * ctf.c (ctf_traceframe_info): Add 'self' argument.
495 2014-02-19 Tom Tromey <tromey@redhat.com>
497 * target.h (target_static_tracepoint_markers_by_strid): Add
499 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
501 * target.c (update_current_target): Update.
502 * remote.c (struct target_ops)
503 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
504 * linux-nat.c (struct target_ops)
505 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
507 2014-02-19 Tom Tromey <tromey@redhat.com>
509 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
511 (target_static_tracepoint_marker_at): Add argument.
512 * target.c (update_current_target): Update.
513 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
516 2014-02-19 Tom Tromey <tromey@redhat.com>
518 * target.h (struct target_ops) <to_set_permissions>: Add argument.
519 (target_set_permissions): Add argument.
520 * target.c (update_current_target): Update.
521 * remote.c (remote_set_permissions): Add 'self' argument.
522 (remote_start_remote): Update.
524 2014-02-19 Tom Tromey <tromey@redhat.com>
526 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
527 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
528 (target_get_tib_address): Add argument.
529 * target.c (update_current_target): Update.
530 * remote.c (remote_get_tib_address): Add 'self' argument.
532 2014-02-19 Tom Tromey <tromey@redhat.com>
534 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
535 (target_set_trace_notes): Add argument.
536 * target.c (update_current_target): Update.
537 * remote.c (remote_set_trace_notes): Add 'self' argument.
539 2014-02-19 Tom Tromey <tromey@redhat.com>
541 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
543 (target_set_trace_buffer_size): Add argument.
544 * target.c (update_current_target): Update.
545 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
547 2014-02-19 Tom Tromey <tromey@redhat.com>
549 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
551 (target_set_circular_trace_buffer): Add argument.
552 * target.c (update_current_target): Update.
553 * remote.c (remote_set_circular_trace_buffer): Add 'self'
556 2014-02-19 Tom Tromey <tromey@redhat.com>
558 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
560 (target_set_disconnected_tracing): Add argument.
561 * target.c (update_current_target): Update.
562 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
564 2014-02-19 Tom Tromey <tromey@redhat.com>
566 * target.h (struct target_ops)
567 <to_get_min_fast_tracepoint_insn_len>: Add argument.
568 (target_get_min_fast_tracepoint_insn_len): Add argument.
569 * target.c (update_current_target): Update.
570 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
573 2014-02-19 Tom Tromey <tromey@redhat.com>
575 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
577 (target_get_raw_trace_data): Add argument.
578 * target.c (update_current_target): Update.
579 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
581 2014-02-19 Tom Tromey <tromey@redhat.com>
583 * target.h (struct target_ops) <to_upload_trace_state_variables>:
585 (target_upload_trace_state_variables): Add argument.
586 * target.c (update_current_target): Update.
587 * remote.c (remote_upload_trace_state_variables): Add 'self'
589 (remote_start_remote): Update.
591 2014-02-19 Tom Tromey <tromey@redhat.com>
593 * target.h (struct target_ops) <to_upload_tracepoints>: Add
595 (target_upload_tracepoints): Add argument.
596 * target.c (update_current_target): Update.
597 * remote.c (remote_upload_tracepoints): Add 'self' argument.
598 (remote_start_remote): Update.
600 2014-02-19 Tom Tromey <tromey@redhat.com>
602 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
603 (target_save_trace_data): Add argument.
604 * target.c (update_current_target): Update.
605 * remote.c (remote_save_trace_data): Add 'self' argument.
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
611 * target.h (struct target_ops)
612 <to_get_trace_state_variable_value>: Add argument.
613 (target_get_trace_state_variable_value): Add argument.
614 * target.c (update_current_target): Update.
615 * remote.c (remote_get_trace_state_variable_value): Add 'self'
617 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
619 2014-02-19 Tom Tromey <tromey@redhat.com>
621 * tracepoint.c (tfile_trace_find): Add 'self' argument.
622 * target.h (struct target_ops) <to_trace_find>: Add argument.
623 (target_trace_find): Add argument.
624 * target.c (update_current_target): Update.
625 * remote.c (remote_trace_find): Add 'self' argument.
626 * ctf.c (ctf_trace_find): Add 'self' argument.
628 2014-02-19 Tom Tromey <tromey@redhat.com>
630 * target.h (struct target_ops) <to_trace_stop>: Add argument.
631 (target_trace_stop): Add argument.
632 * target.c (update_current_target): Update.
633 * remote.c (remote_trace_stop): Add 'self' argument.
635 2014-02-19 Tom Tromey <tromey@redhat.com>
637 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
638 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
640 (target_get_tracepoint_status): Add argument.
641 * target.c (update_current_target): Update.
642 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
644 2014-02-19 Tom Tromey <tromey@redhat.com>
646 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
647 * target.h (struct target_ops) <to_get_trace_status>: Add
649 (target_get_trace_status): Add argument.
650 * target.c (update_current_target): Update.
651 * remote.c (remote_get_trace_status): Add 'self' argument.
652 (remote_start_remote, remote_can_download_tracepoint): Update.
653 * ctf.c (ctf_get_trace_status): Add 'self' argument.
655 2014-02-19 Tom Tromey <tromey@redhat.com>
657 * target.h (struct target_ops) <to_trace_start>: Add argument.
658 (target_trace_start): Add argument.
659 * target.c (update_current_target): Update.
660 * remote.c (remote_trace_start): Add 'self' argument.
662 2014-02-19 Tom Tromey <tromey@redhat.com>
664 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
666 (target_trace_set_readonly_regions): Add argument.
667 * target.c (update_current_target): Update.
668 * remote.c (remote_trace_set_readonly_regions): Add 'self'
671 2014-02-19 Tom Tromey <tromey@redhat.com>
673 * target.h (struct target_ops) <to_disable_tracepoint>: Add
675 (target_disable_tracepoint): Add argument.
676 * target.c (update_current_target): Update.
677 * remote.c (remote_disable_tracepoint): Add 'self' argument.
679 2014-02-19 Tom Tromey <tromey@redhat.com>
681 * target.h (struct target_ops) <to_enable_tracepoint>: Add
683 (target_enable_tracepoint): Add argument.
684 * target.c (update_current_target): Update.
685 * remote.c (remote_enable_tracepoint): Add 'self' argument.
687 2014-02-19 Tom Tromey <tromey@redhat.com>
689 * target.h (struct target_ops) <to_download_trace_state_variable>:
691 (target_download_trace_state_variable): Add argument.
692 * target.c (update_current_target): Update.
693 * remote.c (remote_download_trace_state_variable): Add 'self'
696 2014-02-19 Tom Tromey <tromey@redhat.com>
698 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
700 (target_can_download_tracepoint): Add argument.
701 * target.c (update_current_target): Update.
702 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
704 2014-02-19 Tom Tromey <tromey@redhat.com>
706 * target.h (struct target_ops) <to_download_tracepoint>: Add
708 (target_download_tracepoint): Add argument.
709 * target.c (update_current_target): Update.
710 * remote.c (remote_download_tracepoint): Add 'self' argument.
712 2014-02-19 Tom Tromey <tromey@redhat.com>
714 * target.h (struct target_ops) <to_trace_init>: Add argument.
715 (target_trace_init): Add argument.
716 * target.c (update_current_target): Update.
717 * remote.c (remote_trace_init): Add 'self' argument.
719 2014-02-19 Tom Tromey <tromey@redhat.com>
721 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
722 * target.c (target_fileio_readlink): Add argument.
723 * remote.c (remote_hostio_readlink): Add 'self' argument.
724 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
726 2014-02-19 Tom Tromey <tromey@redhat.com>
728 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
729 * target.c (target_fileio_unlink): Add argument.
730 * remote.c (remote_hostio_unlink): Add 'self' argument.
731 (remote_file_delete): Update.
732 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
734 2014-02-19 Tom Tromey <tromey@redhat.com>
736 * target.h (struct target_ops) <to_fileio_close>: Add argument.
737 * target.c (target_fileio_close): Add argument.
738 * remote.c (remote_hostio_close): Add 'self' argument.
739 (remote_hostio_close_cleanup): Update.
740 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
742 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
744 2014-02-19 Tom Tromey <tromey@redhat.com>
746 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
747 * target.c (target_fileio_pread): Add argument.
748 * remote.c (remote_hostio_pread): Add 'self' argument.
749 (remote_bfd_iovec_pread, remote_file_get): Update.
750 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
752 2014-02-19 Tom Tromey <tromey@redhat.com>
754 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
755 * target.c (target_fileio_pwrite): Add argument.
756 * remote.c (remote_hostio_pwrite): Add 'self' argument.
757 (remote_file_put): Update.
758 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
760 2014-02-19 Tom Tromey <tromey@redhat.com>
762 * target.h (struct target_ops) <to_fileio_open>: Add argument.
763 * target.c (target_fileio_open): Add argument.
764 * remote.c (remote_hostio_open): Add 'self' argument.
765 (remote_bfd_iovec_open): Add 'self' argument.
766 (remote_file_put): Add 'self' argument.
767 (remote_file_get): Add 'self' argument.
768 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
770 2014-02-19 Tom Tromey <tromey@redhat.com>
772 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
774 (target_can_run_breakpoint_commands): Add argument.
775 * target.c (update_current_target): Update.
776 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
778 (remote_insert_breakpoint): Add 'self' argument.
779 (remote_insert_hw_breakpoint): Add 'self' argument.
780 (remote_can_run_breakpoint_commands): Add 'self' argument.
782 2014-02-19 Tom Tromey <tromey@redhat.com>
784 * target.h (struct target_ops)
785 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
786 (target_supports_evaluation_of_breakpoint_conditions): Add
788 * target.c (update_current_target): Update.
789 * remote.c (remote_supports_cond_breakpoints): Add 'self'
791 (remote_insert_breakpoint): Add 'self' argument.
792 (remote_insert_hw_breakpoint): Add 'self' argument.
793 (remote_supports_cond_breakpoints): Add 'self' argument.
795 2014-02-19 Tom Tromey <tromey@redhat.com>
797 * target.h (struct target_ops) <to_supports_string_tracing>: Add
799 (target_supports_string_tracing): Add argument.
800 * target.c (update_current_target): Update.
801 * remote.c (remote_supports_string_tracing): Add 'self' argument.
803 2014-02-19 Tom Tromey <tromey@redhat.com>
805 * target.h (struct target_ops)
806 <to_supports_disable_randomization>: Add argument.
807 * target.c (find_default_supports_disable_randomization): Add
809 (target_supports_disable_randomization): Add argument.
810 (find_default_supports_disable_randomization): Add 'self'
812 * remote.c (extended_remote_supports_disable_randomization): Add
814 (remote_supports_disable_randomization): Add 'self' argument.
815 (extended_remote_create_inferior): Update.
816 * linux-nat.c (linux_nat_supports_disable_randomization): Add
819 2014-02-19 Tom Tromey <tromey@redhat.com>
821 * target.h (struct target_ops)
822 <to_supports_enable_disable_tracepoint>: Add argument.
823 (target_supports_enable_disable_tracepoint): Add argument.
824 * target.c (update_current_target): Update.
825 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
828 2014-02-19 Tom Tromey <tromey@redhat.com>
830 * target.h (struct target_ops) <to_supports_multi_process>: Add
832 (target_supports_multi_process): Add argument.
833 * target.c (update_current_target): Update.
834 * remote.c (remote_supports_multi_process): Add 'self' argument.
835 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
837 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
840 2014-02-19 Tom Tromey <tromey@redhat.com>
842 * target.h (struct target_ops) <to_execution_direction>: Add
844 (target_execution_direction): Add argument.
845 * target.c (default_execution_direction): Add 'self' argument.
846 * record-full.c (record_full_execution_direction): Add 'self'
849 2014-02-19 Tom Tromey <tromey@redhat.com>
851 * target.h (struct target_ops) <to_can_execute_reverse>: Add
853 (target_can_execute_reverse): Add argument.
854 * remote.c (remote_can_execute_reverse): Add 'self' argument.
855 * record-full.c (record_full_can_execute_reverse): Add 'self'
857 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
860 2014-02-19 Tom Tromey <tromey@redhat.com>
862 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
863 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
865 (target_get_ada_task_ptid): Add argument.
866 * target.c (update_current_target): Update.
867 (default_get_ada_task_ptid): Add 'self' argument.
868 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
869 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
870 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
872 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
874 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
876 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
878 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
879 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
882 2014-02-19 Tom Tromey <tromey@redhat.com>
884 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
885 (target_goto_bookmark): Add argument.
886 * target.c (dummy_goto_bookmark): Add 'self' argument.
887 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
889 2014-02-19 Tom Tromey <tromey@redhat.com>
891 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
892 (target_get_bookmark): Add argument.
893 * target.c (dummy_get_bookmark): Add 'self' argument.
894 * record-full.c (record_full_get_bookmark): Add 'self' argument.
896 2014-02-19 Tom Tromey <tromey@redhat.com>
898 * target.h (struct target_ops) <to_make_corefile_notes>: Add
900 (target_make_corefile_notes): Add argument.
901 * target.c (dummy_make_corefile_notes): Add 'self' argument.
902 * procfs.c (procfs_make_note_section): Add 'self' argument.
903 (procfs_make_note_section): Add 'self' argument.
904 (procfs_make_note_section): Add 'self' argument.
905 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
907 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
908 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
909 * exec.c (exec_make_note_section): Add 'self' argument.
910 (exec_make_note_section): Add 'self' argument.
912 2014-02-19 Tom Tromey <tromey@redhat.com>
914 * target.h (struct target_ops) <to_find_memory_regions>: Add
916 (target_find_memory_regions): Add argument.
917 * target.c (dummy_find_memory_regions): Add 'self' argument.
918 * procfs.c (proc_find_memory_regions): Add 'self' argument.
919 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
920 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
921 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
922 * exec. (exec_do_find_memory_regions): New global.
923 (exec_set_find_memory_regions): Rewrite.
924 (exec_find_memory_regions): New function.
925 (init_exec_ops): Use exec_find_memory_regions.
927 2014-02-19 Tom Tromey <tromey@redhat.com>
929 * target.h (struct target_ops) <to_supports_non_stop>: Add
931 * target.c (find_default_supports_non_stop): Add argument.
932 (target_supports_non_stop): Add argument.
933 (find_default_supports_non_stop): Add 'self' argument.
934 * remote.c (remote_supports_non_stop): Add 'self' argument.
935 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
937 2014-02-19 Tom Tromey <tromey@redhat.com>
939 * target.h (struct target_ops) <to_log_command>: Add argument.
940 (target_log_command): Add argument.
941 * serial.h (serial_log_command): Add 'self' argument.
942 * serial.c (serial_log_command): Add 'self' argument.
944 2014-02-19 Tom Tromey <tromey@redhat.com>
946 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
947 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
949 (target_pid_to_exec_file): Add argument.
950 * target.c (debug_to_pid_to_exec_file): Add argument.
951 (update_current_target): Update.
952 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
953 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
954 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
955 (linux_handle_extended_wait): Update.
956 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
957 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
958 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
959 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
961 2014-02-19 Tom Tromey <tromey@redhat.com>
963 * target.h (struct target_ops) <to_rcmd>: Add argument.
964 (target_rcmd): Add argument.
965 * target.c (debug_to_rcmd): Add argument.
966 (update_current_target, do_monitor_command): Update.
967 * remote.c (remote_rcmd): Add 'self' argument.
968 * monitor.c (monitor_rcmd): Add 'self' argument.
970 2014-02-19 Tom Tromey <tromey@redhat.com>
972 * windows-nat.c (windows_stop): Add 'self' argument.
973 * target.h (struct target_ops) <to_stop>: Add argument.
974 * target.c (target_stop): Add argument.
975 (debug_to_stop): Add argument.
976 (update_current_target): Update.
977 * remote.c (remote_stop): Add 'self' argument.
978 * remote-sim.c (gdbsim_stop): Add 'self' argument.
979 (gdbsim_cntrl_c): Update.
980 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
981 * procfs.c (procfs_stop): Add 'self' argument.
982 * nto-procfs.c (procfs_stop): Add 'self' argument.
983 * monitor.c (monitor_stop): Add 'self' argument.
984 (monitor_open): Update.
985 * linux-nat.c (linux_nat_stop): Add argument.
986 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
987 * gnu-nat.c (gnu_stop): Add 'self' argument.
988 * darwin-nat.c (darwin_stop): Add 'self' argument.
990 2014-02-19 Tom Tromey <tromey@redhat.com>
992 * target.h (struct target_ops) <to_thread_name>: Add argument.
993 * target.c (target_thread_name): Add argument.
994 (update_current_target): Update.
995 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
997 2014-02-19 Tom Tromey <tromey@redhat.com>
999 * target.h (struct target_ops) <to_extra_thread_info>: Add
1001 (target_extra_thread_info): Add argument.
1002 * target.c (update_current_target): Update.
1003 * remote.c (remote_threads_extra_info): Add 'self' argument.
1004 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
1006 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
1007 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
1008 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
1010 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
1012 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
1014 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
1017 2014-02-19 Tom Tromey <tromey@redhat.com>
1019 * target.h (struct target_ops) <to_program_signals>: Add argument.
1020 * target.c (target_program_signals): Add argument.
1021 * remote.c (remote_program_signals): Add 'self' argument.
1023 2014-02-19 Tom Tromey <tromey@redhat.com>
1025 * target.h (struct target_ops) <to_pass_signals>: Add argument.
1026 * target.c (target_pass_signals): Add argument.
1027 * remote.c (remote_pass_signals): Add 'self' argument.
1028 (remote_start_remote): Update.
1029 * procfs.c (procfs_pass_signals): Add 'self' argument.
1030 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
1031 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
1032 (linux_nat_create_inferior, linux_nat_attach): Update.
1034 2014-02-19 Tom Tromey <tromey@redhat.com>
1036 * windows-nat.c (windows_can_run): Add 'self' argument.
1037 * target.h (struct target_ops) <to_can_run>: Add argument.
1038 (target_can_run): Add argument.
1039 * target.c (debug_to_can_run): Add argument.
1040 (update_current_target): Update.
1041 * nto-procfs.c (procfs_can_run): Add 'self' argument.
1042 * inf-child.c (inf_child_can_run): Add 'self' argument.
1043 * go32-nat.c (go32_can_run): Add 'self' argument.
1045 2014-02-19 Tom Tromey <tromey@redhat.com>
1047 * target.h (struct target_ops) <to_has_exited>: Add argument.
1048 (target_has_exited): Add argument.
1049 * target.c (debug_to_has_exited): Add argument.
1050 (update_current_target): Update.
1052 2014-02-19 Tom Tromey <tromey@redhat.com>
1054 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
1056 (target_set_syscall_catchpoint): Add argument.
1057 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
1059 * target.c (update_current_target): Update.
1061 2014-02-19 Tom Tromey <tromey@redhat.com>
1063 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1065 (target_remove_exec_catchpoint): Add argument.
1066 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1067 (update_current_target): Update.
1068 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1071 2014-02-19 Tom Tromey <tromey@redhat.com>
1073 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1075 (target_insert_exec_catchpoint): Add argument.
1076 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1077 (update_current_target): Update.
1078 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1081 2014-02-19 Tom Tromey <tromey@redhat.com>
1083 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1085 (target_remove_vfork_catchpoint): Add argument.
1086 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1087 (update_current_target): Update.
1088 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1091 2014-02-19 Tom Tromey <tromey@redhat.com>
1093 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1095 (target_insert_vfork_catchpoint): Add argument.
1096 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1097 (update_current_target): Update.
1098 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1101 2014-02-19 Tom Tromey <tromey@redhat.com>
1103 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1105 (target_remove_fork_catchpoint): Add argument.
1106 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1107 (update_current_target): Update.
1108 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1111 2014-02-19 Tom Tromey <tromey@redhat.com>
1113 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1115 (target_insert_fork_catchpoint): Add argument.
1116 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1117 (update_current_target): Update.
1118 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1121 2014-02-19 Tom Tromey <tromey@redhat.com>
1123 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1125 (target_post_startup_inferior): Add argument.
1126 * target.c (debug_to_post_startup_inferior): Add argument.
1127 (update_current_target): Update.
1128 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1130 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1132 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1134 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1136 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1138 (super_post_startup_inferior): Likewise.
1139 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1141 (super_post_startup_inferior): Likewise.
1142 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1143 Add 'self' argument.
1144 (super_post_startup_inferior): Likewise.
1146 2014-02-19 Tom Tromey <tromey@redhat.com>
1148 * target.h (struct target_ops) <to_load>: Add argument.
1149 * target.c (target_load): Add argument.
1150 (debug_to_load): Add argument.
1151 (update_current_target): Update.
1152 * remote.c (remote_load): Add 'self' argument.
1153 * remote-sim.c (gdbsim_load): Add 'self' argument.
1154 * remote-mips.c (mips_load): Add 'self' argument.
1155 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1156 * monitor.c (monitor_load): Add 'self' argument.
1157 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1159 2014-02-19 Tom Tromey <tromey@redhat.com>
1161 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1162 (target_terminal_info): Add argument.
1163 * target.c (debug_to_terminal_info): Add argument.
1164 (default_terminal_info): Likewise.
1165 * inflow.c (child_terminal_info): Add 'self' argument.
1166 * inferior.h (child_terminal_info): Add 'self' argument.
1167 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1169 2014-02-19 Tom Tromey <tromey@redhat.com>
1171 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1173 (target_terminal_save_ours): Add argument.
1174 * target.c (debug_to_terminal_save_ours): Add argument.
1175 (update_current_target): Update.
1176 * inflow.c (terminal_save_ours): Add 'self' argument.
1177 * inferior.h (terminal_save_ours): Add 'self' argument.
1179 2014-02-19 Tom Tromey <tromey@redhat.com>
1181 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1182 (target_terminal_ours): Add argument.
1183 * target.c (debug_to_terminal_ours): Add argument.
1184 (update_current_target): Update.
1185 * remote.c (remote_terminal_ours): Add 'self' argument.
1186 (remote_close): Update.
1187 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1188 * inflow.c (terminal_ours): Add 'self' argument.
1189 * inferior.h (terminal_ours): Add 'self' argument.
1190 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1192 2014-02-19 Pedro Alves <palves@redhat.com>
1193 Tom Tromey <tromey@redhat.com>
1195 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1197 (target_terminal_ours_for_output): Add argument.
1198 * target.c (debug_to_terminal_ours_for_output): Add argument.
1199 (update_current_target): Update.
1200 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1201 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1202 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1204 2014-02-19 Tom Tromey <tromey@redhat.com>
1206 * target.h (struct target_ops) <to_terminal_inferior>: Add
1208 * target.c (target_terminal_inferior): Add argument.
1209 (update_current_target): Update.
1210 * remote.c (remote_terminal_inferior): Add 'self' argument.
1211 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1212 * inflow.c (terminal_inferior): Add 'self' argument.
1213 * inferior.h (terminal_inferior): Add 'self' argument.
1214 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1215 (go32_terminal_inferior): Add 'self' argument.
1217 2014-02-19 Tom Tromey <tromey@redhat.com>
1219 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1220 (target_terminal_init): Add argument.
1221 * target.c (debug_to_terminal_init): Add argument.
1222 (update_current_target): Update.
1223 * inflow.c (terminal_init_inferior): Add 'self' argument.
1224 * inferior.h (terminal_init_inferior): Add 'self' argument.
1225 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1226 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1228 2014-02-19 Tom Tromey <tromey@redhat.com>
1230 * target.h (struct target_ops)
1231 <to_can_accel_watchpoint_condition>: Add argument.
1232 (target_can_accel_watchpoint_condition): Add argument.
1233 * target.c (debug_to_can_accel_watchpoint_condition): Add
1235 (update_current_target): Update.
1236 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1239 2014-02-19 Tom Tromey <tromey@redhat.com>
1241 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1243 (target_region_ok_for_hw_watchpoint): Add argument.
1244 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1245 (default_region_ok_for_hw_watchpoint): Add argument.
1246 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1247 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1249 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1251 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1253 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1255 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1257 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1259 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1260 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1262 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1263 Add 'self' argument.
1265 2014-02-19 Tom Tromey <tromey@redhat.com>
1267 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1269 (target_insert_watchpoint): Add argument.
1270 * target.c (debug_to_insert_watchpoint): Add argument.
1271 (update_current_target): Update.
1272 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1273 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1274 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1275 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1276 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1277 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1279 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1280 (procfs_insert_hw_watchpoint): Add 'self' argument.
1281 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1283 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1285 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1287 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1288 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1290 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1293 2014-02-19 Tom Tromey <tromey@redhat.com>
1295 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1297 (target_remove_watchpoint): Add argument.
1298 * target.c (debug_to_remove_watchpoint): Add argument.
1299 (update_current_target): Update.
1300 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1301 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1302 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1303 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1304 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1305 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1307 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1308 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1310 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1312 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1314 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1315 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1317 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1320 2014-02-19 Tom Tromey <tromey@redhat.com>
1322 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1324 (target_remove_hw_breakpoint): Add argument.
1325 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1326 (update_current_target): Update.
1327 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1328 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1330 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1331 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1333 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1336 2014-02-19 Tom Tromey <tromey@redhat.com>
1338 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1340 (target_insert_hw_breakpoint): Add argument.
1341 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1342 (update_current_target): Update.
1343 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1344 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1346 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1347 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1348 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1350 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1353 2014-02-19 Tom Tromey <tromey@redhat.com>
1355 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1357 (target_can_use_hardware_watchpoint): Add argument.
1358 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1359 (update_current_target): Update.
1360 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1362 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1364 * remote.c (remote_check_watch_resources): Add 'self' argument.
1365 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1366 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1368 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1369 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1371 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1373 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1375 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1377 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1379 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1381 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1382 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1384 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1387 2014-02-19 Tom Tromey <tromey@redhat.com>
1389 * target.h (struct target_ops) <to_post_attach>: Add argument.
1390 (target_post_attach): Add argument.
1391 * target.c (debug_to_post_attach): Add argument.
1392 (update_current_target): Update.
1393 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1394 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1395 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1396 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1397 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1399 2014-02-19 Tom Tromey <tromey@redhat.com>
1401 * windows-nat.c (windows_close): Add 'self' argument.
1402 * tracepoint.c (tfile_close): Add 'self' argument.
1403 * target.h (struct target_ops) <to_close>: Add argument.
1404 * target.c (target_close): Add argument.
1405 (update_current_target): Update.
1406 * remote.c (remote_close): Add 'self' argument.
1407 * remote-sim.c (gdbsim_close): Add 'self' argument.
1408 * remote-mips.c (mips_close): Add 'self' argument.
1409 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1410 * record-full.c (record_full_close): Add 'self' argument.
1411 * record-btrace.c (record_btrace_close): Add 'self' argument.
1412 * monitor.h (monitor_close): Add 'self' argument.
1413 * monitor.c (monitor_close): Add 'self' argument.
1414 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1415 * linux-nat.c (linux_nat_close): Add argument.
1416 * go32-nat.c (go32_close): Add 'self' argument.
1417 * exec.c (exec_close_1): Add 'self' argument.
1418 * ctf.c (ctf_close): Add 'self' argument.
1419 * corelow.c (core_close): Add 'self' argument.
1420 (core_close_cleanup): Update.
1421 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1422 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1424 2014-02-19 Tom Tromey <tromey@redhat.com>
1426 * remote.c (remote_load): New function.
1427 (init_remote_ops): Use it.
1429 2014-02-19 Tom Tromey <tromey@redhat.com>
1431 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1433 * common/linux-btrace.h (linux_supports_btrace): Update.
1434 * remote.c (remote_supports_btrace): Add "self" argument.
1435 * target-delegates.c: Rebuild.
1436 * target.c (target_supports_btrace): Remove.
1437 * target.h (struct target_ops) <to_supports_btrace>: Add
1438 target_ops argument.
1439 (target_supports_btrace): New define.
1441 2014-02-19 Tom Tromey <tromey@redhat.com>
1443 * record-full.c (record_full_beneath_to_resume_ops)
1444 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1445 (record_full_beneath_to_wait)
1446 (record_full_beneath_to_store_registers_ops)
1447 (record_full_beneath_to_store_registers)
1448 (record_full_beneath_to_xfer_partial_ops)
1449 (record_full_beneath_to_xfer_partial)
1450 (record_full_beneath_to_insert_breakpoint_ops)
1451 (record_full_beneath_to_insert_breakpoint)
1452 (record_full_beneath_to_remove_breakpoint_ops)
1453 (record_full_beneath_to_remove_breakpoint)
1454 (record_full_beneath_to_stopped_by_watchpoint)
1455 (record_full_beneath_to_stopped_data_address)
1456 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1457 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1458 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1459 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1460 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1461 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1462 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1463 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1464 (record_full_resume, record_full_wait_1)
1465 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1466 (record_full_store_registers, record_full_xfer_partial)
1467 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1468 (record_full_async, record_full_core_xfer_partial): Use target
1470 * target-delegates.c: Rebuild.
1471 * target.c (current_xfer_partial): Remove.
1472 (update_current_target): Do not INHERIT or de_fault
1473 to_insert_breakpoint, to_remove_breakpoint,
1474 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1475 to_is_async_p, to_async. Do not set to_xfer_partial field.
1476 (default_xfer_partial): Simplify.
1477 (current_xfer_partial): Remove.
1478 (target_wait, target_resume): Simplify.
1479 (find_default_can_async_p, find_default_is_async_p): Update.
1480 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1481 to_xfer_partial, to_stopped_by_watchpoint,
1482 to_stopped_data_address.
1483 (target_store_registers): Simplify.
1484 (forward_target_remove_breakpoint)
1485 (forward_target_insert_breakpoint): Remove.
1486 (target_remove_breakpoint, target_insert_breakpoint)
1487 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1488 * target.h (struct target_ops) <to_resume, to_wait,
1489 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1490 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1491 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1493 (forward_target_remove_breakpoint)
1494 (forward_target_insert_breakpoint): Remove.
1495 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1497 (record_btrace_insert_breakpoint): Delegate directly.
1499 2014-02-19 Tom Tromey <tromey@redhat.com>
1502 * target-delegates.c: New file.
1503 * target.c: Include target-delegates.c.
1504 (init_dummy_target): Call install_dummy_methods.
1505 (complete_target_initialization): Call install_delegators.
1506 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1507 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1508 * make-target-delegates: New file.
1510 2014-02-19 Tom Tromey <tromey@redhat.com>
1512 * record.c (find_record_target): Use find_target_at.
1513 * target.c (find_target_at): New function.
1514 * target.h (find_target_at): Declare.
1516 2014-02-19 Tom Tromey <tromey@redhat.com>
1518 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1520 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1522 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1523 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1525 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1527 * linux-nat.c (save_sigtrap): Update.
1528 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1529 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1530 (linux_nat_close): Update.
1531 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1533 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1535 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1536 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1537 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1538 (tmp_to_async): Add 'ops' argument.
1539 (record_full_stopped_by_watchpoint, record_full_async)
1540 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1542 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1543 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1544 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1545 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1546 (remote_is_async_p, remote_async): Add 'ops' argument.
1547 (remote_stopped_data_address): Update.
1548 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1549 * target.c (update_current_target)
1550 (find_default_can_async_p, find_default_is_async_p): Update.
1551 (init_dummy_target): Update.
1552 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1553 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1554 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1555 (target_can_async_p, target_is_async_p, target_async)
1556 (target_stopped_by_watchpoint): Update.
1558 2014-02-19 Yao Qi <yao@codesourcery.com>
1561 * gdbarch.sh: Remove startup_gdbarch.
1562 * gdbarch.c: Regenerated.
1563 * gdbarch.h: Likewise.
1565 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1567 * rl78-tdep.c (rl78_g10_register_name): New function.
1568 (rl78_return_value): Add g10 support.
1569 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1572 2014-02-17 Doug Evans <xdje42@gmail.com>
1574 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1575 (SUBDIR_GUILE_SRCS): Ditto.
1576 (scm-gsmob.o): Ditto.
1578 2014-02-17 Yao Qi <yao@codesourcery.com>
1580 * gnu-nat.c (ILL_RPC): Declare defined function.
1582 2014-02-17 Yao Qi <yao@codesourcery.com>
1584 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1585 mach_msg_type_number_t.
1586 (gnu_write_inferior): Likewise.
1588 2014-02-17 Yao Qi <yao@codesourcery.com>
1590 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1592 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1593 (inf_validate_procs, inf_signal): Likewise.
1594 (S_exception_raise_request): Likewise.
1595 (do_mach_notify_dead_name): Likewise.
1596 (steal_exc_port): Likewise.
1597 (gnu_read_inferior): Change 'copy_count''s type to
1598 mach_msg_type_number_t.
1599 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1602 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1604 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1605 flag. Adjust all users; in particular...
1606 (gnu_wait): ..., don't decrement its value in here...
1607 (gnu_create_inferior): ..., and instead set the flag in here,
1608 around the startup_inferior call, and call that one with
1609 START_INFERIOR_TRAPS_EXPECTED.
1611 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1612 (ILL_RPC): ... new macro.
1613 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1614 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1615 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1616 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1617 functions with ILL_RPC macro.
1618 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1619 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1620 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1621 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1622 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1623 (S_proc_getlogin_reply, S_proc_getsid_reply)
1624 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1625 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1626 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1627 (S_proc_getnports_reply, S_proc_is_important_reply)
1628 (S_proc_get_code_reply): New stub functions, generated with
1631 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1632 collected the type check structures.
1634 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1636 2014-02-14 Doug Evans <dje@google.com>
1638 * target.c (target_write_partial): Fix result type.
1640 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1642 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1643 the proper offsets to access fpregset_t.
1645 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1647 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1648 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1649 * h8300-tdep.c (setmachinelist): Remove global.
1650 * hppa-tdep.c (hppa_sigtramp): Remove global.
1651 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1652 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1653 * ravenscar-thread.c (update_target_observer): Remove global.
1654 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1656 2014-02-12 Tom Tromey <tromey@redhat.com>
1658 * common/rsp-low.c: Update comments.
1659 * common/rsp-low.h: Update comments.
1661 2014-02-12 Tom Tromey <tromey@redhat.com>
1663 * common/rsp-low.c (convert_ascii_to_int): Remove.
1664 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1666 2014-02-12 Tom Tromey <tromey@redhat.com>
1668 * common/rsp-low.h (unhexify): Don't declare.
1669 * common/rsp-low.c (unhexify): Remove.
1671 2014-02-12 Tom Tromey <tromey@redhat.com>
1673 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1674 * common/rsp-low.c (convert_int_to_ascii): Remove.
1676 2014-02-12 Tom Tromey <tromey@redhat.com>
1678 * common/rsp-low.h (hexify): Don't declare.
1679 * common/rsp-low.c (hexify): Remove.
1681 2014-02-12 Tom Tromey <tromey@redhat.com>
1683 * common/rsp-low.c (hexify): Never take strlen of argument.
1685 2014-02-12 Tom Tromey <tromey@redhat.com>
1687 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1688 * remote.c (extended_remote_run, remote_rcmd)
1689 (remote_download_trace_state_variable, remote_save_trace_data)
1690 (remote_set_trace_notes): Update.
1691 * tracepoint.c (encode_source_string, tfile_write_status)
1692 (tfile_write_uploaded_tsv): Update.
1694 2014-02-12 Tom Tromey <tromey@redhat.com>
1696 * tracepoint.c: Include rsp-low.h.
1697 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1698 * remote.c: Include rsp-low.h.
1699 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1700 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1701 (remote_unescape_input): Move to common/rsp-low.c.
1702 * common/rsp-low.h: New file.
1703 * common/rsp-low.c: New file.
1704 * Makefile.in (SFILES): Add common/rsp-low.c.
1705 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1706 (COMMON_OBS): Add rsp-low.o.
1707 (rsp-low.o): New target.
1709 2014-02-12 Tom Tromey <tromey@redhat.com>
1711 * utils.h: Include print-utils.h.
1712 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1713 (int_string, core_addr_to_string, core_addr_to_string_nz)
1714 (hex_string, hex_string_custom): Don't declare.
1715 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1716 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1717 (hex_string_custom, int_string, core_addr_to_string)
1718 (core_addr_to_string_nz, host_address_to_string): Move to
1719 common/print-utils.c.
1720 * common/print-utils.h: New file.
1721 * common/print-utils.c: New file
1722 * Makefile.in (SFILES): Add common/print-utils.c.
1723 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1724 (COMMON_OBS): Add print-utils.o.
1725 (print-utils.o): New target.
1727 2014-02-12 Tom Tromey <tromey@redhat.com>
1729 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1731 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1733 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1735 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1737 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1738 if a PT_IO ptrace request returns sucessfully but indicates that 0
1739 bytes were transferred.
1741 2014-02-12 Pedro Alves <palves@redhat.com>
1742 Kevin Buettner <kevinb@redhat.com>
1744 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1745 TYPE_INSTANCE_FLAG_CODE_SPACE.
1747 2014-02-12 Pedro Alves <palves@redhat.com>
1749 * h8300-tdep.c (pseudo_from_raw_register)
1750 (raw_from_pseudo_register): New functions.
1751 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1754 2014-02-12 Pedro Alves <palves@redhat.com>
1756 * h8300-tdep.c (h8300_register_sim_regno): New function.
1757 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1758 gdbarch_register_sim_regno hook.
1760 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1762 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1764 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1766 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1768 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1770 * obsd-tdep.h (obsd_init_abi): New prototype.
1771 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1772 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1773 (obsd_init_abi): New functions.
1774 * i386obsd-tdep.c: Include "obsd-tdep.h".
1775 (i386obsd_init_abi): Call obsd_init_abi.
1776 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1777 (amd64obsd_init_abi): Call obsd_init_abi.
1778 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1779 obsd-tdep.c to gdb_target_obs.
1781 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1783 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1784 double float arguments to 16-byte in the argument slots.
1786 2014-02-11 Doug Evans <xdje42@gmail.com>
1788 * configure.ac: Don't crash if pkg-config is not found and guile
1789 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1791 * configure: Regenerate.
1793 2014-02-11 Yao Qi <yao@codesourcery.com>
1795 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1796 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1797 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1798 * gnu-nat.c (gnu_xfer_memory): Likewise.
1799 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1800 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1801 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1802 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1804 2014-02-11 Yao Qi <yao@codesourcery.com>
1806 * target.h (enum target_xfer_error): Rename to ...
1807 (enum target_xfer_status): ... it. New. All users updated.
1808 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1810 (TARGET_XFER_STATUS_ERROR_P): New macro.
1811 (target_xfer_error_to_string): Remove declaration.
1812 (target_xfer_status_to_string): Declare.
1813 (target_xfer_partial_ftype): Adjust it.
1814 (struct target_ops) <to_xfer_partial>: Return
1815 target_xfer_status. Add argument xfered_len. Update
1817 * target.c (target_xfer_error_to_string): Rename to ...
1818 (target_xfer_status_to_string): ... it. New. All callers
1820 (target_read_live_memory): Likewise. Call target_xfer_partial
1821 instead of target_read.
1822 (memory_xfer_live_readonly_partial): Return
1823 target_xfer_status. Add argument xfered_len.
1824 (raw_memory_xfer_partial): Likewise.
1825 (memory_xfer_partial_1): Likewise.
1826 (memory_xfer_partial): Likewise.
1827 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1828 properly. Update debug message.
1829 (default_xfer_partial, current_xfer_partial): Likewise.
1830 (target_write_partial): Likewise.
1831 (target_read_partial): Likewise. All callers updated.
1832 (read_whatever_is_readable): Likewise.
1833 (target_write_with_progress): Likewise.
1834 (target_read_alloc_1): Likewise.
1836 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1837 * auxv.c (procfs_xfer_auxv): Likewise.
1838 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1839 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1840 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1841 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1842 * corefile.c (read_memory): Adjust.
1843 * corelow.c (core_xfer_partial): Likewise.
1844 * ctf.c (ctf_xfer_partial): Likewise.
1845 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1847 (darwin_xfer_partial): Likewise.
1848 * exec.c (section_table_xfer_memory_partial): Likewise. All
1850 (exec_xfer_partial): Likewise.
1851 * exec.h (section_table_xfer_memory_partial): Update
1853 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1855 (gnu_xfer_partial): Likewise.
1856 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1857 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1858 (ia64_hpux_xfer_solib_got): Likewise.
1859 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1860 type of 'partial_len' to ULONGEST.
1861 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1862 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1863 (linux_nat_xfer_partial): Likewise.
1864 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1865 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1866 * monitor.c (monitor_xfer_memory): Likewise.
1867 (monitor_xfer_partial): Likewise.
1868 * procfs.c (procfs_xfer_partial): Likewise.
1869 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1870 * record-full.c (record_full_xfer_partial): Likewise.
1871 (record_full_core_xfer_partial): Likewise.
1872 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1873 (gdbsim_xfer_partial): Likewise.
1874 * remote.c (remote_write_bytes_aux): Likewise. All callers
1876 (remote_write_bytes, remote_read_bytes): Likewise. All
1878 (remote_flash_erase): Likewise. All callers updated.
1879 (remote_write_qxfer): Likewise. All callers updated.
1880 (remote_read_qxfer): Likewise. All callers updated.
1881 (remote_xfer_partial): Likewise.
1882 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1883 (rs6000_xfer_shared_libraries): Likewise.
1884 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1885 (sol_thread_xfer_partial): Likewise.
1886 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1887 (sparc_xfer_partial): Likewise.
1888 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1890 (spu_xfer_partial): Likewise.
1891 * spu-multiarch.c (spu_xfer_partial): Likewise.
1892 * tracepoint.c (tfile_xfer_partial): Likewise.
1893 * windows-nat.c (windows_xfer_memory): Likewise.
1894 (windows_xfer_shared_libraries): Likewise.
1895 (windows_xfer_partial): Likewise.
1896 * valprint.c: Replace 'target_xfer_error' with
1897 'target_xfer_status' in comments.
1899 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1901 Checked in by Joel Brobecker <brobecker@adacore.com>.
1902 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1904 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1906 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1907 function parameters.
1909 2014-02-10 Will Newton <will.newton@linaro.org>
1911 * elfread.c (elf_rel_plt_read): Look for a .got section if
1912 looking up .got.plt fails.
1913 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1914 on address passed to elf_gnu_ifunc_record_cache.
1915 (elf_gnu_ifunc_resolve_addr): Likewise.
1916 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1918 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1920 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1921 (X_RETTURN): New macro.
1922 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1924 * sparc64-tdep.c (sparc64_init_abi): Hook
1925 sparc_in_function_epilogue_p.
1927 2014-02-10 Gary Benson <gbenson@redhat.com>
1929 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1930 Rename name_matcher to symbol_matcher.
1932 2014-02-10 Gary Benson <gbenson@redhat.com>
1934 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1935 Use expand_symtabs_file_matcher_ftype and
1936 expand_symtabs_symbol_matcher_ftype.
1938 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1940 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1941 (struct ada_symbol_cache): New.
1942 (ada_free_symbol_cache): Forward declare.
1943 (struct ada_pspace_data): New.
1944 (ada_pspace_data_handle): New static global.
1945 (get_ada_pspace_data, ada_pspace_data_cleanup)
1946 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1947 (cache_space, cache): Delete, now folded inside struct
1949 (ada_get_symbol_cache): New function.
1950 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1952 (_initialize_ada_language): Remove initialization of cache_space.
1953 Move call to observer_attach_inferior_exit up, grouping it
1954 with the other observer registrations inside this function.
1955 Rename command to be more general. Add call to
1956 register_program_space_data_with_cleanup.
1958 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1960 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1961 ada_new_objfile_observer.
1962 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1963 (_initialize_tasks): Update uses of ada_new_objfile_observer
1964 and ada_tasks_normal_stop_observer.
1966 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1968 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1969 returned by the 'Length attribute to integer.
1971 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1973 * ada-lang.c (_initialize_ada_language): Initialize
1974 cache_space obstack.
1976 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1978 * ada-lang.c (HASH_SIZE): New macro.
1979 (struct cache_entry): New type.
1980 (cache_space, cache): New static globals.
1981 (ada_clear_symbol_cache, find_entry): New functions.
1982 (lookup_cached_symbol, cache_symbol): Implement.
1983 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1984 (_initialize_ada_language): Attach ada_new_objfile_observer
1985 and ada_free_objfile_observer.
1987 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1989 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1990 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1991 struct block * parameter.
1992 (ada_lookup_symbol_list_worker): Constify local variable "block".
1993 Remove cast which is no longer necessary.
1995 2014-02-10 Doug Evans <xdje42@gmail.com>
1997 Add Guile as an extension language.
1998 * NEWS: Mention Guile scripting.
1999 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
2000 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
2001 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
2002 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
2003 (CLIBS): Add GUILE_LIBS.
2004 (install-guile): New rule.
2005 (guile.o): New rule.
2006 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
2007 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
2008 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
2009 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
2010 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
2011 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
2012 (scm-type.o, scm-utils.o, scm-value.o): New rules.
2013 * configure.ac: New option --with-guile.
2014 * configure: Regenerate.
2015 * config.in: Regenerate.
2016 * auto-load.c: Remove #include "python/python.h". Add #include
2017 "gdb/section-scripts.h".
2018 (source_section_scripts): Handle Guile scripts.
2019 (_initialize_auto_load): Add name of Guile objfile script to
2020 scripts-directory help text.
2021 * breakpoint.c (condition_command): Tweak comment to include Scheme.
2022 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
2023 (struct breakpoint): New member scm_bp_object.
2024 * defs.h (enum command_control_type): New value guile_control.
2025 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
2027 (show_user): Update comment.
2028 (_initialize_cli_cmds): Update help text for "show user". Update help
2029 text for max-user-call-depth.
2030 * cli/cli-script.c: Remove #include "python/python.h". Add #include
2032 (multi_line_command_p): Add guile_control.
2033 (print_command_lines): Handle guile_control.
2034 (execute_control_command, recurse_read_control_structure): Ditto.
2035 (process_next_line): Recognize "guile" commands.
2036 * disasm.c (gdb_disassemble_info): Make non-static.
2037 * disasm.h: #include "dis-asm.h".
2038 (struct gdbarch): Add forward decl.
2039 (gdb_disassemble_info): Declare.
2040 * extension.c: #include "guile/guile.h".
2041 (extension_languages): Add guile.
2042 (get_ext_lang_defn): Handle EXT_LANG_GDB.
2043 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
2044 * gdbtypes.c (get_unsigned_type_max): New function.
2045 (get_signed_type_minmax): New function.
2046 * gdbtypes.h (get_unsigned_type_max): Declare.
2047 (get_signed_type_minmax): Declare.
2048 * guile/README: New file.
2049 * guile/guile-internal.h: New file.
2050 * guile/guile.c: New file.
2051 * guile/guile.h: New file.
2052 * guile/scm-arch.c: New file.
2053 * guile/scm-auto-load.c: New file.
2054 * guile/scm-block.c: New file.
2055 * guile/scm-breakpoint.c: New file.
2056 * guile/scm-disasm.c: New file.
2057 * guile/scm-exception.c: New file.
2058 * guile/scm-frame.c: New file.
2059 * guile/scm-gsmob.c: New file.
2060 * guile/scm-iterator.c: New file.
2061 * guile/scm-lazy-string.c: New file.
2062 * guile/scm-math.c: New file.
2063 * guile/scm-objfile.c: New file.
2064 * guile/scm-ports.c: New file.
2065 * guile/scm-pretty-print.c: New file.
2066 * guile/scm-safe-call.c: New file.
2067 * guile/scm-string.c: New file.
2068 * guile/scm-symbol.c: New file.
2069 * guile/scm-symtab.c: New file.
2070 * guile/scm-type.c: New file.
2071 * guile/scm-utils.c: New file.
2072 * guile/scm-value.c: New file.
2073 * guile/lib/gdb.scm: New file.
2074 * guile/lib/gdb/boot.scm: New file.
2075 * guile/lib/gdb/experimental.scm: New file.
2076 * guile/lib/gdb/init.scm: New file.
2077 * guile/lib/gdb/iterator.scm: New file.
2078 * guile/lib/gdb/printing.scm: New file.
2079 * guile/lib/gdb/types.scm: New file.
2080 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2081 (VPATH): Add $(GUILE_SRCDIR).
2082 (GUILE_DIR): New variable.
2083 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2084 (all): Add stamp-guile dependency.
2085 (stamp-guile): New rule.
2086 (clean-guile, install-guile, uninstall-guile): New rules.
2087 (install-only): Add install-guile dependency.
2088 (uninstall): Add uninstall-guile dependency.
2089 (clean): Add clean-guile dependency.
2091 2014-02-09 Doug Evans <xdje42@gmail.com>
2093 Revert this patch (which I approved, mea culpa).
2095 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2097 * Makefile.in (all-lib): Remove.
2098 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2100 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2102 Fix Python stack corruption.
2103 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2106 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2108 * Makefile.in (all-lib): Remove.
2109 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2111 2014-02-07 Doug Evans <dje@google.com>
2113 * extension-priv.h (extension_language_script_ops): Add comment.
2114 (extension_language_ops): Add comment.
2115 (active_ext_lang_state): Fix typo in comment.
2117 2014-02-07 Pedro Alves <palves@redhat.com>
2119 * infrun.c (handle_signal_stop) <signal arrives while stepping
2120 over a breakpoint>: Switch back to the stepping thread.
2122 2014-02-07 Yao Qi <yao@codesourcery.com>
2124 * target.c (target_xfer_partial): Return zero if LEN is zero.
2126 2014-02-07 Yao Qi <yao@codesourcery.com>
2128 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2129 (ld_so_xfer_auxv): Likewise.
2130 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2131 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2132 * corelow.c (core_xfer_partial): Likewise.
2133 * ctf.c (ctf_xfer_partial): Likewise.
2134 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2135 (darwin_xfer_partial): Likewise.
2136 * exec.c (exec_xfer_partial): Likewise.
2137 * gnu-nat.c (gnu_xfer_partial): Likewise.
2138 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2139 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2140 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2141 * linux-nat.c (linux_xfer_siginfo): Likewise.
2142 (linux_proc_xfer_spu): Likewise.
2143 * procfs.c (procfs_xfer_partial): Likewise.
2144 * record-full.c (record_full_xfer_partial): Likewise.
2145 (record_full_core_xfer_partial): Likewise.
2146 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2147 * remote.c (remote_write_qxfer): Likewise.
2148 (remote_write_qxfer, remote_read_qxfer): Likewise.
2149 (remote_xfer_partial): Likewise.
2150 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2151 (rs6000_xfer_shared_libraries): Likewise.
2152 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2153 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2154 (spu_xfer_partial): Likewise.
2155 * target.c (memory_xfer_partial_1): Likewise.
2156 * tracepoint.c (tfile_xfer_partial): Likewise.
2157 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2158 (windows_xfer_partial): Likewise.
2160 2014-02-07 Yao Qi <yao@codesourcery.com>
2162 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2164 (core_xfer_shared_libraries_aix): Likewise.
2165 * gdbarch.c, gdbarch.h: Regenerated.
2166 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2167 ULONGEST. Change 'len_avail' type to ULONGEST.
2168 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2169 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2171 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2173 2014-02-07 Yao Qi <yao@codesourcery.com>
2175 * corefile.c (memory_error): Get 'exception' from ERR and pass
2176 'exception' to throw_error.
2178 2014-02-06 Doug Evans <xdje42@gmail.com>
2180 * configure.ac (libpython checking): Remove all but python.o from
2181 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2182 * configure: Regenerate.
2184 * Makefile.in (SFILES): Add extension.c.
2185 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2186 (COMMON_OBS): Add extension.o.
2187 * extension.h: New file.
2188 * extension-priv.h: New file.
2189 * extension.c: New file.
2191 * python/python-internal.h: #include "extension.h".
2192 (gdbpy_auto_load_enabled): Declare.
2193 (gdbpy_apply_val_pretty_printer): Declare.
2194 (gdbpy_apply_frame_filter): Declare.
2195 (gdbpy_preserve_values): Declare.
2196 (gdbpy_breakpoint_cond_says_stop): Declare.
2197 (gdbpy_breakpoint_has_cond): Declare.
2198 (void source_python_script_for_objfile): Delete.
2199 * python/python.c: #include "extension-priv.h".
2200 Delete inclusion of "observer.h".
2201 (extension_language_python): Moved here and renamed from
2202 script_language_python in py-auto-load.c.
2203 Redefined to be of type extension_language_defn.
2204 (python_extension_script_ops): New global.
2205 (python_extension_ops): New global.
2206 (struct python_env): New member previous_active.
2207 (restore_python_env): Call restore_active_ext_lang.
2208 (ensure_python_env): Call set_active_ext_lang.
2209 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2211 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2213 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2215 (gdbpy_eval_from_control_command): Renamed from
2216 eval_python_from_control_command, made static. New arg extlang.
2217 (gdbpy_source_script) Renamed from source_python_script, made static.
2219 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2220 result to int. New arg extlang.
2221 (gdbpy_source_objfile_script): Renamed from
2222 source_python_script_for_objfile, made static. New arg extlang.
2223 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2224 static. New args extlang, extlang_printers. Change result type to
2226 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2227 static. New arg extlang. Rename arg printers to extlang_printers
2228 and change type to ext_lang_type_printers *.
2229 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2230 static. Replace argument arg with extlang, extlang_printers.
2231 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2232 (!HAVE_PYTHON, source_python_script): Delete.
2233 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2234 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2235 (!HAVE_PYTHON, start_type_printers): Delete.
2236 (!HAVE_PYTHON, apply_type_printers): Delete.
2237 (!HAVE_PYTHON, free_type_printers): Delete.
2238 (_initialize_python): Delete call to observer_attach_before_prompt.
2239 (finalize_python): Set/restore active extension language.
2240 (gdbpy_finish_initialization) Renamed from
2241 finish_python_initialization, made static. New arg extlang.
2242 (gdbpy_initialized): New function.
2243 * python/python.h: #include "extension.h". Delete #include
2244 "value.h", "mi/mi-cmds.h".
2245 (extension_language_python): Declare.
2246 (GDBPY_AUTO_FILE_NAME): Delete.
2247 (enum py_bt_status): Moved to extension.h and renamed to
2249 (enum frame_filter_flags): Moved to extension.h.
2250 (enum py_frame_args): Moved to extension.h and renamed to
2251 ext_lang_frame_args.
2252 (finish_python_initialization): Delete.
2253 (eval_python_from_control_command): Delete.
2254 (source_python_script): Delete.
2255 (apply_val_pretty_printer): Delete.
2256 (apply_frame_filter): Delete.
2257 (preserve_python_values): Delete.
2258 (gdbpy_script_language_defn): Delete.
2259 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2260 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2262 * auto-load.c: #include "extension.h".
2263 (GDB_AUTO_FILE_NAME): Delete.
2264 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2265 (script_language_gdb): Delete, moved to extension.c and renamed to
2266 extension_language_gdb.
2267 (source_gdb_script_for_objfile): Delete.
2268 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2269 (loaded_script): Change type of language member to
2270 struct extension_language_defn *.
2271 (init_loaded_scripts_info): Initialize
2272 unsupported_script_warning_printed.
2273 (maybe_add_script): Make static. Change type of language arg to
2274 struct extension_language_defn *.
2275 (clear_section_scripts): Reset unsupported_script_warning_printed.
2276 (auto_load_objfile_script_1): Rewrite to use extension language API.
2277 (auto_load_objfile_script): Make public. Remove support-compiled-in
2278 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2279 (source_section_scripts): Rewrite to use extension language API.
2280 (load_auto_scripts_for_objfile): Rewrite to use
2281 auto_load_scripts_for_objfile.
2282 (collect_matching_scripts_data): Change type of language member to
2283 struct extension_language_defn *.
2284 (auto_load_info_scripts): Change type of language arg to
2285 struct extension_language_defn *.
2286 (unsupported_script_warning_print): New function.
2287 (script_not_found_warning_print): Make static.
2288 (_initialize_auto_load): Rewrite construction of scripts-directory
2290 * auto-load.h (struct objfile): Add forward decl.
2291 (struct script_language): Delete.
2292 (struct auto_load_pspace_info): Add forward decl.
2293 (struct extension_language_defn): Add forward decl.
2294 (maybe_add_script): Delete.
2295 (auto_load_objfile_script): Declare.
2296 (script_not_found_warning_print): Delete.
2297 (auto_load_info_scripts): Update prototype.
2298 (auto_load_gdb_scripts_enabled): Declare.
2299 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2300 auto_load_python_scripts_enabled and made public.
2301 (script_language_python): Delete, moved to python.c.
2302 (gdbpy_script_language_defn): Delete.
2303 (info_auto_load_python_scripts): Update to use
2304 extension_language_python.
2306 * breakpoint.c (condition_command): Replace call to
2307 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2308 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2309 with call to breakpoint_ext_lang_cond_says_stop.
2310 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2311 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2312 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2313 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2315 (local_setattro): Print name of extension language with existing
2318 * valprint.c (val_print, value_print): Update to call
2319 apply_ext_lang_val_pretty_printer.
2320 * cp-valprint.c (cp_print_value): Update call to
2321 apply_ext_lang_val_pretty_printer.
2322 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2323 (gdbpy_apply_val_pretty_printer): Renamed from
2324 apply_val_pretty_printer. New arg extlang.
2325 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2327 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2328 extension language API.
2329 * cli/cli-script.c (execute_control_command): Update to call
2330 eval_ext_lang_from_control_command.
2332 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2333 enum ext_lang_bt_status values. Update call to
2334 apply_ext_lang_frame_filter.
2335 (mi_cmd_stack_list_locals): Ditto.
2336 (mi_cmd_stack_list_args): Ditto.
2337 (mi_cmd_stack_list_variables): Ditto.
2338 * mi/mi-main.c: Delete #include "python/python-internal.h".
2339 Add #include "extension.h".
2340 (mi_cmd_list_features): Replace reference to python internal variable
2341 gdb_python_initialized with call to ext_lang_initialized_p.
2343 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2344 Update to use enum ext_lang_frame_args. Update to call
2345 apply_ext_lang_frame_filter.
2346 * python/py-framefilter.c (extract_sym): Update to use enum
2348 (extract_value, py_print_type, py_print_value): Ditto.
2349 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2350 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2351 (py_print_frame): Ditto.
2352 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2353 New arg extlang. Update to use enum ext_lang_bt_status.
2355 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2356 finish_python_initialization. Replace with call to
2357 finish_ext_lang_initialization.
2359 * typeprint.c (do_free_global_table): Update to call
2360 free_ext_lang_type_printers.
2361 (create_global_typedef_table): Update to call
2362 start_ext_lang_type_printers.
2363 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2364 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2365 (type_print_options): Change type of global_printers from "void *"
2366 to "struct ext_lang_type_printers *".
2368 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2369 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2370 (gdbpy_preserve_values): Renamed from preserve_python_values.
2372 (!HAVE_PYTHON, preserve_python_values): Delete.
2374 * utils.c (quit_flag): Delete, moved to extension.c.
2375 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2378 * eval.c: Delete #include "python/python.h".
2379 * main.c: Delete #include "python/python.h".
2381 * defs.h: Update comment.
2383 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2387 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2389 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2392 2014-02-05 Yao Qi <yao@codesourcery.com>
2394 * remote.c (remote_pass_signals): Remove local 'buf' and use
2396 (remote_program_signals): Likewise.
2398 2014-02-05 Yao Qi <yao@codesourcery.com>
2400 * ctf.c: Include "inferior.h" and "gdbthread.h".
2401 (CTF_PID): A new macro.
2402 (ctf_open): Call inferior_appeared and add_thread_silent.
2403 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2404 (ctf_thread_alive): New function.
2405 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2407 2014-02-05 Yao Qi <yao@codesourcery.com>
2411 2013-05-24 Yao Qi <yao@codesourcery.com>
2413 * tracepoint.c (TFILE_PID): Remove.
2414 (tfile_open): Don't add thread and inferior.
2415 (tfile_close): Don't set 'inferior_ptid'. Don't call
2416 exit_inferior_silent.
2417 (tfile_thread_alive): Remove.
2418 (init_tfile_ops): Don't set field 'to_thread_alive' of
2421 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2423 * remote.c (remote_start_remote): Call remote_check_symbols even
2424 if only symbol-file (not file) has been given.
2426 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2428 * gdbarch.sh (skip_entrypoint): New callback.
2429 * gdbarch.c, gdbarch.h: Regenerate.
2430 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2431 * infrun.c (fill_in_stop_func): Likewise.
2432 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2433 (ppc_elfv2_elf_make_msymbol_special): New function.
2434 (ppc_elfv2_skip_entrypoint): Likewise.
2435 (ppc_linux_init_abi): Install them for ELFv2.
2437 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2439 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2440 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2441 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2442 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2443 structures returned in GPRs.
2445 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2447 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2448 offset to the stack parameter list for the ELFv2 ABI.
2450 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2452 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2453 set_gdbarch_convert_from_func_ptr_addr and
2454 set_gdbarch_elf_make_msymbol_special for ELFv1.
2455 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2456 function descriptors on ELFv1.
2457 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2458 set up r12 at function entry.
2460 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2462 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2463 (struct gdbarch_tdep): New member elf_abi.
2465 * rs6000-tdep.c: Include "elf/ppc64.h".
2466 (rs6000_gdbarch_init): Detect ELF ABI version.
2468 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2470 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2471 within a register pair holding a DFP 128-bit value on little-endian.
2472 (ppc64_sysv_abi_return_value_base): Likewise.
2473 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2474 (dfp_pseudo_register_write): Likewise.
2476 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2478 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2479 offset on little-endian when passing _Decimal32.
2480 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2482 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2484 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2485 of the overlapped FP register within the VSX register on little-
2487 (efpr_pseudo_register_write): Likewise.
2489 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2491 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2492 offset on little-endian when passing small structures.
2494 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2496 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2497 (struct ppc64_sysv_argpos): New data structure.
2498 (ppc64_sysv_abi_push_float): Remove.
2499 (ppc64_sysv_abi_push_val): New function.
2500 (ppc64_sysv_abi_push_integer): Likewise.
2501 (ppc64_sysv_abi_push_freg): Likewise.
2502 (ppc64_sysv_abi_push_vreg): Likewise.
2503 (ppc64_sysv_abi_push_param): Likewise.
2504 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2505 (ppc64_sysv_abi_return_value_base): New function.
2506 (ppc64_sysv_abi_return_value): Refactor to use it.
2508 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2510 * NEWS: Document new target powerpc64le-*-linux*.
2512 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2514 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2515 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2517 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2518 register set used in ELF core dumps. Add floating-point register set.
2520 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2522 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2523 dwarf2_to_gdb[] table using symbolic constants. Adjust
2524 penultimate entry from number representing the PC register
2525 to symbolic constant representing the MDR register. Add
2526 constant for the PC register to the end of the table.
2528 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2530 * bsd-kvm.c: Include <sys/param.h>
2532 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2534 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2536 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2538 * ada-lang.h (clear_ada_sym_cache): Delete.
2540 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2542 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2544 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2546 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2547 the sigreturn register save area only if the syscall is
2550 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2552 * valops.c (value_slice): Minor reformatting.
2554 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2556 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2558 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2560 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2562 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2563 (ada_ignore_descriptive_types_p): New static global.
2564 (find_parallel_type_by_descriptive_type): Return immediately
2565 if ada_ignore_descriptive_types_p is set.
2566 (_initialize_ada_language): Register new commands "maintenance
2567 set ada", "maintenance show ada", "maintenance set ada
2568 ignore-descriptive-types" and "maintenance show ada
2569 ignore-descriptive-types".
2570 * NEWS: Add entry for new "maint ada set/show
2571 ignore-descriptive-types" commands.
2573 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2575 * record-btrace.c (record_btrace_close): Call btrace_teardown
2578 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2580 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2583 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2585 * ada-typeprint (type_is_full_subrange_of_target_type):
2587 (print_range): Add parameter bounds_prefered_p. If not set,
2588 try printing range types using the name of their base type.
2589 (print_range_type): Add parameter bounds_prefered_p.
2590 Use it in call to print_range.
2591 (print_array_type, ada_print_type): Update calls to print_range
2592 and print_range_type.
2594 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2596 * ada-typeprint.c (print_array_type, print_choices, print_range)
2597 (print_range_bound, print_dynamic_range_bound, print_range_type):
2600 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2602 * ada-typeprint.c (print_range): Add missing empty line
2603 after local declaration.
2605 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2607 * ada-valprint.c (print_optional_low_bound): Get index_type's
2608 target type for as long as it is a TYPE_CODE_RANGE.
2610 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2612 * procfs.c (procfs_make_note_section): Remove assertion and
2615 2014-01-24 Yao Qi <yao@codesourcery.com>
2617 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2618 * corelow.c (get_core_siginfo): Likewise.
2620 2014-01-24 Yao Qi <yao@codesourcery.com>
2622 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2623 ULONGEST. Don't check 'len' is negative.
2624 (remote_write_bytes): Change type of 'len' to ULONGEST.
2626 2014-01-23 Tom Tromey <tromey@redhat.com>
2629 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2630 Handle exception from frame.block.
2631 (FrameVars.fetch_frame_locals): Likewise.
2633 2014-01-23 Tom Tromey <tromey@redhat.com>
2636 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2637 on a NULL pointer. Move "goto error" to correct place.
2639 2014-01-23 Tom Tromey <tromey@redhat.com>
2642 * python/py-framefilter.c (apply_frame_filter): Call
2643 ensure_python_env after computing gdbarch.
2645 2014-01-23 Yao Qi <yao@codesourcery.com>
2647 * target.c (raw_memory_xfer_partial): Change argument type
2648 from void * to gdb_byte *.
2649 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2651 2014-01-22 Doug Evans <dje@google.com>
2653 New gdbserver option --debug-format=timestamp.
2656 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2658 * syscalls/s390x-linux.xml: New file.
2659 * syscalls/s390-linux.xml: New file.
2660 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2661 (XML_SYSCALL_FILENAME_S390X): Likewise.
2662 (op_svc): New enum value for SVC opcode.
2663 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2664 (s390_linux_get_syscall_number): New function.
2665 (s390_gdbarch_init): Register '*get_syscall_number' and the
2666 syscall xml file name.
2667 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2668 "s390-linux.xml" and "s390x-linux.xml".
2669 * NEWS: Announce new feature.
2671 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2673 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2675 2014-01-22 Pedro Alves <palves@redhat.com>
2677 * xtensa-config.c: Include defs.h.
2679 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2681 * common/common-utils.h: Add "ARI:" comment beside __func__
2684 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2686 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2687 documentation a bit.
2689 2014-01-21 Roland McGrath <mcgrathr@google.com>
2691 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2692 * configure: Regenerate.
2693 * aclocal.m4: Regenerate.
2694 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2695 New substituted variables.
2696 (install-strip): New target.
2697 (INSTALL_SCRIPT): New substituted variable.
2698 (FLAGS_TO_PASS): Add it.
2699 (install-only): Use $(INSTALL_SCRIPT) rather than
2700 $(INSTALL_PROGRAM) for gcore.
2702 2014-01-20 Tom Tromey <tromey@redhat.com>
2704 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2707 2014-01-20 Tom Tromey <tromey@redhat.com>
2709 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2710 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2711 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2712 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2713 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2714 (struct cmd_list_element) <flags>: Remove.
2715 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2716 doc_allocated>: New fields.
2717 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2719 * maint.c (maintenance_do_deprecate): Update.
2720 * top.c (execute_command): Update.
2722 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2724 * xtensa-linux-nat.c: Include asm/ptrace.h.
2726 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2728 * Makefile.in (SFILES): Add d-support.c.
2729 (COMMON_OBS): Add d-support.o.
2730 * d-lang.h (d_parse_symbol): Add comment, now defined in
2732 * d-lang.c (parse_call_convention)
2733 (parse_attributes, parse_function_types)
2734 (parse_function_args, parse_type, parse_identifier)
2735 (call_convention_p, d_parse_symbol): Move functions to ...
2736 * d-support.c: ... New file.
2738 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2740 * d-lang.h (d_parse_symbol): Add declaration.
2741 * d-lang.c (extract_identifiers)
2742 (extract_type_info): Remove functions.
2743 (parse_call_convention, parse_attributes)
2744 (parse_function_types, parse_function_args)
2745 (parse_type, parse_identifier, call_convention_p)
2746 (d_parse_symbol): New functions.
2747 (d_demangle): Use d_parse_symbol to demangle D symbols.
2749 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2751 * d-lang.h (struct builtin_d_type): New data type.
2752 (builtin_d_type): Add declaration.
2753 * d-lang.c (d_language_arch_info, build_d_types)
2754 (builtin_d_type): New functions.
2755 (enum d_primitive_types): New data type.
2756 (d_language_defn): Change c_language_arch_info to
2757 d_language_arch_info.
2758 (d_type_data): New static variable.
2759 (_initialize_d_language): Initialize d_type_data.
2761 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2763 * d-lang.h (d_main_name): Add declaration.
2764 * d-lang.c (d_main_name): New function.
2765 * symtab.c (find_main_name): Add call to d_main_name.
2767 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2769 * d-lang.c (d_language_defn): Change macro_expansion_c to
2772 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2774 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2776 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2778 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2779 gdb_exception" declaration.
2780 * remote.c (getpkt_or_notif_sane): Likewise.
2782 2014-01-17 Doug Evans <dje@google.com>
2784 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2785 function, contents of dirnames_to_char_ptr_vec_append moved here.
2786 (delim_string_to_char_ptr_vec): New function.
2787 (dirnames_to_char_ptr_vec_append): Rewrite.
2788 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2790 2014-01-17 Doug Evans <dje@google.com>
2792 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2794 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2795 #include "common-utils.h".
2796 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2797 * common/vec.h (VEC_ASSERT_PASS): Update.
2798 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2799 (MACH_CHECK_ERROR): Update.
2801 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2803 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2805 * gdbarch.h: Regenerate.
2807 2014-01-16 Tom Tromey <tromey@redhat.com>
2809 * value.c (struct value) <regnum>: Move earlier.
2811 2014-01-16 Tom Tromey <tromey@redhat.com>
2813 * remote.c (extended_remote_create_inferior): Rename from
2814 extended_remote_create_inferior_1. Add "ops" argument. Remove
2817 2014-01-16 Pedro Alves <palves@redhat.com>
2819 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2820 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2823 2014-01-16 Doug Evans <dje@google.com>
2825 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2829 * btrace.h (btrace_thread_flag): New.
2830 (struct btrace_thread_info) <flags>: New.
2831 * record-btrace.c (record_btrace_resume_thread)
2832 (record_btrace_find_thread_to_move, btrace_step_no_history)
2833 (btrace_step_stopped, record_btrace_start_replaying)
2834 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2835 (record_btrace_find_resume_thread): New.
2836 (record_btrace_resume, record_btrace_wait): Extend.
2837 (record_btrace_can_execute_reverse): New.
2838 (record_btrace_open): Fail in non-stop mode.
2839 (record_btrace_set_replay): Split into this, ...
2840 (record_btrace_stop_replaying): ... this, ...
2841 (record_btrace_clear_histories): ... and this.
2842 (init_record_btrace_ops): Init to_can_execute_reverse.
2843 * NEWS: Announce it.
2845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2847 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2848 (forward_target_decr_pc_after_break)
2849 (target_decr_pc_after_break): New.
2850 * target.c (forward_target_decr_pc_after_break)
2851 (target_decr_pc_after_break): New.
2852 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2853 instead of gdbarch_decr_pc_after_break.
2854 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2855 instead of gdbarch_decr_pc_after_break.
2856 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2857 instead of gdbarch_decr_pc_after_break.
2858 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2859 instead of gdbarch_decr_pc_after_break.
2860 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2861 instead of gdbarch_decr_pc_after_break.
2862 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2863 instead of gdbarch_decr_pc_after_break.
2865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2867 * btrace.c: Include regcache.h.
2868 (btrace_add_pc): New.
2869 (btrace_enable): Call btrace_add_pc.
2870 (btrace_is_empty): New.
2871 * btrace.h (btrace_is_empty): New.
2872 * record-btrace.c (require_btrace, record_btrace_info): Call
2875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2877 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2878 Support delta reads.
2879 (linux_disable_btrace): Change return type.
2880 * common/linux-btrace.h (linux_read_btrace): Change parameters
2881 and return type to allow error reporting. Update users.
2882 (linux_disable_btrace): Change return type. Update users.
2883 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2885 (btrace_error): New.
2886 (btrace_block) <begin>: Comment on BEGIN == 0.
2887 * btrace.c (btrace_compute_ftrace): Start from the end of
2889 (btrace_stitch_trace, btrace_clear_history): New.
2890 (btrace_fetch): Read delta trace, return if replaying.
2891 (btrace_clear): Move clear history code to btrace_clear_history.
2892 (parse_xml_btrace): Throw an error if parsing failed.
2893 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2894 and return type to allow error reporting.
2895 (target_read_btrace): Change parameters and return type to allow
2897 * target.c (target_read_btrace): Update.
2898 * remote.c (remote_read_btrace): Support delta reads. Pass
2900 * NEWS: Announce it.
2902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2904 * record.h (record_btrace_frame_unwind)
2905 (record_btrace_tailcall_frame_unwind): New declarations.
2906 * dwarf2-frame: Include record.h
2907 (dwarf2_frame_cfa): Throw an error for btrace frames.
2908 * record-btrace.c: Include hashtab.h.
2909 (btrace_get_bfun_name): New.
2910 (btrace_call_history): Call btrace_get_bfun_name.
2911 (struct btrace_frame_cache): New.
2913 (bfcache_hash, bfcache_eq, bfcache_new): New.
2914 (btrace_get_frame_function): New.
2915 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2916 (record_btrace_frame_this_id): Compute own id.
2917 (record_btrace_frame_prev_register): Provide PC, throw_error
2918 for all other registers.
2919 (record_btrace_frame_sniffer): Detect btrace frames.
2920 (record_btrace_tailcall_frame_sniffer): New.
2921 (record_btrace_frame_dealloc_cache): New.
2922 (record_btrace_frame_unwind): Add new functions.
2923 (record_btrace_tailcall_frame_unwind): New.
2924 (_initialize_record_btrace): Allocate cache.
2925 * btrace.c (btrace_clear): Call reinit_frame_cache.
2926 * NEWS: Announce it.
2928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2930 * record-btrace.c (record_btrace_set_replay)
2931 (record_btrace_goto_begin, record_btrace_goto_end)
2932 (record_btrace_goto): New.
2933 (init_record_btrace_ops): Initialize them.
2934 * NEWS: Announce it.
2936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2938 * record-btrace.c (record_btrace_find_new_threads)
2939 (record_btrace_thread_alive): New.
2940 (init_record_btrace_ops): Initialize to_find_new_threads and
2943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2945 * record-btrace.c (record_btrace_resume): New.
2946 (record_btrace_wait): New.
2947 (init_record_btrace_ops): Initialize to_wait and to_resume.
2949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2951 * record-btrace.c (record_btrace_xfer_partial)
2952 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2953 (record_btrace_allow_memory_access): New.
2954 (init_record_btrace_ops): Initialize new methods.
2955 * target.c (raw_memory_xfer_partial): Bail out if target reports
2956 that this memory is not available.
2958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2960 * target.h (target_ops) <to_insert_breakpoint>
2961 <to_remove_breakpoint>: Add target_ops parameter.
2962 (forward_target_insert_breakpoint): New.
2963 (forward_target_remove_breakpoint): New.
2964 (memory_remove_breakpoint, memory_insert_breakpoint):
2965 Add target_ops parameter.
2966 * target.c (target_insert_breakpoint): Split into this and ...
2967 (forward_target_insert_breakpoint): ... this.
2968 (target_remove_breakpoint): Split into this and ...
2969 (forward_target_remove_breakpoint): ... this.
2970 (debug_to_insert_breakpoint): Add target_ops parameter.
2971 Call forward_target_insert_breakpoint.
2972 (debug_to_remove_breakpoint): Add target_ops parameter.
2973 Call forward_target_remove_breakpoint.
2974 (update_current_target): Do not inherit or default to_insert_breakpoint
2975 and to_remove_breakpoint.
2976 * corelow.c (ignore): Add target_ops parameter.
2977 * exec.c (ignore): Add target_ops parameter.
2978 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2979 Add target_ops parameter.
2980 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2981 Add target_ops parameter.
2982 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2983 Add target_ops parameter.
2984 * record-full.c (record_full_beneath_to_insert_breakpoint)
2985 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2986 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2987 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2988 (record_full_core_remove_breakpoint): Add target_ops parameter.
2990 (record_full_beneath_to_insert_breakpoint_ops)
2991 (record_full_beneath_to_remove_breakpoint_ops)
2992 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2993 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2994 tmp_to_remove_breakpoint_ops,
2995 record_full_beneath_to_insert_breakpoint_ops, and
2996 record_full_beneath_to_remove_breakpoint_ops.
2997 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2998 (m32r_remove_breakpoint): Add target_ops parameter.
2999 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
3000 Add target_ops parameter.
3001 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
3002 Add target_ops parameter.
3004 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3005 Markus Metzger <markus.t.metzger@intel.com>
3007 * record-btrace.c: Include frame-unwind.h.
3008 (record_btrace_frame_unwind_stop_reason)
3009 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
3010 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
3012 (init_record_btrace_ops): Install it.
3014 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3016 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
3019 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3021 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
3024 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3026 * frame-unwind.c: Include target.h.
3027 (frame_unwind_try_unwinder): New function with code from ...
3028 (frame_unwind_find_by_frame): ... here. New variable
3029 unwinder_from_target, call also target_get_unwinder)
3030 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
3031 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
3032 * target.h (struct target_ops): New fields to_get_unwinder and
3033 to_get_tailcall_unwinder.
3034 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
3036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3038 * record-btrace.c (record_btrace_fetch_registers)
3039 (record_btrace_store_registers)
3040 (record_btrace_to_prepare_to_store): New.
3041 (init_record_btrace_ops): Add the above.
3043 2014-01-16 Tom Tromey <tromey@redhat.com>
3045 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
3046 * target.h (struct target_ops) <to_prepare_to_store>: Add
3048 (target_prepare_to_store): Add argument.
3049 * target.c (debug_to_prepare_to_store): Add argument.
3050 (update_current_target): Update.
3051 * remote.c (remote_prepare_to_store): Add 'self' argument.
3052 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
3053 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
3054 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
3055 * record-full.c (record_full_core_prepare_to_store): Add 'self'
3057 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
3058 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
3059 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
3060 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
3061 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3065 * btrace.h (replay) <replay>: New.
3066 (btrace_is_replaying): New.
3067 * btrace.c (btrace_clear): Free replay iterator.
3068 (btrace_is_replaying): New.
3069 * record-btrace.c (record_btrace_is_replaying): New.
3070 (record_btrace_info): Print insn number if replaying.
3071 (record_btrace_insn_history): Start at replay position.
3072 (record_btrace_call_history): Start at replay position.
3073 (init_record_btrace_ops): Init to_record_is_replaying.
3075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3077 * record-btrace.c (record_btrace_insn_history_range): Include
3079 (record_btrace_insn_history_from): Adjust range.
3080 (record_btrace_call_history_range): Include
3082 (record_btrace_call_history_from): Adjust range.
3083 * NEWS: Announce changes.
3085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3087 * record.h (enum record_print_flag)
3088 <record_print_indent_calls>: New.
3089 * record.c (get_call_history_modifiers): Recognize /c modifier.
3090 (_initialize_record): Document /c modifier.
3091 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3092 Reorder fields. Optionally indent the function name. Update
3094 * NEWS: Announce changes.
3096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3098 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3102 * btrace.c (ftrace_new_function): Start counting at one.
3103 * record-btrace.c (record_btrace_info): Adjust number of calls
3105 * NEWS: Announce it.
3107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3109 * record-btrace.c (btrace_call_history_insn_range): Print
3110 insn range as [begin, end].
3112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3114 * btrace.h (struct btrace_func_link): New.
3115 (enum btrace_function_flag): New.
3116 (struct btrace_inst): Rename to ...
3117 (struct btrace_insn): ...this. Update all users.
3118 (struct btrace_func) <ibegin, iend>: Remove.
3119 (struct btrace_func_link): New.
3120 (struct btrace_func): Rename to ...
3121 (struct btrace_function): ...this. Update all users.
3122 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3123 (number, level, flags>: New.
3124 (struct btrace_insn_iterator): Rename to ...
3125 (struct btrace_insn_history): ...this.
3127 (struct btrace_insn_iterator, btrace_call_iterator): New.
3128 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3129 (struct btrace_target_info) <begin, end, level>
3130 <insn_history, call_history>: New.
3131 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3132 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3133 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3134 (btrace_call_number, btrace_call_begin, btrace_call_end)
3135 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3136 (btrace_find_function_by_number, btrace_set_insn_history)
3137 (btrace_set_call_history): New.
3138 * btrace.c (btrace_init_insn_iterator)
3139 (btrace_init_func_iterator, compute_itrace): Remove.
3140 (ftrace_print_function_name, ftrace_print_filename)
3141 (ftrace_skip_file): Change
3143 (ftrace_init_func): Remove.
3144 (ftrace_debug): Use new btrace_function fields.
3145 (ftrace_function_switched): Also consider gaining and
3146 losing symbol information).
3147 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3148 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3149 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3151 (ftrace_new_function): Move. Remove debug print.
3152 (ftrace_update_lines, ftrace_update_insns): New.
3153 (ftrace_update_function): Check for call, ret, and jump.
3154 (compute_ftrace): Renamed to ...
3155 (btrace_compute_ftrace): ...this. Rewritten to compute call
3157 (btrace_fetch, btrace_clear): Updated.
3158 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3159 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3160 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3161 (btrace_call_number, btrace_call_begin, btrace_call_end)
3162 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3163 (btrace_find_function_by_number, btrace_set_insn_history)
3164 (btrace_set_call_history): New.
3165 * record-btrace.c (require_btrace): Use new btrace thread
3167 (record_btrace_info, btrace_insn_history)
3168 (record_btrace_insn_history, record_btrace_insn_history_range):
3169 Use new btrace thread info fields and new iterator.
3170 (btrace_func_history_src_line): Rename to ...
3171 (btrace_call_history_src_line): ...this. Use new btrace
3173 (btrace_func_history): Rename to ...
3174 (btrace_call_history): ...this. Use new btrace thread info
3175 fields and new iterator.
3176 (record_btrace_call_history, record_btrace_call_history_range):
3177 Use new btrace thread info fields and new iterator.
3179 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3181 * frame.h (frame_id_build_unavailable_stack_special): New.
3182 * frame.c (frame_id_build_unavailable_stack_special): New.
3184 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3186 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3187 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3188 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3190 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3191 (i386_insn_is_jump, i386_jmp_p): New.
3192 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3193 insn_is_jump to gdbarch.
3194 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3195 * gdbarch.h: Regenerated.
3196 * gdbarch.c: Regenerated.
3197 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3198 (default_insn_is_jump): New.
3199 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3200 (default_insn_is_jump): New.
3202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3204 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3206 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3207 (btrace_read_type) <btrace_read_new>: Change to ...
3208 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3210 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3212 * common/linux-btrace.c (linux_read_btrace): Free trace from
3215 2014-01-15 Doug Evans <dje@google.com>
3217 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3220 2014-01-15 Tom Tromey <tromey@redhat.com>
3222 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3223 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3224 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3225 (set_objfile_main_name): New function.
3226 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3227 language_of_main>: New fields.
3228 (set_objfile_main_name): Declare.
3229 * symtab.c (find_main_name): Loop over objfiles to find the main
3231 (set_main_name): Now static.
3232 (get_main_info): Add comment.
3233 * symtab.h (set_main_name): Don't declare.
3235 2014-01-15 Tom Tromey <tromey@redhat.com>
3237 * symtab.c (main_progspace_key): New global.
3238 (struct main_info): New.
3239 (name_of_main, language_of_main): Remove.
3240 (get_main_info, main_info_cleanup): New function.
3241 (set_main_name, main_name, main_language): Use get_main_info.
3242 (_initialize_symtab): Initialize main_progspace_key.
3244 2014-01-15 Tom Tromey <tromey@redhat.com>
3246 * dbxread.c (process_one_symbol): Update.
3247 * dwarf2read.c (read_partial_die): Update.
3248 * symfile.c (set_initial_language): Call main_language.
3249 * symtab.c (language_of_main): Now static.
3250 (set_main_name): Add 'lang' parameter.
3251 (find_main_name): Update.
3252 (main_language): New function.
3253 (symtab_observer_executable_changed): Update.
3254 * symtab.h (set_main_name): Update.
3255 (language_of_main): Remove.
3256 (main_language): Declare.
3258 2014-01-15 Tom Tromey <tromey@redhat.com>
3260 * symfile.c (init_entry_point_info): Use new "initialized" field.
3262 * objfiles.h (struct entry_point) <initialized>: New field.
3263 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3264 (struct objfile) <ei>: ...here. Remove.
3265 * objfiles.c (entry_point_address_query): Update.
3267 2014-01-15 Tom Tromey <tromey@redhat.com>
3269 * objfiles.c (entry_point_address_query): Relocate entry point
3271 (objfile_relocate1): Do not relocate entry point address.
3272 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3273 <the_bfd_section_index>: New field.
3274 * symfile.c (init_entry_point_info): Find the entry point's
3277 2014-01-15 Tom Tromey <tromey@redhat.com>
3279 * solib-frv.c (enable_break): Use entry_point_address_query.
3281 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3283 * NEWS: Add note on improved process record-replay on
3284 arm*-linux* targets.
3286 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3288 * arm-tdep.c (enum arm_record_result): New enum.
3289 (arm_record_unsupported_insn): New function.
3290 (arm_record_coproc_data_proc): Removed.
3291 (thumb2_record_ld_st_multiple): New function.
3292 (thumb2_record_ld_st_dual_ex_tbb): New function.
3293 (thumb2_record_data_proc_sreg_mimm): New function.
3294 (thumb2_record_ps_dest_generic): New function.
3295 (thumb2_record_branch_misc_cntrl): New function.
3296 (thumb2_record_str_single_data): New function.
3297 (thumb2_record_ld_mem_hints): New function.
3298 (thumb2_record_ld_word): New function.
3299 (thumb2_record_lmul_lmla_div): New function.
3300 (thumb2_record_decode_insn_handler): New function.
3301 (decode_insn): Add thumb32 instruction handlers.
3303 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3305 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3306 (struct arm_linux_record_tdep): Declare.
3307 (arm_canonicalize_syscall): New function.
3308 (arm_all_but_pc_registers_record): New function.
3309 (arm_linux_syscall_record): New function.
3310 (arm_linux_init_abi): Add syscall recording constructs.
3311 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3312 decoding. (arm_record_coproc_data_proc): Update arm syscall
3314 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3315 <arm_syscall_record>: New field.
3316 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3319 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3321 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3322 register for push instruction recording.
3324 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3326 * arm-tdep.c (thumb_record_misc): Update to correct logical
3327 error while recording ldm, ldmia and pop instructions.
3329 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3331 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3333 2014-01-15 Pedro Alves <palves@redhat.com>
3335 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3336 (go32_resume, go32_fetch_registers, store_register)
3337 (go32_store_registers, go32_prepare_to_store)
3338 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3339 (go32_create_inferior, go32_can_run, go32_terminal_init)
3340 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3343 2014-01-15 Tom Tromey <tromey@redhat.com>
3345 * target.h (async_callback_ftype): New typedef.
3346 (struct target_ops) <to_async>: Use it.
3348 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3350 * python/py-value.c (get_field_type): Remove unnecessary curly
3351 braces for single-statement if block.
3353 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3355 * python/py-type.c (convert_field): Add missing empty line
3358 2014-01-14 Doug Evans <dje@google.com>
3360 * symfile.h (expand_symtabs_matching): Renamed from
3361 expand_partial_symbol_names. Update prototype.
3362 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3363 * symfile.c (expand_symtabs_matching): Renamed from
3364 expand_partial_symbol_names. New args file_matcher, kind.
3365 Rename arg fun to symbol_matcher.
3366 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3367 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3368 ada_expand_partial_symbol_name.
3369 (ada_make_symbol_completion_list): Update to call
3370 expand_symtabs_matching.
3371 (ada_add_global_exceptions): Call expand_symtabs_matching.
3372 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3373 call map_symbol_filenames.
3374 * symtab.c (sources_info): Update to call map_symbol_filenames.
3375 (search_symbols): Call expand_symtabs_matching.
3376 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3377 (default_make_symbol_completion_list_break_on): Update to call
3378 expand_symtabs_matching.
3379 (make_source_files_completion_list): Update to call
3380 map_symbol_filenames.
3382 2014-01-14 Doug Evans <dje@google.com>
3384 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3385 (expand_symtabs_symbol_matcher_ftype): New typedef.
3386 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3387 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3388 * symfile.c (expand_partial_symbol_names): Update to use
3389 expand_symtabs_symbol_matcher_ftype.
3390 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3391 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3392 Arg name_matcher renamed to symbol_matcher.
3393 * psymtab.c (recursively_search_psymtabs): Update to use
3394 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3396 (expand_symtabs_matching_via_partial): Update to use
3397 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3398 Arg name_matcher renamed to symbol_matcher.
3400 2014-01-14 Doug Evans <dje@google.com>
3402 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3403 (map_partial_symbol_filenames): Ditto.
3404 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3405 (map_partial_symbol_filenames): Ditto.
3406 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3407 (map_partial_symbol_filenames): Ditto.
3408 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3409 (map_partial_symbol_filenames): Ditto.
3410 * symtab.c: Delete #include "psymtab.h".
3412 2014-01-14 Pedro Alves <palves@redhat.com>
3413 Tom Tromey <tromey@redhat.com>
3415 * infrun.c (use_displaced_stepping): Use find_record_target
3416 instead of RECORD_IS_USED.
3417 (adjust_pc_after_break): Use record_full_is_used instead of
3419 * record-btrace.c (record_btrace_open): Call record_preopen
3420 instead of checking RECORD_IS_USED.
3421 * record-full.c (record_full_shortname)
3422 (record_full_core_shortname): New globals.
3423 (record_full_is_used): New function.
3424 (find_full_open): Call record_preopen instead of checking
3426 (init_record_full_ops): Set the target's shortname to
3427 record_full_shortname.
3428 (init_record_full_core_ops): Set the target's shortname to
3429 record_full_core_shortname.
3430 * record-full.h (record_full_is_used): Declare.
3431 * record.c (find_record_target): Make extern.
3432 (record_preopen): New function.
3433 * record.h (RECORD_IS_USED): Delete macro.
3434 (find_record_target, record_preopen): Declare functions.
3436 2014-01-14 Yao Qi <yao@codesourcery.com>
3438 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3439 'len''s type to ULONGEST.
3440 (core_xfer_shared_libraries_aix): Likewise.
3441 * gdbarch.c, gdbarch.h: Regenerated.
3442 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3443 Change type of 'len' to ULONGEST.
3444 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3445 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3447 2014-01-14 Yao Qi <yao@codesourcery.com>
3449 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3450 type of 'len' to ULONGEST.
3451 (linux_xfer_osdata_processgroups): Likewise.
3452 (linux_xfer_osdata_threads): Likewise.
3453 (linux_xfer_osdata_fds): Likewise.
3454 (linux_xfer_osdata_isockets): Likewise.
3455 (linux_xfer_osdata_shm): Likewise.
3456 (linux_xfer_osdata_sem): Likewise.
3457 (linux_xfer_osdata_msg): Likewise.
3458 (linux_common_xfer_osdata): Likewise.
3459 (struct osdata_type) <getter>: Likewise.
3460 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3463 2014-01-14 Yao Qi <yao@codesourcery.com>
3465 * target.h (target_xfer_partial_ftype): Update.
3466 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3468 * aix-thread.c (aix_thread_xfer_partial): Change type of
3469 argument 'len' to ULONGEST.
3470 * auxv.c (procfs_xfer_auxv): Likewise.
3471 (ld_so_xfer_auxv): Likewise.
3472 (memory_xfer_auxv): Likewise.
3473 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3474 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3475 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3476 * corelow.c (core_xfer_partial): Likewise.
3477 * ctf.c (ctf_xfer_partial): Likewise.
3478 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3480 (darwin_read_dyld_info): Likewise.
3481 (darwin_xfer_partial): Likewise.
3482 * exec.c (section_table_xfer_memory_partial): Likewise.
3483 (exec_xfer_partial): Likewise.
3484 * exec.h (section_table_xfer_memory_partial): Update
3486 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3487 instead of plongest.
3488 (gnu_xfer_partial): Likewise.
3489 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3490 (ia64_hpux_xfer_solib_got): Likewise.
3491 (ia64_hpux_xfer_partial): Likewise.
3492 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3493 * inf-ptrace.c (inf_ptrace_xfer_partial):
3494 * inf-ttrace.c (inf_ttrace_xfer_partial):
3495 * linux-nat.c (linux_xfer_siginfo): Likewise.
3496 (linux_nat_xfer_partial): Likewise.
3497 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3498 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3499 * monitor.c (monitor_xfer_memory): Likewise.
3500 (monitor_xfer_partial): Likewise.
3501 * procfs.c (procfs_xfer_partial): Likewise.
3502 * record-full.c (record_full_xfer_partial): Likewise.
3503 (record_full_core_xfer_partial): Likewise.
3504 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3505 instead of plongest.
3506 (gdbsim_xfer_partial): Likewise.
3507 * remote.c (remote_xfer_partial): Likewise.
3508 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3509 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3511 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3512 (rs6000_xfer_shared_libraries): Likewise.
3513 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3514 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3515 (sparc_xfer_partial): Likewise.
3516 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3517 (spu_xfer_partial): Likewise.
3518 * spu-multiarch.c (spu_xfer_partial): Likewise.
3519 * target.c (target_read_live_memory): Likewise.
3520 (memory_xfer_live_readonly_partial): Likewise.
3521 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3522 (target_xfer_partial, default_xfer_partial): Likewise.
3523 (current_xfer_partial): Likewise.
3524 * tracepoint.c (tfile_xfer_partial): Likewise.
3525 * windows-nat.c (windows_xfer_memory): Likewise. Call
3526 pulongest instead of plongest.
3527 (windows_xfer_partial): Likewise.
3528 (windows_xfer_shared_libraries): Likewise.
3530 2014-01-14 Yao Qi <yao@codesourcery.com>
3532 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3533 target_xfer_partial_ftype.
3535 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3539 * valops.c (value_struct_elt_bitpos): New function
3540 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3541 object to 'None' if the field name is an empty string ("").
3542 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3543 attribute to look for a field when 'name' is 'None'.
3544 (get_field_type): New function
3546 2014-01-13 Doug Evans <dje@google.com>
3549 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3550 (try_open_dwop_file): Ditto.
3551 * gdb_bfd.c: #include "vec.h".
3552 (bfdp): New typedef.
3553 (struct gdb_bfd_data): New member included_bfds.
3554 (gdb_bfd_unref): Unref all included bfds.
3555 (gdb_bfd_record_inclusion): New function.
3556 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3558 2014-01-13 Tom Tromey <tromey@redhat.com>
3560 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3562 2014-01-13 Tom Tromey <tromey@redhat.com>
3564 * defs.h (use_windows): Remove.
3565 * gdb.c (main): Update.
3566 * main.c (captured_main, gdb_main): Update.
3567 * main.h (struct captured_main_args) <use_windows>: Remove.
3568 * top.c (use_windows): Remove.
3570 2014-01-13 Tom Tromey <tromey@redhat.com>
3572 * defs.h (deprecated_flush_hook): Remove.
3574 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3577 * linux-thread-db.c (try_thread_db_load): Add parameter
3578 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3579 (try_thread_db_load_from_pdir_1): Move it there from here.
3580 (try_thread_db_load_from_sdir): Update caller.
3581 (try_thread_db_load_from_dir): Move it there from here.
3583 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3585 * regformats/regdat.sh: Always rewrite the register file.
3587 2014-01-13 Pedro Alves <palves@redhat.com>
3589 * Makefile.in (CHECK_HEADERS): New variable.
3590 (check-headers:): New rule.
3592 2014-01-13 Tom Tromey <tromey@redhat.com>
3594 * cli/cli-setshow.c (do_set_command): Update.
3595 * defs.h (deprecated_set_hook): Remove.
3596 * top.c (deprecated_set_hook): Remove.
3598 2014-01-13 Pedro Alves <palves@redhat.com>
3600 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3601 the tracepoint if the PC is a pseudo-register.
3603 2014-01-13 Tom Tromey <tromey@redhat.com>
3605 * defs.h (XCALLOC): Remove.
3606 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3607 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3608 * dwarf2loc.c (allocate_piece_closure): Likewise.
3609 * elfread.c (elf_symfile_segments): Likewise.
3610 (elf_symfile_segments): Likewise.
3611 * gdbtypes.c (copy_type_recursive): Likewise.
3612 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3613 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3614 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3616 * mt-tdep.c (mt_gdbarch_init): Likewise.
3617 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3619 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3620 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3621 * registry.c (registry_alloc_data): Likewise.
3622 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3623 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3624 * serial.c (serial_fdopen_ops): Likewise.
3625 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3627 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3628 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3631 2014-01-13 Tom Tromey <tromey@redhat.com>
3633 * defs.h (XMALLOC): Remove.
3634 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3635 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3636 * cli-out.c (struct ui_out *): Likewise.
3637 * cli/cli-dump.c (add_dump_command): Likewise.
3638 (add_dump_command): Likewise.
3639 * complaints.c (get_complaints): Likewise.
3640 (find_complaint): Likewise.
3641 * dwarf2-frame.c (execute_cfa_program): Likewise.
3642 * dwarf2read.c (abbrev_table_read_table): Likewise.
3643 * gdbarch.sh: Likewise.
3644 * gdbarch.c: Rebuild.
3645 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3646 * interps.c (interp_new): Likewise.
3647 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3648 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3649 * mi/mi-console.c (mi_console_file_new): Likewise.
3650 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3651 * mi/mi-out.c (mi_out_new): Likewise.
3652 * mi/mi-parse.c (mi_parse): Likewise.
3653 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3654 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3655 * observer.c (xalloc_observer_list_node): Likewise.
3656 * regcache.c (regcache_xmalloc_1): Likewise.
3657 * reggroups.c (reggroup_new): Likewise.
3658 (_initialize_reggroup): Likewise.
3659 * registry.c (register_data_with_cleanup): Likewise.
3660 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3661 * ser-base.c (serial_ttystate): Likewise.
3662 * ser-mingw.c (make_pipe_state): Likewise.
3663 * ser-pipe.c (pipe_open): Likewise.
3664 * serial.c (serial_open): Likewise.
3665 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3666 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3667 (tui_alloc_win_info): Likewise.
3668 (tui_add_content_elements): Likewise.
3669 * tui/tui-file.c (tui_file_new): Likewise.
3670 * tui/tui-out.c (tui_out_new): Likewise.
3671 * ui-file.c (mem_file_new): Likewise.
3672 * ui-out.c (push_level): Likewise.
3673 (make_cleanup_ui_out_end): Likewise.
3674 (append_header_to_list): Likewise.
3675 (ui_out_new): Likewise.
3676 * user-regs.c (user_reg_add_builtin): Likewise.
3678 2014-01-13 Tom Tromey <tromey@redhat.com>
3680 * defs.h (XZALLOC): Remove.
3681 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3682 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3683 (get_ada_tasks_inferior_data): Likewise.
3684 * auto-load.c (get_auto_load_pspace_data): Likewise.
3685 * auxv.c (get_auxv_inferior_data): Likewise.
3686 * bfd-target.c (target_bfd_reopen): Likewise.
3687 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3688 (deprecated_insert_raw_breakpoint): Likewise.
3689 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3690 * corelow.c (core_open): Likewise.
3691 * darwin-nat.c (darwin_check_new_threads): Likewise.
3692 (darwin_attach_pid): Likewise.
3693 * dummy-frame.c (dummy_frame_push): Likewise.
3694 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3695 * dwarf2loc.c (allocate_piece_closure): Likewise.
3696 * elfread.c (elf_symfile_segments): Likewise.
3697 * eval.c (ptrmath_type_p): Likewise.
3698 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3699 * gdbtypes.c (alloc_type_arch): Likewise.
3700 (alloc_type_instance): Likewise.
3701 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3702 * inf-child.c (inf_child_can_use_agent): Likewise.
3703 * inflow.c (get_inflow_inferior_data): Likewise.
3704 * infrun.c (save_infcall_suspend_state): Likewise.
3705 * jit.c (jit_reader_load): Likewise.
3706 (get_jit_objfile_data): Likewise.
3707 (get_jit_program_space_data): Likewise.
3708 (jit_object_open_impl): Likewise.
3709 (jit_symtab_open_impl): Likewise.
3710 (jit_block_open_impl): Likewise.
3711 (jit_frame_sniffer): Likewise.
3712 * linux-fork.c (add_fork): Likewise.
3713 * maint.c (make_command_stats_cleanup): Likewise.
3714 * objfiles.c (get_objfile_pspace_data): Likewise.
3715 * opencl-lang.c (struct lval_closure): Likewise.
3716 * osdata.c (osdata_start_osdata): Likewise.
3717 * progspace.c (new_address_space): Likewise.
3718 (add_program_space): Likewise.
3719 * remote-sim.c (get_sim_inferior_data): Likewise.
3720 * sh-tdep.c (sh_gdbarch_init): Likewise.
3721 * skip.c (Ignore): Likewise.
3722 (skip_delete_command): Likewise.
3723 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3724 (library_list_start_library): Likewise.
3725 (solib_aix_current_sos): Likewise.
3726 * solib-darwin.c (get_darwin_info): Likewise.
3727 (darwin_current_sos): Likewise.
3728 * solib-dsbt.c (get_dsbt_info): Likewise.
3729 * solib-ia64-hpux.c (new_so_list): Likewise.
3730 (ia64_hpux_get_solib_linkage_addr): Likewise.
3731 * solib-spu.c (append_ocl_sos): Likewise.
3732 (spu_current_sos): Likewise.
3733 * solib-svr4.c (get_svr4_info): Likewise.
3734 (svr4_keep_data_in_core): Likewise.
3735 (library_list_start_library): Likewise.
3736 (svr4_default_sos): Likewise.
3737 (svr4_read_so_list): Likewise.
3738 * solib-target.c (library_list_start_library): Likewise.
3739 (solib_target_current_sos): Likewise.
3740 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3741 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3742 * symfile.c (default_symfile_segments): Likewise.
3743 * target-descriptions.c (tdesc_data_init): Likewise.
3744 (tdesc_create_reg): Likewise.
3745 (struct tdesc_type *): Likewise.
3746 (tdesc_create_vector): Likewise.
3747 (tdesc_set_struct_size): Likewise.
3748 (struct tdesc_type *): Likewise.
3749 (tdesc_free_feature): Likewise.
3750 (tdesc_create_feature): Likewise.
3751 * windows-nat.c (windows_add_thread): Likewise.
3752 (windows_make_so): Likewise.
3753 * xml-support.c (gdb_xml_body_text): Likewise.
3754 (gdb_xml_create_parser_and_cleanup): Likewise.
3755 (xml_process_xincludes): Likewise.
3756 * xml-syscall.c (allocate_syscalls_info): Likewise.
3757 (syscall_create_syscall_desc): Likewise.
3759 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3761 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3762 function, with code from i386_stap_parse_special_token.
3763 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3764 (i386_stap_parse_special_token): Move code to the two functions
3767 2014-01-09 Pedro Alves <palves@redhat.com>
3768 Hui Zhu <hui@codesourcery.com>
3771 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3772 bp_err_string. Don't mark the location shlib_disabled if the
3773 error thrown wasn't a generic or memory error. Catch errors
3774 thrown while inserting breakpoints in overlayed code. Output
3775 error message of software breakpoints.
3776 * remote.c (remote_insert_breakpoint): If this breakpoint has
3777 target-side commands but this stub doesn't support Z0 packets,
3778 throw NOT_SUPPORTED_ERROR error.
3779 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3780 * target.h (target_insert_breakpoint): Extend comment.
3781 (target_insert_hw_breakpoint): Add comment.
3783 2014-01-08 Pedro Alves <palves@redhat.com>
3785 * remote.c (remote_add_thread): Add threads silently if starting
3787 (remote_notice_new_inferior): If in all-stop, and starting up,
3788 don't call notice_new_inferior.
3789 (get_current_thread): New function, factored out from ...
3790 (add_current_inferior_and_thread): ... this. Adjust.
3791 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3792 found any thread, then select the remote's current thread as GDB's
3795 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3797 * NEWS: Create a new section for the next release branch.
3798 Rename the section of the current branch, now that it has
3801 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3803 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3804 * version.in: Bump version to 7.7.50.DATE-cvs.
3806 2014-01-08 Yao Qi <yao@codesourcery.com>
3808 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3809 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3810 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3812 2014-01-08 Yao Qi <yao@codesourcery.com>
3814 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3815 return value of bfd_get_filename to symbol_file_add_from_bfd.
3817 2014-01-08 Pierre Muller <muller@sourceware.org>
3820 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3821 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3822 to prim_record_mininal_symbol_and_info.
3823 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3824 in call to prim_record_minimal_symbol_and_info.
3825 (read_pe_exported_syms): Set index field of section_data.
3827 2014-01-07 Andrew Pinski <apinski@cavium.com>
3829 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3830 * features/aarch64.c: Regenerate.
3832 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3834 * target.c (return_null): Define.
3835 (update_current_target): Use it instead of return_zero for
3836 functions that return a pointer.
3838 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3840 * source.c (add_path): Fix check for duplicated paths in the previously
3843 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3845 * ada-lang.c: Remove duplicated include statements.
3846 * alphabsd-nat.c: Ditto.
3847 * amd64-darwin-tdep.c: Ditto.
3848 * amd64fbsd-nat.c: Ditto.
3849 * auto-load.c: Ditto.
3851 * breakpoint.c: Ditto.
3853 * fork-child.c: Ditto.
3854 * gdb_usleep.c: Ditto.
3855 * i386-darwin-tdep.c: Ditto.
3856 * i386fbsd-nat.c: Ditto.
3858 * inferior.c: Ditto.
3860 * linux-nat.c: Ditto.
3861 * linux-tdep.c: Ditto.
3862 * m68kbsd-nat.c: Ditto.
3863 * m68klinux-nat.c: Ditto.
3864 * microblaze-tdep.c: Ditto.
3865 * mips-linux-tdep.c: Ditto.
3866 * mn10300-tdep.c: Ditto.
3867 * nto-tdep.c: Ditto.
3868 * opencl-lang.c: Ditto.
3870 * printcmd.c: Ditto.
3871 * regcache.c: Ditto.
3872 * remote-m32r-sdi.c: Ditto.
3876 * tilegx-linux-nat.c: Ditto.
3877 * tilegx-tdep.c: Ditto.
3878 * tracepoint.c: Ditto.
3880 * vaxbsd-nat.c: Ditto.
3881 * windows-nat.c: Ditto.
3882 * xtensa-tdep.c: Ditto.
3884 2014-01-07 Yao Qi <yao@codesourcery.com>
3886 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3888 2014-01-07 Yao Qi <yao@codesourcery.com>
3889 Joel Brobecker <brobecker@adacore.com>
3891 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3892 (pdc_write_regs): Likewise.
3893 (fetch_regs_kernel_thread): Likewise.
3894 (store_regs_kernel_thread): Likewise.
3896 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3898 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3899 tagged type objects to their actual type.
3901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3903 * ada-valprint.c (print_field_values): Add "language" parameter.
3904 Update calls to print_field_values and print_variant_part.
3905 Pass new parameter "language" in call to val_print instead
3906 of "current_language". Replace call to ada_val_print by call
3908 (print_variant_part): Add "language" parameter.
3909 (ada_val_print_struct_union): Update call to print_field_values.
3911 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3913 * ada-valprint.c (ui_memcpy): Delete.
3914 (ada_print_floating): Update documentation. Add empty line
3915 between between function documentation and implementation.
3916 Delete variable "buffer". Use ui_file_xstrdup in place of
3917 ui_file_put. Minor adjustments following this change.
3919 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3921 * ada-valprint.c (ada_val_print_string): New function,
3922 extracted from ada_val_print_array.
3923 (ada_val_print_array): Replace extracted code by call
3924 to ada_val_print_string followed by a return. Move
3925 "else" branch to the function's top block.
3927 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3929 * ada-valprint.c (ada_val_print_array): Move implementation
3930 down. Rename parameter "offset" and "val" into "offset_aligned"
3931 and "original_value" respectively. Add parameter "offset".
3933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3935 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3936 re-organizing the code. Change the "???" message printed
3937 when target type is a TYPE_CODE_UNDEF into
3938 "<ref to undefined type>".
3940 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3942 * ada-valprint.c (print_record): Delete, implementation inlined...
3943 (ada_val_print_struct_union): ... here. Remove call to
3944 ada_check_typedef in inlined implementation.
3946 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3948 * ada-valprint.c (ada_val_print_gnat_array): New function,
3949 extracted from ada_val_print_1;
3950 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3951 (ada_val_print_flt, ada_val_print_struct_union)
3952 (ada_val_print_ref): Likewise.
3953 (ada_val_print_1): Delete variables i and elttype.
3954 Replace extracted-out code by call to corresponding
3957 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3959 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3961 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3963 * ada-valprint.c (ada_val_print_1): Replace calls to
3964 ada_val_print_1 by calls to val_print.
3966 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3968 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3969 Update calls to self accordingly. Replace calls to c_val_print
3970 by calls to val_print.
3972 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3974 * ada-valprint.c (print_record): Delete declaration.
3975 (adjust_type_signedness, ada_val_print_1): Likewise.
3976 (ada_val_print): Move function implementation down.
3977 (print_variant_part, print_field_values, print_record):
3978 Move function implementation up.
3980 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3982 * python/py-type.c (typy_get_name): New function.
3983 (type_object_getset): Add entry for attribute "name".
3984 * NEWS: Add entry mentioning this new attribute.
3986 2014-01-07 Yao Qi <yao@codesourcery.com>
3988 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3991 2014-01-07 Yao Qi <yao@codesourcery.com>
3993 * gnu-nat.c (info_port_rights): Add qualifier const to
3996 2014-01-07 Yao Qi <yao@codesourcery.com>
3998 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
4000 2014-01-07 Yao Qi <yao@codesourcery.com>
4002 * gnu-nat.c (make_inf) Update declaration.
4003 (make_inf): Make it static.
4004 (inf_set_traced): Likewise.
4005 (inf_port_to_thread, inf_task_died_status): Likewise.
4007 2014-01-07 Yao Qi <yao@codesourcery.com>
4009 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
4011 2014-01-07 Yao Qi <yao@codesourcery.com>
4013 * gnu-nat.c (_initialize_gnu_nat): Declare.
4015 2014-01-07 Yao Qi <yao@codesourcery.com>
4017 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
4019 (struct gdbarch_info) <byte_order>: Change type to
4021 <byte_order_for_code>: Likewise.
4022 * gdbarch.c, gdbarch.h: Regenerated.
4024 2014-01-06 Sasha Smundak <asmundak@google.com>
4026 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
4028 2014-01-06 Tom Tromey <tromey@redhat.com>
4030 * doublest.c (convert_doublest_to_floatformat): Use const, not
4032 * somread.c (som_symtab_read): Likewise.
4034 2014-01-07 Hui Zhu <hui@codesourcery.com>
4036 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
4037 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
4038 (gdb_bfd_fopen): Ditto.
4039 (gdb_bfd_openr): Ditto.
4040 (gdb_bfd_openw): Ditto.
4041 (gdb_bfd_openr_iovec): Ditto.
4042 (gdb_bfd_fdopenr): Ditto.
4043 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
4044 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
4046 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
4048 * symfile-mem.c (symbol_file_add_from_memory): Removed
4049 gdb_bfd_stash_filename.
4051 2014-01-03 Doug Evans <dje@google.com>
4053 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
4056 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4058 Update year range in copyright notice of all files.
4060 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4062 * top.c (print_gdb_version): Set copyright year to 2014.
4064 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4066 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4068 For older changes see ChangeLog-2013.
4074 version-control: never