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 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
14 (target_thread_name): Unconditionally delegate.
15 * target.h (struct target_ops) <to_thread_name>: Use
16 TARGET_DEFAULT_RETURN.
18 2014-02-19 Tom Tromey <tromey@redhat.com>
20 * target-delegates.c: Rebuild.
21 * target.c (update_current_target): Don't inherit or default
23 * target.h (struct target_ops) <to_extra_thread_info>: Use
24 TARGET_DEFAULT_RETURN.
26 2014-02-19 Tom Tromey <tromey@redhat.com>
28 * target-delegates.c: Rebuild.
29 * target.c (update_current_target): Don't inherit or default
31 * target.h (struct target_ops) <to_has_exited>: Use
32 TARGET_DEFAULT_RETURN..
34 2014-02-19 Tom Tromey <tromey@redhat.com>
36 * target-delegates.c: Rebuild.
37 * target.c (update_current_target): Don't inherit or default
38 to_set_syscall_catchpoint.
40 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
41 TARGET_DEFAULT_RETURN.
43 2014-02-19 Tom Tromey <tromey@redhat.com>
45 * target-delegates.c: Rebuild.
46 * target.c (update_current_target): Don't inherit or default
47 to_insert_exec_catchpoint.
48 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
49 TARGET_DEFAULT_RETURN.
51 2014-01-08 Tom Tromey <tromey@redhat.com>
53 * target-delegates.c: Rebuild.
54 * target.c (update_current_target): Don't inherit or default
55 to_insert_exec_catchpoint.
56 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
57 TARGET_DEFAULT_RETURN.
59 2014-02-19 Tom Tromey <tromey@redhat.com>
61 * target-delegates.c: Rebuild.
62 * target.c (update_current_target): Don't inherit or default
63 to_remove_vfork_catchpoint.
64 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
65 TARGET_DEFAULT_RETURN.
67 2014-02-19 Tom Tromey <tromey@redhat.com>
69 * target-delegates.c: Rebuild.
70 * target.c (update_current_target): Don't inherit or default
71 to_insert_vfork_catchpoint.
72 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
73 TARGET_DEFAULT_RETURN.
75 2014-02-19 Tom Tromey <tromey@redhat.com>
77 * target-delegates.c: Rebuild.
78 * target.c (update_current_target): Don't inherit or default
79 to_remove_fork_catchpoint.
80 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
81 TARGET_DEFAULT_RETURN.
83 2014-02-19 Tom Tromey <tromey@redhat.com>
85 * target-delegates.c: Rebuild.
86 * target.c (update_current_target): Don't inherit or default
87 to_insert_fork_catchpoint.
88 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
89 TARGET_DEFAULT_RETURN.
91 2014-02-19 Tom Tromey <tromey@redhat.com>
93 * target-delegates.c: Rebuild.
94 * target.c (update_current_target): Don't inherit or default
95 to_post_startup_inferior.
96 * target.h (struct target_ops) <to_post_startup_inferior>: Use
97 TARGET_DEFAULT_IGNORE.
99 2014-02-19 Tom Tromey <tromey@redhat.com>
101 * target-delegates.c: Rebuild.
102 * target.c (update_current_target): Don't inherit or default
104 * target.h (struct target_ops) <to_load>: Use
105 TARGET_DEFAULT_NORETURN.
107 2014-02-19 Tom Tromey <tromey@redhat.com>
109 * target-delegates.c: Rebuild.
110 * target.c (update_current_target): Don't inherit or default
112 * target.h (struct target_ops) <to_terminal_info>: Use
115 2014-02-19 Tom Tromey <tromey@redhat.com>
117 * target-delegates.c: Rebuild.
118 * target.c (update_current_target): Don't inherit or default
119 to_terminal_save_ours.
120 * target.h (struct target_ops) <to_terminal_save_ours>: Use
121 TARGET_DEFAULT_IGNORE.
123 2014-02-19 Tom Tromey <tromey@redhat.com>
125 * target-delegates.c: Rebuild.
126 * target.c (update_current_target): Don't inherit or default
128 * target.h (struct target_ops) <to_terminal_ours>: Use
129 TARGET_DEFAULT_IGNORE.
131 2014-02-19 Tom Tromey <tromey@redhat.com>
133 * target-delegates.c: Rebuild.
134 * target.c (update_current_target): Don't inherit or default
135 to_terminal_ours_for_output.
136 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
137 TARGET_DEFAULT_IGNORE.
139 2014-02-19 Tom Tromey <tromey@redhat.com>
141 * target-delegates.c: Rebuild.
142 * target.c (update_current_target): Don't inherit or default
143 to_terminal_inferior.
144 * target.h (struct target_ops) <to_terminal_inferior>: Use
145 TARGET_DEFAULT_IGNORE.
147 2014-02-19 Tom Tromey <tromey@redhat.com>
149 * target-delegates.c: Rebuild.
150 * target.c (update_current_target): Don't inherit or default
152 * target.h (struct target_ops) <to_terminal_init>: Use
153 TARGET_DEFAULT_IGNORE.
155 2014-02-19 Tom Tromey <tromey@redhat.com>
157 * target-delegates.c: Rebuild.
158 * target.c (update_current_target): Don't inherit or default
159 to_can_accel_watchpoint_condition.
160 * target.h (struct target_ops)
161 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
163 2014-02-19 Tom Tromey <tromey@redhat.com>
165 * target-delegates.c: Rebuild.
166 * target.c (update_current_target): Don't inherit or default
167 to_region_ok_for_hw_watchpoint.
168 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
169 Use TARGET_DEFAULT_FUNC.
171 2014-02-19 Tom Tromey <tromey@redhat.com>
173 * target-delegates.c: Rebuild.
174 * target.c (update_current_target): Don't inherit or default
175 to_watchpoint_addr_within_range.
176 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
177 Use TARGET_DEFAULT_FUNC.
179 2014-02-19 Tom Tromey <tromey@redhat.com>
181 * target-delegates.c: Rebuild.
182 * target.c (update_current_target): Don't inherit or default
183 to_remove_watchpoint.
184 * target.h (struct target_ops) <to_remove_watchpoint>: Use
185 TARGET_DEFAULT_NORETURN.
187 2014-02-19 Tom Tromey <tromey@redhat.com>
189 * target-delegates.c: Rebuild.
190 * target.c (update_current_target): Don't inherit or default
191 to_insert_watchpoint.
192 * target.h (struct target_ops) <to_insert_watchpoint>: Use
193 TARGET_DEFAULT_RETURN.
195 2014-02-19 Tom Tromey <tromey@redhat.com>
197 * target-delegates.c: Rebuild.
198 * target.c (update_current_target): Don't inherit or default
199 to_remove_hw_breakpoint.
200 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
201 TARGET_DEFAULT_RETURN.
203 2014-02-19 Tom Tromey <tromey@redhat.com>
205 * target-delegates.c: Rebuild.
206 * target.c (update_current_target): Don't inherit or default
207 to_insert_hw_breakpoint.
208 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
209 TARGET_DEFAULT_RETURN.
211 2014-02-19 Tom Tromey <tromey@redhat.com>
213 * target-delegates.c: Rebuild.
214 * target.c (update_current_target): Don't inherit or default
215 to_can_use_hw_breakpoint.
216 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
217 TARGET_DEFAULT_RETURN.
219 2014-02-19 Tom Tromey <tromey@redhat.com>
221 * target-delegates.c: Rebuild.
222 * target.c (update_current_target): Don't inherit or default
224 * target.h (struct target_ops) <to_files_info>: Use
225 TARGET_DEFAULT_IGNORE.
227 2014-02-19 Tom Tromey <tromey@redhat.com>
229 * target-delegates.c: Rebuild.
230 * target.c (update_current_target): Don't inherit or default
232 * target.h (struct target_ops) <to_store>: Use
233 TARGET_DEFAULT_NORETURN.
235 2014-02-19 Tom Tromey <tromey@redhat.com>
237 * target-delegates.c: Rebuild.
238 * target.c (update_current_target): Don't inherit or default
240 * target.h (struct target_ops) <to_post_attach>: Use
241 TARGET_DEFAULT_IGNORE.
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target-delegates.c: Rebuild.
246 * target.c (update_current_target): Don't inherit or default
248 (default_rcmd): New function.
249 (do_monitor_command): Unconditionally delegate.
250 * target.h (struct target_ops) <to_rmcd>: Use
253 2014-02-19 Tom Tromey <tromey@redhat.com>
255 * target-delegates.c: Rebuild.
256 * target.c (init_dummy_target): Don't initialize to_attach.
257 (target_attach): Unconditionally delegate.
258 * target.h (struct target_ops) <to_attach>: Use
261 2014-02-19 Tom Tromey <tromey@redhat.com>
263 * target-delegates.c: Rebuild.
264 * target.c (target_detach): Unconditionally delegate.
265 (init_dummy_target): Don't initialize to_detach.
266 * target.h (struct target_ops) <to_detach>: Use
267 TARGET_DEFAULT_IGNORE.
269 2014-02-19 Tom Tromey <tromey@redhat.com>
271 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
273 (target_augmented_libraries_svr4_read): Add argument.
274 * target.c (update_current_target): Update.
275 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
278 2014-02-19 Tom Tromey <tromey@redhat.com>
280 * target.h (struct target_ops) <to_call_history_range>: Add
282 * target.c (target_call_history_range): Add argument.
283 * record-btrace.c (record_btrace_call_history_range): Add 'self'
285 (record_btrace_call_history_from): Update.
287 2014-02-19 Tom Tromey <tromey@redhat.com>
289 * target.h (struct target_ops) <to_call_history_from>: Add
291 * target.c (target_call_history_from): Add argument.
292 * record-btrace.c (record_btrace_call_history_from): Add 'self'
295 2014-02-19 Tom Tromey <tromey@redhat.com>
297 * target.h (struct target_ops) <to_call_history>: Add argument.
298 * target.c (target_call_history): Add argument.
299 * record-btrace.c (record_btrace_call_history): Add 'self'
302 2014-02-19 Tom Tromey <tromey@redhat.com>
304 * target.h (struct target_ops) <to_insn_history_range>: Add
306 * target.c (target_insn_history_range): Add argument.
307 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
309 (record_btrace_insn_history_from): Update.
311 2014-02-19 Tom Tromey <tromey@redhat.com>
313 * target.h (struct target_ops) <to_insn_history_from>: Add
315 * target.c (target_insn_history_from): Add argument.
316 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
319 2014-02-19 Tom Tromey <tromey@redhat.com>
321 * target.h (struct target_ops) <to_insn_history>: Add argument.
322 * target.c (target_insn_history): Add argument.
323 * record-btrace.c (record_btrace_insn_history): Add 'self'
326 2014-02-19 Tom Tromey <tromey@redhat.com>
328 * target.h (struct target_ops) <to_goto_record>: Add argument.
329 * target.c (target_goto_record): Add argument.
330 * record-full.c (record_full_goto): Add 'self' argument.
331 * record-btrace.c (record_btrace_goto): Add 'self' argument.
333 2014-02-19 Tom Tromey <tromey@redhat.com>
335 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
336 * target.c (target_goto_record_end): Add argument.
337 * record-full.c (record_full_goto_end): Add 'self' argument.
338 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
340 2014-02-19 Tom Tromey <tromey@redhat.com>
342 * target.h (struct target_ops) <to_goto_record_begin>: Add
344 * target.c (target_goto_record_begin): Add argument.
345 * record-full.c (record_full_goto_begin): Add 'self' argument.
346 * record-btrace.c (record_btrace_goto_begin): Add 'self'
349 2014-02-19 Tom Tromey <tromey@redhat.com>
351 * target.h (struct target_ops) <to_record_is_replaying>: Add
353 * target.c (target_record_is_replaying): Add argument.
354 * record-full.c (record_full_is_replaying): Add 'self' argument.
355 * record-btrace.c (record_btrace_is_replaying): Add 'self'
357 (record_btrace_xfer_partial, record_btrace_store_registers)
358 (record_btrace_prepare_to_store, record_btrace_resume)
359 (record_btrace_wait, record_btrace_decr_pc_after_break)
360 (record_btrace_find_new_threads, record_btrace_thread_alive):
363 2014-02-19 Tom Tromey <tromey@redhat.com>
365 * target.h (struct target_ops) <to_delete_record>: Add argument.
366 * target.c (target_delete_record): Add argument.
367 * record-full.c (record_full_delete): Add 'self' argument.
369 2014-02-19 Tom Tromey <tromey@redhat.com>
371 * target.h (struct target_ops) <to_save_record>: Add argument.
372 * target.c (target_save_record): Add argument.
373 * record-full.c (record_full_save): Add 'self' argument.
374 (record_full_save): Add 'self' argument.
376 2014-02-19 Tom Tromey <tromey@redhat.com>
378 * target.h (struct target_ops) <to_info_record>: Add argument.
379 * target.c (target_info_record): Add argument.
380 * record.c (info_record_command): Add argument.
381 * record-full.c (record_full_info): Add 'self' argument.
382 * record-btrace.c (record_btrace_info): Add 'self' argument.
384 2014-02-19 Tom Tromey <tromey@redhat.com>
386 * target.h (struct target_ops) <to_stop_recording>: Add argument.
387 * target.c (target_stop_recording): Add argument.
388 * record.c (record_stop): Add argument.
389 * record-btrace.c (record_btrace_stop_recording): Add 'self'
392 2014-02-19 Tom Tromey <tromey@redhat.com>
394 * target.h (struct target_ops) <to_read_btrace>: Add argument.
395 * target.c (struct target_ops) <to_read_btrace>: Add argument.
396 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
398 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
399 (_initialize_amd64_linux_nat): Use it.
400 * i386-linux-nat.c (i386_linux_read_btrace): New function.
401 (_initialize_i386_linux_nat): Use it.
403 2014-02-19 Tom Tromey <tromey@redhat.com>
405 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
406 * target.c (target_teardown_btrace): Add argument.
407 * remote.c (remote_teardown_btrace): Add 'self' argument.
408 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
410 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
413 2014-02-19 Tom Tromey <tromey@redhat.com>
415 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
416 * target.c (target_disable_btrace): Add argument.
417 * remote.c (remote_disable_btrace): Add 'self' argument.
418 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
420 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
423 2014-02-19 Tom Tromey <tromey@redhat.com>
425 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
426 * target.c (target_enable_btrace): Add argument.
427 * remote.c (remote_enable_btrace): Add 'self' argument.
428 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
430 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
433 2014-02-19 Tom Tromey <tromey@redhat.com>
435 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
436 (target_can_use_agent): Add argument.
437 * target.c (update_current_target): Update.
438 * remote.c (remote_can_use_agent): Add 'self' argument.
439 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
441 2014-02-19 Tom Tromey <tromey@redhat.com>
443 * target.h (struct target_ops) <to_use_agent>: Add argument.
444 (target_use_agent): Add argument.
445 * target.c (update_current_target): Update.
446 * remote.c (remote_use_agent): Add 'self' argument.
447 * inf-child.c (inf_child_use_agent): Add 'self' argument.
449 2014-02-19 Tom Tromey <tromey@redhat.com>
451 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
452 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
453 (target_traceframe_info): Add argument.
454 * target.c (update_current_target): Update.
455 * remote.c (remote_traceframe_info): Add 'self' argument.
456 * ctf.c (ctf_traceframe_info): Add 'self' argument.
458 2014-02-19 Tom Tromey <tromey@redhat.com>
460 * target.h (target_static_tracepoint_markers_by_strid): Add
462 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
464 * target.c (update_current_target): Update.
465 * remote.c (struct target_ops)
466 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
467 * linux-nat.c (struct target_ops)
468 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
470 2014-02-19 Tom Tromey <tromey@redhat.com>
472 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
474 (target_static_tracepoint_marker_at): Add argument.
475 * target.c (update_current_target): Update.
476 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
479 2014-02-19 Tom Tromey <tromey@redhat.com>
481 * target.h (struct target_ops) <to_set_permissions>: Add argument.
482 (target_set_permissions): Add argument.
483 * target.c (update_current_target): Update.
484 * remote.c (remote_set_permissions): Add 'self' argument.
485 (remote_start_remote): Update.
487 2014-02-19 Tom Tromey <tromey@redhat.com>
489 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
490 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
491 (target_get_tib_address): Add argument.
492 * target.c (update_current_target): Update.
493 * remote.c (remote_get_tib_address): Add 'self' argument.
495 2014-02-19 Tom Tromey <tromey@redhat.com>
497 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
498 (target_set_trace_notes): Add argument.
499 * target.c (update_current_target): Update.
500 * remote.c (remote_set_trace_notes): Add 'self' argument.
502 2014-02-19 Tom Tromey <tromey@redhat.com>
504 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
506 (target_set_trace_buffer_size): Add argument.
507 * target.c (update_current_target): Update.
508 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
510 2014-02-19 Tom Tromey <tromey@redhat.com>
512 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
514 (target_set_circular_trace_buffer): Add argument.
515 * target.c (update_current_target): Update.
516 * remote.c (remote_set_circular_trace_buffer): Add 'self'
519 2014-02-19 Tom Tromey <tromey@redhat.com>
521 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
523 (target_set_disconnected_tracing): Add argument.
524 * target.c (update_current_target): Update.
525 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
527 2014-02-19 Tom Tromey <tromey@redhat.com>
529 * target.h (struct target_ops)
530 <to_get_min_fast_tracepoint_insn_len>: Add argument.
531 (target_get_min_fast_tracepoint_insn_len): Add argument.
532 * target.c (update_current_target): Update.
533 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
536 2014-02-19 Tom Tromey <tromey@redhat.com>
538 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
540 (target_get_raw_trace_data): Add argument.
541 * target.c (update_current_target): Update.
542 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
544 2014-02-19 Tom Tromey <tromey@redhat.com>
546 * target.h (struct target_ops) <to_upload_trace_state_variables>:
548 (target_upload_trace_state_variables): Add argument.
549 * target.c (update_current_target): Update.
550 * remote.c (remote_upload_trace_state_variables): Add 'self'
552 (remote_start_remote): Update.
554 2014-02-19 Tom Tromey <tromey@redhat.com>
556 * target.h (struct target_ops) <to_upload_tracepoints>: Add
558 (target_upload_tracepoints): Add argument.
559 * target.c (update_current_target): Update.
560 * remote.c (remote_upload_tracepoints): Add 'self' argument.
561 (remote_start_remote): Update.
563 2014-02-19 Tom Tromey <tromey@redhat.com>
565 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
566 (target_save_trace_data): Add argument.
567 * target.c (update_current_target): Update.
568 * remote.c (remote_save_trace_data): Add 'self' argument.
570 2014-02-19 Tom Tromey <tromey@redhat.com>
572 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
574 * target.h (struct target_ops)
575 <to_get_trace_state_variable_value>: Add argument.
576 (target_get_trace_state_variable_value): Add argument.
577 * target.c (update_current_target): Update.
578 * remote.c (remote_get_trace_state_variable_value): Add 'self'
580 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
582 2014-02-19 Tom Tromey <tromey@redhat.com>
584 * tracepoint.c (tfile_trace_find): Add 'self' argument.
585 * target.h (struct target_ops) <to_trace_find>: Add argument.
586 (target_trace_find): Add argument.
587 * target.c (update_current_target): Update.
588 * remote.c (remote_trace_find): Add 'self' argument.
589 * ctf.c (ctf_trace_find): Add 'self' argument.
591 2014-02-19 Tom Tromey <tromey@redhat.com>
593 * target.h (struct target_ops) <to_trace_stop>: Add argument.
594 (target_trace_stop): Add argument.
595 * target.c (update_current_target): Update.
596 * remote.c (remote_trace_stop): Add 'self' argument.
598 2014-02-19 Tom Tromey <tromey@redhat.com>
600 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
601 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
603 (target_get_tracepoint_status): Add argument.
604 * target.c (update_current_target): Update.
605 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
610 * target.h (struct target_ops) <to_get_trace_status>: Add
612 (target_get_trace_status): Add argument.
613 * target.c (update_current_target): Update.
614 * remote.c (remote_get_trace_status): Add 'self' argument.
615 (remote_start_remote, remote_can_download_tracepoint): Update.
616 * ctf.c (ctf_get_trace_status): Add 'self' argument.
618 2014-02-19 Tom Tromey <tromey@redhat.com>
620 * target.h (struct target_ops) <to_trace_start>: Add argument.
621 (target_trace_start): Add argument.
622 * target.c (update_current_target): Update.
623 * remote.c (remote_trace_start): Add 'self' argument.
625 2014-02-19 Tom Tromey <tromey@redhat.com>
627 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
629 (target_trace_set_readonly_regions): Add argument.
630 * target.c (update_current_target): Update.
631 * remote.c (remote_trace_set_readonly_regions): Add 'self'
634 2014-02-19 Tom Tromey <tromey@redhat.com>
636 * target.h (struct target_ops) <to_disable_tracepoint>: Add
638 (target_disable_tracepoint): Add argument.
639 * target.c (update_current_target): Update.
640 * remote.c (remote_disable_tracepoint): Add 'self' argument.
642 2014-02-19 Tom Tromey <tromey@redhat.com>
644 * target.h (struct target_ops) <to_enable_tracepoint>: Add
646 (target_enable_tracepoint): Add argument.
647 * target.c (update_current_target): Update.
648 * remote.c (remote_enable_tracepoint): Add 'self' argument.
650 2014-02-19 Tom Tromey <tromey@redhat.com>
652 * target.h (struct target_ops) <to_download_trace_state_variable>:
654 (target_download_trace_state_variable): Add argument.
655 * target.c (update_current_target): Update.
656 * remote.c (remote_download_trace_state_variable): Add 'self'
659 2014-02-19 Tom Tromey <tromey@redhat.com>
661 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
663 (target_can_download_tracepoint): Add argument.
664 * target.c (update_current_target): Update.
665 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
667 2014-02-19 Tom Tromey <tromey@redhat.com>
669 * target.h (struct target_ops) <to_download_tracepoint>: Add
671 (target_download_tracepoint): Add argument.
672 * target.c (update_current_target): Update.
673 * remote.c (remote_download_tracepoint): Add 'self' argument.
675 2014-02-19 Tom Tromey <tromey@redhat.com>
677 * target.h (struct target_ops) <to_trace_init>: Add argument.
678 (target_trace_init): Add argument.
679 * target.c (update_current_target): Update.
680 * remote.c (remote_trace_init): Add 'self' argument.
682 2014-02-19 Tom Tromey <tromey@redhat.com>
684 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
685 * target.c (target_fileio_readlink): Add argument.
686 * remote.c (remote_hostio_readlink): Add 'self' argument.
687 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
689 2014-02-19 Tom Tromey <tromey@redhat.com>
691 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
692 * target.c (target_fileio_unlink): Add argument.
693 * remote.c (remote_hostio_unlink): Add 'self' argument.
694 (remote_file_delete): Update.
695 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
697 2014-02-19 Tom Tromey <tromey@redhat.com>
699 * target.h (struct target_ops) <to_fileio_close>: Add argument.
700 * target.c (target_fileio_close): Add argument.
701 * remote.c (remote_hostio_close): Add 'self' argument.
702 (remote_hostio_close_cleanup): Update.
703 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
705 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
707 2014-02-19 Tom Tromey <tromey@redhat.com>
709 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
710 * target.c (target_fileio_pread): Add argument.
711 * remote.c (remote_hostio_pread): Add 'self' argument.
712 (remote_bfd_iovec_pread, remote_file_get): Update.
713 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
715 2014-02-19 Tom Tromey <tromey@redhat.com>
717 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
718 * target.c (target_fileio_pwrite): Add argument.
719 * remote.c (remote_hostio_pwrite): Add 'self' argument.
720 (remote_file_put): Update.
721 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
723 2014-02-19 Tom Tromey <tromey@redhat.com>
725 * target.h (struct target_ops) <to_fileio_open>: Add argument.
726 * target.c (target_fileio_open): Add argument.
727 * remote.c (remote_hostio_open): Add 'self' argument.
728 (remote_bfd_iovec_open): Add 'self' argument.
729 (remote_file_put): Add 'self' argument.
730 (remote_file_get): Add 'self' argument.
731 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
733 2014-02-19 Tom Tromey <tromey@redhat.com>
735 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
737 (target_can_run_breakpoint_commands): Add argument.
738 * target.c (update_current_target): Update.
739 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
741 (remote_insert_breakpoint): Add 'self' argument.
742 (remote_insert_hw_breakpoint): Add 'self' argument.
743 (remote_can_run_breakpoint_commands): Add 'self' argument.
745 2014-02-19 Tom Tromey <tromey@redhat.com>
747 * target.h (struct target_ops)
748 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
749 (target_supports_evaluation_of_breakpoint_conditions): Add
751 * target.c (update_current_target): Update.
752 * remote.c (remote_supports_cond_breakpoints): Add 'self'
754 (remote_insert_breakpoint): Add 'self' argument.
755 (remote_insert_hw_breakpoint): Add 'self' argument.
756 (remote_supports_cond_breakpoints): Add 'self' argument.
758 2014-02-19 Tom Tromey <tromey@redhat.com>
760 * target.h (struct target_ops) <to_supports_string_tracing>: Add
762 (target_supports_string_tracing): Add argument.
763 * target.c (update_current_target): Update.
764 * remote.c (remote_supports_string_tracing): Add 'self' argument.
766 2014-02-19 Tom Tromey <tromey@redhat.com>
768 * target.h (struct target_ops)
769 <to_supports_disable_randomization>: Add argument.
770 * target.c (find_default_supports_disable_randomization): Add
772 (target_supports_disable_randomization): Add argument.
773 (find_default_supports_disable_randomization): Add 'self'
775 * remote.c (extended_remote_supports_disable_randomization): Add
777 (remote_supports_disable_randomization): Add 'self' argument.
778 (extended_remote_create_inferior): Update.
779 * linux-nat.c (linux_nat_supports_disable_randomization): Add
782 2014-02-19 Tom Tromey <tromey@redhat.com>
784 * target.h (struct target_ops)
785 <to_supports_enable_disable_tracepoint>: Add argument.
786 (target_supports_enable_disable_tracepoint): Add argument.
787 * target.c (update_current_target): Update.
788 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
791 2014-02-19 Tom Tromey <tromey@redhat.com>
793 * target.h (struct target_ops) <to_supports_multi_process>: Add
795 (target_supports_multi_process): Add argument.
796 * target.c (update_current_target): Update.
797 * remote.c (remote_supports_multi_process): Add 'self' argument.
798 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
800 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
803 2014-02-19 Tom Tromey <tromey@redhat.com>
805 * target.h (struct target_ops) <to_execution_direction>: Add
807 (target_execution_direction): Add argument.
808 * target.c (default_execution_direction): Add 'self' argument.
809 * record-full.c (record_full_execution_direction): Add 'self'
812 2014-02-19 Tom Tromey <tromey@redhat.com>
814 * target.h (struct target_ops) <to_can_execute_reverse>: Add
816 (target_can_execute_reverse): Add argument.
817 * remote.c (remote_can_execute_reverse): Add 'self' argument.
818 * record-full.c (record_full_can_execute_reverse): Add 'self'
820 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
823 2014-02-19 Tom Tromey <tromey@redhat.com>
825 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
826 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
828 (target_get_ada_task_ptid): Add argument.
829 * target.c (update_current_target): Update.
830 (default_get_ada_task_ptid): Add 'self' argument.
831 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
832 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
833 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
835 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
837 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
839 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
841 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
842 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
845 2014-02-19 Tom Tromey <tromey@redhat.com>
847 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
848 (target_goto_bookmark): Add argument.
849 * target.c (dummy_goto_bookmark): Add 'self' argument.
850 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
852 2014-02-19 Tom Tromey <tromey@redhat.com>
854 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
855 (target_get_bookmark): Add argument.
856 * target.c (dummy_get_bookmark): Add 'self' argument.
857 * record-full.c (record_full_get_bookmark): Add 'self' argument.
859 2014-02-19 Tom Tromey <tromey@redhat.com>
861 * target.h (struct target_ops) <to_make_corefile_notes>: Add
863 (target_make_corefile_notes): Add argument.
864 * target.c (dummy_make_corefile_notes): Add 'self' argument.
865 * procfs.c (procfs_make_note_section): Add 'self' argument.
866 (procfs_make_note_section): Add 'self' argument.
867 (procfs_make_note_section): Add 'self' argument.
868 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
870 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
871 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
872 * exec.c (exec_make_note_section): Add 'self' argument.
873 (exec_make_note_section): Add 'self' argument.
875 2014-02-19 Tom Tromey <tromey@redhat.com>
877 * target.h (struct target_ops) <to_find_memory_regions>: Add
879 (target_find_memory_regions): Add argument.
880 * target.c (dummy_find_memory_regions): Add 'self' argument.
881 * procfs.c (proc_find_memory_regions): Add 'self' argument.
882 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
883 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
884 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
885 * exec. (exec_do_find_memory_regions): New global.
886 (exec_set_find_memory_regions): Rewrite.
887 (exec_find_memory_regions): New function.
888 (init_exec_ops): Use exec_find_memory_regions.
890 2014-02-19 Tom Tromey <tromey@redhat.com>
892 * target.h (struct target_ops) <to_supports_non_stop>: Add
894 * target.c (find_default_supports_non_stop): Add argument.
895 (target_supports_non_stop): Add argument.
896 (find_default_supports_non_stop): Add 'self' argument.
897 * remote.c (remote_supports_non_stop): Add 'self' argument.
898 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
900 2014-02-19 Tom Tromey <tromey@redhat.com>
902 * target.h (struct target_ops) <to_log_command>: Add argument.
903 (target_log_command): Add argument.
904 * serial.h (serial_log_command): Add 'self' argument.
905 * serial.c (serial_log_command): Add 'self' argument.
907 2014-02-19 Tom Tromey <tromey@redhat.com>
909 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
910 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
912 (target_pid_to_exec_file): Add argument.
913 * target.c (debug_to_pid_to_exec_file): Add argument.
914 (update_current_target): Update.
915 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
916 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
917 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
918 (linux_handle_extended_wait): Update.
919 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
920 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
921 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
922 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
924 2014-02-19 Tom Tromey <tromey@redhat.com>
926 * target.h (struct target_ops) <to_rcmd>: Add argument.
927 (target_rcmd): Add argument.
928 * target.c (debug_to_rcmd): Add argument.
929 (update_current_target, do_monitor_command): Update.
930 * remote.c (remote_rcmd): Add 'self' argument.
931 * monitor.c (monitor_rcmd): Add 'self' argument.
933 2014-02-19 Tom Tromey <tromey@redhat.com>
935 * windows-nat.c (windows_stop): Add 'self' argument.
936 * target.h (struct target_ops) <to_stop>: Add argument.
937 * target.c (target_stop): Add argument.
938 (debug_to_stop): Add argument.
939 (update_current_target): Update.
940 * remote.c (remote_stop): Add 'self' argument.
941 * remote-sim.c (gdbsim_stop): Add 'self' argument.
942 (gdbsim_cntrl_c): Update.
943 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
944 * procfs.c (procfs_stop): Add 'self' argument.
945 * nto-procfs.c (procfs_stop): Add 'self' argument.
946 * monitor.c (monitor_stop): Add 'self' argument.
947 (monitor_open): Update.
948 * linux-nat.c (linux_nat_stop): Add argument.
949 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
950 * gnu-nat.c (gnu_stop): Add 'self' argument.
951 * darwin-nat.c (darwin_stop): Add 'self' argument.
953 2014-02-19 Tom Tromey <tromey@redhat.com>
955 * target.h (struct target_ops) <to_thread_name>: Add argument.
956 * target.c (target_thread_name): Add argument.
957 (update_current_target): Update.
958 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
960 2014-02-19 Tom Tromey <tromey@redhat.com>
962 * target.h (struct target_ops) <to_extra_thread_info>: Add
964 (target_extra_thread_info): Add argument.
965 * target.c (update_current_target): Update.
966 * remote.c (remote_threads_extra_info): Add 'self' argument.
967 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
969 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
970 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
971 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
973 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
975 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
977 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
980 2014-02-19 Tom Tromey <tromey@redhat.com>
982 * target.h (struct target_ops) <to_program_signals>: Add argument.
983 * target.c (target_program_signals): Add argument.
984 * remote.c (remote_program_signals): Add 'self' argument.
986 2014-02-19 Tom Tromey <tromey@redhat.com>
988 * target.h (struct target_ops) <to_pass_signals>: Add argument.
989 * target.c (target_pass_signals): Add argument.
990 * remote.c (remote_pass_signals): Add 'self' argument.
991 (remote_start_remote): Update.
992 * procfs.c (procfs_pass_signals): Add 'self' argument.
993 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
994 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
995 (linux_nat_create_inferior, linux_nat_attach): Update.
997 2014-02-19 Tom Tromey <tromey@redhat.com>
999 * windows-nat.c (windows_can_run): Add 'self' argument.
1000 * target.h (struct target_ops) <to_can_run>: Add argument.
1001 (target_can_run): Add argument.
1002 * target.c (debug_to_can_run): Add argument.
1003 (update_current_target): Update.
1004 * nto-procfs.c (procfs_can_run): Add 'self' argument.
1005 * inf-child.c (inf_child_can_run): Add 'self' argument.
1006 * go32-nat.c (go32_can_run): Add 'self' argument.
1008 2014-02-19 Tom Tromey <tromey@redhat.com>
1010 * target.h (struct target_ops) <to_has_exited>: Add argument.
1011 (target_has_exited): Add argument.
1012 * target.c (debug_to_has_exited): Add argument.
1013 (update_current_target): Update.
1015 2014-02-19 Tom Tromey <tromey@redhat.com>
1017 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
1019 (target_set_syscall_catchpoint): Add argument.
1020 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
1022 * target.c (update_current_target): Update.
1024 2014-02-19 Tom Tromey <tromey@redhat.com>
1026 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1028 (target_remove_exec_catchpoint): Add argument.
1029 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1030 (update_current_target): Update.
1031 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1034 2014-02-19 Tom Tromey <tromey@redhat.com>
1036 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1038 (target_insert_exec_catchpoint): Add argument.
1039 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1040 (update_current_target): Update.
1041 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1044 2014-02-19 Tom Tromey <tromey@redhat.com>
1046 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1048 (target_remove_vfork_catchpoint): Add argument.
1049 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1050 (update_current_target): Update.
1051 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1054 2014-02-19 Tom Tromey <tromey@redhat.com>
1056 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1058 (target_insert_vfork_catchpoint): Add argument.
1059 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1060 (update_current_target): Update.
1061 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1064 2014-02-19 Tom Tromey <tromey@redhat.com>
1066 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1068 (target_remove_fork_catchpoint): Add argument.
1069 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1070 (update_current_target): Update.
1071 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1074 2014-02-19 Tom Tromey <tromey@redhat.com>
1076 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1078 (target_insert_fork_catchpoint): Add argument.
1079 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1080 (update_current_target): Update.
1081 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1084 2014-02-19 Tom Tromey <tromey@redhat.com>
1086 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1088 (target_post_startup_inferior): Add argument.
1089 * target.c (debug_to_post_startup_inferior): Add argument.
1090 (update_current_target): Update.
1091 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1093 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1095 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1097 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1099 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1101 (super_post_startup_inferior): Likewise.
1102 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1104 (super_post_startup_inferior): Likewise.
1105 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1106 Add 'self' argument.
1107 (super_post_startup_inferior): Likewise.
1109 2014-02-19 Tom Tromey <tromey@redhat.com>
1111 * target.h (struct target_ops) <to_load>: Add argument.
1112 * target.c (target_load): Add argument.
1113 (debug_to_load): Add argument.
1114 (update_current_target): Update.
1115 * remote.c (remote_load): Add 'self' argument.
1116 * remote-sim.c (gdbsim_load): Add 'self' argument.
1117 * remote-mips.c (mips_load): Add 'self' argument.
1118 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1119 * monitor.c (monitor_load): Add 'self' argument.
1120 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1122 2014-02-19 Tom Tromey <tromey@redhat.com>
1124 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1125 (target_terminal_info): Add argument.
1126 * target.c (debug_to_terminal_info): Add argument.
1127 (default_terminal_info): Likewise.
1128 * inflow.c (child_terminal_info): Add 'self' argument.
1129 * inferior.h (child_terminal_info): Add 'self' argument.
1130 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1132 2014-02-19 Tom Tromey <tromey@redhat.com>
1134 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1136 (target_terminal_save_ours): Add argument.
1137 * target.c (debug_to_terminal_save_ours): Add argument.
1138 (update_current_target): Update.
1139 * inflow.c (terminal_save_ours): Add 'self' argument.
1140 * inferior.h (terminal_save_ours): Add 'self' argument.
1142 2014-02-19 Tom Tromey <tromey@redhat.com>
1144 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1145 (target_terminal_ours): Add argument.
1146 * target.c (debug_to_terminal_ours): Add argument.
1147 (update_current_target): Update.
1148 * remote.c (remote_terminal_ours): Add 'self' argument.
1149 (remote_close): Update.
1150 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1151 * inflow.c (terminal_ours): Add 'self' argument.
1152 * inferior.h (terminal_ours): Add 'self' argument.
1153 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1155 2014-02-19 Pedro Alves <palves@redhat.com>
1156 Tom Tromey <tromey@redhat.com>
1158 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1160 (target_terminal_ours_for_output): Add argument.
1161 * target.c (debug_to_terminal_ours_for_output): Add argument.
1162 (update_current_target): Update.
1163 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1164 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1165 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1167 2014-02-19 Tom Tromey <tromey@redhat.com>
1169 * target.h (struct target_ops) <to_terminal_inferior>: Add
1171 * target.c (target_terminal_inferior): Add argument.
1172 (update_current_target): Update.
1173 * remote.c (remote_terminal_inferior): Add 'self' argument.
1174 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1175 * inflow.c (terminal_inferior): Add 'self' argument.
1176 * inferior.h (terminal_inferior): Add 'self' argument.
1177 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1178 (go32_terminal_inferior): Add 'self' argument.
1180 2014-02-19 Tom Tromey <tromey@redhat.com>
1182 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1183 (target_terminal_init): Add argument.
1184 * target.c (debug_to_terminal_init): Add argument.
1185 (update_current_target): Update.
1186 * inflow.c (terminal_init_inferior): Add 'self' argument.
1187 * inferior.h (terminal_init_inferior): Add 'self' argument.
1188 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1189 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1191 2014-02-19 Tom Tromey <tromey@redhat.com>
1193 * target.h (struct target_ops)
1194 <to_can_accel_watchpoint_condition>: Add argument.
1195 (target_can_accel_watchpoint_condition): Add argument.
1196 * target.c (debug_to_can_accel_watchpoint_condition): Add
1198 (update_current_target): Update.
1199 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1202 2014-02-19 Tom Tromey <tromey@redhat.com>
1204 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1206 (target_region_ok_for_hw_watchpoint): Add argument.
1207 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1208 (default_region_ok_for_hw_watchpoint): Add argument.
1209 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1210 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1212 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1214 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1216 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1218 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1220 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1222 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1223 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1225 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1226 Add 'self' argument.
1228 2014-02-19 Tom Tromey <tromey@redhat.com>
1230 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1232 (target_insert_watchpoint): Add argument.
1233 * target.c (debug_to_insert_watchpoint): Add argument.
1234 (update_current_target): Update.
1235 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1236 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1237 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1238 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1239 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1240 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1242 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1243 (procfs_insert_hw_watchpoint): Add 'self' argument.
1244 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1246 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1248 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1250 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1251 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1253 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1256 2014-02-19 Tom Tromey <tromey@redhat.com>
1258 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1260 (target_remove_watchpoint): Add argument.
1261 * target.c (debug_to_remove_watchpoint): Add argument.
1262 (update_current_target): Update.
1263 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1264 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1265 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1266 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1267 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1268 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1270 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1271 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1273 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1275 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1277 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1278 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1280 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1283 2014-02-19 Tom Tromey <tromey@redhat.com>
1285 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1287 (target_remove_hw_breakpoint): Add argument.
1288 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1289 (update_current_target): Update.
1290 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1291 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1293 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1294 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1296 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1299 2014-02-19 Tom Tromey <tromey@redhat.com>
1301 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1303 (target_insert_hw_breakpoint): Add argument.
1304 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1305 (update_current_target): Update.
1306 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1307 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1309 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1310 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1311 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1313 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1316 2014-02-19 Tom Tromey <tromey@redhat.com>
1318 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1320 (target_can_use_hardware_watchpoint): Add argument.
1321 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1322 (update_current_target): Update.
1323 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1325 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1327 * remote.c (remote_check_watch_resources): Add 'self' argument.
1328 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1329 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1331 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1332 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1334 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1336 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1338 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1340 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1342 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1344 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1345 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1347 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1350 2014-02-19 Tom Tromey <tromey@redhat.com>
1352 * target.h (struct target_ops) <to_post_attach>: Add argument.
1353 (target_post_attach): Add argument.
1354 * target.c (debug_to_post_attach): Add argument.
1355 (update_current_target): Update.
1356 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1357 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1358 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1359 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1360 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1362 2014-02-19 Tom Tromey <tromey@redhat.com>
1364 * windows-nat.c (windows_close): Add 'self' argument.
1365 * tracepoint.c (tfile_close): Add 'self' argument.
1366 * target.h (struct target_ops) <to_close>: Add argument.
1367 * target.c (target_close): Add argument.
1368 (update_current_target): Update.
1369 * remote.c (remote_close): Add 'self' argument.
1370 * remote-sim.c (gdbsim_close): Add 'self' argument.
1371 * remote-mips.c (mips_close): Add 'self' argument.
1372 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1373 * record-full.c (record_full_close): Add 'self' argument.
1374 * record-btrace.c (record_btrace_close): Add 'self' argument.
1375 * monitor.h (monitor_close): Add 'self' argument.
1376 * monitor.c (monitor_close): Add 'self' argument.
1377 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1378 * linux-nat.c (linux_nat_close): Add argument.
1379 * go32-nat.c (go32_close): Add 'self' argument.
1380 * exec.c (exec_close_1): Add 'self' argument.
1381 * ctf.c (ctf_close): Add 'self' argument.
1382 * corelow.c (core_close): Add 'self' argument.
1383 (core_close_cleanup): Update.
1384 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1385 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1387 2014-02-19 Tom Tromey <tromey@redhat.com>
1389 * remote.c (remote_load): New function.
1390 (init_remote_ops): Use it.
1392 2014-02-19 Tom Tromey <tromey@redhat.com>
1394 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1396 * common/linux-btrace.h (linux_supports_btrace): Update.
1397 * remote.c (remote_supports_btrace): Add "self" argument.
1398 * target-delegates.c: Rebuild.
1399 * target.c (target_supports_btrace): Remove.
1400 * target.h (struct target_ops) <to_supports_btrace>: Add
1401 target_ops argument.
1402 (target_supports_btrace): New define.
1404 2014-02-19 Tom Tromey <tromey@redhat.com>
1406 * record-full.c (record_full_beneath_to_resume_ops)
1407 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1408 (record_full_beneath_to_wait)
1409 (record_full_beneath_to_store_registers_ops)
1410 (record_full_beneath_to_store_registers)
1411 (record_full_beneath_to_xfer_partial_ops)
1412 (record_full_beneath_to_xfer_partial)
1413 (record_full_beneath_to_insert_breakpoint_ops)
1414 (record_full_beneath_to_insert_breakpoint)
1415 (record_full_beneath_to_remove_breakpoint_ops)
1416 (record_full_beneath_to_remove_breakpoint)
1417 (record_full_beneath_to_stopped_by_watchpoint)
1418 (record_full_beneath_to_stopped_data_address)
1419 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1420 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1421 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1422 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1423 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1424 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1425 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1426 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1427 (record_full_resume, record_full_wait_1)
1428 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1429 (record_full_store_registers, record_full_xfer_partial)
1430 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1431 (record_full_async, record_full_core_xfer_partial): Use target
1433 * target-delegates.c: Rebuild.
1434 * target.c (current_xfer_partial): Remove.
1435 (update_current_target): Do not INHERIT or de_fault
1436 to_insert_breakpoint, to_remove_breakpoint,
1437 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1438 to_is_async_p, to_async. Do not set to_xfer_partial field.
1439 (default_xfer_partial): Simplify.
1440 (current_xfer_partial): Remove.
1441 (target_wait, target_resume): Simplify.
1442 (find_default_can_async_p, find_default_is_async_p): Update.
1443 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1444 to_xfer_partial, to_stopped_by_watchpoint,
1445 to_stopped_data_address.
1446 (target_store_registers): Simplify.
1447 (forward_target_remove_breakpoint)
1448 (forward_target_insert_breakpoint): Remove.
1449 (target_remove_breakpoint, target_insert_breakpoint)
1450 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1451 * target.h (struct target_ops) <to_resume, to_wait,
1452 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1453 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1454 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1456 (forward_target_remove_breakpoint)
1457 (forward_target_insert_breakpoint): Remove.
1458 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1460 (record_btrace_insert_breakpoint): Delegate directly.
1462 2014-02-19 Tom Tromey <tromey@redhat.com>
1465 * target-delegates.c: New file.
1466 * target.c: Include target-delegates.c.
1467 (init_dummy_target): Call install_dummy_methods.
1468 (complete_target_initialization): Call install_delegators.
1469 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1470 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1471 * make-target-delegates: New file.
1473 2014-02-19 Tom Tromey <tromey@redhat.com>
1475 * record.c (find_record_target): Use find_target_at.
1476 * target.c (find_target_at): New function.
1477 * target.h (find_target_at): Declare.
1479 2014-02-19 Tom Tromey <tromey@redhat.com>
1481 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1483 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1485 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1486 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1488 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1490 * linux-nat.c (save_sigtrap): Update.
1491 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1492 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1493 (linux_nat_close): Update.
1494 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1496 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1498 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1499 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1500 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1501 (tmp_to_async): Add 'ops' argument.
1502 (record_full_stopped_by_watchpoint, record_full_async)
1503 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1505 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1506 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1507 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1508 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1509 (remote_is_async_p, remote_async): Add 'ops' argument.
1510 (remote_stopped_data_address): Update.
1511 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1512 * target.c (update_current_target)
1513 (find_default_can_async_p, find_default_is_async_p): Update.
1514 (init_dummy_target): Update.
1515 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1516 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1517 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1518 (target_can_async_p, target_is_async_p, target_async)
1519 (target_stopped_by_watchpoint): Update.
1521 2014-02-19 Yao Qi <yao@codesourcery.com>
1524 * gdbarch.sh: Remove startup_gdbarch.
1525 * gdbarch.c: Regenerated.
1526 * gdbarch.h: Likewise.
1528 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1530 * rl78-tdep.c (rl78_g10_register_name): New function.
1531 (rl78_return_value): Add g10 support.
1532 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1535 2014-02-17 Doug Evans <xdje42@gmail.com>
1537 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1538 (SUBDIR_GUILE_SRCS): Ditto.
1539 (scm-gsmob.o): Ditto.
1541 2014-02-17 Yao Qi <yao@codesourcery.com>
1543 * gnu-nat.c (ILL_RPC): Declare defined function.
1545 2014-02-17 Yao Qi <yao@codesourcery.com>
1547 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1548 mach_msg_type_number_t.
1549 (gnu_write_inferior): Likewise.
1551 2014-02-17 Yao Qi <yao@codesourcery.com>
1553 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1555 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1556 (inf_validate_procs, inf_signal): Likewise.
1557 (S_exception_raise_request): Likewise.
1558 (do_mach_notify_dead_name): Likewise.
1559 (steal_exc_port): Likewise.
1560 (gnu_read_inferior): Change 'copy_count''s type to
1561 mach_msg_type_number_t.
1562 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1565 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1567 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1568 flag. Adjust all users; in particular...
1569 (gnu_wait): ..., don't decrement its value in here...
1570 (gnu_create_inferior): ..., and instead set the flag in here,
1571 around the startup_inferior call, and call that one with
1572 START_INFERIOR_TRAPS_EXPECTED.
1574 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1575 (ILL_RPC): ... new macro.
1576 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1577 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1578 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1579 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1580 functions with ILL_RPC macro.
1581 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1582 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1583 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1584 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1585 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1586 (S_proc_getlogin_reply, S_proc_getsid_reply)
1587 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1588 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1589 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1590 (S_proc_getnports_reply, S_proc_is_important_reply)
1591 (S_proc_get_code_reply): New stub functions, generated with
1594 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1595 collected the type check structures.
1597 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1599 2014-02-14 Doug Evans <dje@google.com>
1601 * target.c (target_write_partial): Fix result type.
1603 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1605 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1606 the proper offsets to access fpregset_t.
1608 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1610 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1611 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1612 * h8300-tdep.c (setmachinelist): Remove global.
1613 * hppa-tdep.c (hppa_sigtramp): Remove global.
1614 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1615 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1616 * ravenscar-thread.c (update_target_observer): Remove global.
1617 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1619 2014-02-12 Tom Tromey <tromey@redhat.com>
1621 * common/rsp-low.c: Update comments.
1622 * common/rsp-low.h: Update comments.
1624 2014-02-12 Tom Tromey <tromey@redhat.com>
1626 * common/rsp-low.c (convert_ascii_to_int): Remove.
1627 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1629 2014-02-12 Tom Tromey <tromey@redhat.com>
1631 * common/rsp-low.h (unhexify): Don't declare.
1632 * common/rsp-low.c (unhexify): Remove.
1634 2014-02-12 Tom Tromey <tromey@redhat.com>
1636 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1637 * common/rsp-low.c (convert_int_to_ascii): Remove.
1639 2014-02-12 Tom Tromey <tromey@redhat.com>
1641 * common/rsp-low.h (hexify): Don't declare.
1642 * common/rsp-low.c (hexify): Remove.
1644 2014-02-12 Tom Tromey <tromey@redhat.com>
1646 * common/rsp-low.c (hexify): Never take strlen of argument.
1648 2014-02-12 Tom Tromey <tromey@redhat.com>
1650 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1651 * remote.c (extended_remote_run, remote_rcmd)
1652 (remote_download_trace_state_variable, remote_save_trace_data)
1653 (remote_set_trace_notes): Update.
1654 * tracepoint.c (encode_source_string, tfile_write_status)
1655 (tfile_write_uploaded_tsv): Update.
1657 2014-02-12 Tom Tromey <tromey@redhat.com>
1659 * tracepoint.c: Include rsp-low.h.
1660 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1661 * remote.c: Include rsp-low.h.
1662 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1663 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1664 (remote_unescape_input): Move to common/rsp-low.c.
1665 * common/rsp-low.h: New file.
1666 * common/rsp-low.c: New file.
1667 * Makefile.in (SFILES): Add common/rsp-low.c.
1668 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1669 (COMMON_OBS): Add rsp-low.o.
1670 (rsp-low.o): New target.
1672 2014-02-12 Tom Tromey <tromey@redhat.com>
1674 * utils.h: Include print-utils.h.
1675 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1676 (int_string, core_addr_to_string, core_addr_to_string_nz)
1677 (hex_string, hex_string_custom): Don't declare.
1678 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1679 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1680 (hex_string_custom, int_string, core_addr_to_string)
1681 (core_addr_to_string_nz, host_address_to_string): Move to
1682 common/print-utils.c.
1683 * common/print-utils.h: New file.
1684 * common/print-utils.c: New file
1685 * Makefile.in (SFILES): Add common/print-utils.c.
1686 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1687 (COMMON_OBS): Add print-utils.o.
1688 (print-utils.o): New target.
1690 2014-02-12 Tom Tromey <tromey@redhat.com>
1692 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1694 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1696 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1698 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1700 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1701 if a PT_IO ptrace request returns sucessfully but indicates that 0
1702 bytes were transferred.
1704 2014-02-12 Pedro Alves <palves@redhat.com>
1705 Kevin Buettner <kevinb@redhat.com>
1707 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1708 TYPE_INSTANCE_FLAG_CODE_SPACE.
1710 2014-02-12 Pedro Alves <palves@redhat.com>
1712 * h8300-tdep.c (pseudo_from_raw_register)
1713 (raw_from_pseudo_register): New functions.
1714 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1717 2014-02-12 Pedro Alves <palves@redhat.com>
1719 * h8300-tdep.c (h8300_register_sim_regno): New function.
1720 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1721 gdbarch_register_sim_regno hook.
1723 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1725 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1727 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1729 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1731 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1733 * obsd-tdep.h (obsd_init_abi): New prototype.
1734 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1735 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1736 (obsd_init_abi): New functions.
1737 * i386obsd-tdep.c: Include "obsd-tdep.h".
1738 (i386obsd_init_abi): Call obsd_init_abi.
1739 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1740 (amd64obsd_init_abi): Call obsd_init_abi.
1741 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1742 obsd-tdep.c to gdb_target_obs.
1744 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1746 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1747 double float arguments to 16-byte in the argument slots.
1749 2014-02-11 Doug Evans <xdje42@gmail.com>
1751 * configure.ac: Don't crash if pkg-config is not found and guile
1752 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1754 * configure: Regenerate.
1756 2014-02-11 Yao Qi <yao@codesourcery.com>
1758 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1759 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1760 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1761 * gnu-nat.c (gnu_xfer_memory): Likewise.
1762 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1763 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1764 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1765 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1767 2014-02-11 Yao Qi <yao@codesourcery.com>
1769 * target.h (enum target_xfer_error): Rename to ...
1770 (enum target_xfer_status): ... it. New. All users updated.
1771 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1773 (TARGET_XFER_STATUS_ERROR_P): New macro.
1774 (target_xfer_error_to_string): Remove declaration.
1775 (target_xfer_status_to_string): Declare.
1776 (target_xfer_partial_ftype): Adjust it.
1777 (struct target_ops) <to_xfer_partial>: Return
1778 target_xfer_status. Add argument xfered_len. Update
1780 * target.c (target_xfer_error_to_string): Rename to ...
1781 (target_xfer_status_to_string): ... it. New. All callers
1783 (target_read_live_memory): Likewise. Call target_xfer_partial
1784 instead of target_read.
1785 (memory_xfer_live_readonly_partial): Return
1786 target_xfer_status. Add argument xfered_len.
1787 (raw_memory_xfer_partial): Likewise.
1788 (memory_xfer_partial_1): Likewise.
1789 (memory_xfer_partial): Likewise.
1790 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1791 properly. Update debug message.
1792 (default_xfer_partial, current_xfer_partial): Likewise.
1793 (target_write_partial): Likewise.
1794 (target_read_partial): Likewise. All callers updated.
1795 (read_whatever_is_readable): Likewise.
1796 (target_write_with_progress): Likewise.
1797 (target_read_alloc_1): Likewise.
1799 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1800 * auxv.c (procfs_xfer_auxv): Likewise.
1801 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1802 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1803 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1804 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1805 * corefile.c (read_memory): Adjust.
1806 * corelow.c (core_xfer_partial): Likewise.
1807 * ctf.c (ctf_xfer_partial): Likewise.
1808 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1810 (darwin_xfer_partial): Likewise.
1811 * exec.c (section_table_xfer_memory_partial): Likewise. All
1813 (exec_xfer_partial): Likewise.
1814 * exec.h (section_table_xfer_memory_partial): Update
1816 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1818 (gnu_xfer_partial): Likewise.
1819 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1820 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1821 (ia64_hpux_xfer_solib_got): Likewise.
1822 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1823 type of 'partial_len' to ULONGEST.
1824 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1825 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1826 (linux_nat_xfer_partial): Likewise.
1827 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1828 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1829 * monitor.c (monitor_xfer_memory): Likewise.
1830 (monitor_xfer_partial): Likewise.
1831 * procfs.c (procfs_xfer_partial): Likewise.
1832 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1833 * record-full.c (record_full_xfer_partial): Likewise.
1834 (record_full_core_xfer_partial): Likewise.
1835 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1836 (gdbsim_xfer_partial): Likewise.
1837 * remote.c (remote_write_bytes_aux): Likewise. All callers
1839 (remote_write_bytes, remote_read_bytes): Likewise. All
1841 (remote_flash_erase): Likewise. All callers updated.
1842 (remote_write_qxfer): Likewise. All callers updated.
1843 (remote_read_qxfer): Likewise. All callers updated.
1844 (remote_xfer_partial): Likewise.
1845 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1846 (rs6000_xfer_shared_libraries): Likewise.
1847 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1848 (sol_thread_xfer_partial): Likewise.
1849 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1850 (sparc_xfer_partial): Likewise.
1851 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1853 (spu_xfer_partial): Likewise.
1854 * spu-multiarch.c (spu_xfer_partial): Likewise.
1855 * tracepoint.c (tfile_xfer_partial): Likewise.
1856 * windows-nat.c (windows_xfer_memory): Likewise.
1857 (windows_xfer_shared_libraries): Likewise.
1858 (windows_xfer_partial): Likewise.
1859 * valprint.c: Replace 'target_xfer_error' with
1860 'target_xfer_status' in comments.
1862 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1864 Checked in by Joel Brobecker <brobecker@adacore.com>.
1865 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1867 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1869 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1870 function parameters.
1872 2014-02-10 Will Newton <will.newton@linaro.org>
1874 * elfread.c (elf_rel_plt_read): Look for a .got section if
1875 looking up .got.plt fails.
1876 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1877 on address passed to elf_gnu_ifunc_record_cache.
1878 (elf_gnu_ifunc_resolve_addr): Likewise.
1879 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1881 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1883 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1884 (X_RETTURN): New macro.
1885 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1887 * sparc64-tdep.c (sparc64_init_abi): Hook
1888 sparc_in_function_epilogue_p.
1890 2014-02-10 Gary Benson <gbenson@redhat.com>
1892 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1893 Rename name_matcher to symbol_matcher.
1895 2014-02-10 Gary Benson <gbenson@redhat.com>
1897 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1898 Use expand_symtabs_file_matcher_ftype and
1899 expand_symtabs_symbol_matcher_ftype.
1901 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1903 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1904 (struct ada_symbol_cache): New.
1905 (ada_free_symbol_cache): Forward declare.
1906 (struct ada_pspace_data): New.
1907 (ada_pspace_data_handle): New static global.
1908 (get_ada_pspace_data, ada_pspace_data_cleanup)
1909 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1910 (cache_space, cache): Delete, now folded inside struct
1912 (ada_get_symbol_cache): New function.
1913 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1915 (_initialize_ada_language): Remove initialization of cache_space.
1916 Move call to observer_attach_inferior_exit up, grouping it
1917 with the other observer registrations inside this function.
1918 Rename command to be more general. Add call to
1919 register_program_space_data_with_cleanup.
1921 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1923 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1924 ada_new_objfile_observer.
1925 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1926 (_initialize_tasks): Update uses of ada_new_objfile_observer
1927 and ada_tasks_normal_stop_observer.
1929 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1931 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1932 returned by the 'Length attribute to integer.
1934 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1936 * ada-lang.c (_initialize_ada_language): Initialize
1937 cache_space obstack.
1939 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1941 * ada-lang.c (HASH_SIZE): New macro.
1942 (struct cache_entry): New type.
1943 (cache_space, cache): New static globals.
1944 (ada_clear_symbol_cache, find_entry): New functions.
1945 (lookup_cached_symbol, cache_symbol): Implement.
1946 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1947 (_initialize_ada_language): Attach ada_new_objfile_observer
1948 and ada_free_objfile_observer.
1950 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1952 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1953 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1954 struct block * parameter.
1955 (ada_lookup_symbol_list_worker): Constify local variable "block".
1956 Remove cast which is no longer necessary.
1958 2014-02-10 Doug Evans <xdje42@gmail.com>
1960 Add Guile as an extension language.
1961 * NEWS: Mention Guile scripting.
1962 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1963 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1964 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1965 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1966 (CLIBS): Add GUILE_LIBS.
1967 (install-guile): New rule.
1968 (guile.o): New rule.
1969 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1970 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1971 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1972 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1973 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1974 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1975 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1976 * configure.ac: New option --with-guile.
1977 * configure: Regenerate.
1978 * config.in: Regenerate.
1979 * auto-load.c: Remove #include "python/python.h". Add #include
1980 "gdb/section-scripts.h".
1981 (source_section_scripts): Handle Guile scripts.
1982 (_initialize_auto_load): Add name of Guile objfile script to
1983 scripts-directory help text.
1984 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1985 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1986 (struct breakpoint): New member scm_bp_object.
1987 * defs.h (enum command_control_type): New value guile_control.
1988 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1990 (show_user): Update comment.
1991 (_initialize_cli_cmds): Update help text for "show user". Update help
1992 text for max-user-call-depth.
1993 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1995 (multi_line_command_p): Add guile_control.
1996 (print_command_lines): Handle guile_control.
1997 (execute_control_command, recurse_read_control_structure): Ditto.
1998 (process_next_line): Recognize "guile" commands.
1999 * disasm.c (gdb_disassemble_info): Make non-static.
2000 * disasm.h: #include "dis-asm.h".
2001 (struct gdbarch): Add forward decl.
2002 (gdb_disassemble_info): Declare.
2003 * extension.c: #include "guile/guile.h".
2004 (extension_languages): Add guile.
2005 (get_ext_lang_defn): Handle EXT_LANG_GDB.
2006 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
2007 * gdbtypes.c (get_unsigned_type_max): New function.
2008 (get_signed_type_minmax): New function.
2009 * gdbtypes.h (get_unsigned_type_max): Declare.
2010 (get_signed_type_minmax): Declare.
2011 * guile/README: New file.
2012 * guile/guile-internal.h: New file.
2013 * guile/guile.c: New file.
2014 * guile/guile.h: New file.
2015 * guile/scm-arch.c: New file.
2016 * guile/scm-auto-load.c: New file.
2017 * guile/scm-block.c: New file.
2018 * guile/scm-breakpoint.c: New file.
2019 * guile/scm-disasm.c: New file.
2020 * guile/scm-exception.c: New file.
2021 * guile/scm-frame.c: New file.
2022 * guile/scm-gsmob.c: New file.
2023 * guile/scm-iterator.c: New file.
2024 * guile/scm-lazy-string.c: New file.
2025 * guile/scm-math.c: New file.
2026 * guile/scm-objfile.c: New file.
2027 * guile/scm-ports.c: New file.
2028 * guile/scm-pretty-print.c: New file.
2029 * guile/scm-safe-call.c: New file.
2030 * guile/scm-string.c: New file.
2031 * guile/scm-symbol.c: New file.
2032 * guile/scm-symtab.c: New file.
2033 * guile/scm-type.c: New file.
2034 * guile/scm-utils.c: New file.
2035 * guile/scm-value.c: New file.
2036 * guile/lib/gdb.scm: New file.
2037 * guile/lib/gdb/boot.scm: New file.
2038 * guile/lib/gdb/experimental.scm: New file.
2039 * guile/lib/gdb/init.scm: New file.
2040 * guile/lib/gdb/iterator.scm: New file.
2041 * guile/lib/gdb/printing.scm: New file.
2042 * guile/lib/gdb/types.scm: New file.
2043 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2044 (VPATH): Add $(GUILE_SRCDIR).
2045 (GUILE_DIR): New variable.
2046 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2047 (all): Add stamp-guile dependency.
2048 (stamp-guile): New rule.
2049 (clean-guile, install-guile, uninstall-guile): New rules.
2050 (install-only): Add install-guile dependency.
2051 (uninstall): Add uninstall-guile dependency.
2052 (clean): Add clean-guile dependency.
2054 2014-02-09 Doug Evans <xdje42@gmail.com>
2056 Revert this patch (which I approved, mea culpa).
2058 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2060 * Makefile.in (all-lib): Remove.
2061 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2063 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2065 Fix Python stack corruption.
2066 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2069 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2071 * Makefile.in (all-lib): Remove.
2072 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2074 2014-02-07 Doug Evans <dje@google.com>
2076 * extension-priv.h (extension_language_script_ops): Add comment.
2077 (extension_language_ops): Add comment.
2078 (active_ext_lang_state): Fix typo in comment.
2080 2014-02-07 Pedro Alves <palves@redhat.com>
2082 * infrun.c (handle_signal_stop) <signal arrives while stepping
2083 over a breakpoint>: Switch back to the stepping thread.
2085 2014-02-07 Yao Qi <yao@codesourcery.com>
2087 * target.c (target_xfer_partial): Return zero if LEN is zero.
2089 2014-02-07 Yao Qi <yao@codesourcery.com>
2091 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2092 (ld_so_xfer_auxv): Likewise.
2093 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2094 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2095 * corelow.c (core_xfer_partial): Likewise.
2096 * ctf.c (ctf_xfer_partial): Likewise.
2097 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2098 (darwin_xfer_partial): Likewise.
2099 * exec.c (exec_xfer_partial): Likewise.
2100 * gnu-nat.c (gnu_xfer_partial): Likewise.
2101 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2102 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2103 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2104 * linux-nat.c (linux_xfer_siginfo): Likewise.
2105 (linux_proc_xfer_spu): Likewise.
2106 * procfs.c (procfs_xfer_partial): Likewise.
2107 * record-full.c (record_full_xfer_partial): Likewise.
2108 (record_full_core_xfer_partial): Likewise.
2109 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2110 * remote.c (remote_write_qxfer): Likewise.
2111 (remote_write_qxfer, remote_read_qxfer): Likewise.
2112 (remote_xfer_partial): Likewise.
2113 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2114 (rs6000_xfer_shared_libraries): Likewise.
2115 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2116 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2117 (spu_xfer_partial): Likewise.
2118 * target.c (memory_xfer_partial_1): Likewise.
2119 * tracepoint.c (tfile_xfer_partial): Likewise.
2120 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2121 (windows_xfer_partial): Likewise.
2123 2014-02-07 Yao Qi <yao@codesourcery.com>
2125 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2127 (core_xfer_shared_libraries_aix): Likewise.
2128 * gdbarch.c, gdbarch.h: Regenerated.
2129 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2130 ULONGEST. Change 'len_avail' type to ULONGEST.
2131 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2132 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2134 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2136 2014-02-07 Yao Qi <yao@codesourcery.com>
2138 * corefile.c (memory_error): Get 'exception' from ERR and pass
2139 'exception' to throw_error.
2141 2014-02-06 Doug Evans <xdje42@gmail.com>
2143 * configure.ac (libpython checking): Remove all but python.o from
2144 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2145 * configure: Regenerate.
2147 * Makefile.in (SFILES): Add extension.c.
2148 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2149 (COMMON_OBS): Add extension.o.
2150 * extension.h: New file.
2151 * extension-priv.h: New file.
2152 * extension.c: New file.
2154 * python/python-internal.h: #include "extension.h".
2155 (gdbpy_auto_load_enabled): Declare.
2156 (gdbpy_apply_val_pretty_printer): Declare.
2157 (gdbpy_apply_frame_filter): Declare.
2158 (gdbpy_preserve_values): Declare.
2159 (gdbpy_breakpoint_cond_says_stop): Declare.
2160 (gdbpy_breakpoint_has_cond): Declare.
2161 (void source_python_script_for_objfile): Delete.
2162 * python/python.c: #include "extension-priv.h".
2163 Delete inclusion of "observer.h".
2164 (extension_language_python): Moved here and renamed from
2165 script_language_python in py-auto-load.c.
2166 Redefined to be of type extension_language_defn.
2167 (python_extension_script_ops): New global.
2168 (python_extension_ops): New global.
2169 (struct python_env): New member previous_active.
2170 (restore_python_env): Call restore_active_ext_lang.
2171 (ensure_python_env): Call set_active_ext_lang.
2172 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2174 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2176 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2178 (gdbpy_eval_from_control_command): Renamed from
2179 eval_python_from_control_command, made static. New arg extlang.
2180 (gdbpy_source_script) Renamed from source_python_script, made static.
2182 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2183 result to int. New arg extlang.
2184 (gdbpy_source_objfile_script): Renamed from
2185 source_python_script_for_objfile, made static. New arg extlang.
2186 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2187 static. New args extlang, extlang_printers. Change result type to
2189 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2190 static. New arg extlang. Rename arg printers to extlang_printers
2191 and change type to ext_lang_type_printers *.
2192 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2193 static. Replace argument arg with extlang, extlang_printers.
2194 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2195 (!HAVE_PYTHON, source_python_script): Delete.
2196 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2197 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2198 (!HAVE_PYTHON, start_type_printers): Delete.
2199 (!HAVE_PYTHON, apply_type_printers): Delete.
2200 (!HAVE_PYTHON, free_type_printers): Delete.
2201 (_initialize_python): Delete call to observer_attach_before_prompt.
2202 (finalize_python): Set/restore active extension language.
2203 (gdbpy_finish_initialization) Renamed from
2204 finish_python_initialization, made static. New arg extlang.
2205 (gdbpy_initialized): New function.
2206 * python/python.h: #include "extension.h". Delete #include
2207 "value.h", "mi/mi-cmds.h".
2208 (extension_language_python): Declare.
2209 (GDBPY_AUTO_FILE_NAME): Delete.
2210 (enum py_bt_status): Moved to extension.h and renamed to
2212 (enum frame_filter_flags): Moved to extension.h.
2213 (enum py_frame_args): Moved to extension.h and renamed to
2214 ext_lang_frame_args.
2215 (finish_python_initialization): Delete.
2216 (eval_python_from_control_command): Delete.
2217 (source_python_script): Delete.
2218 (apply_val_pretty_printer): Delete.
2219 (apply_frame_filter): Delete.
2220 (preserve_python_values): Delete.
2221 (gdbpy_script_language_defn): Delete.
2222 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2223 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2225 * auto-load.c: #include "extension.h".
2226 (GDB_AUTO_FILE_NAME): Delete.
2227 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2228 (script_language_gdb): Delete, moved to extension.c and renamed to
2229 extension_language_gdb.
2230 (source_gdb_script_for_objfile): Delete.
2231 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2232 (loaded_script): Change type of language member to
2233 struct extension_language_defn *.
2234 (init_loaded_scripts_info): Initialize
2235 unsupported_script_warning_printed.
2236 (maybe_add_script): Make static. Change type of language arg to
2237 struct extension_language_defn *.
2238 (clear_section_scripts): Reset unsupported_script_warning_printed.
2239 (auto_load_objfile_script_1): Rewrite to use extension language API.
2240 (auto_load_objfile_script): Make public. Remove support-compiled-in
2241 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2242 (source_section_scripts): Rewrite to use extension language API.
2243 (load_auto_scripts_for_objfile): Rewrite to use
2244 auto_load_scripts_for_objfile.
2245 (collect_matching_scripts_data): Change type of language member to
2246 struct extension_language_defn *.
2247 (auto_load_info_scripts): Change type of language arg to
2248 struct extension_language_defn *.
2249 (unsupported_script_warning_print): New function.
2250 (script_not_found_warning_print): Make static.
2251 (_initialize_auto_load): Rewrite construction of scripts-directory
2253 * auto-load.h (struct objfile): Add forward decl.
2254 (struct script_language): Delete.
2255 (struct auto_load_pspace_info): Add forward decl.
2256 (struct extension_language_defn): Add forward decl.
2257 (maybe_add_script): Delete.
2258 (auto_load_objfile_script): Declare.
2259 (script_not_found_warning_print): Delete.
2260 (auto_load_info_scripts): Update prototype.
2261 (auto_load_gdb_scripts_enabled): Declare.
2262 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2263 auto_load_python_scripts_enabled and made public.
2264 (script_language_python): Delete, moved to python.c.
2265 (gdbpy_script_language_defn): Delete.
2266 (info_auto_load_python_scripts): Update to use
2267 extension_language_python.
2269 * breakpoint.c (condition_command): Replace call to
2270 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2271 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2272 with call to breakpoint_ext_lang_cond_says_stop.
2273 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2274 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2275 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2276 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2278 (local_setattro): Print name of extension language with existing
2281 * valprint.c (val_print, value_print): Update to call
2282 apply_ext_lang_val_pretty_printer.
2283 * cp-valprint.c (cp_print_value): Update call to
2284 apply_ext_lang_val_pretty_printer.
2285 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2286 (gdbpy_apply_val_pretty_printer): Renamed from
2287 apply_val_pretty_printer. New arg extlang.
2288 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2290 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2291 extension language API.
2292 * cli/cli-script.c (execute_control_command): Update to call
2293 eval_ext_lang_from_control_command.
2295 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2296 enum ext_lang_bt_status values. Update call to
2297 apply_ext_lang_frame_filter.
2298 (mi_cmd_stack_list_locals): Ditto.
2299 (mi_cmd_stack_list_args): Ditto.
2300 (mi_cmd_stack_list_variables): Ditto.
2301 * mi/mi-main.c: Delete #include "python/python-internal.h".
2302 Add #include "extension.h".
2303 (mi_cmd_list_features): Replace reference to python internal variable
2304 gdb_python_initialized with call to ext_lang_initialized_p.
2306 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2307 Update to use enum ext_lang_frame_args. Update to call
2308 apply_ext_lang_frame_filter.
2309 * python/py-framefilter.c (extract_sym): Update to use enum
2311 (extract_value, py_print_type, py_print_value): Ditto.
2312 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2313 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2314 (py_print_frame): Ditto.
2315 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2316 New arg extlang. Update to use enum ext_lang_bt_status.
2318 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2319 finish_python_initialization. Replace with call to
2320 finish_ext_lang_initialization.
2322 * typeprint.c (do_free_global_table): Update to call
2323 free_ext_lang_type_printers.
2324 (create_global_typedef_table): Update to call
2325 start_ext_lang_type_printers.
2326 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2327 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2328 (type_print_options): Change type of global_printers from "void *"
2329 to "struct ext_lang_type_printers *".
2331 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2332 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2333 (gdbpy_preserve_values): Renamed from preserve_python_values.
2335 (!HAVE_PYTHON, preserve_python_values): Delete.
2337 * utils.c (quit_flag): Delete, moved to extension.c.
2338 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2341 * eval.c: Delete #include "python/python.h".
2342 * main.c: Delete #include "python/python.h".
2344 * defs.h: Update comment.
2346 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2350 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2352 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2355 2014-02-05 Yao Qi <yao@codesourcery.com>
2357 * remote.c (remote_pass_signals): Remove local 'buf' and use
2359 (remote_program_signals): Likewise.
2361 2014-02-05 Yao Qi <yao@codesourcery.com>
2363 * ctf.c: Include "inferior.h" and "gdbthread.h".
2364 (CTF_PID): A new macro.
2365 (ctf_open): Call inferior_appeared and add_thread_silent.
2366 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2367 (ctf_thread_alive): New function.
2368 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2370 2014-02-05 Yao Qi <yao@codesourcery.com>
2374 2013-05-24 Yao Qi <yao@codesourcery.com>
2376 * tracepoint.c (TFILE_PID): Remove.
2377 (tfile_open): Don't add thread and inferior.
2378 (tfile_close): Don't set 'inferior_ptid'. Don't call
2379 exit_inferior_silent.
2380 (tfile_thread_alive): Remove.
2381 (init_tfile_ops): Don't set field 'to_thread_alive' of
2384 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2386 * remote.c (remote_start_remote): Call remote_check_symbols even
2387 if only symbol-file (not file) has been given.
2389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2391 * gdbarch.sh (skip_entrypoint): New callback.
2392 * gdbarch.c, gdbarch.h: Regenerate.
2393 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2394 * infrun.c (fill_in_stop_func): Likewise.
2395 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2396 (ppc_elfv2_elf_make_msymbol_special): New function.
2397 (ppc_elfv2_skip_entrypoint): Likewise.
2398 (ppc_linux_init_abi): Install them for ELFv2.
2400 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2402 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2403 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2404 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2405 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2406 structures returned in GPRs.
2408 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2410 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2411 offset to the stack parameter list for the ELFv2 ABI.
2413 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2415 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2416 set_gdbarch_convert_from_func_ptr_addr and
2417 set_gdbarch_elf_make_msymbol_special for ELFv1.
2418 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2419 function descriptors on ELFv1.
2420 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2421 set up r12 at function entry.
2423 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2425 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2426 (struct gdbarch_tdep): New member elf_abi.
2428 * rs6000-tdep.c: Include "elf/ppc64.h".
2429 (rs6000_gdbarch_init): Detect ELF ABI version.
2431 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2433 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2434 within a register pair holding a DFP 128-bit value on little-endian.
2435 (ppc64_sysv_abi_return_value_base): Likewise.
2436 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2437 (dfp_pseudo_register_write): Likewise.
2439 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2441 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2442 offset on little-endian when passing _Decimal32.
2443 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2445 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2447 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2448 of the overlapped FP register within the VSX register on little-
2450 (efpr_pseudo_register_write): Likewise.
2452 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2454 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2455 offset on little-endian when passing small structures.
2457 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2459 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2460 (struct ppc64_sysv_argpos): New data structure.
2461 (ppc64_sysv_abi_push_float): Remove.
2462 (ppc64_sysv_abi_push_val): New function.
2463 (ppc64_sysv_abi_push_integer): Likewise.
2464 (ppc64_sysv_abi_push_freg): Likewise.
2465 (ppc64_sysv_abi_push_vreg): Likewise.
2466 (ppc64_sysv_abi_push_param): Likewise.
2467 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2468 (ppc64_sysv_abi_return_value_base): New function.
2469 (ppc64_sysv_abi_return_value): Refactor to use it.
2471 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2473 * NEWS: Document new target powerpc64le-*-linux*.
2475 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2477 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2478 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2480 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2481 register set used in ELF core dumps. Add floating-point register set.
2483 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2485 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2486 dwarf2_to_gdb[] table using symbolic constants. Adjust
2487 penultimate entry from number representing the PC register
2488 to symbolic constant representing the MDR register. Add
2489 constant for the PC register to the end of the table.
2491 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2493 * bsd-kvm.c: Include <sys/param.h>
2495 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2497 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2499 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2501 * ada-lang.h (clear_ada_sym_cache): Delete.
2503 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2505 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2507 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2509 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2510 the sigreturn register save area only if the syscall is
2513 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2515 * valops.c (value_slice): Minor reformatting.
2517 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2519 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2521 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2523 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2525 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2526 (ada_ignore_descriptive_types_p): New static global.
2527 (find_parallel_type_by_descriptive_type): Return immediately
2528 if ada_ignore_descriptive_types_p is set.
2529 (_initialize_ada_language): Register new commands "maintenance
2530 set ada", "maintenance show ada", "maintenance set ada
2531 ignore-descriptive-types" and "maintenance show ada
2532 ignore-descriptive-types".
2533 * NEWS: Add entry for new "maint ada set/show
2534 ignore-descriptive-types" commands.
2536 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2538 * record-btrace.c (record_btrace_close): Call btrace_teardown
2541 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2543 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2546 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2548 * ada-typeprint (type_is_full_subrange_of_target_type):
2550 (print_range): Add parameter bounds_prefered_p. If not set,
2551 try printing range types using the name of their base type.
2552 (print_range_type): Add parameter bounds_prefered_p.
2553 Use it in call to print_range.
2554 (print_array_type, ada_print_type): Update calls to print_range
2555 and print_range_type.
2557 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2559 * ada-typeprint.c (print_array_type, print_choices, print_range)
2560 (print_range_bound, print_dynamic_range_bound, print_range_type):
2563 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2565 * ada-typeprint.c (print_range): Add missing empty line
2566 after local declaration.
2568 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2570 * ada-valprint.c (print_optional_low_bound): Get index_type's
2571 target type for as long as it is a TYPE_CODE_RANGE.
2573 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2575 * procfs.c (procfs_make_note_section): Remove assertion and
2578 2014-01-24 Yao Qi <yao@codesourcery.com>
2580 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2581 * corelow.c (get_core_siginfo): Likewise.
2583 2014-01-24 Yao Qi <yao@codesourcery.com>
2585 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2586 ULONGEST. Don't check 'len' is negative.
2587 (remote_write_bytes): Change type of 'len' to ULONGEST.
2589 2014-01-23 Tom Tromey <tromey@redhat.com>
2592 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2593 Handle exception from frame.block.
2594 (FrameVars.fetch_frame_locals): Likewise.
2596 2014-01-23 Tom Tromey <tromey@redhat.com>
2599 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2600 on a NULL pointer. Move "goto error" to correct place.
2602 2014-01-23 Tom Tromey <tromey@redhat.com>
2605 * python/py-framefilter.c (apply_frame_filter): Call
2606 ensure_python_env after computing gdbarch.
2608 2014-01-23 Yao Qi <yao@codesourcery.com>
2610 * target.c (raw_memory_xfer_partial): Change argument type
2611 from void * to gdb_byte *.
2612 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2614 2014-01-22 Doug Evans <dje@google.com>
2616 New gdbserver option --debug-format=timestamp.
2619 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2621 * syscalls/s390x-linux.xml: New file.
2622 * syscalls/s390-linux.xml: New file.
2623 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2624 (XML_SYSCALL_FILENAME_S390X): Likewise.
2625 (op_svc): New enum value for SVC opcode.
2626 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2627 (s390_linux_get_syscall_number): New function.
2628 (s390_gdbarch_init): Register '*get_syscall_number' and the
2629 syscall xml file name.
2630 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2631 "s390-linux.xml" and "s390x-linux.xml".
2632 * NEWS: Announce new feature.
2634 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2636 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2638 2014-01-22 Pedro Alves <palves@redhat.com>
2640 * xtensa-config.c: Include defs.h.
2642 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2644 * common/common-utils.h: Add "ARI:" comment beside __func__
2647 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2649 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2650 documentation a bit.
2652 2014-01-21 Roland McGrath <mcgrathr@google.com>
2654 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2655 * configure: Regenerate.
2656 * aclocal.m4: Regenerate.
2657 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2658 New substituted variables.
2659 (install-strip): New target.
2660 (INSTALL_SCRIPT): New substituted variable.
2661 (FLAGS_TO_PASS): Add it.
2662 (install-only): Use $(INSTALL_SCRIPT) rather than
2663 $(INSTALL_PROGRAM) for gcore.
2665 2014-01-20 Tom Tromey <tromey@redhat.com>
2667 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2670 2014-01-20 Tom Tromey <tromey@redhat.com>
2672 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2673 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2674 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2675 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2676 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2677 (struct cmd_list_element) <flags>: Remove.
2678 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2679 doc_allocated>: New fields.
2680 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2682 * maint.c (maintenance_do_deprecate): Update.
2683 * top.c (execute_command): Update.
2685 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2687 * xtensa-linux-nat.c: Include asm/ptrace.h.
2689 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2691 * Makefile.in (SFILES): Add d-support.c.
2692 (COMMON_OBS): Add d-support.o.
2693 * d-lang.h (d_parse_symbol): Add comment, now defined in
2695 * d-lang.c (parse_call_convention)
2696 (parse_attributes, parse_function_types)
2697 (parse_function_args, parse_type, parse_identifier)
2698 (call_convention_p, d_parse_symbol): Move functions to ...
2699 * d-support.c: ... New file.
2701 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2703 * d-lang.h (d_parse_symbol): Add declaration.
2704 * d-lang.c (extract_identifiers)
2705 (extract_type_info): Remove functions.
2706 (parse_call_convention, parse_attributes)
2707 (parse_function_types, parse_function_args)
2708 (parse_type, parse_identifier, call_convention_p)
2709 (d_parse_symbol): New functions.
2710 (d_demangle): Use d_parse_symbol to demangle D symbols.
2712 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2714 * d-lang.h (struct builtin_d_type): New data type.
2715 (builtin_d_type): Add declaration.
2716 * d-lang.c (d_language_arch_info, build_d_types)
2717 (builtin_d_type): New functions.
2718 (enum d_primitive_types): New data type.
2719 (d_language_defn): Change c_language_arch_info to
2720 d_language_arch_info.
2721 (d_type_data): New static variable.
2722 (_initialize_d_language): Initialize d_type_data.
2724 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2726 * d-lang.h (d_main_name): Add declaration.
2727 * d-lang.c (d_main_name): New function.
2728 * symtab.c (find_main_name): Add call to d_main_name.
2730 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2732 * d-lang.c (d_language_defn): Change macro_expansion_c to
2735 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2737 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2739 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2741 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2742 gdb_exception" declaration.
2743 * remote.c (getpkt_or_notif_sane): Likewise.
2745 2014-01-17 Doug Evans <dje@google.com>
2747 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2748 function, contents of dirnames_to_char_ptr_vec_append moved here.
2749 (delim_string_to_char_ptr_vec): New function.
2750 (dirnames_to_char_ptr_vec_append): Rewrite.
2751 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2753 2014-01-17 Doug Evans <dje@google.com>
2755 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2757 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2758 #include "common-utils.h".
2759 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2760 * common/vec.h (VEC_ASSERT_PASS): Update.
2761 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2762 (MACH_CHECK_ERROR): Update.
2764 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2766 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2768 * gdbarch.h: Regenerate.
2770 2014-01-16 Tom Tromey <tromey@redhat.com>
2772 * value.c (struct value) <regnum>: Move earlier.
2774 2014-01-16 Tom Tromey <tromey@redhat.com>
2776 * remote.c (extended_remote_create_inferior): Rename from
2777 extended_remote_create_inferior_1. Add "ops" argument. Remove
2780 2014-01-16 Pedro Alves <palves@redhat.com>
2782 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2783 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2786 2014-01-16 Doug Evans <dje@google.com>
2788 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2792 * btrace.h (btrace_thread_flag): New.
2793 (struct btrace_thread_info) <flags>: New.
2794 * record-btrace.c (record_btrace_resume_thread)
2795 (record_btrace_find_thread_to_move, btrace_step_no_history)
2796 (btrace_step_stopped, record_btrace_start_replaying)
2797 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2798 (record_btrace_find_resume_thread): New.
2799 (record_btrace_resume, record_btrace_wait): Extend.
2800 (record_btrace_can_execute_reverse): New.
2801 (record_btrace_open): Fail in non-stop mode.
2802 (record_btrace_set_replay): Split into this, ...
2803 (record_btrace_stop_replaying): ... this, ...
2804 (record_btrace_clear_histories): ... and this.
2805 (init_record_btrace_ops): Init to_can_execute_reverse.
2806 * NEWS: Announce it.
2808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2810 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2811 (forward_target_decr_pc_after_break)
2812 (target_decr_pc_after_break): New.
2813 * target.c (forward_target_decr_pc_after_break)
2814 (target_decr_pc_after_break): New.
2815 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2816 instead of gdbarch_decr_pc_after_break.
2817 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2818 instead of gdbarch_decr_pc_after_break.
2819 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2820 instead of gdbarch_decr_pc_after_break.
2821 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2822 instead of gdbarch_decr_pc_after_break.
2823 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2824 instead of gdbarch_decr_pc_after_break.
2825 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2826 instead of gdbarch_decr_pc_after_break.
2828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2830 * btrace.c: Include regcache.h.
2831 (btrace_add_pc): New.
2832 (btrace_enable): Call btrace_add_pc.
2833 (btrace_is_empty): New.
2834 * btrace.h (btrace_is_empty): New.
2835 * record-btrace.c (require_btrace, record_btrace_info): Call
2838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2840 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2841 Support delta reads.
2842 (linux_disable_btrace): Change return type.
2843 * common/linux-btrace.h (linux_read_btrace): Change parameters
2844 and return type to allow error reporting. Update users.
2845 (linux_disable_btrace): Change return type. Update users.
2846 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2848 (btrace_error): New.
2849 (btrace_block) <begin>: Comment on BEGIN == 0.
2850 * btrace.c (btrace_compute_ftrace): Start from the end of
2852 (btrace_stitch_trace, btrace_clear_history): New.
2853 (btrace_fetch): Read delta trace, return if replaying.
2854 (btrace_clear): Move clear history code to btrace_clear_history.
2855 (parse_xml_btrace): Throw an error if parsing failed.
2856 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2857 and return type to allow error reporting.
2858 (target_read_btrace): Change parameters and return type to allow
2860 * target.c (target_read_btrace): Update.
2861 * remote.c (remote_read_btrace): Support delta reads. Pass
2863 * NEWS: Announce it.
2865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2867 * record.h (record_btrace_frame_unwind)
2868 (record_btrace_tailcall_frame_unwind): New declarations.
2869 * dwarf2-frame: Include record.h
2870 (dwarf2_frame_cfa): Throw an error for btrace frames.
2871 * record-btrace.c: Include hashtab.h.
2872 (btrace_get_bfun_name): New.
2873 (btrace_call_history): Call btrace_get_bfun_name.
2874 (struct btrace_frame_cache): New.
2876 (bfcache_hash, bfcache_eq, bfcache_new): New.
2877 (btrace_get_frame_function): New.
2878 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2879 (record_btrace_frame_this_id): Compute own id.
2880 (record_btrace_frame_prev_register): Provide PC, throw_error
2881 for all other registers.
2882 (record_btrace_frame_sniffer): Detect btrace frames.
2883 (record_btrace_tailcall_frame_sniffer): New.
2884 (record_btrace_frame_dealloc_cache): New.
2885 (record_btrace_frame_unwind): Add new functions.
2886 (record_btrace_tailcall_frame_unwind): New.
2887 (_initialize_record_btrace): Allocate cache.
2888 * btrace.c (btrace_clear): Call reinit_frame_cache.
2889 * NEWS: Announce it.
2891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2893 * record-btrace.c (record_btrace_set_replay)
2894 (record_btrace_goto_begin, record_btrace_goto_end)
2895 (record_btrace_goto): New.
2896 (init_record_btrace_ops): Initialize them.
2897 * NEWS: Announce it.
2899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2901 * record-btrace.c (record_btrace_find_new_threads)
2902 (record_btrace_thread_alive): New.
2903 (init_record_btrace_ops): Initialize to_find_new_threads and
2906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2908 * record-btrace.c (record_btrace_resume): New.
2909 (record_btrace_wait): New.
2910 (init_record_btrace_ops): Initialize to_wait and to_resume.
2912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2914 * record-btrace.c (record_btrace_xfer_partial)
2915 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2916 (record_btrace_allow_memory_access): New.
2917 (init_record_btrace_ops): Initialize new methods.
2918 * target.c (raw_memory_xfer_partial): Bail out if target reports
2919 that this memory is not available.
2921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2923 * target.h (target_ops) <to_insert_breakpoint>
2924 <to_remove_breakpoint>: Add target_ops parameter.
2925 (forward_target_insert_breakpoint): New.
2926 (forward_target_remove_breakpoint): New.
2927 (memory_remove_breakpoint, memory_insert_breakpoint):
2928 Add target_ops parameter.
2929 * target.c (target_insert_breakpoint): Split into this and ...
2930 (forward_target_insert_breakpoint): ... this.
2931 (target_remove_breakpoint): Split into this and ...
2932 (forward_target_remove_breakpoint): ... this.
2933 (debug_to_insert_breakpoint): Add target_ops parameter.
2934 Call forward_target_insert_breakpoint.
2935 (debug_to_remove_breakpoint): Add target_ops parameter.
2936 Call forward_target_remove_breakpoint.
2937 (update_current_target): Do not inherit or default to_insert_breakpoint
2938 and to_remove_breakpoint.
2939 * corelow.c (ignore): Add target_ops parameter.
2940 * exec.c (ignore): Add target_ops parameter.
2941 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2942 Add target_ops parameter.
2943 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2944 Add target_ops parameter.
2945 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2946 Add target_ops parameter.
2947 * record-full.c (record_full_beneath_to_insert_breakpoint)
2948 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2949 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2950 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2951 (record_full_core_remove_breakpoint): Add target_ops parameter.
2953 (record_full_beneath_to_insert_breakpoint_ops)
2954 (record_full_beneath_to_remove_breakpoint_ops)
2955 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2956 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2957 tmp_to_remove_breakpoint_ops,
2958 record_full_beneath_to_insert_breakpoint_ops, and
2959 record_full_beneath_to_remove_breakpoint_ops.
2960 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2961 (m32r_remove_breakpoint): Add target_ops parameter.
2962 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2963 Add target_ops parameter.
2964 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2965 Add target_ops parameter.
2967 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2968 Markus Metzger <markus.t.metzger@intel.com>
2970 * record-btrace.c: Include frame-unwind.h.
2971 (record_btrace_frame_unwind_stop_reason)
2972 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2973 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2975 (init_record_btrace_ops): Install it.
2977 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2979 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2982 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2984 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2987 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2989 * frame-unwind.c: Include target.h.
2990 (frame_unwind_try_unwinder): New function with code from ...
2991 (frame_unwind_find_by_frame): ... here. New variable
2992 unwinder_from_target, call also target_get_unwinder)
2993 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2994 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2995 * target.h (struct target_ops): New fields to_get_unwinder and
2996 to_get_tailcall_unwinder.
2997 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3001 * record-btrace.c (record_btrace_fetch_registers)
3002 (record_btrace_store_registers)
3003 (record_btrace_to_prepare_to_store): New.
3004 (init_record_btrace_ops): Add the above.
3006 2014-01-16 Tom Tromey <tromey@redhat.com>
3008 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
3009 * target.h (struct target_ops) <to_prepare_to_store>: Add
3011 (target_prepare_to_store): Add argument.
3012 * target.c (debug_to_prepare_to_store): Add argument.
3013 (update_current_target): Update.
3014 * remote.c (remote_prepare_to_store): Add 'self' argument.
3015 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
3016 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
3017 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
3018 * record-full.c (record_full_core_prepare_to_store): Add 'self'
3020 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
3021 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
3022 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
3023 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
3024 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3028 * btrace.h (replay) <replay>: New.
3029 (btrace_is_replaying): New.
3030 * btrace.c (btrace_clear): Free replay iterator.
3031 (btrace_is_replaying): New.
3032 * record-btrace.c (record_btrace_is_replaying): New.
3033 (record_btrace_info): Print insn number if replaying.
3034 (record_btrace_insn_history): Start at replay position.
3035 (record_btrace_call_history): Start at replay position.
3036 (init_record_btrace_ops): Init to_record_is_replaying.
3038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3040 * record-btrace.c (record_btrace_insn_history_range): Include
3042 (record_btrace_insn_history_from): Adjust range.
3043 (record_btrace_call_history_range): Include
3045 (record_btrace_call_history_from): Adjust range.
3046 * NEWS: Announce changes.
3048 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3050 * record.h (enum record_print_flag)
3051 <record_print_indent_calls>: New.
3052 * record.c (get_call_history_modifiers): Recognize /c modifier.
3053 (_initialize_record): Document /c modifier.
3054 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3055 Reorder fields. Optionally indent the function name. Update
3057 * NEWS: Announce changes.
3059 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3061 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3065 * btrace.c (ftrace_new_function): Start counting at one.
3066 * record-btrace.c (record_btrace_info): Adjust number of calls
3068 * NEWS: Announce it.
3070 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3072 * record-btrace.c (btrace_call_history_insn_range): Print
3073 insn range as [begin, end].
3075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3077 * btrace.h (struct btrace_func_link): New.
3078 (enum btrace_function_flag): New.
3079 (struct btrace_inst): Rename to ...
3080 (struct btrace_insn): ...this. Update all users.
3081 (struct btrace_func) <ibegin, iend>: Remove.
3082 (struct btrace_func_link): New.
3083 (struct btrace_func): Rename to ...
3084 (struct btrace_function): ...this. Update all users.
3085 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3086 (number, level, flags>: New.
3087 (struct btrace_insn_iterator): Rename to ...
3088 (struct btrace_insn_history): ...this.
3090 (struct btrace_insn_iterator, btrace_call_iterator): New.
3091 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3092 (struct btrace_target_info) <begin, end, level>
3093 <insn_history, call_history>: New.
3094 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3095 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3096 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3097 (btrace_call_number, btrace_call_begin, btrace_call_end)
3098 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3099 (btrace_find_function_by_number, btrace_set_insn_history)
3100 (btrace_set_call_history): New.
3101 * btrace.c (btrace_init_insn_iterator)
3102 (btrace_init_func_iterator, compute_itrace): Remove.
3103 (ftrace_print_function_name, ftrace_print_filename)
3104 (ftrace_skip_file): Change
3106 (ftrace_init_func): Remove.
3107 (ftrace_debug): Use new btrace_function fields.
3108 (ftrace_function_switched): Also consider gaining and
3109 losing symbol information).
3110 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3111 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3112 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3114 (ftrace_new_function): Move. Remove debug print.
3115 (ftrace_update_lines, ftrace_update_insns): New.
3116 (ftrace_update_function): Check for call, ret, and jump.
3117 (compute_ftrace): Renamed to ...
3118 (btrace_compute_ftrace): ...this. Rewritten to compute call
3120 (btrace_fetch, btrace_clear): Updated.
3121 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3122 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3123 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3124 (btrace_call_number, btrace_call_begin, btrace_call_end)
3125 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3126 (btrace_find_function_by_number, btrace_set_insn_history)
3127 (btrace_set_call_history): New.
3128 * record-btrace.c (require_btrace): Use new btrace thread
3130 (record_btrace_info, btrace_insn_history)
3131 (record_btrace_insn_history, record_btrace_insn_history_range):
3132 Use new btrace thread info fields and new iterator.
3133 (btrace_func_history_src_line): Rename to ...
3134 (btrace_call_history_src_line): ...this. Use new btrace
3136 (btrace_func_history): Rename to ...
3137 (btrace_call_history): ...this. Use new btrace thread info
3138 fields and new iterator.
3139 (record_btrace_call_history, record_btrace_call_history_range):
3140 Use new btrace thread info fields and new iterator.
3142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3144 * frame.h (frame_id_build_unavailable_stack_special): New.
3145 * frame.c (frame_id_build_unavailable_stack_special): New.
3147 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3149 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3150 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3151 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3153 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3154 (i386_insn_is_jump, i386_jmp_p): New.
3155 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3156 insn_is_jump to gdbarch.
3157 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3158 * gdbarch.h: Regenerated.
3159 * gdbarch.c: Regenerated.
3160 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3161 (default_insn_is_jump): New.
3162 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3163 (default_insn_is_jump): New.
3165 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3167 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3169 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3170 (btrace_read_type) <btrace_read_new>: Change to ...
3171 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3175 * common/linux-btrace.c (linux_read_btrace): Free trace from
3178 2014-01-15 Doug Evans <dje@google.com>
3180 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3183 2014-01-15 Tom Tromey <tromey@redhat.com>
3185 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3186 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3187 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3188 (set_objfile_main_name): New function.
3189 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3190 language_of_main>: New fields.
3191 (set_objfile_main_name): Declare.
3192 * symtab.c (find_main_name): Loop over objfiles to find the main
3194 (set_main_name): Now static.
3195 (get_main_info): Add comment.
3196 * symtab.h (set_main_name): Don't declare.
3198 2014-01-15 Tom Tromey <tromey@redhat.com>
3200 * symtab.c (main_progspace_key): New global.
3201 (struct main_info): New.
3202 (name_of_main, language_of_main): Remove.
3203 (get_main_info, main_info_cleanup): New function.
3204 (set_main_name, main_name, main_language): Use get_main_info.
3205 (_initialize_symtab): Initialize main_progspace_key.
3207 2014-01-15 Tom Tromey <tromey@redhat.com>
3209 * dbxread.c (process_one_symbol): Update.
3210 * dwarf2read.c (read_partial_die): Update.
3211 * symfile.c (set_initial_language): Call main_language.
3212 * symtab.c (language_of_main): Now static.
3213 (set_main_name): Add 'lang' parameter.
3214 (find_main_name): Update.
3215 (main_language): New function.
3216 (symtab_observer_executable_changed): Update.
3217 * symtab.h (set_main_name): Update.
3218 (language_of_main): Remove.
3219 (main_language): Declare.
3221 2014-01-15 Tom Tromey <tromey@redhat.com>
3223 * symfile.c (init_entry_point_info): Use new "initialized" field.
3225 * objfiles.h (struct entry_point) <initialized>: New field.
3226 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3227 (struct objfile) <ei>: ...here. Remove.
3228 * objfiles.c (entry_point_address_query): Update.
3230 2014-01-15 Tom Tromey <tromey@redhat.com>
3232 * objfiles.c (entry_point_address_query): Relocate entry point
3234 (objfile_relocate1): Do not relocate entry point address.
3235 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3236 <the_bfd_section_index>: New field.
3237 * symfile.c (init_entry_point_info): Find the entry point's
3240 2014-01-15 Tom Tromey <tromey@redhat.com>
3242 * solib-frv.c (enable_break): Use entry_point_address_query.
3244 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3246 * NEWS: Add note on improved process record-replay on
3247 arm*-linux* targets.
3249 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3251 * arm-tdep.c (enum arm_record_result): New enum.
3252 (arm_record_unsupported_insn): New function.
3253 (arm_record_coproc_data_proc): Removed.
3254 (thumb2_record_ld_st_multiple): New function.
3255 (thumb2_record_ld_st_dual_ex_tbb): New function.
3256 (thumb2_record_data_proc_sreg_mimm): New function.
3257 (thumb2_record_ps_dest_generic): New function.
3258 (thumb2_record_branch_misc_cntrl): New function.
3259 (thumb2_record_str_single_data): New function.
3260 (thumb2_record_ld_mem_hints): New function.
3261 (thumb2_record_ld_word): New function.
3262 (thumb2_record_lmul_lmla_div): New function.
3263 (thumb2_record_decode_insn_handler): New function.
3264 (decode_insn): Add thumb32 instruction handlers.
3266 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3268 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3269 (struct arm_linux_record_tdep): Declare.
3270 (arm_canonicalize_syscall): New function.
3271 (arm_all_but_pc_registers_record): New function.
3272 (arm_linux_syscall_record): New function.
3273 (arm_linux_init_abi): Add syscall recording constructs.
3274 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3275 decoding. (arm_record_coproc_data_proc): Update arm syscall
3277 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3278 <arm_syscall_record>: New field.
3279 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3282 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3284 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3285 register for push instruction recording.
3287 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3289 * arm-tdep.c (thumb_record_misc): Update to correct logical
3290 error while recording ldm, ldmia and pop instructions.
3292 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3294 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3296 2014-01-15 Pedro Alves <palves@redhat.com>
3298 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3299 (go32_resume, go32_fetch_registers, store_register)
3300 (go32_store_registers, go32_prepare_to_store)
3301 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3302 (go32_create_inferior, go32_can_run, go32_terminal_init)
3303 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3306 2014-01-15 Tom Tromey <tromey@redhat.com>
3308 * target.h (async_callback_ftype): New typedef.
3309 (struct target_ops) <to_async>: Use it.
3311 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3313 * python/py-value.c (get_field_type): Remove unnecessary curly
3314 braces for single-statement if block.
3316 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3318 * python/py-type.c (convert_field): Add missing empty line
3321 2014-01-14 Doug Evans <dje@google.com>
3323 * symfile.h (expand_symtabs_matching): Renamed from
3324 expand_partial_symbol_names. Update prototype.
3325 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3326 * symfile.c (expand_symtabs_matching): Renamed from
3327 expand_partial_symbol_names. New args file_matcher, kind.
3328 Rename arg fun to symbol_matcher.
3329 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3330 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3331 ada_expand_partial_symbol_name.
3332 (ada_make_symbol_completion_list): Update to call
3333 expand_symtabs_matching.
3334 (ada_add_global_exceptions): Call expand_symtabs_matching.
3335 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3336 call map_symbol_filenames.
3337 * symtab.c (sources_info): Update to call map_symbol_filenames.
3338 (search_symbols): Call expand_symtabs_matching.
3339 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3340 (default_make_symbol_completion_list_break_on): Update to call
3341 expand_symtabs_matching.
3342 (make_source_files_completion_list): Update to call
3343 map_symbol_filenames.
3345 2014-01-14 Doug Evans <dje@google.com>
3347 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3348 (expand_symtabs_symbol_matcher_ftype): New typedef.
3349 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3350 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3351 * symfile.c (expand_partial_symbol_names): Update to use
3352 expand_symtabs_symbol_matcher_ftype.
3353 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3354 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3355 Arg name_matcher renamed to symbol_matcher.
3356 * psymtab.c (recursively_search_psymtabs): Update to use
3357 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3359 (expand_symtabs_matching_via_partial): Update to use
3360 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3361 Arg name_matcher renamed to symbol_matcher.
3363 2014-01-14 Doug Evans <dje@google.com>
3365 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3366 (map_partial_symbol_filenames): Ditto.
3367 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3368 (map_partial_symbol_filenames): Ditto.
3369 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3370 (map_partial_symbol_filenames): Ditto.
3371 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3372 (map_partial_symbol_filenames): Ditto.
3373 * symtab.c: Delete #include "psymtab.h".
3375 2014-01-14 Pedro Alves <palves@redhat.com>
3376 Tom Tromey <tromey@redhat.com>
3378 * infrun.c (use_displaced_stepping): Use find_record_target
3379 instead of RECORD_IS_USED.
3380 (adjust_pc_after_break): Use record_full_is_used instead of
3382 * record-btrace.c (record_btrace_open): Call record_preopen
3383 instead of checking RECORD_IS_USED.
3384 * record-full.c (record_full_shortname)
3385 (record_full_core_shortname): New globals.
3386 (record_full_is_used): New function.
3387 (find_full_open): Call record_preopen instead of checking
3389 (init_record_full_ops): Set the target's shortname to
3390 record_full_shortname.
3391 (init_record_full_core_ops): Set the target's shortname to
3392 record_full_core_shortname.
3393 * record-full.h (record_full_is_used): Declare.
3394 * record.c (find_record_target): Make extern.
3395 (record_preopen): New function.
3396 * record.h (RECORD_IS_USED): Delete macro.
3397 (find_record_target, record_preopen): Declare functions.
3399 2014-01-14 Yao Qi <yao@codesourcery.com>
3401 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3402 'len''s type to ULONGEST.
3403 (core_xfer_shared_libraries_aix): Likewise.
3404 * gdbarch.c, gdbarch.h: Regenerated.
3405 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3406 Change type of 'len' to ULONGEST.
3407 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3408 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3410 2014-01-14 Yao Qi <yao@codesourcery.com>
3412 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3413 type of 'len' to ULONGEST.
3414 (linux_xfer_osdata_processgroups): Likewise.
3415 (linux_xfer_osdata_threads): Likewise.
3416 (linux_xfer_osdata_fds): Likewise.
3417 (linux_xfer_osdata_isockets): Likewise.
3418 (linux_xfer_osdata_shm): Likewise.
3419 (linux_xfer_osdata_sem): Likewise.
3420 (linux_xfer_osdata_msg): Likewise.
3421 (linux_common_xfer_osdata): Likewise.
3422 (struct osdata_type) <getter>: Likewise.
3423 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3426 2014-01-14 Yao Qi <yao@codesourcery.com>
3428 * target.h (target_xfer_partial_ftype): Update.
3429 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3431 * aix-thread.c (aix_thread_xfer_partial): Change type of
3432 argument 'len' to ULONGEST.
3433 * auxv.c (procfs_xfer_auxv): Likewise.
3434 (ld_so_xfer_auxv): Likewise.
3435 (memory_xfer_auxv): Likewise.
3436 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3437 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3438 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3439 * corelow.c (core_xfer_partial): Likewise.
3440 * ctf.c (ctf_xfer_partial): Likewise.
3441 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3443 (darwin_read_dyld_info): Likewise.
3444 (darwin_xfer_partial): Likewise.
3445 * exec.c (section_table_xfer_memory_partial): Likewise.
3446 (exec_xfer_partial): Likewise.
3447 * exec.h (section_table_xfer_memory_partial): Update
3449 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3450 instead of plongest.
3451 (gnu_xfer_partial): Likewise.
3452 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3453 (ia64_hpux_xfer_solib_got): Likewise.
3454 (ia64_hpux_xfer_partial): Likewise.
3455 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3456 * inf-ptrace.c (inf_ptrace_xfer_partial):
3457 * inf-ttrace.c (inf_ttrace_xfer_partial):
3458 * linux-nat.c (linux_xfer_siginfo): Likewise.
3459 (linux_nat_xfer_partial): Likewise.
3460 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3461 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3462 * monitor.c (monitor_xfer_memory): Likewise.
3463 (monitor_xfer_partial): Likewise.
3464 * procfs.c (procfs_xfer_partial): Likewise.
3465 * record-full.c (record_full_xfer_partial): Likewise.
3466 (record_full_core_xfer_partial): Likewise.
3467 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3468 instead of plongest.
3469 (gdbsim_xfer_partial): Likewise.
3470 * remote.c (remote_xfer_partial): Likewise.
3471 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3472 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3474 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3475 (rs6000_xfer_shared_libraries): Likewise.
3476 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3477 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3478 (sparc_xfer_partial): Likewise.
3479 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3480 (spu_xfer_partial): Likewise.
3481 * spu-multiarch.c (spu_xfer_partial): Likewise.
3482 * target.c (target_read_live_memory): Likewise.
3483 (memory_xfer_live_readonly_partial): Likewise.
3484 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3485 (target_xfer_partial, default_xfer_partial): Likewise.
3486 (current_xfer_partial): Likewise.
3487 * tracepoint.c (tfile_xfer_partial): Likewise.
3488 * windows-nat.c (windows_xfer_memory): Likewise. Call
3489 pulongest instead of plongest.
3490 (windows_xfer_partial): Likewise.
3491 (windows_xfer_shared_libraries): Likewise.
3493 2014-01-14 Yao Qi <yao@codesourcery.com>
3495 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3496 target_xfer_partial_ftype.
3498 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3502 * valops.c (value_struct_elt_bitpos): New function
3503 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3504 object to 'None' if the field name is an empty string ("").
3505 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3506 attribute to look for a field when 'name' is 'None'.
3507 (get_field_type): New function
3509 2014-01-13 Doug Evans <dje@google.com>
3512 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3513 (try_open_dwop_file): Ditto.
3514 * gdb_bfd.c: #include "vec.h".
3515 (bfdp): New typedef.
3516 (struct gdb_bfd_data): New member included_bfds.
3517 (gdb_bfd_unref): Unref all included bfds.
3518 (gdb_bfd_record_inclusion): New function.
3519 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3521 2014-01-13 Tom Tromey <tromey@redhat.com>
3523 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3525 2014-01-13 Tom Tromey <tromey@redhat.com>
3527 * defs.h (use_windows): Remove.
3528 * gdb.c (main): Update.
3529 * main.c (captured_main, gdb_main): Update.
3530 * main.h (struct captured_main_args) <use_windows>: Remove.
3531 * top.c (use_windows): Remove.
3533 2014-01-13 Tom Tromey <tromey@redhat.com>
3535 * defs.h (deprecated_flush_hook): Remove.
3537 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 * linux-thread-db.c (try_thread_db_load): Add parameter
3541 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3542 (try_thread_db_load_from_pdir_1): Move it there from here.
3543 (try_thread_db_load_from_sdir): Update caller.
3544 (try_thread_db_load_from_dir): Move it there from here.
3546 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3548 * regformats/regdat.sh: Always rewrite the register file.
3550 2014-01-13 Pedro Alves <palves@redhat.com>
3552 * Makefile.in (CHECK_HEADERS): New variable.
3553 (check-headers:): New rule.
3555 2014-01-13 Tom Tromey <tromey@redhat.com>
3557 * cli/cli-setshow.c (do_set_command): Update.
3558 * defs.h (deprecated_set_hook): Remove.
3559 * top.c (deprecated_set_hook): Remove.
3561 2014-01-13 Pedro Alves <palves@redhat.com>
3563 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3564 the tracepoint if the PC is a pseudo-register.
3566 2014-01-13 Tom Tromey <tromey@redhat.com>
3568 * defs.h (XCALLOC): Remove.
3569 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3570 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3571 * dwarf2loc.c (allocate_piece_closure): Likewise.
3572 * elfread.c (elf_symfile_segments): Likewise.
3573 (elf_symfile_segments): Likewise.
3574 * gdbtypes.c (copy_type_recursive): Likewise.
3575 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3576 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3577 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3579 * mt-tdep.c (mt_gdbarch_init): Likewise.
3580 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3582 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3583 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3584 * registry.c (registry_alloc_data): Likewise.
3585 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3586 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3587 * serial.c (serial_fdopen_ops): Likewise.
3588 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3590 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3591 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3594 2014-01-13 Tom Tromey <tromey@redhat.com>
3596 * defs.h (XMALLOC): Remove.
3597 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3598 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3599 * cli-out.c (struct ui_out *): Likewise.
3600 * cli/cli-dump.c (add_dump_command): Likewise.
3601 (add_dump_command): Likewise.
3602 * complaints.c (get_complaints): Likewise.
3603 (find_complaint): Likewise.
3604 * dwarf2-frame.c (execute_cfa_program): Likewise.
3605 * dwarf2read.c (abbrev_table_read_table): Likewise.
3606 * gdbarch.sh: Likewise.
3607 * gdbarch.c: Rebuild.
3608 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3609 * interps.c (interp_new): Likewise.
3610 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3611 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3612 * mi/mi-console.c (mi_console_file_new): Likewise.
3613 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3614 * mi/mi-out.c (mi_out_new): Likewise.
3615 * mi/mi-parse.c (mi_parse): Likewise.
3616 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3617 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3618 * observer.c (xalloc_observer_list_node): Likewise.
3619 * regcache.c (regcache_xmalloc_1): Likewise.
3620 * reggroups.c (reggroup_new): Likewise.
3621 (_initialize_reggroup): Likewise.
3622 * registry.c (register_data_with_cleanup): Likewise.
3623 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3624 * ser-base.c (serial_ttystate): Likewise.
3625 * ser-mingw.c (make_pipe_state): Likewise.
3626 * ser-pipe.c (pipe_open): Likewise.
3627 * serial.c (serial_open): Likewise.
3628 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3629 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3630 (tui_alloc_win_info): Likewise.
3631 (tui_add_content_elements): Likewise.
3632 * tui/tui-file.c (tui_file_new): Likewise.
3633 * tui/tui-out.c (tui_out_new): Likewise.
3634 * ui-file.c (mem_file_new): Likewise.
3635 * ui-out.c (push_level): Likewise.
3636 (make_cleanup_ui_out_end): Likewise.
3637 (append_header_to_list): Likewise.
3638 (ui_out_new): Likewise.
3639 * user-regs.c (user_reg_add_builtin): Likewise.
3641 2014-01-13 Tom Tromey <tromey@redhat.com>
3643 * defs.h (XZALLOC): Remove.
3644 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3645 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3646 (get_ada_tasks_inferior_data): Likewise.
3647 * auto-load.c (get_auto_load_pspace_data): Likewise.
3648 * auxv.c (get_auxv_inferior_data): Likewise.
3649 * bfd-target.c (target_bfd_reopen): Likewise.
3650 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3651 (deprecated_insert_raw_breakpoint): Likewise.
3652 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3653 * corelow.c (core_open): Likewise.
3654 * darwin-nat.c (darwin_check_new_threads): Likewise.
3655 (darwin_attach_pid): Likewise.
3656 * dummy-frame.c (dummy_frame_push): Likewise.
3657 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3658 * dwarf2loc.c (allocate_piece_closure): Likewise.
3659 * elfread.c (elf_symfile_segments): Likewise.
3660 * eval.c (ptrmath_type_p): Likewise.
3661 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3662 * gdbtypes.c (alloc_type_arch): Likewise.
3663 (alloc_type_instance): Likewise.
3664 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3665 * inf-child.c (inf_child_can_use_agent): Likewise.
3666 * inflow.c (get_inflow_inferior_data): Likewise.
3667 * infrun.c (save_infcall_suspend_state): Likewise.
3668 * jit.c (jit_reader_load): Likewise.
3669 (get_jit_objfile_data): Likewise.
3670 (get_jit_program_space_data): Likewise.
3671 (jit_object_open_impl): Likewise.
3672 (jit_symtab_open_impl): Likewise.
3673 (jit_block_open_impl): Likewise.
3674 (jit_frame_sniffer): Likewise.
3675 * linux-fork.c (add_fork): Likewise.
3676 * maint.c (make_command_stats_cleanup): Likewise.
3677 * objfiles.c (get_objfile_pspace_data): Likewise.
3678 * opencl-lang.c (struct lval_closure): Likewise.
3679 * osdata.c (osdata_start_osdata): Likewise.
3680 * progspace.c (new_address_space): Likewise.
3681 (add_program_space): Likewise.
3682 * remote-sim.c (get_sim_inferior_data): Likewise.
3683 * sh-tdep.c (sh_gdbarch_init): Likewise.
3684 * skip.c (Ignore): Likewise.
3685 (skip_delete_command): Likewise.
3686 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3687 (library_list_start_library): Likewise.
3688 (solib_aix_current_sos): Likewise.
3689 * solib-darwin.c (get_darwin_info): Likewise.
3690 (darwin_current_sos): Likewise.
3691 * solib-dsbt.c (get_dsbt_info): Likewise.
3692 * solib-ia64-hpux.c (new_so_list): Likewise.
3693 (ia64_hpux_get_solib_linkage_addr): Likewise.
3694 * solib-spu.c (append_ocl_sos): Likewise.
3695 (spu_current_sos): Likewise.
3696 * solib-svr4.c (get_svr4_info): Likewise.
3697 (svr4_keep_data_in_core): Likewise.
3698 (library_list_start_library): Likewise.
3699 (svr4_default_sos): Likewise.
3700 (svr4_read_so_list): Likewise.
3701 * solib-target.c (library_list_start_library): Likewise.
3702 (solib_target_current_sos): Likewise.
3703 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3704 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3705 * symfile.c (default_symfile_segments): Likewise.
3706 * target-descriptions.c (tdesc_data_init): Likewise.
3707 (tdesc_create_reg): Likewise.
3708 (struct tdesc_type *): Likewise.
3709 (tdesc_create_vector): Likewise.
3710 (tdesc_set_struct_size): Likewise.
3711 (struct tdesc_type *): Likewise.
3712 (tdesc_free_feature): Likewise.
3713 (tdesc_create_feature): Likewise.
3714 * windows-nat.c (windows_add_thread): Likewise.
3715 (windows_make_so): Likewise.
3716 * xml-support.c (gdb_xml_body_text): Likewise.
3717 (gdb_xml_create_parser_and_cleanup): Likewise.
3718 (xml_process_xincludes): Likewise.
3719 * xml-syscall.c (allocate_syscalls_info): Likewise.
3720 (syscall_create_syscall_desc): Likewise.
3722 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3724 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3725 function, with code from i386_stap_parse_special_token.
3726 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3727 (i386_stap_parse_special_token): Move code to the two functions
3730 2014-01-09 Pedro Alves <palves@redhat.com>
3731 Hui Zhu <hui@codesourcery.com>
3734 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3735 bp_err_string. Don't mark the location shlib_disabled if the
3736 error thrown wasn't a generic or memory error. Catch errors
3737 thrown while inserting breakpoints in overlayed code. Output
3738 error message of software breakpoints.
3739 * remote.c (remote_insert_breakpoint): If this breakpoint has
3740 target-side commands but this stub doesn't support Z0 packets,
3741 throw NOT_SUPPORTED_ERROR error.
3742 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3743 * target.h (target_insert_breakpoint): Extend comment.
3744 (target_insert_hw_breakpoint): Add comment.
3746 2014-01-08 Pedro Alves <palves@redhat.com>
3748 * remote.c (remote_add_thread): Add threads silently if starting
3750 (remote_notice_new_inferior): If in all-stop, and starting up,
3751 don't call notice_new_inferior.
3752 (get_current_thread): New function, factored out from ...
3753 (add_current_inferior_and_thread): ... this. Adjust.
3754 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3755 found any thread, then select the remote's current thread as GDB's
3758 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3760 * NEWS: Create a new section for the next release branch.
3761 Rename the section of the current branch, now that it has
3764 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3766 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3767 * version.in: Bump version to 7.7.50.DATE-cvs.
3769 2014-01-08 Yao Qi <yao@codesourcery.com>
3771 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3772 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3773 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3775 2014-01-08 Yao Qi <yao@codesourcery.com>
3777 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3778 return value of bfd_get_filename to symbol_file_add_from_bfd.
3780 2014-01-08 Pierre Muller <muller@sourceware.org>
3783 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3784 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3785 to prim_record_mininal_symbol_and_info.
3786 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3787 in call to prim_record_minimal_symbol_and_info.
3788 (read_pe_exported_syms): Set index field of section_data.
3790 2014-01-07 Andrew Pinski <apinski@cavium.com>
3792 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3793 * features/aarch64.c: Regenerate.
3795 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3797 * target.c (return_null): Define.
3798 (update_current_target): Use it instead of return_zero for
3799 functions that return a pointer.
3801 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3803 * source.c (add_path): Fix check for duplicated paths in the previously
3806 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3808 * ada-lang.c: Remove duplicated include statements.
3809 * alphabsd-nat.c: Ditto.
3810 * amd64-darwin-tdep.c: Ditto.
3811 * amd64fbsd-nat.c: Ditto.
3812 * auto-load.c: Ditto.
3814 * breakpoint.c: Ditto.
3816 * fork-child.c: Ditto.
3817 * gdb_usleep.c: Ditto.
3818 * i386-darwin-tdep.c: Ditto.
3819 * i386fbsd-nat.c: Ditto.
3821 * inferior.c: Ditto.
3823 * linux-nat.c: Ditto.
3824 * linux-tdep.c: Ditto.
3825 * m68kbsd-nat.c: Ditto.
3826 * m68klinux-nat.c: Ditto.
3827 * microblaze-tdep.c: Ditto.
3828 * mips-linux-tdep.c: Ditto.
3829 * mn10300-tdep.c: Ditto.
3830 * nto-tdep.c: Ditto.
3831 * opencl-lang.c: Ditto.
3833 * printcmd.c: Ditto.
3834 * regcache.c: Ditto.
3835 * remote-m32r-sdi.c: Ditto.
3839 * tilegx-linux-nat.c: Ditto.
3840 * tilegx-tdep.c: Ditto.
3841 * tracepoint.c: Ditto.
3843 * vaxbsd-nat.c: Ditto.
3844 * windows-nat.c: Ditto.
3845 * xtensa-tdep.c: Ditto.
3847 2014-01-07 Yao Qi <yao@codesourcery.com>
3849 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3851 2014-01-07 Yao Qi <yao@codesourcery.com>
3852 Joel Brobecker <brobecker@adacore.com>
3854 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3855 (pdc_write_regs): Likewise.
3856 (fetch_regs_kernel_thread): Likewise.
3857 (store_regs_kernel_thread): Likewise.
3859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3861 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3862 tagged type objects to their actual type.
3864 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3866 * ada-valprint.c (print_field_values): Add "language" parameter.
3867 Update calls to print_field_values and print_variant_part.
3868 Pass new parameter "language" in call to val_print instead
3869 of "current_language". Replace call to ada_val_print by call
3871 (print_variant_part): Add "language" parameter.
3872 (ada_val_print_struct_union): Update call to print_field_values.
3874 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3876 * ada-valprint.c (ui_memcpy): Delete.
3877 (ada_print_floating): Update documentation. Add empty line
3878 between between function documentation and implementation.
3879 Delete variable "buffer". Use ui_file_xstrdup in place of
3880 ui_file_put. Minor adjustments following this change.
3882 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3884 * ada-valprint.c (ada_val_print_string): New function,
3885 extracted from ada_val_print_array.
3886 (ada_val_print_array): Replace extracted code by call
3887 to ada_val_print_string followed by a return. Move
3888 "else" branch to the function's top block.
3890 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3892 * ada-valprint.c (ada_val_print_array): Move implementation
3893 down. Rename parameter "offset" and "val" into "offset_aligned"
3894 and "original_value" respectively. Add parameter "offset".
3896 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3898 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3899 re-organizing the code. Change the "???" message printed
3900 when target type is a TYPE_CODE_UNDEF into
3901 "<ref to undefined type>".
3903 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3905 * ada-valprint.c (print_record): Delete, implementation inlined...
3906 (ada_val_print_struct_union): ... here. Remove call to
3907 ada_check_typedef in inlined implementation.
3909 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3911 * ada-valprint.c (ada_val_print_gnat_array): New function,
3912 extracted from ada_val_print_1;
3913 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3914 (ada_val_print_flt, ada_val_print_struct_union)
3915 (ada_val_print_ref): Likewise.
3916 (ada_val_print_1): Delete variables i and elttype.
3917 Replace extracted-out code by call to corresponding
3920 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3922 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3924 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3926 * ada-valprint.c (ada_val_print_1): Replace calls to
3927 ada_val_print_1 by calls to val_print.
3929 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3931 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3932 Update calls to self accordingly. Replace calls to c_val_print
3933 by calls to val_print.
3935 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3937 * ada-valprint.c (print_record): Delete declaration.
3938 (adjust_type_signedness, ada_val_print_1): Likewise.
3939 (ada_val_print): Move function implementation down.
3940 (print_variant_part, print_field_values, print_record):
3941 Move function implementation up.
3943 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3945 * python/py-type.c (typy_get_name): New function.
3946 (type_object_getset): Add entry for attribute "name".
3947 * NEWS: Add entry mentioning this new attribute.
3949 2014-01-07 Yao Qi <yao@codesourcery.com>
3951 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3954 2014-01-07 Yao Qi <yao@codesourcery.com>
3956 * gnu-nat.c (info_port_rights): Add qualifier const to
3959 2014-01-07 Yao Qi <yao@codesourcery.com>
3961 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3963 2014-01-07 Yao Qi <yao@codesourcery.com>
3965 * gnu-nat.c (make_inf) Update declaration.
3966 (make_inf): Make it static.
3967 (inf_set_traced): Likewise.
3968 (inf_port_to_thread, inf_task_died_status): Likewise.
3970 2014-01-07 Yao Qi <yao@codesourcery.com>
3972 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3974 2014-01-07 Yao Qi <yao@codesourcery.com>
3976 * gnu-nat.c (_initialize_gnu_nat): Declare.
3978 2014-01-07 Yao Qi <yao@codesourcery.com>
3980 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3982 (struct gdbarch_info) <byte_order>: Change type to
3984 <byte_order_for_code>: Likewise.
3985 * gdbarch.c, gdbarch.h: Regenerated.
3987 2014-01-06 Sasha Smundak <asmundak@google.com>
3989 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3991 2014-01-06 Tom Tromey <tromey@redhat.com>
3993 * doublest.c (convert_doublest_to_floatformat): Use const, not
3995 * somread.c (som_symtab_read): Likewise.
3997 2014-01-07 Hui Zhu <hui@codesourcery.com>
3999 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
4000 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
4001 (gdb_bfd_fopen): Ditto.
4002 (gdb_bfd_openr): Ditto.
4003 (gdb_bfd_openw): Ditto.
4004 (gdb_bfd_openr_iovec): Ditto.
4005 (gdb_bfd_fdopenr): Ditto.
4006 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
4007 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
4009 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
4011 * symfile-mem.c (symbol_file_add_from_memory): Removed
4012 gdb_bfd_stash_filename.
4014 2014-01-03 Doug Evans <dje@google.com>
4016 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
4019 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4021 Update year range in copyright notice of all files.
4023 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4025 * top.c (print_gdb_version): Set copyright year to 2014.
4027 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4029 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4031 For older changes see ChangeLog-2013.
4037 version-control: never