1 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4 new-line in debug string. Remove trailing spaces.
6 2014-02-19 Stan Shebs <stan@codesourcery.com>
8 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
12 * NEWS: Add entry for the new feature
13 * python/py-value.c (valpy_binop): Call value_x_binop for struct
16 2014-02-19 Stan Shebs <stan@codesourcery.com>
18 * MAINTAINERS: List Yao Qi as nios2 maintainer.
20 2014-02-19 Pedro Alves <palves@redhat.com>
22 * common/ptid.h (struct ptid): Mention that process_stratum
23 targets should prefer ptid.lwp.
25 2014-02-19 Pedro Alves <palves@redhat.com>
27 * remote.c (remote_thread_alive, write_ptid, read_ptid)
28 (read_ptid, remote_newthread_step, remote_threads_extra_info)
29 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
30 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
31 store remote thread ids rather than ptid.tid.
32 (_initialize_remote): Adjust.
34 2014-02-19 Tom Tromey <tromey@redhat.com>
36 * target.c (target_get_unwinder): Rewrite.
37 (target_get_tailcall_unwinder): Rewrite.
38 * record-btrace.c (record_btrace_to_get_unwinder): New function.
39 (record_btrace_to_get_tailcall_unwinder): New function.
40 (init_record_btrace_ops): Update.
41 * target.h (struct target_ops) <to_get_unwinder,
42 to_get_tailcall_unwinder>: Now function pointers. Use
43 TARGET_DEFAULT_RETURN.
45 2014-02-19 Tom Tromey <tromey@redhat.com>
47 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
49 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
51 2014-02-19 Tom Tromey <tromey@redhat.com>
53 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
55 * target-delegates.c: Rebuild.
56 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
58 * target.c (default_target_decr_pc_after_break): Rename from
59 forward_target_decr_pc_after_break. Simplify.
60 (target_decr_pc_after_break): Rely on delegation.
62 2014-02-19 Tom Tromey <tromey@redhat.com>
64 * target.c (update_current_target): Do not INHERIT to_doc or
65 to_magic. Do not de_fault to_open or to_close.
67 2014-02-19 Tom Tromey <tromey@redhat.com>
69 * gcore.h (objfile_find_memory_regions): Declare.
70 * gcore.c (objfile_find_memory_regions): No longer static. Add
72 (_initialize_gcore): Don't call exec_set_find_memory_regions.
73 * exec.c: Include gcore.h.
74 (exec_set_find_memory_regions): Remove.
75 (exec_find_memory_regions): Remove.
76 (exec_do_find_memory_regions): Remove.
77 (init_exec_ops): Update.
78 * defs.h (exec_set_find_memory_regions): Remove.
80 2014-02-19 Tom Tromey <tromey@redhat.com>
82 * target-delegates.c: Rebuild.
83 * target.h (struct target_ops) <to_extra_thread_info,
84 to_thread_name, to_pid_to_exec_file, to_get_section_table,
85 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
86 not 0, in TARGET_DEFAULT_RETURN.
88 2014-02-19 Tom Tromey <tromey@redhat.com>
90 * target.c (complete_target_initialization): Remove casts. Use
91 return_zero_has_execution.
92 (return_zero): Add "ignore" argument.
93 (return_zero_has_execution): New function.
94 (init_dummy_target): Remove casts. Use
95 return_zero_has_execution.
97 2014-02-19 Tom Tromey <tromey@redhat.com>
99 * target.c (update_current_target): Update comments. Do not
102 2014-02-19 Tom Tromey <tromey@redhat.com>
104 * arm-linux-nat.c (arm_linux_read_description): Delegate when
106 * corelow.c (core_read_description): Delegate when needed.
107 * remote.c (remote_read_description): Delegate when needed.
108 * target-delegates.c: Rebuild.
109 * target.c (target_read_description): Rewrite.
110 * target.h (struct target_ops) <to_read_description>: Update
111 comment. Use TARGET_DEFAULT_RETURN.
113 2014-02-19 Tom Tromey <tromey@redhat.com>
115 * target-delegates.c: Rebuild.
116 * target.c (update_current_target): Don't inherit or default
118 (find_default_run_target): Check against delegate_can_run.
119 * target.h (struct target_ops) <to_can_run>: Use
120 TARGET_DEFAULT_RETURN.
122 2014-02-19 Tom Tromey <tromey@redhat.com>
124 * target-delegates.c: Rebuild.
125 * target.c (target_disconnect): Unconditionally delegate.
126 * target.h (struct target_ops) <to_disconnect>: Use
127 TARGET_DEFAULT_NORETURN.
129 2014-02-19 Tom Tromey <tromey@redhat.com>
131 * record.c (record_stop): Unconditionally delegate.
132 * target-delegates.c: Rebuild.
133 * target.c (target_stop_recording): Unconditionally delegate.
134 * target.h (struct target_ops) <to_stop_recording>: Use
135 TARGET_DEFAULT_IGNORE.
137 2014-02-19 Tom Tromey <tromey@redhat.com>
139 * target-delegates.c: Rebuild.
140 * target.c (target_enable_btrace): Unconditionally delegate.
141 * target.h (struct target_ops) <to_enable_btrace>: Use
142 TARGET_DEFAULT_NORETURN.
144 2014-02-19 Tom Tromey <tromey@redhat.com>
146 * target-delegates.c: Rebuild.
147 * target.c (target_read_btrace): Unconditionally delegate.
148 * target.h (struct target_ops) <to_read_btrace>: Use
149 TARGET_DEFAULT_NORETURN.
151 2014-02-19 Tom Tromey <tromey@redhat.com>
153 * target-delegates.c: Rebuild.
154 * target.c (target_teardown_btrace): Unconditionally delegate.
155 * target.h (struct target_ops) <to_teardown_btrace>: Use
156 TARGET_DEFAULT_NORETURN.
158 2014-02-19 Tom Tromey <tromey@redhat.com>
160 * target-delegates.c: Rebuild.
161 * target.c (target_disable_btrace): Unconditionally delegate.
162 * target.h (struct target_ops) <to_disable_btrace>: Use
163 TARGET_DEFAULT_NORETURN.
165 2014-02-19 Tom Tromey <tromey@redhat.com>
167 * target-delegates.c: Rebuild.
168 * target.c (default_search_memory): New function.
169 (simple_search_memory): Update comment.
170 (target_search_memory): Unconditionally delegate.
171 * target.h (struct target_ops) <to_search_memory>: Use
174 2014-02-19 Tom Tromey <tromey@redhat.com>
176 * auxv.c (default_auxv_parse): No longer static.
177 (target_auxv_parse): Unconditionally delegate.
178 * auxv.h (default_auxv_parse): Declare.
179 * target-delegates.c: Rebuild.
180 * target.c: Include auxv.h.
181 * target.h (struct target_ops) <to_auxv_parse>: Use
184 2014-02-19 Tom Tromey <tromey@redhat.com>
186 * target-delegates.c: Rebuild.
187 * target.c (target_memory_map): Unconditionally delegate.
188 * target.h (struct target_ops) <to_memory_map>: Use
189 TARGET_DEFAULT_RETURN.
191 2014-02-19 Tom Tromey <tromey@redhat.com>
193 * target-delegates.c: Rebuild.
194 * target.c (target_thread_alive): Unconditionally delegate.
195 * target.h (struct target_ops) <to_thread_alive>: Use
196 TARGET_DEFAULT_RETURN.
198 2014-02-19 Tom Tromey <tromey@redhat.com>
200 * target-delegates.c: Rebuild.
201 * target.c (target_save_record): Unconditionally delegate.
202 * target.h (struct target_ops) <to_save_record>: Use
203 TARGET_DEFAULT_NORETURN.
205 2014-02-19 Tom Tromey <tromey@redhat.com>
207 * target-delegates.c: Rebuild.
208 * target.c (target_delete_record): Unconditionally delegate.
209 * target.h (struct target_ops) <to_delete_record>: Use
210 TARGET_DEFAULT_NORETURN.
212 2014-02-19 Tom Tromey <tromey@redhat.com>
214 * target-delegates.c: Rebuild.
215 * target.c (target_record_is_replaying): Unconditionally
217 * target.h (struct target_ops) <to_record_is_replaying>: Use
218 TARGET_DEFAULT_RETURN.
220 2014-02-19 Tom Tromey <tromey@redhat.com>
222 * target-delegates.c: Rebuild.
223 * target.c (target_goto_record_begin): Unconditionally delegate.
224 * target.h (struct target_ops) <to_goto_record_begin>: Use
225 TARGET_DEFAULT_NORETURN.
227 2014-02-19 Tom Tromey <tromey@redhat.com>
229 * target-delegates.c: Rebuild.
230 * target.c (target_goto_record_end): Unconditionally delegate.
231 * target.h (struct target_ops) <to_goto_record_end>: Use
232 TARGET_DEFAULT_NORETURN.
234 2014-02-19 Tom Tromey <tromey@redhat.com>
236 * target-delegates.c: Rebuild.
237 * target.c (target_goto_record): Unconditionally delegate.
238 * target.h (struct target_ops) <to_goto_record>: Use
239 TARGET_DEFAULT_NORETURN.
241 2014-02-19 Tom Tromey <tromey@redhat.com>
243 * target-delegates.c: Rebuild.
244 * target.c (target_insn_history): Unconditionally delegate.
245 * target.h (struct target_ops) <to_insn_history>: Use
246 TARGET_DEFAULT_NORETURN.
248 2014-02-19 Tom Tromey <tromey@redhat.com>
250 * target-delegates.c: Rebuild.
251 * target.c (target_insn_history_from): Unconditionally delegate.
252 * target.h (struct target_ops) <to_insn_history_from>: Use
253 TARGET_DEFAULT_NORETURN.
255 2014-02-19 Tom Tromey <tromey@redhat.com>
257 * target-delegates.c: Rebuild.
258 * target.c (target_insn_history_range): Unconditionally delegate.
259 * target.h (struct target_ops) <to_insn_history_range>: Use
260 TARGET_DEFAULT_NORETURN.
262 2014-02-19 Tom Tromey <tromey@redhat.com>
264 * target-delegates.c: Rebuild.
265 * target.c (target_call_history): Unconditionally delegate.
266 * target.h (struct target_ops) <to_call_history>: Use
267 TARGET_DEFAULT_NORETURN.
269 2014-02-19 Tom Tromey <tromey@redhat.com>
271 * target-delegates.c: Rebuild.
272 * target.c (target_call_history_from): Unconditionally delegate.
273 * target.h (struct target_ops) <to_call_history_from>: Use
274 TARGET_DEFAULT_NORETURN.
276 2014-02-19 Tom Tromey <tromey@redhat.com>
278 * target-delegates.c: Rebuild.
279 * target.c (target_call_history_range): Unconditionally delegate.
280 * target.h (struct target_ops) <to_call_history_range>: Use
281 TARGET_DEFAULT_NORETURN.
283 2014-02-19 Tom Tromey <tromey@redhat.com>
285 * target-delegates.c: Rebuild.
286 * target.c (target_verify_memory): Unconditionally delegate.
287 * target.h (struct target_ops) <to_verify_memory>: Use
288 TARGET_DEFAULT_NORETURN.
290 2014-02-19 Tom Tromey <tromey@redhat.com>
292 * target-delegates.c: Rebuild.
293 * target.c (target_core_of_thread): Unconditionally delegate.
294 * target.h (struct target_ops) <to_core_of_thread>: Use
295 TARGET_DEFAULT_RETURN.
297 2014-02-19 Tom Tromey <tromey@redhat.com>
299 * target-delegates.c: Rebuild.
300 * target.c (target_flash_done): Unconditionally delegate.
301 * target.h (struct target_ops) <to_flash_done>: Use
302 TARGET_DEFAULT_NORETURN.
304 2014-02-19 Tom Tromey <tromey@redhat.com>
306 * target-delegates.c: Rebuild.
307 * target.c (target_flash_erase): Unconditionally delegate.
308 * target.h (struct target_ops) <to_flash_erase>: Use
309 TARGET_DEFAULT_NORETURN.
311 2014-02-19 Tom Tromey <tromey@redhat.com>
313 * target-delegates.c: Rebuild.
314 * target.c (target_get_section_table): Unconditionally delegate.
315 * target.h (struct target_ops) <to_get_section_table>: Use
316 TARGET_DEFAULT_RETURN.
318 2014-02-19 Tom Tromey <tromey@redhat.com>
320 * target-delegates.c: Rebuild.
321 * target.c (target_pid_to_str): Unconditionally delegate.
322 (init_dummy_target): Don't initialize to_pid_to_str.
323 (default_pid_to_str): Rename from dummy_pid_to_str.
324 * target.h (struct target_ops) <to_pid_to_str>: Use
327 2014-02-19 Tom Tromey <tromey@redhat.com>
329 * target-delegates.c: Rebuild.
330 * target.c (target_find_new_threads): Unconditionally delegate.
331 * target.h (struct target_ops) <to_find_new_threads>: Use
332 TARGET_DEFAULT_RETURN.
334 2014-02-19 Tom Tromey <tromey@redhat.com>
336 * target-delegates.c: Rebuild.
337 * target.c (target_program_signals): Unconditionally delegate.
338 * target.h (struct target_ops) <to_program_signals>: Use
339 TARGET_DEFAULT_IGNORE.
341 2014-02-19 Tom Tromey <tromey@redhat.com>
343 * target-delegates.c: Rebuild.
344 * target.c (target_pass_signals): Unconditionally delegate.
345 * target.h (struct target_ops) <to_pass_signals>: Use
346 TARGET_DEFAULT_IGNORE.
348 2014-02-19 Tom Tromey <tromey@redhat.com>
350 * target-delegates.c: Rebuild.
351 * target.c (default_mourn_inferior): New function.
352 (target_mourn_inferior): Unconditionally delegate.
353 * target.h (struct target_ops) <to_mourn_inferior>: Use
356 2014-02-19 Tom Tromey <tromey@redhat.com>
358 * target-delegates.c: Rebuild.
359 * target.c (default_follow_fork): New function.
360 (target_follow_fork): Unconditionally delegate.
361 * target.h (struct target_ops) <to_follow_fork>: Use
364 2014-02-19 Tom Tromey <tromey@redhat.com>
366 * target-delegates.c: Rebuild.
367 * target.c (target_kill): Unconditionally delegate.
368 * target.h (struct target_ops) <to_kill>: Use
369 TARGET_DEFAULT_NORETURN.
371 2014-02-19 Tom Tromey <tromey@redhat.com>
373 * target-delegates.c: Rebuild.
374 * target.c (target_masked_watch_num_registers): Unconditionally
376 * target.h (struct target_ops) <to_masked_watch_num_registers>:
377 Use TARGET_DEFAULT_RETURN.
379 2014-02-19 Tom Tromey <tromey@redhat.com>
381 * target-delegates.c: Rebuild.
382 * target.c (target_remove_mask_watchpoint): Unconditionally
384 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
385 TARGET_DEFAULT_RETURN.
387 2014-02-19 Tom Tromey <tromey@redhat.com>
389 * target-delegates.c: Rebuild.
390 * target.c (target_insert_mask_watchpoint): Unconditionally
392 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
393 TARGET_DEFAULT_RETURN.
395 2014-02-19 Tom Tromey <tromey@redhat.com>
397 * target-delegates.c: Rebuild.
398 * target.c (target_ranged_break_num_registers): Unconditionally
400 * target.h (struct target_ops) <to_ranged_break_num_registers>:
401 Use TARGET_DEFAULT_RETURN.
403 2014-02-19 Tom Tromey <tromey@redhat.com>
405 * target-delegates.c: Rebuild.
406 * target.c (target_fetch_registers): Unconditionally delegate.
407 * target.h (struct target_ops) <to_fetch_registers>: Use
408 TARGET_DEFAULT_NORETURN.
410 2014-02-19 Tom Tromey <tromey@redhat.com>
412 * target-delegates.c: Rebuild.
413 * target.c (update_current_target): Don't inherit or default
415 * target.h (struct target_ops) <to_stop>: Use
416 TARGET_DEFAULT_IGNORE.
418 2014-02-19 Tom Tromey <tromey@redhat.com>
420 * target-delegates.c: Rebuild.
421 * target.c (update_current_target): Don't inherit or default
422 to_can_run_breakpoint_commands.
423 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
424 Use TARGET_DEFAULT_RETURN.
426 2014-02-19 Tom Tromey <tromey@redhat.com>
428 * target-delegates.c: Rebuild.
429 * target.c (update_current_target): Don't inherit or default
430 to_supports_evaluation_of_breakpoint_conditions.
431 * target.h (struct target_ops)
432 <to_supports_evaluation_of_breakpoint_conditions>: Use
433 TARGET_DEFAULT_RETURN.
435 2014-02-19 Tom Tromey <tromey@redhat.com>
437 * target-delegates.c: Rebuild.
438 * target.c (update_current_target): Don't inherit or default
439 to_augmented_libraries_svr4_read.
440 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
441 Use TARGET_DEFAULT_RETURN.
443 2014-02-19 Tom Tromey <tromey@redhat.com>
445 * target-delegates.c: Rebuild.
446 * target.c (update_current_target): Don't inherit or default
448 * target.h (struct target_ops) <to_can_use_agent>: Use
449 TARGET_DEFAULT_RETURN.
451 2014-02-19 Tom Tromey <tromey@redhat.com>
453 * target-delegates.c: Rebuild.
454 * target.c (update_current_target): Don't inherit or default
456 * target.h (struct target_ops) <to_use_agent>: Use
457 TARGET_DEFAULT_NORETURN.
459 2014-02-19 Tom Tromey <tromey@redhat.com>
461 * target-delegates.c: Rebuild.
462 * target.c (update_current_target): Don't inherit or default
464 (return_null): Remove.
465 * target.h (struct target_ops) <to_traceframe_info>: Use
466 TARGET_DEFAULT_RETURN.
468 2014-02-19 Tom Tromey <tromey@redhat.com>
470 * target-delegates.c: Rebuild.
471 * target.c (update_current_target): Don't inherit or default
472 to_static_tracepoint_markers_by_strid.
473 * target.h (struct target_ops)
474 <to_static_tracepoint_markers_by_strid>: Use
475 TARGET_DEFAULT_NORETURN.
477 2014-02-19 Tom Tromey <tromey@redhat.com>
479 * target-delegates.c: Rebuild.
480 * target.c (update_current_target): Don't inherit or default
481 to_static_tracepoint_marker_at.
482 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
483 Use TARGET_DEFAULT_RETURN.
485 2014-02-19 Tom Tromey <tromey@redhat.com>
487 * target-delegates.c: Rebuild.
488 * target.c (update_current_target): Don't inherit or default
490 * target.h (struct target_ops) <to_set_permissions>: Use
491 TARGET_DEFAULT_IGNORE.
493 2014-02-19 Tom Tromey <tromey@redhat.com>
495 * target-delegates.c: Rebuild.
496 * target.c (update_current_target): Don't inherit or default
498 * target.h (struct target_ops) <to_get_tib_address>: Use
499 TARGET_DEFAULT_NORETURN.
501 2014-02-19 Tom Tromey <tromey@redhat.com>
503 * target-delegates.c: Rebuild.
504 * target.c (update_current_target): Don't inherit or default
506 * target.h (struct target_ops) <to_set_trace_notes>: Use
507 TARGET_DEFAULT_RETURN.
509 2014-02-19 Tom Tromey <tromey@redhat.com>
511 * target-delegates.c: Rebuild.
512 * target.c (update_current_target): Don't initialize
513 to_set_trace_buffer_size.
514 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
515 TARGET_DEFAULT_IGNORE.
517 2014-02-19 Tom Tromey <tromey@redhat.com>
519 * target-delegates.c: Rebuild.
520 * target.c (update_current_target): Don't inherit or default
521 to_set_circular_trace_buffer.
522 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
523 TARGET_DEFAULT_IGNORE.
525 2014-02-19 Tom Tromey <tromey@redhat.com>
527 * target-delegates.c: Rebuild.
528 * target.c (update_current_target): Don't inherit or default
529 to_set_disconnected_tracing.
530 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
531 TARGET_DEFAULT_IGNORE.
533 2014-02-19 Tom Tromey <tromey@redhat.com>
535 * target-delegates.c: Rebuild.
536 * target.c (update_current_target): Don't inherit or default
537 to_get_min_fast_tracepoint_insn_len.
538 (return_minus_one): Remove.
539 * target.h (struct target_ops)
540 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
542 2014-02-19 Tom Tromey <tromey@redhat.com>
544 * target-delegates.c: Rebuild.
545 * target.c (update_current_target): Don't inherit or default
546 to_get_raw_trace_data.
547 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
548 TARGET_DEFAULT_NORETURN.
550 2014-02-19 Tom Tromey <tromey@redhat.com>
552 * target-delegates.c: Rebuild.
553 * target.c (update_current_target): Don't inherit or default
554 to_upload_trace_state_variables.
555 * target.h (struct target_ops) <to_upload_trace_state_variables>:
556 Use TARGET_DEFAULT_RETURN.
558 2014-02-19 Tom Tromey <tromey@redhat.com>
560 * target-delegates.c: Rebuild.
561 * target.c (update_current_target): Don't inherit or default
562 to_upload_tracepoints.
563 * target.h (struct target_ops) <to_upload_tracepoints>: Use
564 TARGET_DEFAULT_RETURN.
566 2014-02-19 Tom Tromey <tromey@redhat.com>
568 * target-delegates.c: Rebuild.
569 * target.c (update_current_target): Don't inherit or default
571 * target.h (struct target_ops) <to_save_trace_data>: Use
572 TARGET_DEFAULT_NORETURN.
574 2014-02-19 Tom Tromey <tromey@redhat.com>
576 * target-delegates.c: Rebuild.
577 * target.c (update_current_target): Don't inherit or default
578 to_get_trace_state_variable_value.
579 * target.h (struct target_ops)
580 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
582 2014-02-19 Tom Tromey <tromey@redhat.com>
584 * target-delegates.c: Rebuild.
585 * target.c (update_current_target): Don't inherit or default
587 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
589 2014-02-19 Tom Tromey <tromey@redhat.com>
591 * target-delegates.c: Rebuild.
592 * target.c (update_current_target): Don't inherit or default
594 * target.h (struct target_ops) <to_trace_stop>: Use
595 TARGET_DEFAULT_NORETURN.
597 2014-02-19 Tom Tromey <tromey@redhat.com>
599 * target-delegates.c: Rebuild.
600 * target.c (update_current_target): Don't inherit or default
601 to_get_tracepoint_status.
602 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
603 TARGET_DEFAULT_NORETURN.
605 2014-02-19 Tom Tromey <tromey@redhat.com>
607 * target-delegates.c: Rebuild.
608 * target.c (update_current_target): Don't inherit or default
610 * target.h (struct target_ops) <to_get_trace_status>: Use
611 TARGET_DEFAULT_RETURN.
613 2014-02-19 Tom Tromey <tromey@redhat.com>
615 * target-delegates.c: Rebuild.
616 * target.c (update_current_target): Don't inherit or default
618 * target.h (struct target_ops) <to_trace_start>: Use
619 TARGET_DEFAULT_NORETURN.
621 2014-02-19 Tom Tromey <tromey@redhat.com>
623 * target-delegates.c: Rebuild.
624 * target.c (update_current_target): Don't inherit or default
625 to_trace_set_readonly_regions.
626 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
627 Use TARGET_DEFAULT_NORETURN.
629 2014-02-19 Tom Tromey <tromey@redhat.com>
631 * target-delegates.c: Rebuild.
632 * target.c (update_current_target): Don't inherit or default
633 to_disable_tracepoint.
634 * target.h (struct target_ops) <to_disable_tracepoint>: Use
635 TARGET_DEFAULT_NORETURN.
637 2014-02-19 Tom Tromey <tromey@redhat.com>
639 * target-delegates.c: Rebuild.
640 * target.c (update_current_target): Don't inherit or default
641 to_enable_tracepoint.
642 * target.h (struct target_ops) <to_enable_tracepoint>: Use
643 TARGET_DEFAULT_NORETURN.
645 2014-02-19 Tom Tromey <tromey@redhat.com>
647 * target-delegates.c: Rebuild.
648 * target.c (update_current_target): Don't inherit or default
649 to_download_trace_state_variable.
650 * target.h (struct target_ops) <to_download_trace_state_variable>:
651 Use TARGET_DEFAULT_NORETURN.
653 2014-02-19 Tom Tromey <tromey@redhat.com>
655 * target-delegates.c: Rebuild.
656 * target.c (update_current_target): Don't inherit or default
657 to_can_download_tracepoint.
658 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
659 TARGET_DEFAULT_RETURN.
661 2014-02-19 Tom Tromey <tromey@redhat.com>
663 * target-delegates.c: Rebuild.
664 * target.c (update_current_target): Don't inherit or default
665 to_download_tracepoint.
666 * target.h (struct target_ops) <to_download_tracepoint>: Use
667 TARGET_DEFAULT_NORETURN.
669 2014-02-19 Tom Tromey <tromey@redhat.com>
671 * target-delegates.c: Rebuild.
672 * target.c (update_current_target): Don't inherit or default
674 * target.h (struct target_ops) <to_trace_init>: Use
675 TARGET_DEFAULT_RETURN.
677 2014-02-19 Tom Tromey <tromey@redhat.com>
679 * target-delegates.c: Rebuild.
680 * target.c (update_current_target): Don't inherit or default
681 to_supports_string_tracing.
682 * target.h (struct target_ops) <to_supports_string_tracing>: Use
683 TARGET_DEFAULT_RETURN.
685 2014-02-19 Tom Tromey <tromey@redhat.com>
687 * target-delegates.c: Rebuild.
688 * target.c (update_current_target): Don't inherit or default
689 to_supports_enable_disable_tracepoint.
690 * target.h (struct target_ops)
691 <to_supports_enable_disable_tracepoint>: Use
692 TARGET_DEFAULT_RETURN.
694 2014-02-19 Tom Tromey <tromey@redhat.com>
696 * target-delegates.c: Rebuild.
697 * target.c (update_current_target): Don't inherit or default
698 to_supports_multi_process.
699 * target.h (struct target_ops) <to_supports_multi_process>: Use
700 TARGET_DEFAULT_RETURN.
702 2014-02-19 Tom Tromey <tromey@redhat.com>
704 * target-delegates.c: Rebuild.
705 * target.c (update_current_target): Don't inherit or default
706 to_get_ada_task_ptid.
707 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
710 2014-02-19 Tom Tromey <tromey@redhat.com>
712 * target-delegates.c: Rebuild.
713 * target.c (update_current_target): Don't inherit or default
714 to_thread_architecture.
715 * target.h (struct target_ops) <to_thread_architecture>: Use
718 2014-02-19 Tom Tromey <tromey@redhat.com>
720 * target-delegates.c: Rebuild.
721 * target.c (update_current_target): Don't inherit or default
722 to_execution_direction.
723 * target.h (struct target_ops) <to_execution_direction>: Use
726 2014-02-19 Tom Tromey <tromey@redhat.com>
728 * target-delegates.c: Rebuild.
729 * target.c (update_current_target): Don't inherit or default
730 to_can_execute_reverse.
731 * target.h (struct target_ops) <to_can_execute_reverse>: Use
732 TARGET_DEFAULT_RETURN.
733 (target_can_execute_reverse): Unconditionally delegate.
735 2014-02-19 Tom Tromey <tromey@redhat.com>
737 * target-delegates.c: Rebuild.
738 * target.c (update_current_target): Don't inherit or default
740 (dummy_goto_bookmark): Remove.
741 (init_dummy_target): Don't inherit or default to_goto_bookmark.
742 * target.h (struct target_ops) <to_goto_bookmark>: Use
743 TARGET_DEFAULT_NORETURN.
745 2014-02-19 Tom Tromey <tromey@redhat.com>
747 * target-delegates.c: Rebuild.
748 * target.c (update_current_target): Don't inherit or default
750 (dummy_get_bookmark): Remove.
751 (init_dummy_target): Don't inherit or default to_get_bookmark.
752 * target.h (struct target_ops) <to_get_bookmark>: Use
753 TARGET_DEFAULT_NORETURN
755 2014-02-19 Tom Tromey <tromey@redhat.com>
757 * target-delegates.c: Rebuild.
758 * target.c (update_current_target): Don't inherit or default
759 to_make_corefile_notes.
760 (init_dummy_target): Don't initialize to_make_corefile_notes.
761 * target.h (struct target_ops) <to_make_corefile_notes>: Use
764 2014-02-19 Tom Tromey <tromey@redhat.com>
766 * target-delegates.c: Rebuild.
767 * target.c (update_current_target): Don't inherit or default
768 to_find_memory_regions.
769 (init_dummy_target): Don't initialize to_find_memory_regions.
770 * target.h (struct target_ops) <to_find_memory_regions>: Use
773 2014-02-19 Tom Tromey <tromey@redhat.com>
775 * target-delegates.c: Rebuild.
776 * target.c (update_current_target): Don't inherit or default
778 * target.h (struct target_ops) <to_log_command>: Use
779 TARGET_DEFAULT_IGNORE.
780 (target_log_command): Unconditionally delegate.
782 2014-02-19 Tom Tromey <tromey@redhat.com>
784 * target-delegates.c: Rebuild.
785 * target.c (update_current_target): Don't inherit or default
787 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
788 TARGET_DEFAULT_RETURN.
790 2014-02-19 Tom Tromey <tromey@redhat.com>
792 * target-delegates.c: Rebuild.
793 * target.c (update_current_target): Don't inherit or default
795 (target_thread_name): Unconditionally delegate.
796 * target.h (struct target_ops) <to_thread_name>: Use
797 TARGET_DEFAULT_RETURN.
799 2014-02-19 Tom Tromey <tromey@redhat.com>
801 * target-delegates.c: Rebuild.
802 * target.c (update_current_target): Don't inherit or default
803 to_extra_thread_info.
804 * target.h (struct target_ops) <to_extra_thread_info>: Use
805 TARGET_DEFAULT_RETURN.
807 2014-02-19 Tom Tromey <tromey@redhat.com>
809 * target-delegates.c: Rebuild.
810 * target.c (update_current_target): Don't inherit or default
812 * target.h (struct target_ops) <to_has_exited>: Use
813 TARGET_DEFAULT_RETURN..
815 2014-02-19 Tom Tromey <tromey@redhat.com>
817 * target-delegates.c: Rebuild.
818 * target.c (update_current_target): Don't inherit or default
819 to_set_syscall_catchpoint.
820 (return_one): Remove.
821 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
822 TARGET_DEFAULT_RETURN.
824 2014-02-19 Tom Tromey <tromey@redhat.com>
826 * target-delegates.c: Rebuild.
827 * target.c (update_current_target): Don't inherit or default
828 to_insert_exec_catchpoint.
829 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
830 TARGET_DEFAULT_RETURN.
832 2014-01-08 Tom Tromey <tromey@redhat.com>
834 * target-delegates.c: Rebuild.
835 * target.c (update_current_target): Don't inherit or default
836 to_insert_exec_catchpoint.
837 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
838 TARGET_DEFAULT_RETURN.
840 2014-02-19 Tom Tromey <tromey@redhat.com>
842 * target-delegates.c: Rebuild.
843 * target.c (update_current_target): Don't inherit or default
844 to_remove_vfork_catchpoint.
845 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
846 TARGET_DEFAULT_RETURN.
848 2014-02-19 Tom Tromey <tromey@redhat.com>
850 * target-delegates.c: Rebuild.
851 * target.c (update_current_target): Don't inherit or default
852 to_insert_vfork_catchpoint.
853 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
854 TARGET_DEFAULT_RETURN.
856 2014-02-19 Tom Tromey <tromey@redhat.com>
858 * target-delegates.c: Rebuild.
859 * target.c (update_current_target): Don't inherit or default
860 to_remove_fork_catchpoint.
861 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
862 TARGET_DEFAULT_RETURN.
864 2014-02-19 Tom Tromey <tromey@redhat.com>
866 * target-delegates.c: Rebuild.
867 * target.c (update_current_target): Don't inherit or default
868 to_insert_fork_catchpoint.
869 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
870 TARGET_DEFAULT_RETURN.
872 2014-02-19 Tom Tromey <tromey@redhat.com>
874 * target-delegates.c: Rebuild.
875 * target.c (update_current_target): Don't inherit or default
876 to_post_startup_inferior.
877 * target.h (struct target_ops) <to_post_startup_inferior>: Use
878 TARGET_DEFAULT_IGNORE.
880 2014-02-19 Tom Tromey <tromey@redhat.com>
882 * target-delegates.c: Rebuild.
883 * target.c (update_current_target): Don't inherit or default
885 * target.h (struct target_ops) <to_load>: Use
886 TARGET_DEFAULT_NORETURN.
888 2014-02-19 Tom Tromey <tromey@redhat.com>
890 * target-delegates.c: Rebuild.
891 * target.c (update_current_target): Don't inherit or default
893 * target.h (struct target_ops) <to_terminal_info>: Use
896 2014-02-19 Tom Tromey <tromey@redhat.com>
898 * target-delegates.c: Rebuild.
899 * target.c (update_current_target): Don't inherit or default
900 to_terminal_save_ours.
901 * target.h (struct target_ops) <to_terminal_save_ours>: Use
902 TARGET_DEFAULT_IGNORE.
904 2014-02-19 Tom Tromey <tromey@redhat.com>
906 * target-delegates.c: Rebuild.
907 * target.c (update_current_target): Don't inherit or default
909 * target.h (struct target_ops) <to_terminal_ours>: Use
910 TARGET_DEFAULT_IGNORE.
912 2014-02-19 Tom Tromey <tromey@redhat.com>
914 * target-delegates.c: Rebuild.
915 * target.c (update_current_target): Don't inherit or default
916 to_terminal_ours_for_output.
917 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
918 TARGET_DEFAULT_IGNORE.
920 2014-02-19 Tom Tromey <tromey@redhat.com>
922 * target-delegates.c: Rebuild.
923 * target.c (update_current_target): Don't inherit or default
924 to_terminal_inferior.
925 * target.h (struct target_ops) <to_terminal_inferior>: Use
926 TARGET_DEFAULT_IGNORE.
928 2014-02-19 Tom Tromey <tromey@redhat.com>
930 * target-delegates.c: Rebuild.
931 * target.c (update_current_target): Don't inherit or default
933 * target.h (struct target_ops) <to_terminal_init>: Use
934 TARGET_DEFAULT_IGNORE.
936 2014-02-19 Tom Tromey <tromey@redhat.com>
938 * target-delegates.c: Rebuild.
939 * target.c (update_current_target): Don't inherit or default
940 to_can_accel_watchpoint_condition.
941 * target.h (struct target_ops)
942 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
944 2014-02-19 Tom Tromey <tromey@redhat.com>
946 * target-delegates.c: Rebuild.
947 * target.c (update_current_target): Don't inherit or default
948 to_region_ok_for_hw_watchpoint.
949 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
950 Use TARGET_DEFAULT_FUNC.
952 2014-02-19 Tom Tromey <tromey@redhat.com>
954 * target-delegates.c: Rebuild.
955 * target.c (update_current_target): Don't inherit or default
956 to_watchpoint_addr_within_range.
957 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
958 Use TARGET_DEFAULT_FUNC.
960 2014-02-19 Tom Tromey <tromey@redhat.com>
962 * target-delegates.c: Rebuild.
963 * target.c (update_current_target): Don't inherit or default
964 to_remove_watchpoint.
965 * target.h (struct target_ops) <to_remove_watchpoint>: Use
966 TARGET_DEFAULT_NORETURN.
968 2014-02-19 Tom Tromey <tromey@redhat.com>
970 * target-delegates.c: Rebuild.
971 * target.c (update_current_target): Don't inherit or default
972 to_insert_watchpoint.
973 * target.h (struct target_ops) <to_insert_watchpoint>: Use
974 TARGET_DEFAULT_RETURN.
976 2014-02-19 Tom Tromey <tromey@redhat.com>
978 * target-delegates.c: Rebuild.
979 * target.c (update_current_target): Don't inherit or default
980 to_remove_hw_breakpoint.
981 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
982 TARGET_DEFAULT_RETURN.
984 2014-02-19 Tom Tromey <tromey@redhat.com>
986 * target-delegates.c: Rebuild.
987 * target.c (update_current_target): Don't inherit or default
988 to_insert_hw_breakpoint.
989 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
990 TARGET_DEFAULT_RETURN.
992 2014-02-19 Tom Tromey <tromey@redhat.com>
994 * target-delegates.c: Rebuild.
995 * target.c (update_current_target): Don't inherit or default
996 to_can_use_hw_breakpoint.
997 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
998 TARGET_DEFAULT_RETURN.
1000 2014-02-19 Tom Tromey <tromey@redhat.com>
1002 * target-delegates.c: Rebuild.
1003 * target.c (update_current_target): Don't inherit or default
1005 * target.h (struct target_ops) <to_files_info>: Use
1006 TARGET_DEFAULT_IGNORE.
1008 2014-02-19 Tom Tromey <tromey@redhat.com>
1010 * target-delegates.c: Rebuild.
1011 * target.c (update_current_target): Don't inherit or default
1013 * target.h (struct target_ops) <to_store>: Use
1014 TARGET_DEFAULT_NORETURN.
1016 2014-02-19 Tom Tromey <tromey@redhat.com>
1018 * target-delegates.c: Rebuild.
1019 * target.c (update_current_target): Don't inherit or default
1021 * target.h (struct target_ops) <to_post_attach>: Use
1022 TARGET_DEFAULT_IGNORE.
1024 2014-02-19 Tom Tromey <tromey@redhat.com>
1026 * target-delegates.c: Rebuild.
1027 * target.c (update_current_target): Don't inherit or default
1029 (default_rcmd): New function.
1030 (do_monitor_command): Unconditionally delegate.
1031 * target.h (struct target_ops) <to_rmcd>: Use
1032 TARGET_DEFAULT_FUNC.
1034 2014-02-19 Tom Tromey <tromey@redhat.com>
1036 * target-delegates.c: Rebuild.
1037 * target.c (init_dummy_target): Don't initialize to_attach.
1038 (target_attach): Unconditionally delegate.
1039 * target.h (struct target_ops) <to_attach>: Use
1040 TARGET_DEFAULT_FUNC.
1042 2014-02-19 Tom Tromey <tromey@redhat.com>
1044 * target-delegates.c: Rebuild.
1045 * target.c (target_detach): Unconditionally delegate.
1046 (init_dummy_target): Don't initialize to_detach.
1047 * target.h (struct target_ops) <to_detach>: Use
1048 TARGET_DEFAULT_IGNORE.
1050 2014-02-19 Tom Tromey <tromey@redhat.com>
1052 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
1054 (target_augmented_libraries_svr4_read): Add argument.
1055 * target.c (update_current_target): Update.
1056 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
1059 2014-02-19 Tom Tromey <tromey@redhat.com>
1061 * target.h (struct target_ops) <to_call_history_range>: Add
1063 * target.c (target_call_history_range): Add argument.
1064 * record-btrace.c (record_btrace_call_history_range): Add 'self'
1066 (record_btrace_call_history_from): Update.
1068 2014-02-19 Tom Tromey <tromey@redhat.com>
1070 * target.h (struct target_ops) <to_call_history_from>: Add
1072 * target.c (target_call_history_from): Add argument.
1073 * record-btrace.c (record_btrace_call_history_from): Add 'self'
1076 2014-02-19 Tom Tromey <tromey@redhat.com>
1078 * target.h (struct target_ops) <to_call_history>: Add argument.
1079 * target.c (target_call_history): Add argument.
1080 * record-btrace.c (record_btrace_call_history): Add 'self'
1083 2014-02-19 Tom Tromey <tromey@redhat.com>
1085 * target.h (struct target_ops) <to_insn_history_range>: Add
1087 * target.c (target_insn_history_range): Add argument.
1088 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
1090 (record_btrace_insn_history_from): Update.
1092 2014-02-19 Tom Tromey <tromey@redhat.com>
1094 * target.h (struct target_ops) <to_insn_history_from>: Add
1096 * target.c (target_insn_history_from): Add argument.
1097 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
1100 2014-02-19 Tom Tromey <tromey@redhat.com>
1102 * target.h (struct target_ops) <to_insn_history>: Add argument.
1103 * target.c (target_insn_history): Add argument.
1104 * record-btrace.c (record_btrace_insn_history): Add 'self'
1107 2014-02-19 Tom Tromey <tromey@redhat.com>
1109 * target.h (struct target_ops) <to_goto_record>: Add argument.
1110 * target.c (target_goto_record): Add argument.
1111 * record-full.c (record_full_goto): Add 'self' argument.
1112 * record-btrace.c (record_btrace_goto): Add 'self' argument.
1114 2014-02-19 Tom Tromey <tromey@redhat.com>
1116 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
1117 * target.c (target_goto_record_end): Add argument.
1118 * record-full.c (record_full_goto_end): Add 'self' argument.
1119 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
1121 2014-02-19 Tom Tromey <tromey@redhat.com>
1123 * target.h (struct target_ops) <to_goto_record_begin>: Add
1125 * target.c (target_goto_record_begin): Add argument.
1126 * record-full.c (record_full_goto_begin): Add 'self' argument.
1127 * record-btrace.c (record_btrace_goto_begin): Add 'self'
1130 2014-02-19 Tom Tromey <tromey@redhat.com>
1132 * target.h (struct target_ops) <to_record_is_replaying>: Add
1134 * target.c (target_record_is_replaying): Add argument.
1135 * record-full.c (record_full_is_replaying): Add 'self' argument.
1136 * record-btrace.c (record_btrace_is_replaying): Add 'self'
1138 (record_btrace_xfer_partial, record_btrace_store_registers)
1139 (record_btrace_prepare_to_store, record_btrace_resume)
1140 (record_btrace_wait, record_btrace_decr_pc_after_break)
1141 (record_btrace_find_new_threads, record_btrace_thread_alive):
1144 2014-02-19 Tom Tromey <tromey@redhat.com>
1146 * target.h (struct target_ops) <to_delete_record>: Add argument.
1147 * target.c (target_delete_record): Add argument.
1148 * record-full.c (record_full_delete): Add 'self' argument.
1150 2014-02-19 Tom Tromey <tromey@redhat.com>
1152 * target.h (struct target_ops) <to_save_record>: Add argument.
1153 * target.c (target_save_record): Add argument.
1154 * record-full.c (record_full_save): Add 'self' argument.
1155 (record_full_save): Add 'self' argument.
1157 2014-02-19 Tom Tromey <tromey@redhat.com>
1159 * target.h (struct target_ops) <to_info_record>: Add argument.
1160 * target.c (target_info_record): Add argument.
1161 * record.c (info_record_command): Add argument.
1162 * record-full.c (record_full_info): Add 'self' argument.
1163 * record-btrace.c (record_btrace_info): Add 'self' argument.
1165 2014-02-19 Tom Tromey <tromey@redhat.com>
1167 * target.h (struct target_ops) <to_stop_recording>: Add argument.
1168 * target.c (target_stop_recording): Add argument.
1169 * record.c (record_stop): Add argument.
1170 * record-btrace.c (record_btrace_stop_recording): Add 'self'
1173 2014-02-19 Tom Tromey <tromey@redhat.com>
1175 * target.h (struct target_ops) <to_read_btrace>: Add argument.
1176 * target.c (struct target_ops) <to_read_btrace>: Add argument.
1177 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
1179 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
1180 (_initialize_amd64_linux_nat): Use it.
1181 * i386-linux-nat.c (i386_linux_read_btrace): New function.
1182 (_initialize_i386_linux_nat): Use it.
1184 2014-02-19 Tom Tromey <tromey@redhat.com>
1186 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
1187 * target.c (target_teardown_btrace): Add argument.
1188 * remote.c (remote_teardown_btrace): Add 'self' argument.
1189 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
1191 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
1194 2014-02-19 Tom Tromey <tromey@redhat.com>
1196 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
1197 * target.c (target_disable_btrace): Add argument.
1198 * remote.c (remote_disable_btrace): Add 'self' argument.
1199 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
1201 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
1204 2014-02-19 Tom Tromey <tromey@redhat.com>
1206 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
1207 * target.c (target_enable_btrace): Add argument.
1208 * remote.c (remote_enable_btrace): Add 'self' argument.
1209 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
1211 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
1214 2014-02-19 Tom Tromey <tromey@redhat.com>
1216 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
1217 (target_can_use_agent): Add argument.
1218 * target.c (update_current_target): Update.
1219 * remote.c (remote_can_use_agent): Add 'self' argument.
1220 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
1222 2014-02-19 Tom Tromey <tromey@redhat.com>
1224 * target.h (struct target_ops) <to_use_agent>: Add argument.
1225 (target_use_agent): Add argument.
1226 * target.c (update_current_target): Update.
1227 * remote.c (remote_use_agent): Add 'self' argument.
1228 * inf-child.c (inf_child_use_agent): Add 'self' argument.
1230 2014-02-19 Tom Tromey <tromey@redhat.com>
1232 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
1233 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
1234 (target_traceframe_info): Add argument.
1235 * target.c (update_current_target): Update.
1236 * remote.c (remote_traceframe_info): Add 'self' argument.
1237 * ctf.c (ctf_traceframe_info): Add 'self' argument.
1239 2014-02-19 Tom Tromey <tromey@redhat.com>
1241 * target.h (target_static_tracepoint_markers_by_strid): Add
1243 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
1245 * target.c (update_current_target): Update.
1246 * remote.c (struct target_ops)
1247 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
1248 * linux-nat.c (struct target_ops)
1249 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
1251 2014-02-19 Tom Tromey <tromey@redhat.com>
1253 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
1255 (target_static_tracepoint_marker_at): Add argument.
1256 * target.c (update_current_target): Update.
1257 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
1260 2014-02-19 Tom Tromey <tromey@redhat.com>
1262 * target.h (struct target_ops) <to_set_permissions>: Add argument.
1263 (target_set_permissions): Add argument.
1264 * target.c (update_current_target): Update.
1265 * remote.c (remote_set_permissions): Add 'self' argument.
1266 (remote_start_remote): Update.
1268 2014-02-19 Tom Tromey <tromey@redhat.com>
1270 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
1271 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
1272 (target_get_tib_address): Add argument.
1273 * target.c (update_current_target): Update.
1274 * remote.c (remote_get_tib_address): Add 'self' argument.
1276 2014-02-19 Tom Tromey <tromey@redhat.com>
1278 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
1279 (target_set_trace_notes): Add argument.
1280 * target.c (update_current_target): Update.
1281 * remote.c (remote_set_trace_notes): Add 'self' argument.
1283 2014-02-19 Tom Tromey <tromey@redhat.com>
1285 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
1287 (target_set_trace_buffer_size): Add argument.
1288 * target.c (update_current_target): Update.
1289 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
1291 2014-02-19 Tom Tromey <tromey@redhat.com>
1293 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
1295 (target_set_circular_trace_buffer): Add argument.
1296 * target.c (update_current_target): Update.
1297 * remote.c (remote_set_circular_trace_buffer): Add 'self'
1300 2014-02-19 Tom Tromey <tromey@redhat.com>
1302 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
1304 (target_set_disconnected_tracing): Add argument.
1305 * target.c (update_current_target): Update.
1306 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
1308 2014-02-19 Tom Tromey <tromey@redhat.com>
1310 * target.h (struct target_ops)
1311 <to_get_min_fast_tracepoint_insn_len>: Add argument.
1312 (target_get_min_fast_tracepoint_insn_len): Add argument.
1313 * target.c (update_current_target): Update.
1314 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
1317 2014-02-19 Tom Tromey <tromey@redhat.com>
1319 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
1321 (target_get_raw_trace_data): Add argument.
1322 * target.c (update_current_target): Update.
1323 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
1325 2014-02-19 Tom Tromey <tromey@redhat.com>
1327 * target.h (struct target_ops) <to_upload_trace_state_variables>:
1329 (target_upload_trace_state_variables): Add argument.
1330 * target.c (update_current_target): Update.
1331 * remote.c (remote_upload_trace_state_variables): Add 'self'
1333 (remote_start_remote): Update.
1335 2014-02-19 Tom Tromey <tromey@redhat.com>
1337 * target.h (struct target_ops) <to_upload_tracepoints>: Add
1339 (target_upload_tracepoints): Add argument.
1340 * target.c (update_current_target): Update.
1341 * remote.c (remote_upload_tracepoints): Add 'self' argument.
1342 (remote_start_remote): Update.
1344 2014-02-19 Tom Tromey <tromey@redhat.com>
1346 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
1347 (target_save_trace_data): Add argument.
1348 * target.c (update_current_target): Update.
1349 * remote.c (remote_save_trace_data): Add 'self' argument.
1351 2014-02-19 Tom Tromey <tromey@redhat.com>
1353 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
1355 * target.h (struct target_ops)
1356 <to_get_trace_state_variable_value>: Add argument.
1357 (target_get_trace_state_variable_value): Add argument.
1358 * target.c (update_current_target): Update.
1359 * remote.c (remote_get_trace_state_variable_value): Add 'self'
1361 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
1363 2014-02-19 Tom Tromey <tromey@redhat.com>
1365 * tracepoint.c (tfile_trace_find): Add 'self' argument.
1366 * target.h (struct target_ops) <to_trace_find>: Add argument.
1367 (target_trace_find): Add argument.
1368 * target.c (update_current_target): Update.
1369 * remote.c (remote_trace_find): Add 'self' argument.
1370 * ctf.c (ctf_trace_find): Add 'self' argument.
1372 2014-02-19 Tom Tromey <tromey@redhat.com>
1374 * target.h (struct target_ops) <to_trace_stop>: Add argument.
1375 (target_trace_stop): Add argument.
1376 * target.c (update_current_target): Update.
1377 * remote.c (remote_trace_stop): Add 'self' argument.
1379 2014-02-19 Tom Tromey <tromey@redhat.com>
1381 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
1382 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
1384 (target_get_tracepoint_status): Add argument.
1385 * target.c (update_current_target): Update.
1386 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
1388 2014-02-19 Tom Tromey <tromey@redhat.com>
1390 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
1391 * target.h (struct target_ops) <to_get_trace_status>: Add
1393 (target_get_trace_status): Add argument.
1394 * target.c (update_current_target): Update.
1395 * remote.c (remote_get_trace_status): Add 'self' argument.
1396 (remote_start_remote, remote_can_download_tracepoint): Update.
1397 * ctf.c (ctf_get_trace_status): Add 'self' argument.
1399 2014-02-19 Tom Tromey <tromey@redhat.com>
1401 * target.h (struct target_ops) <to_trace_start>: Add argument.
1402 (target_trace_start): Add argument.
1403 * target.c (update_current_target): Update.
1404 * remote.c (remote_trace_start): Add 'self' argument.
1406 2014-02-19 Tom Tromey <tromey@redhat.com>
1408 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
1410 (target_trace_set_readonly_regions): Add argument.
1411 * target.c (update_current_target): Update.
1412 * remote.c (remote_trace_set_readonly_regions): Add 'self'
1415 2014-02-19 Tom Tromey <tromey@redhat.com>
1417 * target.h (struct target_ops) <to_disable_tracepoint>: Add
1419 (target_disable_tracepoint): Add argument.
1420 * target.c (update_current_target): Update.
1421 * remote.c (remote_disable_tracepoint): Add 'self' argument.
1423 2014-02-19 Tom Tromey <tromey@redhat.com>
1425 * target.h (struct target_ops) <to_enable_tracepoint>: Add
1427 (target_enable_tracepoint): Add argument.
1428 * target.c (update_current_target): Update.
1429 * remote.c (remote_enable_tracepoint): Add 'self' argument.
1431 2014-02-19 Tom Tromey <tromey@redhat.com>
1433 * target.h (struct target_ops) <to_download_trace_state_variable>:
1435 (target_download_trace_state_variable): Add argument.
1436 * target.c (update_current_target): Update.
1437 * remote.c (remote_download_trace_state_variable): Add 'self'
1440 2014-02-19 Tom Tromey <tromey@redhat.com>
1442 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
1444 (target_can_download_tracepoint): Add argument.
1445 * target.c (update_current_target): Update.
1446 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
1448 2014-02-19 Tom Tromey <tromey@redhat.com>
1450 * target.h (struct target_ops) <to_download_tracepoint>: Add
1452 (target_download_tracepoint): Add argument.
1453 * target.c (update_current_target): Update.
1454 * remote.c (remote_download_tracepoint): Add 'self' argument.
1456 2014-02-19 Tom Tromey <tromey@redhat.com>
1458 * target.h (struct target_ops) <to_trace_init>: Add argument.
1459 (target_trace_init): Add argument.
1460 * target.c (update_current_target): Update.
1461 * remote.c (remote_trace_init): Add 'self' argument.
1463 2014-02-19 Tom Tromey <tromey@redhat.com>
1465 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
1466 * target.c (target_fileio_readlink): Add argument.
1467 * remote.c (remote_hostio_readlink): Add 'self' argument.
1468 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
1470 2014-02-19 Tom Tromey <tromey@redhat.com>
1472 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
1473 * target.c (target_fileio_unlink): Add argument.
1474 * remote.c (remote_hostio_unlink): Add 'self' argument.
1475 (remote_file_delete): Update.
1476 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
1478 2014-02-19 Tom Tromey <tromey@redhat.com>
1480 * target.h (struct target_ops) <to_fileio_close>: Add argument.
1481 * target.c (target_fileio_close): Add argument.
1482 * remote.c (remote_hostio_close): Add 'self' argument.
1483 (remote_hostio_close_cleanup): Update.
1484 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
1486 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
1488 2014-02-19 Tom Tromey <tromey@redhat.com>
1490 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
1491 * target.c (target_fileio_pread): Add argument.
1492 * remote.c (remote_hostio_pread): Add 'self' argument.
1493 (remote_bfd_iovec_pread, remote_file_get): Update.
1494 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
1496 2014-02-19 Tom Tromey <tromey@redhat.com>
1498 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
1499 * target.c (target_fileio_pwrite): Add argument.
1500 * remote.c (remote_hostio_pwrite): Add 'self' argument.
1501 (remote_file_put): Update.
1502 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
1504 2014-02-19 Tom Tromey <tromey@redhat.com>
1506 * target.h (struct target_ops) <to_fileio_open>: Add argument.
1507 * target.c (target_fileio_open): Add argument.
1508 * remote.c (remote_hostio_open): Add 'self' argument.
1509 (remote_bfd_iovec_open): Add 'self' argument.
1510 (remote_file_put): Add 'self' argument.
1511 (remote_file_get): Add 'self' argument.
1512 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
1514 2014-02-19 Tom Tromey <tromey@redhat.com>
1516 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
1518 (target_can_run_breakpoint_commands): Add argument.
1519 * target.c (update_current_target): Update.
1520 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
1522 (remote_insert_breakpoint): Add 'self' argument.
1523 (remote_insert_hw_breakpoint): Add 'self' argument.
1524 (remote_can_run_breakpoint_commands): Add 'self' argument.
1526 2014-02-19 Tom Tromey <tromey@redhat.com>
1528 * target.h (struct target_ops)
1529 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
1530 (target_supports_evaluation_of_breakpoint_conditions): Add
1532 * target.c (update_current_target): Update.
1533 * remote.c (remote_supports_cond_breakpoints): Add 'self'
1535 (remote_insert_breakpoint): Add 'self' argument.
1536 (remote_insert_hw_breakpoint): Add 'self' argument.
1537 (remote_supports_cond_breakpoints): Add 'self' argument.
1539 2014-02-19 Tom Tromey <tromey@redhat.com>
1541 * target.h (struct target_ops) <to_supports_string_tracing>: Add
1543 (target_supports_string_tracing): Add argument.
1544 * target.c (update_current_target): Update.
1545 * remote.c (remote_supports_string_tracing): Add 'self' argument.
1547 2014-02-19 Tom Tromey <tromey@redhat.com>
1549 * target.h (struct target_ops)
1550 <to_supports_disable_randomization>: Add argument.
1551 * target.c (find_default_supports_disable_randomization): Add
1553 (target_supports_disable_randomization): Add argument.
1554 (find_default_supports_disable_randomization): Add 'self'
1556 * remote.c (extended_remote_supports_disable_randomization): Add
1558 (remote_supports_disable_randomization): Add 'self' argument.
1559 (extended_remote_create_inferior): Update.
1560 * linux-nat.c (linux_nat_supports_disable_randomization): Add
1563 2014-02-19 Tom Tromey <tromey@redhat.com>
1565 * target.h (struct target_ops)
1566 <to_supports_enable_disable_tracepoint>: Add argument.
1567 (target_supports_enable_disable_tracepoint): Add argument.
1568 * target.c (update_current_target): Update.
1569 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
1572 2014-02-19 Tom Tromey <tromey@redhat.com>
1574 * target.h (struct target_ops) <to_supports_multi_process>: Add
1576 (target_supports_multi_process): Add argument.
1577 * target.c (update_current_target): Update.
1578 * remote.c (remote_supports_multi_process): Add 'self' argument.
1579 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
1581 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
1584 2014-02-19 Tom Tromey <tromey@redhat.com>
1586 * target.h (struct target_ops) <to_execution_direction>: Add
1588 (target_execution_direction): Add argument.
1589 * target.c (default_execution_direction): Add 'self' argument.
1590 * record-full.c (record_full_execution_direction): Add 'self'
1593 2014-02-19 Tom Tromey <tromey@redhat.com>
1595 * target.h (struct target_ops) <to_can_execute_reverse>: Add
1597 (target_can_execute_reverse): Add argument.
1598 * remote.c (remote_can_execute_reverse): Add 'self' argument.
1599 * record-full.c (record_full_can_execute_reverse): Add 'self'
1601 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
1604 2014-02-19 Tom Tromey <tromey@redhat.com>
1606 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
1607 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
1609 (target_get_ada_task_ptid): Add argument.
1610 * target.c (update_current_target): Update.
1611 (default_get_ada_task_ptid): Add 'self' argument.
1612 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
1613 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
1614 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
1616 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
1618 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
1620 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
1622 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
1623 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
1626 2014-02-19 Tom Tromey <tromey@redhat.com>
1628 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
1629 (target_goto_bookmark): Add argument.
1630 * target.c (dummy_goto_bookmark): Add 'self' argument.
1631 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
1633 2014-02-19 Tom Tromey <tromey@redhat.com>
1635 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
1636 (target_get_bookmark): Add argument.
1637 * target.c (dummy_get_bookmark): Add 'self' argument.
1638 * record-full.c (record_full_get_bookmark): Add 'self' argument.
1640 2014-02-19 Tom Tromey <tromey@redhat.com>
1642 * target.h (struct target_ops) <to_make_corefile_notes>: Add
1644 (target_make_corefile_notes): Add argument.
1645 * target.c (dummy_make_corefile_notes): Add 'self' argument.
1646 * procfs.c (procfs_make_note_section): Add 'self' argument.
1647 (procfs_make_note_section): Add 'self' argument.
1648 (procfs_make_note_section): Add 'self' argument.
1649 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
1651 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
1652 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
1653 * exec.c (exec_make_note_section): Add 'self' argument.
1654 (exec_make_note_section): Add 'self' argument.
1656 2014-02-19 Tom Tromey <tromey@redhat.com>
1658 * target.h (struct target_ops) <to_find_memory_regions>: Add
1660 (target_find_memory_regions): Add argument.
1661 * target.c (dummy_find_memory_regions): Add 'self' argument.
1662 * procfs.c (proc_find_memory_regions): Add 'self' argument.
1663 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
1664 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
1665 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
1666 * exec. (exec_do_find_memory_regions): New global.
1667 (exec_set_find_memory_regions): Rewrite.
1668 (exec_find_memory_regions): New function.
1669 (init_exec_ops): Use exec_find_memory_regions.
1671 2014-02-19 Tom Tromey <tromey@redhat.com>
1673 * target.h (struct target_ops) <to_supports_non_stop>: Add
1675 * target.c (find_default_supports_non_stop): Add argument.
1676 (target_supports_non_stop): Add argument.
1677 (find_default_supports_non_stop): Add 'self' argument.
1678 * remote.c (remote_supports_non_stop): Add 'self' argument.
1679 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
1681 2014-02-19 Tom Tromey <tromey@redhat.com>
1683 * target.h (struct target_ops) <to_log_command>: Add argument.
1684 (target_log_command): Add argument.
1685 * serial.h (serial_log_command): Add 'self' argument.
1686 * serial.c (serial_log_command): Add 'self' argument.
1688 2014-02-19 Tom Tromey <tromey@redhat.com>
1690 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
1691 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
1693 (target_pid_to_exec_file): Add argument.
1694 * target.c (debug_to_pid_to_exec_file): Add argument.
1695 (update_current_target): Update.
1696 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
1697 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
1698 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
1699 (linux_handle_extended_wait): Update.
1700 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
1701 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
1702 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
1703 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
1705 2014-02-19 Tom Tromey <tromey@redhat.com>
1707 * target.h (struct target_ops) <to_rcmd>: Add argument.
1708 (target_rcmd): Add argument.
1709 * target.c (debug_to_rcmd): Add argument.
1710 (update_current_target, do_monitor_command): Update.
1711 * remote.c (remote_rcmd): Add 'self' argument.
1712 * monitor.c (monitor_rcmd): Add 'self' argument.
1714 2014-02-19 Tom Tromey <tromey@redhat.com>
1716 * windows-nat.c (windows_stop): Add 'self' argument.
1717 * target.h (struct target_ops) <to_stop>: Add argument.
1718 * target.c (target_stop): Add argument.
1719 (debug_to_stop): Add argument.
1720 (update_current_target): Update.
1721 * remote.c (remote_stop): Add 'self' argument.
1722 * remote-sim.c (gdbsim_stop): Add 'self' argument.
1723 (gdbsim_cntrl_c): Update.
1724 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
1725 * procfs.c (procfs_stop): Add 'self' argument.
1726 * nto-procfs.c (procfs_stop): Add 'self' argument.
1727 * monitor.c (monitor_stop): Add 'self' argument.
1728 (monitor_open): Update.
1729 * linux-nat.c (linux_nat_stop): Add argument.
1730 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
1731 * gnu-nat.c (gnu_stop): Add 'self' argument.
1732 * darwin-nat.c (darwin_stop): Add 'self' argument.
1734 2014-02-19 Tom Tromey <tromey@redhat.com>
1736 * target.h (struct target_ops) <to_thread_name>: Add argument.
1737 * target.c (target_thread_name): Add argument.
1738 (update_current_target): Update.
1739 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
1741 2014-02-19 Tom Tromey <tromey@redhat.com>
1743 * target.h (struct target_ops) <to_extra_thread_info>: Add
1745 (target_extra_thread_info): Add argument.
1746 * target.c (update_current_target): Update.
1747 * remote.c (remote_threads_extra_info): Add 'self' argument.
1748 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
1750 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
1751 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
1752 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
1754 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
1756 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
1758 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
1761 2014-02-19 Tom Tromey <tromey@redhat.com>
1763 * target.h (struct target_ops) <to_program_signals>: Add argument.
1764 * target.c (target_program_signals): Add argument.
1765 * remote.c (remote_program_signals): Add 'self' argument.
1767 2014-02-19 Tom Tromey <tromey@redhat.com>
1769 * target.h (struct target_ops) <to_pass_signals>: Add argument.
1770 * target.c (target_pass_signals): Add argument.
1771 * remote.c (remote_pass_signals): Add 'self' argument.
1772 (remote_start_remote): Update.
1773 * procfs.c (procfs_pass_signals): Add 'self' argument.
1774 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
1775 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
1776 (linux_nat_create_inferior, linux_nat_attach): Update.
1778 2014-02-19 Tom Tromey <tromey@redhat.com>
1780 * windows-nat.c (windows_can_run): Add 'self' argument.
1781 * target.h (struct target_ops) <to_can_run>: Add argument.
1782 (target_can_run): Add argument.
1783 * target.c (debug_to_can_run): Add argument.
1784 (update_current_target): Update.
1785 * nto-procfs.c (procfs_can_run): Add 'self' argument.
1786 * inf-child.c (inf_child_can_run): Add 'self' argument.
1787 * go32-nat.c (go32_can_run): Add 'self' argument.
1789 2014-02-19 Tom Tromey <tromey@redhat.com>
1791 * target.h (struct target_ops) <to_has_exited>: Add argument.
1792 (target_has_exited): Add argument.
1793 * target.c (debug_to_has_exited): Add argument.
1794 (update_current_target): Update.
1796 2014-02-19 Tom Tromey <tromey@redhat.com>
1798 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
1800 (target_set_syscall_catchpoint): Add argument.
1801 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
1803 * target.c (update_current_target): Update.
1805 2014-02-19 Tom Tromey <tromey@redhat.com>
1807 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1809 (target_remove_exec_catchpoint): Add argument.
1810 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1811 (update_current_target): Update.
1812 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1815 2014-02-19 Tom Tromey <tromey@redhat.com>
1817 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1819 (target_insert_exec_catchpoint): Add argument.
1820 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1821 (update_current_target): Update.
1822 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1825 2014-02-19 Tom Tromey <tromey@redhat.com>
1827 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1829 (target_remove_vfork_catchpoint): Add argument.
1830 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1831 (update_current_target): Update.
1832 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1835 2014-02-19 Tom Tromey <tromey@redhat.com>
1837 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1839 (target_insert_vfork_catchpoint): Add argument.
1840 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1841 (update_current_target): Update.
1842 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1845 2014-02-19 Tom Tromey <tromey@redhat.com>
1847 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1849 (target_remove_fork_catchpoint): Add argument.
1850 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1851 (update_current_target): Update.
1852 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1855 2014-02-19 Tom Tromey <tromey@redhat.com>
1857 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1859 (target_insert_fork_catchpoint): Add argument.
1860 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1861 (update_current_target): Update.
1862 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1865 2014-02-19 Tom Tromey <tromey@redhat.com>
1867 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1869 (target_post_startup_inferior): Add argument.
1870 * target.c (debug_to_post_startup_inferior): Add argument.
1871 (update_current_target): Update.
1872 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1874 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1876 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1878 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1880 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1882 (super_post_startup_inferior): Likewise.
1883 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1885 (super_post_startup_inferior): Likewise.
1886 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1887 Add 'self' argument.
1888 (super_post_startup_inferior): Likewise.
1890 2014-02-19 Tom Tromey <tromey@redhat.com>
1892 * target.h (struct target_ops) <to_load>: Add argument.
1893 * target.c (target_load): Add argument.
1894 (debug_to_load): Add argument.
1895 (update_current_target): Update.
1896 * remote.c (remote_load): Add 'self' argument.
1897 * remote-sim.c (gdbsim_load): Add 'self' argument.
1898 * remote-mips.c (mips_load): Add 'self' argument.
1899 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1900 * monitor.c (monitor_load): Add 'self' argument.
1901 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1903 2014-02-19 Tom Tromey <tromey@redhat.com>
1905 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1906 (target_terminal_info): Add argument.
1907 * target.c (debug_to_terminal_info): Add argument.
1908 (default_terminal_info): Likewise.
1909 * inflow.c (child_terminal_info): Add 'self' argument.
1910 * inferior.h (child_terminal_info): Add 'self' argument.
1911 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1913 2014-02-19 Tom Tromey <tromey@redhat.com>
1915 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1917 (target_terminal_save_ours): Add argument.
1918 * target.c (debug_to_terminal_save_ours): Add argument.
1919 (update_current_target): Update.
1920 * inflow.c (terminal_save_ours): Add 'self' argument.
1921 * inferior.h (terminal_save_ours): Add 'self' argument.
1923 2014-02-19 Tom Tromey <tromey@redhat.com>
1925 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1926 (target_terminal_ours): Add argument.
1927 * target.c (debug_to_terminal_ours): Add argument.
1928 (update_current_target): Update.
1929 * remote.c (remote_terminal_ours): Add 'self' argument.
1930 (remote_close): Update.
1931 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1932 * inflow.c (terminal_ours): Add 'self' argument.
1933 * inferior.h (terminal_ours): Add 'self' argument.
1934 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1936 2014-02-19 Pedro Alves <palves@redhat.com>
1937 Tom Tromey <tromey@redhat.com>
1939 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1941 (target_terminal_ours_for_output): Add argument.
1942 * target.c (debug_to_terminal_ours_for_output): Add argument.
1943 (update_current_target): Update.
1944 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1945 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1946 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1948 2014-02-19 Tom Tromey <tromey@redhat.com>
1950 * target.h (struct target_ops) <to_terminal_inferior>: Add
1952 * target.c (target_terminal_inferior): Add argument.
1953 (update_current_target): Update.
1954 * remote.c (remote_terminal_inferior): Add 'self' argument.
1955 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1956 * inflow.c (terminal_inferior): Add 'self' argument.
1957 * inferior.h (terminal_inferior): Add 'self' argument.
1958 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1959 (go32_terminal_inferior): Add 'self' argument.
1961 2014-02-19 Tom Tromey <tromey@redhat.com>
1963 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1964 (target_terminal_init): Add argument.
1965 * target.c (debug_to_terminal_init): Add argument.
1966 (update_current_target): Update.
1967 * inflow.c (terminal_init_inferior): Add 'self' argument.
1968 * inferior.h (terminal_init_inferior): Add 'self' argument.
1969 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1970 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1972 2014-02-19 Tom Tromey <tromey@redhat.com>
1974 * target.h (struct target_ops)
1975 <to_can_accel_watchpoint_condition>: Add argument.
1976 (target_can_accel_watchpoint_condition): Add argument.
1977 * target.c (debug_to_can_accel_watchpoint_condition): Add
1979 (update_current_target): Update.
1980 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1983 2014-02-19 Tom Tromey <tromey@redhat.com>
1985 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1987 (target_region_ok_for_hw_watchpoint): Add argument.
1988 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1989 (default_region_ok_for_hw_watchpoint): Add argument.
1990 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1991 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1993 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1995 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1997 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1999 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
2001 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
2003 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
2004 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
2006 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2007 Add 'self' argument.
2009 2014-02-19 Tom Tromey <tromey@redhat.com>
2011 * target.h (struct target_ops) <to_insert_watchpoint>: Add
2013 (target_insert_watchpoint): Add argument.
2014 * target.c (debug_to_insert_watchpoint): Add argument.
2015 (update_current_target): Update.
2016 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
2017 * remote.c (remote_insert_watchpoint): Add 'self' argument.
2018 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
2019 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
2020 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
2021 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
2023 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
2024 (procfs_insert_hw_watchpoint): Add 'self' argument.
2025 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
2027 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
2029 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
2031 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
2032 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
2034 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
2037 2014-02-19 Tom Tromey <tromey@redhat.com>
2039 * target.h (struct target_ops) <to_remove_watchpoint>: Add
2041 (target_remove_watchpoint): Add argument.
2042 * target.c (debug_to_remove_watchpoint): Add argument.
2043 (update_current_target): Update.
2044 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
2045 * remote.c (remote_remove_watchpoint): Add 'self' argument.
2046 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
2047 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
2048 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
2049 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
2051 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
2052 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
2054 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
2056 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
2058 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
2059 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
2061 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
2064 2014-02-19 Tom Tromey <tromey@redhat.com>
2066 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
2068 (target_remove_hw_breakpoint): Add argument.
2069 * target.c (debug_to_remove_hw_breakpoint): Add argument.
2070 (update_current_target): Update.
2071 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
2072 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
2074 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
2075 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
2077 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
2080 2014-02-19 Tom Tromey <tromey@redhat.com>
2082 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
2084 (target_insert_hw_breakpoint): Add argument.
2085 * target.c (debug_to_insert_hw_breakpoint): Add argument.
2086 (update_current_target): Update.
2087 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
2088 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
2090 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
2091 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
2092 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
2094 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
2097 2014-02-19 Tom Tromey <tromey@redhat.com>
2099 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
2101 (target_can_use_hardware_watchpoint): Add argument.
2102 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
2103 (update_current_target): Update.
2104 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
2106 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
2108 * remote.c (remote_check_watch_resources): Add 'self' argument.
2109 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
2110 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
2112 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
2113 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
2115 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
2117 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
2119 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
2121 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
2123 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
2125 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
2126 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
2128 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
2131 2014-02-19 Tom Tromey <tromey@redhat.com>
2133 * target.h (struct target_ops) <to_post_attach>: Add argument.
2134 (target_post_attach): Add argument.
2135 * target.c (debug_to_post_attach): Add argument.
2136 (update_current_target): Update.
2137 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
2138 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
2139 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
2140 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
2141 * inf-child.c (inf_child_post_attach): Add 'self' argument.
2143 2014-02-19 Tom Tromey <tromey@redhat.com>
2145 * windows-nat.c (windows_close): Add 'self' argument.
2146 * tracepoint.c (tfile_close): Add 'self' argument.
2147 * target.h (struct target_ops) <to_close>: Add argument.
2148 * target.c (target_close): Add argument.
2149 (update_current_target): Update.
2150 * remote.c (remote_close): Add 'self' argument.
2151 * remote-sim.c (gdbsim_close): Add 'self' argument.
2152 * remote-mips.c (mips_close): Add 'self' argument.
2153 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
2154 * record-full.c (record_full_close): Add 'self' argument.
2155 * record-btrace.c (record_btrace_close): Add 'self' argument.
2156 * monitor.h (monitor_close): Add 'self' argument.
2157 * monitor.c (monitor_close): Add 'self' argument.
2158 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
2159 * linux-nat.c (linux_nat_close): Add argument.
2160 * go32-nat.c (go32_close): Add 'self' argument.
2161 * exec.c (exec_close_1): Add 'self' argument.
2162 * ctf.c (ctf_close): Add 'self' argument.
2163 * corelow.c (core_close): Add 'self' argument.
2164 (core_close_cleanup): Update.
2165 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
2166 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
2168 2014-02-19 Tom Tromey <tromey@redhat.com>
2170 * remote.c (remote_load): New function.
2171 (init_remote_ops): Use it.
2173 2014-02-19 Tom Tromey <tromey@redhat.com>
2175 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
2177 * common/linux-btrace.h (linux_supports_btrace): Update.
2178 * remote.c (remote_supports_btrace): Add "self" argument.
2179 * target-delegates.c: Rebuild.
2180 * target.c (target_supports_btrace): Remove.
2181 * target.h (struct target_ops) <to_supports_btrace>: Add
2182 target_ops argument.
2183 (target_supports_btrace): New define.
2185 2014-02-19 Tom Tromey <tromey@redhat.com>
2187 * record-full.c (record_full_beneath_to_resume_ops)
2188 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
2189 (record_full_beneath_to_wait)
2190 (record_full_beneath_to_store_registers_ops)
2191 (record_full_beneath_to_store_registers)
2192 (record_full_beneath_to_xfer_partial_ops)
2193 (record_full_beneath_to_xfer_partial)
2194 (record_full_beneath_to_insert_breakpoint_ops)
2195 (record_full_beneath_to_insert_breakpoint)
2196 (record_full_beneath_to_remove_breakpoint_ops)
2197 (record_full_beneath_to_remove_breakpoint)
2198 (record_full_beneath_to_stopped_by_watchpoint)
2199 (record_full_beneath_to_stopped_data_address)
2200 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
2201 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
2202 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
2203 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
2204 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
2205 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
2206 (tmp_to_stopped_data_address, tmp_to_async): Remove.
2207 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
2208 (record_full_resume, record_full_wait_1)
2209 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
2210 (record_full_store_registers, record_full_xfer_partial)
2211 (record_full_insert_breakpoint, record_full_remove_breakpoint)
2212 (record_full_async, record_full_core_xfer_partial): Use target
2214 * target-delegates.c: Rebuild.
2215 * target.c (current_xfer_partial): Remove.
2216 (update_current_target): Do not INHERIT or de_fault
2217 to_insert_breakpoint, to_remove_breakpoint,
2218 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
2219 to_is_async_p, to_async. Do not set to_xfer_partial field.
2220 (default_xfer_partial): Simplify.
2221 (current_xfer_partial): Remove.
2222 (target_wait, target_resume): Simplify.
2223 (find_default_can_async_p, find_default_is_async_p): Update.
2224 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
2225 to_xfer_partial, to_stopped_by_watchpoint,
2226 to_stopped_data_address.
2227 (target_store_registers): Simplify.
2228 (forward_target_remove_breakpoint)
2229 (forward_target_insert_breakpoint): Remove.
2230 (target_remove_breakpoint, target_insert_breakpoint)
2231 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
2232 * target.h (struct target_ops) <to_resume, to_wait,
2233 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
2234 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
2235 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
2237 (forward_target_remove_breakpoint)
2238 (forward_target_insert_breakpoint): Remove.
2239 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
2241 (record_btrace_insert_breakpoint): Delegate directly.
2243 2014-02-19 Tom Tromey <tromey@redhat.com>
2246 * target-delegates.c: New file.
2247 * target.c: Include target-delegates.c.
2248 (init_dummy_target): Call install_dummy_methods.
2249 (complete_target_initialization): Call install_delegators.
2250 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
2251 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
2252 * make-target-delegates: New file.
2254 2014-02-19 Tom Tromey <tromey@redhat.com>
2256 * record.c (find_record_target): Use find_target_at.
2257 * target.c (find_target_at): New function.
2258 * target.h (find_target_at): Declare.
2260 2014-02-19 Tom Tromey <tromey@redhat.com>
2262 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
2264 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
2266 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
2267 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
2269 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
2271 * linux-nat.c (save_sigtrap): Update.
2272 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
2273 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
2274 (linux_nat_close): Update.
2275 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
2277 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
2279 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
2280 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
2281 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
2282 (tmp_to_async): Add 'ops' argument.
2283 (record_full_stopped_by_watchpoint, record_full_async)
2284 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
2286 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
2287 (m32r_stopped_by_watchpoint): Add 'ops' argument.
2288 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
2289 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
2290 (remote_is_async_p, remote_async): Add 'ops' argument.
2291 (remote_stopped_data_address): Update.
2292 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
2293 * target.c (update_current_target)
2294 (find_default_can_async_p, find_default_is_async_p): Update.
2295 (init_dummy_target): Update.
2296 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
2297 * target.h (struct target_ops) <to_stopped_by_watchpoint,
2298 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
2299 (target_can_async_p, target_is_async_p, target_async)
2300 (target_stopped_by_watchpoint): Update.
2302 2014-02-19 Yao Qi <yao@codesourcery.com>
2305 * gdbarch.sh: Remove startup_gdbarch.
2306 * gdbarch.c: Regenerated.
2307 * gdbarch.h: Likewise.
2309 2014-02-17 Kevin Buettner <kevinb@redhat.com>
2311 * rl78-tdep.c (rl78_g10_register_name): New function.
2312 (rl78_return_value): Add g10 support.
2313 (rl78_gdbarch_init): Register rl78_g10_register_name for the
2316 2014-02-17 Doug Evans <xdje42@gmail.com>
2318 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
2319 (SUBDIR_GUILE_SRCS): Ditto.
2320 (scm-gsmob.o): Ditto.
2322 2014-02-17 Yao Qi <yao@codesourcery.com>
2324 * gnu-nat.c (ILL_RPC): Declare defined function.
2326 2014-02-17 Yao Qi <yao@codesourcery.com>
2328 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
2329 mach_msg_type_number_t.
2330 (gnu_write_inferior): Likewise.
2332 2014-02-17 Yao Qi <yao@codesourcery.com>
2334 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
2336 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
2337 (inf_validate_procs, inf_signal): Likewise.
2338 (S_exception_raise_request): Likewise.
2339 (do_mach_notify_dead_name): Likewise.
2340 (steal_exc_port): Likewise.
2341 (gnu_read_inferior): Change 'copy_count''s type to
2342 mach_msg_type_number_t.
2343 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
2346 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
2348 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
2349 flag. Adjust all users; in particular...
2350 (gnu_wait): ..., don't decrement its value in here...
2351 (gnu_create_inferior): ..., and instead set the flag in here,
2352 around the startup_inferior call, and call that one with
2353 START_INFERIOR_TRAPS_EXPECTED.
2355 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
2356 (ILL_RPC): ... new macro.
2357 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
2358 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
2359 (do_mach_notify_send_once, S_proc_setmsgport_reply)
2360 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
2361 functions with ILL_RPC macro.
2362 (S_proc_pid2task_reply, S_proc_task2pid_reply)
2363 (S_proc_task2proc_reply, S_proc_proc2task_reply)
2364 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
2365 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
2366 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
2367 (S_proc_getlogin_reply, S_proc_getsid_reply)
2368 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
2369 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
2370 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
2371 (S_proc_getnports_reply, S_proc_is_important_reply)
2372 (S_proc_get_code_reply): New stub functions, generated with
2375 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
2376 collected the type check structures.
2378 * reply_mig_hack.awk: Don't expect to see the auto keyword.
2380 2014-02-14 Doug Evans <dje@google.com>
2382 * target.c (target_write_partial): Fix result type.
2384 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
2386 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
2387 the proper offsets to access fpregset_t.
2389 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
2391 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
2392 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
2393 * h8300-tdep.c (setmachinelist): Remove global.
2394 * hppa-tdep.c (hppa_sigtramp): Remove global.
2395 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
2396 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
2397 * ravenscar-thread.c (update_target_observer): Remove global.
2398 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
2400 2014-02-12 Tom Tromey <tromey@redhat.com>
2402 * common/rsp-low.c: Update comments.
2403 * common/rsp-low.h: Update comments.
2405 2014-02-12 Tom Tromey <tromey@redhat.com>
2407 * common/rsp-low.c (convert_ascii_to_int): Remove.
2408 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
2410 2014-02-12 Tom Tromey <tromey@redhat.com>
2412 * common/rsp-low.h (unhexify): Don't declare.
2413 * common/rsp-low.c (unhexify): Remove.
2415 2014-02-12 Tom Tromey <tromey@redhat.com>
2417 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
2418 * common/rsp-low.c (convert_int_to_ascii): Remove.
2420 2014-02-12 Tom Tromey <tromey@redhat.com>
2422 * common/rsp-low.h (hexify): Don't declare.
2423 * common/rsp-low.c (hexify): Remove.
2425 2014-02-12 Tom Tromey <tromey@redhat.com>
2427 * common/rsp-low.c (hexify): Never take strlen of argument.
2429 2014-02-12 Tom Tromey <tromey@redhat.com>
2431 * common/rsp-low.c (bin2hex): Never take strlen of argument.
2432 * remote.c (extended_remote_run, remote_rcmd)
2433 (remote_download_trace_state_variable, remote_save_trace_data)
2434 (remote_set_trace_notes): Update.
2435 * tracepoint.c (encode_source_string, tfile_write_status)
2436 (tfile_write_uploaded_tsv): Update.
2438 2014-02-12 Tom Tromey <tromey@redhat.com>
2440 * tracepoint.c: Include rsp-low.h.
2441 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
2442 * remote.c: Include rsp-low.h.
2443 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
2444 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
2445 (remote_unescape_input): Move to common/rsp-low.c.
2446 * common/rsp-low.h: New file.
2447 * common/rsp-low.c: New file.
2448 * Makefile.in (SFILES): Add common/rsp-low.c.
2449 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
2450 (COMMON_OBS): Add rsp-low.o.
2451 (rsp-low.o): New target.
2453 2014-02-12 Tom Tromey <tromey@redhat.com>
2455 * utils.h: Include print-utils.h.
2456 (host_address_to_string, plongest, pulongest, phex, phex_nz)
2457 (int_string, core_addr_to_string, core_addr_to_string_nz)
2458 (hex_string, hex_string_custom): Don't declare.
2459 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
2460 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
2461 (hex_string_custom, int_string, core_addr_to_string)
2462 (core_addr_to_string_nz, host_address_to_string): Move to
2463 common/print-utils.c.
2464 * common/print-utils.h: New file.
2465 * common/print-utils.c: New file
2466 * Makefile.in (SFILES): Add common/print-utils.c.
2467 (HFILES_NO_SRCDIR): Add common/print-utils.h.
2468 (COMMON_OBS): Add print-utils.o.
2469 (print-utils.o): New target.
2471 2014-02-12 Tom Tromey <tromey@redhat.com>
2473 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
2475 2014-02-12 Mark Kettenis <kettenis@gnu.org>
2477 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
2479 2014-02-12 Mark Kettenis <kettenis@gnu.org>
2481 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
2482 if a PT_IO ptrace request returns sucessfully but indicates that 0
2483 bytes were transferred.
2485 2014-02-12 Pedro Alves <palves@redhat.com>
2486 Kevin Buettner <kevinb@redhat.com>
2488 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
2489 TYPE_INSTANCE_FLAG_CODE_SPACE.
2491 2014-02-12 Pedro Alves <palves@redhat.com>
2493 * h8300-tdep.c (pseudo_from_raw_register)
2494 (raw_from_pseudo_register): New functions.
2495 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
2498 2014-02-12 Pedro Alves <palves@redhat.com>
2500 * h8300-tdep.c (h8300_register_sim_regno): New function.
2501 (h8300_gdbarch_init): Install h8300_register_sim_regno as
2502 gdbarch_register_sim_regno hook.
2504 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
2506 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
2508 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
2510 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
2512 2014-02-12 Mark Kettenis <kettenis@gnu.org>
2514 * obsd-tdep.h (obsd_init_abi): New prototype.
2515 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
2516 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
2517 (obsd_init_abi): New functions.
2518 * i386obsd-tdep.c: Include "obsd-tdep.h".
2519 (i386obsd_init_abi): Call obsd_init_abi.
2520 * amd64obsd-tdep.c: Include "obsd-tdep.h".
2521 (amd64obsd_init_abi): Call obsd_init_abi.
2522 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
2523 obsd-tdep.c to gdb_target_obs.
2525 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
2527 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
2528 double float arguments to 16-byte in the argument slots.
2530 2014-02-11 Doug Evans <xdje42@gmail.com>
2532 * configure.ac: Don't crash if pkg-config is not found and guile
2533 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
2535 * configure: Regenerate.
2537 2014-02-11 Yao Qi <yao@codesourcery.com>
2539 * aix-thread.c (aix_thread_xfer_partial): Update comments.
2540 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
2541 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2542 * gnu-nat.c (gnu_xfer_memory): Likewise.
2543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2545 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2546 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2548 2014-02-11 Yao Qi <yao@codesourcery.com>
2550 * target.h (enum target_xfer_error): Rename to ...
2551 (enum target_xfer_status): ... it. New. All users updated.
2552 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
2554 (TARGET_XFER_STATUS_ERROR_P): New macro.
2555 (target_xfer_error_to_string): Remove declaration.
2556 (target_xfer_status_to_string): Declare.
2557 (target_xfer_partial_ftype): Adjust it.
2558 (struct target_ops) <to_xfer_partial>: Return
2559 target_xfer_status. Add argument xfered_len. Update
2561 * target.c (target_xfer_error_to_string): Rename to ...
2562 (target_xfer_status_to_string): ... it. New. All callers
2564 (target_read_live_memory): Likewise. Call target_xfer_partial
2565 instead of target_read.
2566 (memory_xfer_live_readonly_partial): Return
2567 target_xfer_status. Add argument xfered_len.
2568 (raw_memory_xfer_partial): Likewise.
2569 (memory_xfer_partial_1): Likewise.
2570 (memory_xfer_partial): Likewise.
2571 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
2572 properly. Update debug message.
2573 (default_xfer_partial, current_xfer_partial): Likewise.
2574 (target_write_partial): Likewise.
2575 (target_read_partial): Likewise. All callers updated.
2576 (read_whatever_is_readable): Likewise.
2577 (target_write_with_progress): Likewise.
2578 (target_read_alloc_1): Likewise.
2580 * aix-thread.c (aix_thread_xfer_partial): Likewise.
2581 * auxv.c (procfs_xfer_auxv): Likewise.
2582 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
2583 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2584 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2585 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
2586 * corefile.c (read_memory): Adjust.
2587 * corelow.c (core_xfer_partial): Likewise.
2588 * ctf.c (ctf_xfer_partial): Likewise.
2589 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
2591 (darwin_xfer_partial): Likewise.
2592 * exec.c (section_table_xfer_memory_partial): Likewise. All
2594 (exec_xfer_partial): Likewise.
2595 * exec.h (section_table_xfer_memory_partial): Update
2597 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
2599 (gnu_xfer_partial): Likewise.
2600 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
2601 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
2602 (ia64_hpux_xfer_solib_got): Likewise.
2603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
2604 type of 'partial_len' to ULONGEST.
2605 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2606 * linux-nat.c (linux_xfer_siginfo ): Likewise.
2607 (linux_nat_xfer_partial): Likewise.
2608 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
2609 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
2610 * monitor.c (monitor_xfer_memory): Likewise.
2611 (monitor_xfer_partial): Likewise.
2612 * procfs.c (procfs_xfer_partial): Likewise.
2613 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2614 * record-full.c (record_full_xfer_partial): Likewise.
2615 (record_full_core_xfer_partial): Likewise.
2616 * remote-sim.c (gdbsim_xfer_memory): Likewise.
2617 (gdbsim_xfer_partial): Likewise.
2618 * remote.c (remote_write_bytes_aux): Likewise. All callers
2620 (remote_write_bytes, remote_read_bytes): Likewise. All
2622 (remote_flash_erase): Likewise. All callers updated.
2623 (remote_write_qxfer): Likewise. All callers updated.
2624 (remote_read_qxfer): Likewise. All callers updated.
2625 (remote_xfer_partial): Likewise.
2626 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2627 (rs6000_xfer_shared_libraries): Likewise.
2628 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2629 (sol_thread_xfer_partial): Likewise.
2630 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2631 (sparc_xfer_partial): Likewise.
2632 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
2634 (spu_xfer_partial): Likewise.
2635 * spu-multiarch.c (spu_xfer_partial): Likewise.
2636 * tracepoint.c (tfile_xfer_partial): Likewise.
2637 * windows-nat.c (windows_xfer_memory): Likewise.
2638 (windows_xfer_shared_libraries): Likewise.
2639 (windows_xfer_partial): Likewise.
2640 * valprint.c: Replace 'target_xfer_error' with
2641 'target_xfer_status' in comments.
2643 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
2645 Checked in by Joel Brobecker <brobecker@adacore.com>.
2646 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
2648 2014-02-11 Joel Brobecker <brobecker@adacore.com>
2650 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
2651 function parameters.
2653 2014-02-10 Will Newton <will.newton@linaro.org>
2655 * elfread.c (elf_rel_plt_read): Look for a .got section if
2656 looking up .got.plt fails.
2657 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
2658 on address passed to elf_gnu_ifunc_record_cache.
2659 (elf_gnu_ifunc_resolve_addr): Likewise.
2660 (elf_gnu_ifunc_resolver_return_stop): Likewise.
2662 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
2664 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
2665 (X_RETTURN): New macro.
2666 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
2668 * sparc64-tdep.c (sparc64_init_abi): Hook
2669 sparc_in_function_epilogue_p.
2671 2014-02-10 Gary Benson <gbenson@redhat.com>
2673 * symfile-debug.c (debug_qf_expand_symtabs_matching):
2674 Rename name_matcher to symbol_matcher.
2676 2014-02-10 Gary Benson <gbenson@redhat.com>
2678 * symfile-debug.c (debug_qf_expand_symtabs_matching):
2679 Use expand_symtabs_file_matcher_ftype and
2680 expand_symtabs_symbol_matcher_ftype.
2682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2684 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
2685 (struct ada_symbol_cache): New.
2686 (ada_free_symbol_cache): Forward declare.
2687 (struct ada_pspace_data): New.
2688 (ada_pspace_data_handle): New static global.
2689 (get_ada_pspace_data, ada_pspace_data_cleanup)
2690 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
2691 (cache_space, cache): Delete, now folded inside struct
2693 (ada_get_symbol_cache): New function.
2694 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
2696 (_initialize_ada_language): Remove initialization of cache_space.
2697 Move call to observer_attach_inferior_exit up, grouping it
2698 with the other observer registrations inside this function.
2699 Rename command to be more general. Add call to
2700 register_program_space_data_with_cleanup.
2702 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2704 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
2705 ada_new_objfile_observer.
2706 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
2707 (_initialize_tasks): Update uses of ada_new_objfile_observer
2708 and ada_tasks_normal_stop_observer.
2710 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2712 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
2713 returned by the 'Length attribute to integer.
2715 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2717 * ada-lang.c (_initialize_ada_language): Initialize
2718 cache_space obstack.
2720 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2722 * ada-lang.c (HASH_SIZE): New macro.
2723 (struct cache_entry): New type.
2724 (cache_space, cache): New static globals.
2725 (ada_clear_symbol_cache, find_entry): New functions.
2726 (lookup_cached_symbol, cache_symbol): Implement.
2727 (ada_new_objfile_observer, ada_free_objfile_observer): New.
2728 (_initialize_ada_language): Attach ada_new_objfile_observer
2729 and ada_free_objfile_observer.
2731 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2733 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
2734 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
2735 struct block * parameter.
2736 (ada_lookup_symbol_list_worker): Constify local variable "block".
2737 Remove cast which is no longer necessary.
2739 2014-02-10 Doug Evans <xdje42@gmail.com>
2741 Add Guile as an extension language.
2742 * NEWS: Mention Guile scripting.
2743 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
2744 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
2745 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
2746 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
2747 (CLIBS): Add GUILE_LIBS.
2748 (install-guile): New rule.
2749 (guile.o): New rule.
2750 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
2751 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
2752 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
2753 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
2754 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
2755 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
2756 (scm-type.o, scm-utils.o, scm-value.o): New rules.
2757 * configure.ac: New option --with-guile.
2758 * configure: Regenerate.
2759 * config.in: Regenerate.
2760 * auto-load.c: Remove #include "python/python.h". Add #include
2761 "gdb/section-scripts.h".
2762 (source_section_scripts): Handle Guile scripts.
2763 (_initialize_auto_load): Add name of Guile objfile script to
2764 scripts-directory help text.
2765 * breakpoint.c (condition_command): Tweak comment to include Scheme.
2766 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
2767 (struct breakpoint): New member scm_bp_object.
2768 * defs.h (enum command_control_type): New value guile_control.
2769 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
2771 (show_user): Update comment.
2772 (_initialize_cli_cmds): Update help text for "show user". Update help
2773 text for max-user-call-depth.
2774 * cli/cli-script.c: Remove #include "python/python.h". Add #include
2776 (multi_line_command_p): Add guile_control.
2777 (print_command_lines): Handle guile_control.
2778 (execute_control_command, recurse_read_control_structure): Ditto.
2779 (process_next_line): Recognize "guile" commands.
2780 * disasm.c (gdb_disassemble_info): Make non-static.
2781 * disasm.h: #include "dis-asm.h".
2782 (struct gdbarch): Add forward decl.
2783 (gdb_disassemble_info): Declare.
2784 * extension.c: #include "guile/guile.h".
2785 (extension_languages): Add guile.
2786 (get_ext_lang_defn): Handle EXT_LANG_GDB.
2787 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
2788 * gdbtypes.c (get_unsigned_type_max): New function.
2789 (get_signed_type_minmax): New function.
2790 * gdbtypes.h (get_unsigned_type_max): Declare.
2791 (get_signed_type_minmax): Declare.
2792 * guile/README: New file.
2793 * guile/guile-internal.h: New file.
2794 * guile/guile.c: New file.
2795 * guile/guile.h: New file.
2796 * guile/scm-arch.c: New file.
2797 * guile/scm-auto-load.c: New file.
2798 * guile/scm-block.c: New file.
2799 * guile/scm-breakpoint.c: New file.
2800 * guile/scm-disasm.c: New file.
2801 * guile/scm-exception.c: New file.
2802 * guile/scm-frame.c: New file.
2803 * guile/scm-gsmob.c: New file.
2804 * guile/scm-iterator.c: New file.
2805 * guile/scm-lazy-string.c: New file.
2806 * guile/scm-math.c: New file.
2807 * guile/scm-objfile.c: New file.
2808 * guile/scm-ports.c: New file.
2809 * guile/scm-pretty-print.c: New file.
2810 * guile/scm-safe-call.c: New file.
2811 * guile/scm-string.c: New file.
2812 * guile/scm-symbol.c: New file.
2813 * guile/scm-symtab.c: New file.
2814 * guile/scm-type.c: New file.
2815 * guile/scm-utils.c: New file.
2816 * guile/scm-value.c: New file.
2817 * guile/lib/gdb.scm: New file.
2818 * guile/lib/gdb/boot.scm: New file.
2819 * guile/lib/gdb/experimental.scm: New file.
2820 * guile/lib/gdb/init.scm: New file.
2821 * guile/lib/gdb/iterator.scm: New file.
2822 * guile/lib/gdb/printing.scm: New file.
2823 * guile/lib/gdb/types.scm: New file.
2824 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2825 (VPATH): Add $(GUILE_SRCDIR).
2826 (GUILE_DIR): New variable.
2827 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2828 (all): Add stamp-guile dependency.
2829 (stamp-guile): New rule.
2830 (clean-guile, install-guile, uninstall-guile): New rules.
2831 (install-only): Add install-guile dependency.
2832 (uninstall): Add uninstall-guile dependency.
2833 (clean): Add clean-guile dependency.
2835 2014-02-09 Doug Evans <xdje42@gmail.com>
2837 Revert this patch (which I approved, mea culpa).
2839 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2841 * Makefile.in (all-lib): Remove.
2842 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2844 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2846 Fix Python stack corruption.
2847 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2850 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2852 * Makefile.in (all-lib): Remove.
2853 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2855 2014-02-07 Doug Evans <dje@google.com>
2857 * extension-priv.h (extension_language_script_ops): Add comment.
2858 (extension_language_ops): Add comment.
2859 (active_ext_lang_state): Fix typo in comment.
2861 2014-02-07 Pedro Alves <palves@redhat.com>
2863 * infrun.c (handle_signal_stop) <signal arrives while stepping
2864 over a breakpoint>: Switch back to the stepping thread.
2866 2014-02-07 Yao Qi <yao@codesourcery.com>
2868 * target.c (target_xfer_partial): Return zero if LEN is zero.
2870 2014-02-07 Yao Qi <yao@codesourcery.com>
2872 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2873 (ld_so_xfer_auxv): Likewise.
2874 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2875 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2876 * corelow.c (core_xfer_partial): Likewise.
2877 * ctf.c (ctf_xfer_partial): Likewise.
2878 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2879 (darwin_xfer_partial): Likewise.
2880 * exec.c (exec_xfer_partial): Likewise.
2881 * gnu-nat.c (gnu_xfer_partial): Likewise.
2882 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2883 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2884 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2885 * linux-nat.c (linux_xfer_siginfo): Likewise.
2886 (linux_proc_xfer_spu): Likewise.
2887 * procfs.c (procfs_xfer_partial): Likewise.
2888 * record-full.c (record_full_xfer_partial): Likewise.
2889 (record_full_core_xfer_partial): Likewise.
2890 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2891 * remote.c (remote_write_qxfer): Likewise.
2892 (remote_write_qxfer, remote_read_qxfer): Likewise.
2893 (remote_xfer_partial): Likewise.
2894 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2895 (rs6000_xfer_shared_libraries): Likewise.
2896 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2897 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2898 (spu_xfer_partial): Likewise.
2899 * target.c (memory_xfer_partial_1): Likewise.
2900 * tracepoint.c (tfile_xfer_partial): Likewise.
2901 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2902 (windows_xfer_partial): Likewise.
2904 2014-02-07 Yao Qi <yao@codesourcery.com>
2906 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2908 (core_xfer_shared_libraries_aix): Likewise.
2909 * gdbarch.c, gdbarch.h: Regenerated.
2910 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2911 ULONGEST. Change 'len_avail' type to ULONGEST.
2912 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2913 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2915 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2917 2014-02-07 Yao Qi <yao@codesourcery.com>
2919 * corefile.c (memory_error): Get 'exception' from ERR and pass
2920 'exception' to throw_error.
2922 2014-02-06 Doug Evans <xdje42@gmail.com>
2924 * configure.ac (libpython checking): Remove all but python.o from
2925 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2926 * configure: Regenerate.
2928 * Makefile.in (SFILES): Add extension.c.
2929 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2930 (COMMON_OBS): Add extension.o.
2931 * extension.h: New file.
2932 * extension-priv.h: New file.
2933 * extension.c: New file.
2935 * python/python-internal.h: #include "extension.h".
2936 (gdbpy_auto_load_enabled): Declare.
2937 (gdbpy_apply_val_pretty_printer): Declare.
2938 (gdbpy_apply_frame_filter): Declare.
2939 (gdbpy_preserve_values): Declare.
2940 (gdbpy_breakpoint_cond_says_stop): Declare.
2941 (gdbpy_breakpoint_has_cond): Declare.
2942 (void source_python_script_for_objfile): Delete.
2943 * python/python.c: #include "extension-priv.h".
2944 Delete inclusion of "observer.h".
2945 (extension_language_python): Moved here and renamed from
2946 script_language_python in py-auto-load.c.
2947 Redefined to be of type extension_language_defn.
2948 (python_extension_script_ops): New global.
2949 (python_extension_ops): New global.
2950 (struct python_env): New member previous_active.
2951 (restore_python_env): Call restore_active_ext_lang.
2952 (ensure_python_env): Call set_active_ext_lang.
2953 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2955 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2957 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2959 (gdbpy_eval_from_control_command): Renamed from
2960 eval_python_from_control_command, made static. New arg extlang.
2961 (gdbpy_source_script) Renamed from source_python_script, made static.
2963 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2964 result to int. New arg extlang.
2965 (gdbpy_source_objfile_script): Renamed from
2966 source_python_script_for_objfile, made static. New arg extlang.
2967 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2968 static. New args extlang, extlang_printers. Change result type to
2970 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2971 static. New arg extlang. Rename arg printers to extlang_printers
2972 and change type to ext_lang_type_printers *.
2973 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2974 static. Replace argument arg with extlang, extlang_printers.
2975 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2976 (!HAVE_PYTHON, source_python_script): Delete.
2977 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2978 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2979 (!HAVE_PYTHON, start_type_printers): Delete.
2980 (!HAVE_PYTHON, apply_type_printers): Delete.
2981 (!HAVE_PYTHON, free_type_printers): Delete.
2982 (_initialize_python): Delete call to observer_attach_before_prompt.
2983 (finalize_python): Set/restore active extension language.
2984 (gdbpy_finish_initialization) Renamed from
2985 finish_python_initialization, made static. New arg extlang.
2986 (gdbpy_initialized): New function.
2987 * python/python.h: #include "extension.h". Delete #include
2988 "value.h", "mi/mi-cmds.h".
2989 (extension_language_python): Declare.
2990 (GDBPY_AUTO_FILE_NAME): Delete.
2991 (enum py_bt_status): Moved to extension.h and renamed to
2993 (enum frame_filter_flags): Moved to extension.h.
2994 (enum py_frame_args): Moved to extension.h and renamed to
2995 ext_lang_frame_args.
2996 (finish_python_initialization): Delete.
2997 (eval_python_from_control_command): Delete.
2998 (source_python_script): Delete.
2999 (apply_val_pretty_printer): Delete.
3000 (apply_frame_filter): Delete.
3001 (preserve_python_values): Delete.
3002 (gdbpy_script_language_defn): Delete.
3003 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
3004 (start_type_printers, apply_type_printers, free_type_printers): Delete.
3006 * auto-load.c: #include "extension.h".
3007 (GDB_AUTO_FILE_NAME): Delete.
3008 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
3009 (script_language_gdb): Delete, moved to extension.c and renamed to
3010 extension_language_gdb.
3011 (source_gdb_script_for_objfile): Delete.
3012 (auto_load_pspace_info): New member unsupported_script_warning_printed.
3013 (loaded_script): Change type of language member to
3014 struct extension_language_defn *.
3015 (init_loaded_scripts_info): Initialize
3016 unsupported_script_warning_printed.
3017 (maybe_add_script): Make static. Change type of language arg to
3018 struct extension_language_defn *.
3019 (clear_section_scripts): Reset unsupported_script_warning_printed.
3020 (auto_load_objfile_script_1): Rewrite to use extension language API.
3021 (auto_load_objfile_script): Make public. Remove support-compiled-in
3022 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
3023 (source_section_scripts): Rewrite to use extension language API.
3024 (load_auto_scripts_for_objfile): Rewrite to use
3025 auto_load_scripts_for_objfile.
3026 (collect_matching_scripts_data): Change type of language member to
3027 struct extension_language_defn *.
3028 (auto_load_info_scripts): Change type of language arg to
3029 struct extension_language_defn *.
3030 (unsupported_script_warning_print): New function.
3031 (script_not_found_warning_print): Make static.
3032 (_initialize_auto_load): Rewrite construction of scripts-directory
3034 * auto-load.h (struct objfile): Add forward decl.
3035 (struct script_language): Delete.
3036 (struct auto_load_pspace_info): Add forward decl.
3037 (struct extension_language_defn): Add forward decl.
3038 (maybe_add_script): Delete.
3039 (auto_load_objfile_script): Declare.
3040 (script_not_found_warning_print): Delete.
3041 (auto_load_info_scripts): Update prototype.
3042 (auto_load_gdb_scripts_enabled): Declare.
3043 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
3044 auto_load_python_scripts_enabled and made public.
3045 (script_language_python): Delete, moved to python.c.
3046 (gdbpy_script_language_defn): Delete.
3047 (info_auto_load_python_scripts): Update to use
3048 extension_language_python.
3050 * breakpoint.c (condition_command): Replace call to
3051 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
3052 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
3053 with call to breakpoint_ext_lang_cond_says_stop.
3054 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
3055 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
3056 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
3057 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
3059 (local_setattro): Print name of extension language with existing
3062 * valprint.c (val_print, value_print): Update to call
3063 apply_ext_lang_val_pretty_printer.
3064 * cp-valprint.c (cp_print_value): Update call to
3065 apply_ext_lang_val_pretty_printer.
3066 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
3067 (gdbpy_apply_val_pretty_printer): Renamed from
3068 apply_val_pretty_printer. New arg extlang.
3069 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
3071 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
3072 extension language API.
3073 * cli/cli-script.c (execute_control_command): Update to call
3074 eval_ext_lang_from_control_command.
3076 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
3077 enum ext_lang_bt_status values. Update call to
3078 apply_ext_lang_frame_filter.
3079 (mi_cmd_stack_list_locals): Ditto.
3080 (mi_cmd_stack_list_args): Ditto.
3081 (mi_cmd_stack_list_variables): Ditto.
3082 * mi/mi-main.c: Delete #include "python/python-internal.h".
3083 Add #include "extension.h".
3084 (mi_cmd_list_features): Replace reference to python internal variable
3085 gdb_python_initialized with call to ext_lang_initialized_p.
3087 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
3088 Update to use enum ext_lang_frame_args. Update to call
3089 apply_ext_lang_frame_filter.
3090 * python/py-framefilter.c (extract_sym): Update to use enum
3092 (extract_value, py_print_type, py_print_value): Ditto.
3093 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
3094 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
3095 (py_print_frame): Ditto.
3096 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
3097 New arg extlang. Update to use enum ext_lang_bt_status.
3099 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
3100 finish_python_initialization. Replace with call to
3101 finish_ext_lang_initialization.
3103 * typeprint.c (do_free_global_table): Update to call
3104 free_ext_lang_type_printers.
3105 (create_global_typedef_table): Update to call
3106 start_ext_lang_type_printers.
3107 (find_global_typedef): Update to call apply_ext_lang_type_printers.
3108 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
3109 (type_print_options): Change type of global_printers from "void *"
3110 to "struct ext_lang_type_printers *".
3112 * value.c (preserve_values): Update to call preserve_ext_lang_values.
3113 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
3114 (gdbpy_preserve_values): Renamed from preserve_python_values.
3116 (!HAVE_PYTHON, preserve_python_values): Delete.
3118 * utils.c (quit_flag): Delete, moved to extension.c.
3119 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
3122 * eval.c: Delete #include "python/python.h".
3123 * main.c: Delete #include "python/python.h".
3125 * defs.h: Update comment.
3127 2014-02-06 Joel Brobecker <brobecker@adacore.com>
3131 2014-02-05 Mark Kettenis <kettenis@gnu.org>
3133 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
3136 2014-02-05 Yao Qi <yao@codesourcery.com>
3138 * remote.c (remote_pass_signals): Remove local 'buf' and use
3140 (remote_program_signals): Likewise.
3142 2014-02-05 Yao Qi <yao@codesourcery.com>
3144 * ctf.c: Include "inferior.h" and "gdbthread.h".
3145 (CTF_PID): A new macro.
3146 (ctf_open): Call inferior_appeared and add_thread_silent.
3147 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
3148 (ctf_thread_alive): New function.
3149 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
3151 2014-02-05 Yao Qi <yao@codesourcery.com>
3155 2013-05-24 Yao Qi <yao@codesourcery.com>
3157 * tracepoint.c (TFILE_PID): Remove.
3158 (tfile_open): Don't add thread and inferior.
3159 (tfile_close): Don't set 'inferior_ptid'. Don't call
3160 exit_inferior_silent.
3161 (tfile_thread_alive): Remove.
3162 (init_tfile_ops): Don't set field 'to_thread_alive' of
3165 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
3167 * remote.c (remote_start_remote): Call remote_check_symbols even
3168 if only symbol-file (not file) has been given.
3170 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3172 * gdbarch.sh (skip_entrypoint): New callback.
3173 * gdbarch.c, gdbarch.h: Regenerate.
3174 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
3175 * infrun.c (fill_in_stop_func): Likewise.
3176 * ppc-linux-tdep.c: Include "elf/ppc64.h".
3177 (ppc_elfv2_elf_make_msymbol_special): New function.
3178 (ppc_elfv2_skip_entrypoint): Likewise.
3179 (ppc_linux_init_abi): Install them for ELFv2.
3181 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3183 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
3184 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
3185 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
3186 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
3187 structures returned in GPRs.
3189 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3191 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
3192 offset to the stack parameter list for the ELFv2 ABI.
3194 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3196 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
3197 set_gdbarch_convert_from_func_ptr_addr and
3198 set_gdbarch_elf_make_msymbol_special for ELFv1.
3199 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
3200 function descriptors on ELFv1.
3201 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
3202 set up r12 at function entry.
3204 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3206 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
3207 (struct gdbarch_tdep): New member elf_abi.
3209 * rs6000-tdep.c: Include "elf/ppc64.h".
3210 (rs6000_gdbarch_init): Detect ELF ABI version.
3212 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3214 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
3215 within a register pair holding a DFP 128-bit value on little-endian.
3216 (ppc64_sysv_abi_return_value_base): Likewise.
3217 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
3218 (dfp_pseudo_register_write): Likewise.
3220 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3222 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
3223 offset on little-endian when passing _Decimal32.
3224 (ppc64_sysv_abi_return_value_base): Likewise for return values.
3226 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3228 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
3229 of the overlapped FP register within the VSX register on little-
3231 (efpr_pseudo_register_write): Likewise.
3233 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3235 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
3236 offset on little-endian when passing small structures.
3238 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3240 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
3241 (struct ppc64_sysv_argpos): New data structure.
3242 (ppc64_sysv_abi_push_float): Remove.
3243 (ppc64_sysv_abi_push_val): New function.
3244 (ppc64_sysv_abi_push_integer): Likewise.
3245 (ppc64_sysv_abi_push_freg): Likewise.
3246 (ppc64_sysv_abi_push_vreg): Likewise.
3247 (ppc64_sysv_abi_push_param): Likewise.
3248 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
3249 (ppc64_sysv_abi_return_value_base): New function.
3250 (ppc64_sysv_abi_return_value): Refactor to use it.
3252 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3254 * NEWS: Document new target powerpc64le-*-linux*.
3256 2014-02-04 Mark Kettenis <kettenis@gnu.org>
3258 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
3259 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
3261 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
3262 register set used in ELF core dumps. Add floating-point register set.
3264 2014-02-03 Kevin Buettner <kevinb@redhat.com>
3266 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
3267 dwarf2_to_gdb[] table using symbolic constants. Adjust
3268 penultimate entry from number representing the PC register
3269 to symbolic constant representing the MDR register. Add
3270 constant for the PC register to the end of the table.
3272 2014-02-03 Mark Kettenis <kettenis@gnu.org>
3274 * bsd-kvm.c: Include <sys/param.h>
3276 2014-02-03 Mark Kettenis <kettenis@gnu.org>
3278 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
3280 2014-01-31 Joel Brobecker <brobecker@adacore.com>
3282 * ada-lang.h (clear_ada_sym_cache): Delete.
3284 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
3286 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
3288 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
3290 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
3291 the sigreturn register save area only if the syscall is
3294 2014-01-29 Joel Brobecker <brobecker@adacore.com>
3296 * valops.c (value_slice): Minor reformatting.
3298 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
3300 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
3302 2014-01-28 Joel Brobecker <brobecker@adacore.com>
3304 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
3306 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
3307 (ada_ignore_descriptive_types_p): New static global.
3308 (find_parallel_type_by_descriptive_type): Return immediately
3309 if ada_ignore_descriptive_types_p is set.
3310 (_initialize_ada_language): Register new commands "maintenance
3311 set ada", "maintenance show ada", "maintenance set ada
3312 ignore-descriptive-types" and "maintenance show ada
3313 ignore-descriptive-types".
3314 * NEWS: Add entry for new "maint ada set/show
3315 ignore-descriptive-types" commands.
3317 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
3319 * record-btrace.c (record_btrace_close): Call btrace_teardown
3322 2014-01-27 Joel Brobecker <brobecker@adacore.com>
3324 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
3327 2014-01-27 Joel Brobecker <brobecker@adacore.com>
3329 * ada-typeprint (type_is_full_subrange_of_target_type):
3331 (print_range): Add parameter bounds_prefered_p. If not set,
3332 try printing range types using the name of their base type.
3333 (print_range_type): Add parameter bounds_prefered_p.
3334 Use it in call to print_range.
3335 (print_array_type, ada_print_type): Update calls to print_range
3336 and print_range_type.
3338 2014-01-27 Joel Brobecker <brobecker@adacore.com>
3340 * ada-typeprint.c (print_array_type, print_choices, print_range)
3341 (print_range_bound, print_dynamic_range_bound, print_range_type):
3344 2014-01-27 Joel Brobecker <brobecker@adacore.com>
3346 * ada-typeprint.c (print_range): Add missing empty line
3347 after local declaration.
3349 2014-01-27 Joel Brobecker <brobecker@adacore.com>
3351 * ada-valprint.c (print_optional_low_bound): Get index_type's
3352 target type for as long as it is a TYPE_CODE_RANGE.
3354 2014-01-27 Joel Brobecker <brobecker@adacore.com>
3356 * procfs.c (procfs_make_note_section): Remove assertion and
3359 2014-01-24 Yao Qi <yao@codesourcery.com>
3361 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
3362 * corelow.c (get_core_siginfo): Likewise.
3364 2014-01-24 Yao Qi <yao@codesourcery.com>
3366 * remote.c (remote_write_bytes_aux): Change type of 'len' to
3367 ULONGEST. Don't check 'len' is negative.
3368 (remote_write_bytes): Change type of 'len' to ULONGEST.
3370 2014-01-23 Tom Tromey <tromey@redhat.com>
3373 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
3374 Handle exception from frame.block.
3375 (FrameVars.fetch_frame_locals): Likewise.
3377 2014-01-23 Tom Tromey <tromey@redhat.com>
3380 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
3381 on a NULL pointer. Move "goto error" to correct place.
3383 2014-01-23 Tom Tromey <tromey@redhat.com>
3386 * python/py-framefilter.c (apply_frame_filter): Call
3387 ensure_python_env after computing gdbarch.
3389 2014-01-23 Yao Qi <yao@codesourcery.com>
3391 * target.c (raw_memory_xfer_partial): Change argument type
3392 from void * to gdb_byte *.
3393 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
3395 2014-01-22 Doug Evans <dje@google.com>
3397 New gdbserver option --debug-format=timestamp.
3400 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
3402 * syscalls/s390x-linux.xml: New file.
3403 * syscalls/s390-linux.xml: New file.
3404 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
3405 (XML_SYSCALL_FILENAME_S390X): Likewise.
3406 (op_svc): New enum value for SVC opcode.
3407 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
3408 (s390_linux_get_syscall_number): New function.
3409 (s390_gdbarch_init): Register '*get_syscall_number' and the
3410 syscall xml file name.
3411 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3412 "s390-linux.xml" and "s390x-linux.xml".
3413 * NEWS: Announce new feature.
3415 2014-01-22 Baruch Siach <baruch@tkos.co.il>
3417 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
3419 2014-01-22 Pedro Alves <palves@redhat.com>
3421 * xtensa-config.c: Include defs.h.
3423 2014-01-22 Joel Brobecker <brobecker@adacore.com>
3425 * common/common-utils.h: Add "ARI:" comment beside __func__
3428 2014-01-22 Joel Brobecker <brobecker@adacore.com>
3430 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
3431 documentation a bit.
3433 2014-01-21 Roland McGrath <mcgrathr@google.com>
3435 * configure.ac: Call AM_PROG_INSTALL_STRIP.
3436 * configure: Regenerate.
3437 * aclocal.m4: Regenerate.
3438 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
3439 New substituted variables.
3440 (install-strip): New target.
3441 (INSTALL_SCRIPT): New substituted variable.
3442 (FLAGS_TO_PASS): Add it.
3443 (install-only): Use $(INSTALL_SCRIPT) rather than
3444 $(INSTALL_PROGRAM) for gcore.
3446 2014-01-20 Tom Tromey <tromey@redhat.com>
3448 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
3451 2014-01-20 Tom Tromey <tromey@redhat.com>
3453 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
3454 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
3455 (deprecated_cmd_warning, complete_on_cmdlist): Update.
3456 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
3457 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
3458 (struct cmd_list_element) <flags>: Remove.
3459 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
3460 doc_allocated>: New fields.
3461 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
3463 * maint.c (maintenance_do_deprecate): Update.
3464 * top.c (execute_command): Update.
3466 2014-01-20 Baruch Siach <baruch@tkos.co.il>
3468 * xtensa-linux-nat.c: Include asm/ptrace.h.
3470 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
3472 * Makefile.in (SFILES): Add d-support.c.
3473 (COMMON_OBS): Add d-support.o.
3474 * d-lang.h (d_parse_symbol): Add comment, now defined in
3476 * d-lang.c (parse_call_convention)
3477 (parse_attributes, parse_function_types)
3478 (parse_function_args, parse_type, parse_identifier)
3479 (call_convention_p, d_parse_symbol): Move functions to ...
3480 * d-support.c: ... New file.
3482 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
3484 * d-lang.h (d_parse_symbol): Add declaration.
3485 * d-lang.c (extract_identifiers)
3486 (extract_type_info): Remove functions.
3487 (parse_call_convention, parse_attributes)
3488 (parse_function_types, parse_function_args)
3489 (parse_type, parse_identifier, call_convention_p)
3490 (d_parse_symbol): New functions.
3491 (d_demangle): Use d_parse_symbol to demangle D symbols.
3493 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
3495 * d-lang.h (struct builtin_d_type): New data type.
3496 (builtin_d_type): Add declaration.
3497 * d-lang.c (d_language_arch_info, build_d_types)
3498 (builtin_d_type): New functions.
3499 (enum d_primitive_types): New data type.
3500 (d_language_defn): Change c_language_arch_info to
3501 d_language_arch_info.
3502 (d_type_data): New static variable.
3503 (_initialize_d_language): Initialize d_type_data.
3505 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
3507 * d-lang.h (d_main_name): Add declaration.
3508 * d-lang.c (d_main_name): New function.
3509 * symtab.c (find_main_name): Add call to d_main_name.
3511 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
3513 * d-lang.c (d_language_defn): Change macro_expansion_c to
3516 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
3518 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3520 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
3522 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
3523 gdb_exception" declaration.
3524 * remote.c (getpkt_or_notif_sane): Likewise.
3526 2014-01-17 Doug Evans <dje@google.com>
3528 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
3529 function, contents of dirnames_to_char_ptr_vec_append moved here.
3530 (delim_string_to_char_ptr_vec): New function.
3531 (dirnames_to_char_ptr_vec_append): Rewrite.
3532 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
3534 2014-01-17 Doug Evans <dje@google.com>
3536 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
3538 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
3539 #include "common-utils.h".
3540 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
3541 * common/vec.h (VEC_ASSERT_PASS): Update.
3542 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
3543 (MACH_CHECK_ERROR): Update.
3545 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
3547 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
3549 * gdbarch.h: Regenerate.
3551 2014-01-16 Tom Tromey <tromey@redhat.com>
3553 * value.c (struct value) <regnum>: Move earlier.
3555 2014-01-16 Tom Tromey <tromey@redhat.com>
3557 * remote.c (extended_remote_create_inferior): Rename from
3558 extended_remote_create_inferior_1. Add "ops" argument. Remove
3561 2014-01-16 Pedro Alves <palves@redhat.com>
3563 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
3564 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
3567 2014-01-16 Doug Evans <dje@google.com>
3569 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
3571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3573 * btrace.h (btrace_thread_flag): New.
3574 (struct btrace_thread_info) <flags>: New.
3575 * record-btrace.c (record_btrace_resume_thread)
3576 (record_btrace_find_thread_to_move, btrace_step_no_history)
3577 (btrace_step_stopped, record_btrace_start_replaying)
3578 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
3579 (record_btrace_find_resume_thread): New.
3580 (record_btrace_resume, record_btrace_wait): Extend.
3581 (record_btrace_can_execute_reverse): New.
3582 (record_btrace_open): Fail in non-stop mode.
3583 (record_btrace_set_replay): Split into this, ...
3584 (record_btrace_stop_replaying): ... this, ...
3585 (record_btrace_clear_histories): ... and this.
3586 (init_record_btrace_ops): Init to_can_execute_reverse.
3587 * NEWS: Announce it.
3589 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3591 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
3592 (forward_target_decr_pc_after_break)
3593 (target_decr_pc_after_break): New.
3594 * target.c (forward_target_decr_pc_after_break)
3595 (target_decr_pc_after_break): New.
3596 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
3597 instead of gdbarch_decr_pc_after_break.
3598 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
3599 instead of gdbarch_decr_pc_after_break.
3600 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
3601 instead of gdbarch_decr_pc_after_break.
3602 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
3603 instead of gdbarch_decr_pc_after_break.
3604 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
3605 instead of gdbarch_decr_pc_after_break.
3606 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
3607 instead of gdbarch_decr_pc_after_break.
3609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3611 * btrace.c: Include regcache.h.
3612 (btrace_add_pc): New.
3613 (btrace_enable): Call btrace_add_pc.
3614 (btrace_is_empty): New.
3615 * btrace.h (btrace_is_empty): New.
3616 * record-btrace.c (require_btrace, record_btrace_info): Call
3619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3621 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
3622 Support delta reads.
3623 (linux_disable_btrace): Change return type.
3624 * common/linux-btrace.h (linux_read_btrace): Change parameters
3625 and return type to allow error reporting. Update users.
3626 (linux_disable_btrace): Change return type. Update users.
3627 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
3629 (btrace_error): New.
3630 (btrace_block) <begin>: Comment on BEGIN == 0.
3631 * btrace.c (btrace_compute_ftrace): Start from the end of
3633 (btrace_stitch_trace, btrace_clear_history): New.
3634 (btrace_fetch): Read delta trace, return if replaying.
3635 (btrace_clear): Move clear history code to btrace_clear_history.
3636 (parse_xml_btrace): Throw an error if parsing failed.
3637 * target.h (struct target_ops) <to_read_btrace>: Change parameters
3638 and return type to allow error reporting.
3639 (target_read_btrace): Change parameters and return type to allow
3641 * target.c (target_read_btrace): Update.
3642 * remote.c (remote_read_btrace): Support delta reads. Pass
3644 * NEWS: Announce it.
3646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3648 * record.h (record_btrace_frame_unwind)
3649 (record_btrace_tailcall_frame_unwind): New declarations.
3650 * dwarf2-frame: Include record.h
3651 (dwarf2_frame_cfa): Throw an error for btrace frames.
3652 * record-btrace.c: Include hashtab.h.
3653 (btrace_get_bfun_name): New.
3654 (btrace_call_history): Call btrace_get_bfun_name.
3655 (struct btrace_frame_cache): New.
3657 (bfcache_hash, bfcache_eq, bfcache_new): New.
3658 (btrace_get_frame_function): New.
3659 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
3660 (record_btrace_frame_this_id): Compute own id.
3661 (record_btrace_frame_prev_register): Provide PC, throw_error
3662 for all other registers.
3663 (record_btrace_frame_sniffer): Detect btrace frames.
3664 (record_btrace_tailcall_frame_sniffer): New.
3665 (record_btrace_frame_dealloc_cache): New.
3666 (record_btrace_frame_unwind): Add new functions.
3667 (record_btrace_tailcall_frame_unwind): New.
3668 (_initialize_record_btrace): Allocate cache.
3669 * btrace.c (btrace_clear): Call reinit_frame_cache.
3670 * NEWS: Announce it.
3672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3674 * record-btrace.c (record_btrace_set_replay)
3675 (record_btrace_goto_begin, record_btrace_goto_end)
3676 (record_btrace_goto): New.
3677 (init_record_btrace_ops): Initialize them.
3678 * NEWS: Announce it.
3680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3682 * record-btrace.c (record_btrace_find_new_threads)
3683 (record_btrace_thread_alive): New.
3684 (init_record_btrace_ops): Initialize to_find_new_threads and
3687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3689 * record-btrace.c (record_btrace_resume): New.
3690 (record_btrace_wait): New.
3691 (init_record_btrace_ops): Initialize to_wait and to_resume.
3693 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3695 * record-btrace.c (record_btrace_xfer_partial)
3696 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
3697 (record_btrace_allow_memory_access): New.
3698 (init_record_btrace_ops): Initialize new methods.
3699 * target.c (raw_memory_xfer_partial): Bail out if target reports
3700 that this memory is not available.
3702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3704 * target.h (target_ops) <to_insert_breakpoint>
3705 <to_remove_breakpoint>: Add target_ops parameter.
3706 (forward_target_insert_breakpoint): New.
3707 (forward_target_remove_breakpoint): New.
3708 (memory_remove_breakpoint, memory_insert_breakpoint):
3709 Add target_ops parameter.
3710 * target.c (target_insert_breakpoint): Split into this and ...
3711 (forward_target_insert_breakpoint): ... this.
3712 (target_remove_breakpoint): Split into this and ...
3713 (forward_target_remove_breakpoint): ... this.
3714 (debug_to_insert_breakpoint): Add target_ops parameter.
3715 Call forward_target_insert_breakpoint.
3716 (debug_to_remove_breakpoint): Add target_ops parameter.
3717 Call forward_target_remove_breakpoint.
3718 (update_current_target): Do not inherit or default to_insert_breakpoint
3719 and to_remove_breakpoint.
3720 * corelow.c (ignore): Add target_ops parameter.
3721 * exec.c (ignore): Add target_ops parameter.
3722 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
3723 Add target_ops parameter.
3724 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
3725 Add target_ops parameter.
3726 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
3727 Add target_ops parameter.
3728 * record-full.c (record_full_beneath_to_insert_breakpoint)
3729 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
3730 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
3731 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
3732 (record_full_core_remove_breakpoint): Add target_ops parameter.
3734 (record_full_beneath_to_insert_breakpoint_ops)
3735 (record_full_beneath_to_remove_breakpoint_ops)
3736 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
3737 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
3738 tmp_to_remove_breakpoint_ops,
3739 record_full_beneath_to_insert_breakpoint_ops, and
3740 record_full_beneath_to_remove_breakpoint_ops.
3741 * remote-m32r-sdi.c (m32r_insert_breakpoint)
3742 (m32r_remove_breakpoint): Add target_ops parameter.
3743 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
3744 Add target_ops parameter.
3745 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
3746 Add target_ops parameter.
3748 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 Markus Metzger <markus.t.metzger@intel.com>
3751 * record-btrace.c: Include frame-unwind.h.
3752 (record_btrace_frame_unwind_stop_reason)
3753 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
3754 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
3756 (init_record_btrace_ops): Install it.
3758 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3760 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
3763 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
3768 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 * frame-unwind.c: Include target.h.
3771 (frame_unwind_try_unwinder): New function with code from ...
3772 (frame_unwind_find_by_frame): ... here. New variable
3773 unwinder_from_target, call also target_get_unwinder)
3774 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
3775 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
3776 * target.h (struct target_ops): New fields to_get_unwinder and
3777 to_get_tailcall_unwinder.
3778 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
3780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3782 * record-btrace.c (record_btrace_fetch_registers)
3783 (record_btrace_store_registers)
3784 (record_btrace_to_prepare_to_store): New.
3785 (init_record_btrace_ops): Add the above.
3787 2014-01-16 Tom Tromey <tromey@redhat.com>
3789 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
3790 * target.h (struct target_ops) <to_prepare_to_store>: Add
3792 (target_prepare_to_store): Add argument.
3793 * target.c (debug_to_prepare_to_store): Add argument.
3794 (update_current_target): Update.
3795 * remote.c (remote_prepare_to_store): Add 'self' argument.
3796 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
3797 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
3798 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
3799 * record-full.c (record_full_core_prepare_to_store): Add 'self'
3801 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
3802 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
3803 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
3804 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
3805 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3809 * btrace.h (replay) <replay>: New.
3810 (btrace_is_replaying): New.
3811 * btrace.c (btrace_clear): Free replay iterator.
3812 (btrace_is_replaying): New.
3813 * record-btrace.c (record_btrace_is_replaying): New.
3814 (record_btrace_info): Print insn number if replaying.
3815 (record_btrace_insn_history): Start at replay position.
3816 (record_btrace_call_history): Start at replay position.
3817 (init_record_btrace_ops): Init to_record_is_replaying.
3819 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3821 * record-btrace.c (record_btrace_insn_history_range): Include
3823 (record_btrace_insn_history_from): Adjust range.
3824 (record_btrace_call_history_range): Include
3826 (record_btrace_call_history_from): Adjust range.
3827 * NEWS: Announce changes.
3829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3831 * record.h (enum record_print_flag)
3832 <record_print_indent_calls>: New.
3833 * record.c (get_call_history_modifiers): Recognize /c modifier.
3834 (_initialize_record): Document /c modifier.
3835 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3836 Reorder fields. Optionally indent the function name. Update
3838 * NEWS: Announce changes.
3840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3842 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3844 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3846 * btrace.c (ftrace_new_function): Start counting at one.
3847 * record-btrace.c (record_btrace_info): Adjust number of calls
3849 * NEWS: Announce it.
3851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3853 * record-btrace.c (btrace_call_history_insn_range): Print
3854 insn range as [begin, end].
3856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3858 * btrace.h (struct btrace_func_link): New.
3859 (enum btrace_function_flag): New.
3860 (struct btrace_inst): Rename to ...
3861 (struct btrace_insn): ...this. Update all users.
3862 (struct btrace_func) <ibegin, iend>: Remove.
3863 (struct btrace_func_link): New.
3864 (struct btrace_func): Rename to ...
3865 (struct btrace_function): ...this. Update all users.
3866 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3867 (number, level, flags>: New.
3868 (struct btrace_insn_iterator): Rename to ...
3869 (struct btrace_insn_history): ...this.
3871 (struct btrace_insn_iterator, btrace_call_iterator): New.
3872 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3873 (struct btrace_target_info) <begin, end, level>
3874 <insn_history, call_history>: New.
3875 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3876 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3877 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3878 (btrace_call_number, btrace_call_begin, btrace_call_end)
3879 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3880 (btrace_find_function_by_number, btrace_set_insn_history)
3881 (btrace_set_call_history): New.
3882 * btrace.c (btrace_init_insn_iterator)
3883 (btrace_init_func_iterator, compute_itrace): Remove.
3884 (ftrace_print_function_name, ftrace_print_filename)
3885 (ftrace_skip_file): Change
3887 (ftrace_init_func): Remove.
3888 (ftrace_debug): Use new btrace_function fields.
3889 (ftrace_function_switched): Also consider gaining and
3890 losing symbol information).
3891 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3892 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3893 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3895 (ftrace_new_function): Move. Remove debug print.
3896 (ftrace_update_lines, ftrace_update_insns): New.
3897 (ftrace_update_function): Check for call, ret, and jump.
3898 (compute_ftrace): Renamed to ...
3899 (btrace_compute_ftrace): ...this. Rewritten to compute call
3901 (btrace_fetch, btrace_clear): Updated.
3902 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3903 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3904 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3905 (btrace_call_number, btrace_call_begin, btrace_call_end)
3906 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3907 (btrace_find_function_by_number, btrace_set_insn_history)
3908 (btrace_set_call_history): New.
3909 * record-btrace.c (require_btrace): Use new btrace thread
3911 (record_btrace_info, btrace_insn_history)
3912 (record_btrace_insn_history, record_btrace_insn_history_range):
3913 Use new btrace thread info fields and new iterator.
3914 (btrace_func_history_src_line): Rename to ...
3915 (btrace_call_history_src_line): ...this. Use new btrace
3917 (btrace_func_history): Rename to ...
3918 (btrace_call_history): ...this. Use new btrace thread info
3919 fields and new iterator.
3920 (record_btrace_call_history, record_btrace_call_history_range):
3921 Use new btrace thread info fields and new iterator.
3923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3925 * frame.h (frame_id_build_unavailable_stack_special): New.
3926 * frame.c (frame_id_build_unavailable_stack_special): New.
3928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3930 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3931 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3932 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3934 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3935 (i386_insn_is_jump, i386_jmp_p): New.
3936 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3937 insn_is_jump to gdbarch.
3938 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3939 * gdbarch.h: Regenerated.
3940 * gdbarch.c: Regenerated.
3941 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3942 (default_insn_is_jump): New.
3943 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3944 (default_insn_is_jump): New.
3946 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3948 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3950 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3951 (btrace_read_type) <btrace_read_new>: Change to ...
3952 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3956 * common/linux-btrace.c (linux_read_btrace): Free trace from
3959 2014-01-15 Doug Evans <dje@google.com>
3961 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3964 2014-01-15 Tom Tromey <tromey@redhat.com>
3966 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3967 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3968 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3969 (set_objfile_main_name): New function.
3970 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3971 language_of_main>: New fields.
3972 (set_objfile_main_name): Declare.
3973 * symtab.c (find_main_name): Loop over objfiles to find the main
3975 (set_main_name): Now static.
3976 (get_main_info): Add comment.
3977 * symtab.h (set_main_name): Don't declare.
3979 2014-01-15 Tom Tromey <tromey@redhat.com>
3981 * symtab.c (main_progspace_key): New global.
3982 (struct main_info): New.
3983 (name_of_main, language_of_main): Remove.
3984 (get_main_info, main_info_cleanup): New function.
3985 (set_main_name, main_name, main_language): Use get_main_info.
3986 (_initialize_symtab): Initialize main_progspace_key.
3988 2014-01-15 Tom Tromey <tromey@redhat.com>
3990 * dbxread.c (process_one_symbol): Update.
3991 * dwarf2read.c (read_partial_die): Update.
3992 * symfile.c (set_initial_language): Call main_language.
3993 * symtab.c (language_of_main): Now static.
3994 (set_main_name): Add 'lang' parameter.
3995 (find_main_name): Update.
3996 (main_language): New function.
3997 (symtab_observer_executable_changed): Update.
3998 * symtab.h (set_main_name): Update.
3999 (language_of_main): Remove.
4000 (main_language): Declare.
4002 2014-01-15 Tom Tromey <tromey@redhat.com>
4004 * symfile.c (init_entry_point_info): Use new "initialized" field.
4006 * objfiles.h (struct entry_point) <initialized>: New field.
4007 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
4008 (struct objfile) <ei>: ...here. Remove.
4009 * objfiles.c (entry_point_address_query): Update.
4011 2014-01-15 Tom Tromey <tromey@redhat.com>
4013 * objfiles.c (entry_point_address_query): Relocate entry point
4015 (objfile_relocate1): Do not relocate entry point address.
4016 * objfiles.h (struct entry_info) <entry_point>: Update comment.
4017 <the_bfd_section_index>: New field.
4018 * symfile.c (init_entry_point_info): Find the entry point's
4021 2014-01-15 Tom Tromey <tromey@redhat.com>
4023 * solib-frv.c (enable_break): Use entry_point_address_query.
4025 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
4027 * NEWS: Add note on improved process record-replay on
4028 arm*-linux* targets.
4030 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
4032 * arm-tdep.c (enum arm_record_result): New enum.
4033 (arm_record_unsupported_insn): New function.
4034 (arm_record_coproc_data_proc): Removed.
4035 (thumb2_record_ld_st_multiple): New function.
4036 (thumb2_record_ld_st_dual_ex_tbb): New function.
4037 (thumb2_record_data_proc_sreg_mimm): New function.
4038 (thumb2_record_ps_dest_generic): New function.
4039 (thumb2_record_branch_misc_cntrl): New function.
4040 (thumb2_record_str_single_data): New function.
4041 (thumb2_record_ld_mem_hints): New function.
4042 (thumb2_record_ld_word): New function.
4043 (thumb2_record_lmul_lmla_div): New function.
4044 (thumb2_record_decode_insn_handler): New function.
4045 (decode_insn): Add thumb32 instruction handlers.
4047 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
4049 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
4050 (struct arm_linux_record_tdep): Declare.
4051 (arm_canonicalize_syscall): New function.
4052 (arm_all_but_pc_registers_record): New function.
4053 (arm_linux_syscall_record): New function.
4054 (arm_linux_init_abi): Add syscall recording constructs.
4055 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
4056 decoding. (arm_record_coproc_data_proc): Update arm syscall
4058 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
4059 <arm_syscall_record>: New field.
4060 * configure.tgt (arm*-*-linux*): Add linux-record.o to
4063 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
4065 * arm-tdep.c (thumb_record_misc): Update to use sp as base
4066 register for push instruction recording.
4068 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
4070 * arm-tdep.c (thumb_record_misc): Update to correct logical
4071 error while recording ldm, ldmia and pop instructions.
4073 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
4075 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
4077 2014-01-15 Pedro Alves <palves@redhat.com>
4079 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
4080 (go32_resume, go32_fetch_registers, store_register)
4081 (go32_store_registers, go32_prepare_to_store)
4082 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
4083 (go32_create_inferior, go32_can_run, go32_terminal_init)
4084 (go32_terminal_inferior, go32_terminal_ours): Delete forward
4087 2014-01-15 Tom Tromey <tromey@redhat.com>
4089 * target.h (async_callback_ftype): New typedef.
4090 (struct target_ops) <to_async>: Use it.
4092 2014-01-15 Joel Brobecker <brobecker@adacore.com>
4094 * python/py-value.c (get_field_type): Remove unnecessary curly
4095 braces for single-statement if block.
4097 2014-01-15 Joel Brobecker <brobecker@adacore.com>
4099 * python/py-type.c (convert_field): Add missing empty line
4102 2014-01-14 Doug Evans <dje@google.com>
4104 * symfile.h (expand_symtabs_matching): Renamed from
4105 expand_partial_symbol_names. Update prototype.
4106 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
4107 * symfile.c (expand_symtabs_matching): Renamed from
4108 expand_partial_symbol_names. New args file_matcher, kind.
4109 Rename arg fun to symbol_matcher.
4110 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
4111 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
4112 ada_expand_partial_symbol_name.
4113 (ada_make_symbol_completion_list): Update to call
4114 expand_symtabs_matching.
4115 (ada_add_global_exceptions): Call expand_symtabs_matching.
4116 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
4117 call map_symbol_filenames.
4118 * symtab.c (sources_info): Update to call map_symbol_filenames.
4119 (search_symbols): Call expand_symtabs_matching.
4120 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
4121 (default_make_symbol_completion_list_break_on): Update to call
4122 expand_symtabs_matching.
4123 (make_source_files_completion_list): Update to call
4124 map_symbol_filenames.
4126 2014-01-14 Doug Evans <dje@google.com>
4128 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
4129 (expand_symtabs_symbol_matcher_ftype): New typedef.
4130 (quick_symbol_functions.expand_symtabs_matching): Update to use.
4131 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
4132 * symfile.c (expand_partial_symbol_names): Update to use
4133 expand_symtabs_symbol_matcher_ftype.
4134 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
4135 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
4136 Arg name_matcher renamed to symbol_matcher.
4137 * psymtab.c (recursively_search_psymtabs): Update to use
4138 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
4140 (expand_symtabs_matching_via_partial): Update to use
4141 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
4142 Arg name_matcher renamed to symbol_matcher.
4144 2014-01-14 Doug Evans <dje@google.com>
4146 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
4147 (map_partial_symbol_filenames): Ditto.
4148 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
4149 (map_partial_symbol_filenames): Ditto.
4150 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
4151 (map_partial_symbol_filenames): Ditto.
4152 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
4153 (map_partial_symbol_filenames): Ditto.
4154 * symtab.c: Delete #include "psymtab.h".
4156 2014-01-14 Pedro Alves <palves@redhat.com>
4157 Tom Tromey <tromey@redhat.com>
4159 * infrun.c (use_displaced_stepping): Use find_record_target
4160 instead of RECORD_IS_USED.
4161 (adjust_pc_after_break): Use record_full_is_used instead of
4163 * record-btrace.c (record_btrace_open): Call record_preopen
4164 instead of checking RECORD_IS_USED.
4165 * record-full.c (record_full_shortname)
4166 (record_full_core_shortname): New globals.
4167 (record_full_is_used): New function.
4168 (find_full_open): Call record_preopen instead of checking
4170 (init_record_full_ops): Set the target's shortname to
4171 record_full_shortname.
4172 (init_record_full_core_ops): Set the target's shortname to
4173 record_full_core_shortname.
4174 * record-full.h (record_full_is_used): Declare.
4175 * record.c (find_record_target): Make extern.
4176 (record_preopen): New function.
4177 * record.h (RECORD_IS_USED): Delete macro.
4178 (find_record_target, record_preopen): Declare functions.
4180 2014-01-14 Yao Qi <yao@codesourcery.com>
4182 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
4183 'len''s type to ULONGEST.
4184 (core_xfer_shared_libraries_aix): Likewise.
4185 * gdbarch.c, gdbarch.h: Regenerated.
4186 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
4187 Change type of 'len' to ULONGEST.
4188 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
4189 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4191 2014-01-14 Yao Qi <yao@codesourcery.com>
4193 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
4194 type of 'len' to ULONGEST.
4195 (linux_xfer_osdata_processgroups): Likewise.
4196 (linux_xfer_osdata_threads): Likewise.
4197 (linux_xfer_osdata_fds): Likewise.
4198 (linux_xfer_osdata_isockets): Likewise.
4199 (linux_xfer_osdata_shm): Likewise.
4200 (linux_xfer_osdata_sem): Likewise.
4201 (linux_xfer_osdata_msg): Likewise.
4202 (linux_common_xfer_osdata): Likewise.
4203 (struct osdata_type) <getter>: Likewise.
4204 * common/linux-osdata.h (linux_common_xfer_osdata): Update
4207 2014-01-14 Yao Qi <yao@codesourcery.com>
4209 * target.h (target_xfer_partial_ftype): Update.
4210 (struct target_ops) <to_xfer_partial>: Change 'len' type to
4212 * aix-thread.c (aix_thread_xfer_partial): Change type of
4213 argument 'len' to ULONGEST.
4214 * auxv.c (procfs_xfer_auxv): Likewise.
4215 (ld_so_xfer_auxv): Likewise.
4216 (memory_xfer_auxv): Likewise.
4217 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4218 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4219 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4220 * corelow.c (core_xfer_partial): Likewise.
4221 * ctf.c (ctf_xfer_partial): Likewise.
4222 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
4224 (darwin_read_dyld_info): Likewise.
4225 (darwin_xfer_partial): Likewise.
4226 * exec.c (section_table_xfer_memory_partial): Likewise.
4227 (exec_xfer_partial): Likewise.
4228 * exec.h (section_table_xfer_memory_partial): Update
4230 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
4231 instead of plongest.
4232 (gnu_xfer_partial): Likewise.
4233 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
4234 (ia64_hpux_xfer_solib_got): Likewise.
4235 (ia64_hpux_xfer_partial): Likewise.
4236 * ia64-linux-nat.c (ia64_linux_xfer_partial):
4237 * inf-ptrace.c (inf_ptrace_xfer_partial):
4238 * inf-ttrace.c (inf_ttrace_xfer_partial):
4239 * linux-nat.c (linux_xfer_siginfo): Likewise.
4240 (linux_nat_xfer_partial): Likewise.
4241 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
4242 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
4243 * monitor.c (monitor_xfer_memory): Likewise.
4244 (monitor_xfer_partial): Likewise.
4245 * procfs.c (procfs_xfer_partial): Likewise.
4246 * record-full.c (record_full_xfer_partial): Likewise.
4247 (record_full_core_xfer_partial): Likewise.
4248 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
4249 instead of plongest.
4250 (gdbsim_xfer_partial): Likewise.
4251 * remote.c (remote_xfer_partial): Likewise.
4252 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
4253 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
4255 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4256 (rs6000_xfer_shared_libraries): Likewise.
4257 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4258 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4259 (sparc_xfer_partial): Likewise.
4260 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4261 (spu_xfer_partial): Likewise.
4262 * spu-multiarch.c (spu_xfer_partial): Likewise.
4263 * target.c (target_read_live_memory): Likewise.
4264 (memory_xfer_live_readonly_partial): Likewise.
4265 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
4266 (target_xfer_partial, default_xfer_partial): Likewise.
4267 (current_xfer_partial): Likewise.
4268 * tracepoint.c (tfile_xfer_partial): Likewise.
4269 * windows-nat.c (windows_xfer_memory): Likewise. Call
4270 pulongest instead of plongest.
4271 (windows_xfer_partial): Likewise.
4272 (windows_xfer_shared_libraries): Likewise.
4274 2014-01-14 Yao Qi <yao@codesourcery.com>
4276 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
4277 target_xfer_partial_ftype.
4279 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
4283 * valops.c (value_struct_elt_bitpos): New function
4284 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
4285 object to 'None' if the field name is an empty string ("").
4286 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
4287 attribute to look for a field when 'name' is 'None'.
4288 (get_field_type): New function
4290 2014-01-13 Doug Evans <dje@google.com>
4293 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
4294 (try_open_dwop_file): Ditto.
4295 * gdb_bfd.c: #include "vec.h".
4296 (bfdp): New typedef.
4297 (struct gdb_bfd_data): New member included_bfds.
4298 (gdb_bfd_unref): Unref all included bfds.
4299 (gdb_bfd_record_inclusion): New function.
4300 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
4302 2014-01-13 Tom Tromey <tromey@redhat.com>
4304 * gdbcore.h (deprecated_core_resize_section_table): Remove.
4306 2014-01-13 Tom Tromey <tromey@redhat.com>
4308 * defs.h (use_windows): Remove.
4309 * gdb.c (main): Update.
4310 * main.c (captured_main, gdb_main): Update.
4311 * main.h (struct captured_main_args) <use_windows>: Remove.
4312 * top.c (use_windows): Remove.
4314 2014-01-13 Tom Tromey <tromey@redhat.com>
4316 * defs.h (deprecated_flush_hook): Remove.
4318 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4321 * linux-thread-db.c (try_thread_db_load): Add parameter
4322 check_auto_load_safe. Move here the file_is_auto_load_safe call.
4323 (try_thread_db_load_from_pdir_1): Move it there from here.
4324 (try_thread_db_load_from_sdir): Update caller.
4325 (try_thread_db_load_from_dir): Move it there from here.
4327 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
4329 * regformats/regdat.sh: Always rewrite the register file.
4331 2014-01-13 Pedro Alves <palves@redhat.com>
4333 * Makefile.in (CHECK_HEADERS): New variable.
4334 (check-headers:): New rule.
4336 2014-01-13 Tom Tromey <tromey@redhat.com>
4338 * cli/cli-setshow.c (do_set_command): Update.
4339 * defs.h (deprecated_set_hook): Remove.
4340 * top.c (deprecated_set_hook): Remove.
4342 2014-01-13 Pedro Alves <palves@redhat.com>
4344 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
4345 the tracepoint if the PC is a pseudo-register.
4347 2014-01-13 Tom Tromey <tromey@redhat.com>
4349 * defs.h (XCALLOC): Remove.
4350 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
4351 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
4352 * dwarf2loc.c (allocate_piece_closure): Likewise.
4353 * elfread.c (elf_symfile_segments): Likewise.
4354 (elf_symfile_segments): Likewise.
4355 * gdbtypes.c (copy_type_recursive): Likewise.
4356 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
4357 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
4358 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
4360 * mt-tdep.c (mt_gdbarch_init): Likewise.
4361 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
4363 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
4364 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
4365 * registry.c (registry_alloc_data): Likewise.
4366 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
4367 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4368 * serial.c (serial_fdopen_ops): Likewise.
4369 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
4371 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
4372 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
4375 2014-01-13 Tom Tromey <tromey@redhat.com>
4377 * defs.h (XMALLOC): Remove.
4378 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
4379 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
4380 * cli-out.c (struct ui_out *): Likewise.
4381 * cli/cli-dump.c (add_dump_command): Likewise.
4382 (add_dump_command): Likewise.
4383 * complaints.c (get_complaints): Likewise.
4384 (find_complaint): Likewise.
4385 * dwarf2-frame.c (execute_cfa_program): Likewise.
4386 * dwarf2read.c (abbrev_table_read_table): Likewise.
4387 * gdbarch.sh: Likewise.
4388 * gdbarch.c: Rebuild.
4389 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
4390 * interps.c (interp_new): Likewise.
4391 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
4392 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
4393 * mi/mi-console.c (mi_console_file_new): Likewise.
4394 * mi/mi-interp.c (mi_interpreter_init): Likewise.
4395 * mi/mi-out.c (mi_out_new): Likewise.
4396 * mi/mi-parse.c (mi_parse): Likewise.
4397 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
4398 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
4399 * observer.c (xalloc_observer_list_node): Likewise.
4400 * regcache.c (regcache_xmalloc_1): Likewise.
4401 * reggroups.c (reggroup_new): Likewise.
4402 (_initialize_reggroup): Likewise.
4403 * registry.c (register_data_with_cleanup): Likewise.
4404 * remote.c (remote_notif_stop_alloc_reply): Likewise.
4405 * ser-base.c (serial_ttystate): Likewise.
4406 * ser-mingw.c (make_pipe_state): Likewise.
4407 * ser-pipe.c (pipe_open): Likewise.
4408 * serial.c (serial_open): Likewise.
4409 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4410 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4411 (tui_alloc_win_info): Likewise.
4412 (tui_add_content_elements): Likewise.
4413 * tui/tui-file.c (tui_file_new): Likewise.
4414 * tui/tui-out.c (tui_out_new): Likewise.
4415 * ui-file.c (mem_file_new): Likewise.
4416 * ui-out.c (push_level): Likewise.
4417 (make_cleanup_ui_out_end): Likewise.
4418 (append_header_to_list): Likewise.
4419 (ui_out_new): Likewise.
4420 * user-regs.c (user_reg_add_builtin): Likewise.
4422 2014-01-13 Tom Tromey <tromey@redhat.com>
4424 * defs.h (XZALLOC): Remove.
4425 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
4426 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
4427 (get_ada_tasks_inferior_data): Likewise.
4428 * auto-load.c (get_auto_load_pspace_data): Likewise.
4429 * auxv.c (get_auxv_inferior_data): Likewise.
4430 * bfd-target.c (target_bfd_reopen): Likewise.
4431 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
4432 (deprecated_insert_raw_breakpoint): Likewise.
4433 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
4434 * corelow.c (core_open): Likewise.
4435 * darwin-nat.c (darwin_check_new_threads): Likewise.
4436 (darwin_attach_pid): Likewise.
4437 * dummy-frame.c (dummy_frame_push): Likewise.
4438 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4439 * dwarf2loc.c (allocate_piece_closure): Likewise.
4440 * elfread.c (elf_symfile_segments): Likewise.
4441 * eval.c (ptrmath_type_p): Likewise.
4442 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
4443 * gdbtypes.c (alloc_type_arch): Likewise.
4444 (alloc_type_instance): Likewise.
4445 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
4446 * inf-child.c (inf_child_can_use_agent): Likewise.
4447 * inflow.c (get_inflow_inferior_data): Likewise.
4448 * infrun.c (save_infcall_suspend_state): Likewise.
4449 * jit.c (jit_reader_load): Likewise.
4450 (get_jit_objfile_data): Likewise.
4451 (get_jit_program_space_data): Likewise.
4452 (jit_object_open_impl): Likewise.
4453 (jit_symtab_open_impl): Likewise.
4454 (jit_block_open_impl): Likewise.
4455 (jit_frame_sniffer): Likewise.
4456 * linux-fork.c (add_fork): Likewise.
4457 * maint.c (make_command_stats_cleanup): Likewise.
4458 * objfiles.c (get_objfile_pspace_data): Likewise.
4459 * opencl-lang.c (struct lval_closure): Likewise.
4460 * osdata.c (osdata_start_osdata): Likewise.
4461 * progspace.c (new_address_space): Likewise.
4462 (add_program_space): Likewise.
4463 * remote-sim.c (get_sim_inferior_data): Likewise.
4464 * sh-tdep.c (sh_gdbarch_init): Likewise.
4465 * skip.c (Ignore): Likewise.
4466 (skip_delete_command): Likewise.
4467 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
4468 (library_list_start_library): Likewise.
4469 (solib_aix_current_sos): Likewise.
4470 * solib-darwin.c (get_darwin_info): Likewise.
4471 (darwin_current_sos): Likewise.
4472 * solib-dsbt.c (get_dsbt_info): Likewise.
4473 * solib-ia64-hpux.c (new_so_list): Likewise.
4474 (ia64_hpux_get_solib_linkage_addr): Likewise.
4475 * solib-spu.c (append_ocl_sos): Likewise.
4476 (spu_current_sos): Likewise.
4477 * solib-svr4.c (get_svr4_info): Likewise.
4478 (svr4_keep_data_in_core): Likewise.
4479 (library_list_start_library): Likewise.
4480 (svr4_default_sos): Likewise.
4481 (svr4_read_so_list): Likewise.
4482 * solib-target.c (library_list_start_library): Likewise.
4483 (solib_target_current_sos): Likewise.
4484 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4485 * symfile-debug.c (install_symfile_debug_logging): Likewise.
4486 * symfile.c (default_symfile_segments): Likewise.
4487 * target-descriptions.c (tdesc_data_init): Likewise.
4488 (tdesc_create_reg): Likewise.
4489 (struct tdesc_type *): Likewise.
4490 (tdesc_create_vector): Likewise.
4491 (tdesc_set_struct_size): Likewise.
4492 (struct tdesc_type *): Likewise.
4493 (tdesc_free_feature): Likewise.
4494 (tdesc_create_feature): Likewise.
4495 * windows-nat.c (windows_add_thread): Likewise.
4496 (windows_make_so): Likewise.
4497 * xml-support.c (gdb_xml_body_text): Likewise.
4498 (gdb_xml_create_parser_and_cleanup): Likewise.
4499 (xml_process_xincludes): Likewise.
4500 * xml-syscall.c (allocate_syscalls_info): Likewise.
4501 (syscall_create_syscall_desc): Likewise.
4503 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
4505 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
4506 function, with code from i386_stap_parse_special_token.
4507 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4508 (i386_stap_parse_special_token): Move code to the two functions
4511 2014-01-09 Pedro Alves <palves@redhat.com>
4512 Hui Zhu <hui@codesourcery.com>
4515 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
4516 bp_err_string. Don't mark the location shlib_disabled if the
4517 error thrown wasn't a generic or memory error. Catch errors
4518 thrown while inserting breakpoints in overlayed code. Output
4519 error message of software breakpoints.
4520 * remote.c (remote_insert_breakpoint): If this breakpoint has
4521 target-side commands but this stub doesn't support Z0 packets,
4522 throw NOT_SUPPORTED_ERROR error.
4523 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
4524 * target.h (target_insert_breakpoint): Extend comment.
4525 (target_insert_hw_breakpoint): Add comment.
4527 2014-01-08 Pedro Alves <palves@redhat.com>
4529 * remote.c (remote_add_thread): Add threads silently if starting
4531 (remote_notice_new_inferior): If in all-stop, and starting up,
4532 don't call notice_new_inferior.
4533 (get_current_thread): New function, factored out from ...
4534 (add_current_inferior_and_thread): ... this. Adjust.
4535 (remote_start_remote) <all-stop>: Fetch the thread list. If we
4536 found any thread, then select the remote's current thread as GDB's
4539 2014-01-08 Joel Brobecker <brobecker@adacore.com>
4541 * NEWS: Create a new section for the next release branch.
4542 Rename the section of the current branch, now that it has
4545 2014-01-08 Joel Brobecker <brobecker@adacore.com>
4547 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
4548 * version.in: Bump version to 7.7.50.DATE-cvs.
4550 2014-01-08 Yao Qi <yao@codesourcery.com>
4552 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
4553 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
4554 (spu_xfer_partial): Cast 'buf' to 'const char *'.
4556 2014-01-08 Yao Qi <yao@codesourcery.com>
4558 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
4559 return value of bfd_get_filename to symbol_file_add_from_bfd.
4561 2014-01-08 Pierre Muller <muller@sourceware.org>
4564 * coff-pe-read.c (struct read_pe_section_data): Add index field.
4565 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
4566 to prim_record_mininal_symbol_and_info.
4567 (add_pe_forwarded_sym): Use known section number of forwarded symbol
4568 in call to prim_record_minimal_symbol_and_info.
4569 (read_pe_exported_syms): Set index field of section_data.
4571 2014-01-07 Andrew Pinski <apinski@cavium.com>
4573 * features/aarch64-core.xml (cpsr): Change to be 64bit.
4574 * features/aarch64.c: Regenerate.
4576 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
4578 * target.c (return_null): Define.
4579 (update_current_target): Use it instead of return_zero for
4580 functions that return a pointer.
4582 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4584 * source.c (add_path): Fix check for duplicated paths in the previously
4587 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
4589 * ada-lang.c: Remove duplicated include statements.
4590 * alphabsd-nat.c: Ditto.
4591 * amd64-darwin-tdep.c: Ditto.
4592 * amd64fbsd-nat.c: Ditto.
4593 * auto-load.c: Ditto.
4595 * breakpoint.c: Ditto.
4597 * fork-child.c: Ditto.
4598 * gdb_usleep.c: Ditto.
4599 * i386-darwin-tdep.c: Ditto.
4600 * i386fbsd-nat.c: Ditto.
4602 * inferior.c: Ditto.
4604 * linux-nat.c: Ditto.
4605 * linux-tdep.c: Ditto.
4606 * m68kbsd-nat.c: Ditto.
4607 * m68klinux-nat.c: Ditto.
4608 * microblaze-tdep.c: Ditto.
4609 * mips-linux-tdep.c: Ditto.
4610 * mn10300-tdep.c: Ditto.
4611 * nto-tdep.c: Ditto.
4612 * opencl-lang.c: Ditto.
4614 * printcmd.c: Ditto.
4615 * regcache.c: Ditto.
4616 * remote-m32r-sdi.c: Ditto.
4620 * tilegx-linux-nat.c: Ditto.
4621 * tilegx-tdep.c: Ditto.
4622 * tracepoint.c: Ditto.
4624 * vaxbsd-nat.c: Ditto.
4625 * windows-nat.c: Ditto.
4626 * xtensa-tdep.c: Ditto.
4628 2014-01-07 Yao Qi <yao@codesourcery.com>
4630 * spu-linux-nat.c (_initialize_spu_nat): Declare.
4632 2014-01-07 Yao Qi <yao@codesourcery.com>
4633 Joel Brobecker <brobecker@adacore.com>
4635 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
4636 (pdc_write_regs): Likewise.
4637 (fetch_regs_kernel_thread): Likewise.
4638 (store_regs_kernel_thread): Likewise.
4640 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4642 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
4643 tagged type objects to their actual type.
4645 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4647 * ada-valprint.c (print_field_values): Add "language" parameter.
4648 Update calls to print_field_values and print_variant_part.
4649 Pass new parameter "language" in call to val_print instead
4650 of "current_language". Replace call to ada_val_print by call
4652 (print_variant_part): Add "language" parameter.
4653 (ada_val_print_struct_union): Update call to print_field_values.
4655 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4657 * ada-valprint.c (ui_memcpy): Delete.
4658 (ada_print_floating): Update documentation. Add empty line
4659 between between function documentation and implementation.
4660 Delete variable "buffer". Use ui_file_xstrdup in place of
4661 ui_file_put. Minor adjustments following this change.
4663 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4665 * ada-valprint.c (ada_val_print_string): New function,
4666 extracted from ada_val_print_array.
4667 (ada_val_print_array): Replace extracted code by call
4668 to ada_val_print_string followed by a return. Move
4669 "else" branch to the function's top block.
4671 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4673 * ada-valprint.c (ada_val_print_array): Move implementation
4674 down. Rename parameter "offset" and "val" into "offset_aligned"
4675 and "original_value" respectively. Add parameter "offset".
4677 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4679 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
4680 re-organizing the code. Change the "???" message printed
4681 when target type is a TYPE_CODE_UNDEF into
4682 "<ref to undefined type>".
4684 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4686 * ada-valprint.c (print_record): Delete, implementation inlined...
4687 (ada_val_print_struct_union): ... here. Remove call to
4688 ada_check_typedef in inlined implementation.
4690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4692 * ada-valprint.c (ada_val_print_gnat_array): New function,
4693 extracted from ada_val_print_1;
4694 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
4695 (ada_val_print_flt, ada_val_print_struct_union)
4696 (ada_val_print_ref): Likewise.
4697 (ada_val_print_1): Delete variables i and elttype.
4698 Replace extracted-out code by call to corresponding
4701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4703 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
4705 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4707 * ada-valprint.c (ada_val_print_1): Replace calls to
4708 ada_val_print_1 by calls to val_print.
4710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4712 * ada-valprint.c (ada_val_print_1): Add parameter "language".
4713 Update calls to self accordingly. Replace calls to c_val_print
4714 by calls to val_print.
4716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4718 * ada-valprint.c (print_record): Delete declaration.
4719 (adjust_type_signedness, ada_val_print_1): Likewise.
4720 (ada_val_print): Move function implementation down.
4721 (print_variant_part, print_field_values, print_record):
4722 Move function implementation up.
4724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4726 * python/py-type.c (typy_get_name): New function.
4727 (type_object_getset): Add entry for attribute "name".
4728 * NEWS: Add entry mentioning this new attribute.
4730 2014-01-07 Yao Qi <yao@codesourcery.com>
4732 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
4735 2014-01-07 Yao Qi <yao@codesourcery.com>
4737 * gnu-nat.c (info_port_rights): Add qualifier const to
4740 2014-01-07 Yao Qi <yao@codesourcery.com>
4742 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
4744 2014-01-07 Yao Qi <yao@codesourcery.com>
4746 * gnu-nat.c (make_inf) Update declaration.
4747 (make_inf): Make it static.
4748 (inf_set_traced): Likewise.
4749 (inf_port_to_thread, inf_task_died_status): Likewise.
4751 2014-01-07 Yao Qi <yao@codesourcery.com>
4753 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
4755 2014-01-07 Yao Qi <yao@codesourcery.com>
4757 * gnu-nat.c (_initialize_gnu_nat): Declare.
4759 2014-01-07 Yao Qi <yao@codesourcery.com>
4761 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
4763 (struct gdbarch_info) <byte_order>: Change type to
4765 <byte_order_for_code>: Likewise.
4766 * gdbarch.c, gdbarch.h: Regenerated.
4768 2014-01-06 Sasha Smundak <asmundak@google.com>
4770 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
4772 2014-01-06 Tom Tromey <tromey@redhat.com>
4774 * doublest.c (convert_doublest_to_floatformat): Use const, not
4776 * somread.c (som_symtab_read): Likewise.
4778 2014-01-07 Hui Zhu <hui@codesourcery.com>
4780 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
4781 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
4782 (gdb_bfd_fopen): Ditto.
4783 (gdb_bfd_openr): Ditto.
4784 (gdb_bfd_openw): Ditto.
4785 (gdb_bfd_openr_iovec): Ditto.
4786 (gdb_bfd_fdopenr): Ditto.
4787 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
4788 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
4790 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
4792 * symfile-mem.c (symbol_file_add_from_memory): Removed
4793 gdb_bfd_stash_filename.
4795 2014-01-03 Doug Evans <dje@google.com>
4797 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
4800 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4802 Update year range in copyright notice of all files.
4804 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4806 * top.c (print_gdb_version): Set copyright year to 2014.
4808 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4810 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4812 For older changes see ChangeLog-2013.
4818 version-control: never