1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target-delegates.c: Rebuild.
4 * target.c (update_current_target): Don't inherit or default
6 * target.h (struct target_ops) <to_has_exited>: Use
7 TARGET_DEFAULT_RETURN..
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
13 to_set_syscall_catchpoint.
15 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
16 TARGET_DEFAULT_RETURN.
18 2014-02-19 Tom Tromey <tromey@redhat.com>
20 * target-delegates.c: Rebuild.
21 * target.c (update_current_target): Don't inherit or default
22 to_insert_exec_catchpoint.
23 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
24 TARGET_DEFAULT_RETURN.
26 2014-01-08 Tom Tromey <tromey@redhat.com>
28 * target-delegates.c: Rebuild.
29 * target.c (update_current_target): Don't inherit or default
30 to_insert_exec_catchpoint.
31 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
32 TARGET_DEFAULT_RETURN.
34 2014-02-19 Tom Tromey <tromey@redhat.com>
36 * target-delegates.c: Rebuild.
37 * target.c (update_current_target): Don't inherit or default
38 to_remove_vfork_catchpoint.
39 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
40 TARGET_DEFAULT_RETURN.
42 2014-02-19 Tom Tromey <tromey@redhat.com>
44 * target-delegates.c: Rebuild.
45 * target.c (update_current_target): Don't inherit or default
46 to_insert_vfork_catchpoint.
47 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
48 TARGET_DEFAULT_RETURN.
50 2014-02-19 Tom Tromey <tromey@redhat.com>
52 * target-delegates.c: Rebuild.
53 * target.c (update_current_target): Don't inherit or default
54 to_remove_fork_catchpoint.
55 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
56 TARGET_DEFAULT_RETURN.
58 2014-02-19 Tom Tromey <tromey@redhat.com>
60 * target-delegates.c: Rebuild.
61 * target.c (update_current_target): Don't inherit or default
62 to_insert_fork_catchpoint.
63 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
64 TARGET_DEFAULT_RETURN.
66 2014-02-19 Tom Tromey <tromey@redhat.com>
68 * target-delegates.c: Rebuild.
69 * target.c (update_current_target): Don't inherit or default
70 to_post_startup_inferior.
71 * target.h (struct target_ops) <to_post_startup_inferior>: Use
72 TARGET_DEFAULT_IGNORE.
74 2014-02-19 Tom Tromey <tromey@redhat.com>
76 * target-delegates.c: Rebuild.
77 * target.c (update_current_target): Don't inherit or default
79 * target.h (struct target_ops) <to_load>: Use
80 TARGET_DEFAULT_NORETURN.
82 2014-02-19 Tom Tromey <tromey@redhat.com>
84 * target-delegates.c: Rebuild.
85 * target.c (update_current_target): Don't inherit or default
87 * target.h (struct target_ops) <to_terminal_info>: Use
90 2014-02-19 Tom Tromey <tromey@redhat.com>
92 * target-delegates.c: Rebuild.
93 * target.c (update_current_target): Don't inherit or default
94 to_terminal_save_ours.
95 * target.h (struct target_ops) <to_terminal_save_ours>: Use
96 TARGET_DEFAULT_IGNORE.
98 2014-02-19 Tom Tromey <tromey@redhat.com>
100 * target-delegates.c: Rebuild.
101 * target.c (update_current_target): Don't inherit or default
103 * target.h (struct target_ops) <to_terminal_ours>: Use
104 TARGET_DEFAULT_IGNORE.
106 2014-02-19 Tom Tromey <tromey@redhat.com>
108 * target-delegates.c: Rebuild.
109 * target.c (update_current_target): Don't inherit or default
110 to_terminal_ours_for_output.
111 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
112 TARGET_DEFAULT_IGNORE.
114 2014-02-19 Tom Tromey <tromey@redhat.com>
116 * target-delegates.c: Rebuild.
117 * target.c (update_current_target): Don't inherit or default
118 to_terminal_inferior.
119 * target.h (struct target_ops) <to_terminal_inferior>: Use
120 TARGET_DEFAULT_IGNORE.
122 2014-02-19 Tom Tromey <tromey@redhat.com>
124 * target-delegates.c: Rebuild.
125 * target.c (update_current_target): Don't inherit or default
127 * target.h (struct target_ops) <to_terminal_init>: Use
128 TARGET_DEFAULT_IGNORE.
130 2014-02-19 Tom Tromey <tromey@redhat.com>
132 * target-delegates.c: Rebuild.
133 * target.c (update_current_target): Don't inherit or default
134 to_can_accel_watchpoint_condition.
135 * target.h (struct target_ops)
136 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
138 2014-02-19 Tom Tromey <tromey@redhat.com>
140 * target-delegates.c: Rebuild.
141 * target.c (update_current_target): Don't inherit or default
142 to_region_ok_for_hw_watchpoint.
143 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
144 Use TARGET_DEFAULT_FUNC.
146 2014-02-19 Tom Tromey <tromey@redhat.com>
148 * target-delegates.c: Rebuild.
149 * target.c (update_current_target): Don't inherit or default
150 to_watchpoint_addr_within_range.
151 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
152 Use TARGET_DEFAULT_FUNC.
154 2014-02-19 Tom Tromey <tromey@redhat.com>
156 * target-delegates.c: Rebuild.
157 * target.c (update_current_target): Don't inherit or default
158 to_remove_watchpoint.
159 * target.h (struct target_ops) <to_remove_watchpoint>: Use
160 TARGET_DEFAULT_NORETURN.
162 2014-02-19 Tom Tromey <tromey@redhat.com>
164 * target-delegates.c: Rebuild.
165 * target.c (update_current_target): Don't inherit or default
166 to_insert_watchpoint.
167 * target.h (struct target_ops) <to_insert_watchpoint>: Use
168 TARGET_DEFAULT_RETURN.
170 2014-02-19 Tom Tromey <tromey@redhat.com>
172 * target-delegates.c: Rebuild.
173 * target.c (update_current_target): Don't inherit or default
174 to_remove_hw_breakpoint.
175 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
176 TARGET_DEFAULT_RETURN.
178 2014-02-19 Tom Tromey <tromey@redhat.com>
180 * target-delegates.c: Rebuild.
181 * target.c (update_current_target): Don't inherit or default
182 to_insert_hw_breakpoint.
183 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
184 TARGET_DEFAULT_RETURN.
186 2014-02-19 Tom Tromey <tromey@redhat.com>
188 * target-delegates.c: Rebuild.
189 * target.c (update_current_target): Don't inherit or default
190 to_can_use_hw_breakpoint.
191 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
192 TARGET_DEFAULT_RETURN.
194 2014-02-19 Tom Tromey <tromey@redhat.com>
196 * target-delegates.c: Rebuild.
197 * target.c (update_current_target): Don't inherit or default
199 * target.h (struct target_ops) <to_files_info>: Use
200 TARGET_DEFAULT_IGNORE.
202 2014-02-19 Tom Tromey <tromey@redhat.com>
204 * target-delegates.c: Rebuild.
205 * target.c (update_current_target): Don't inherit or default
207 * target.h (struct target_ops) <to_store>: Use
208 TARGET_DEFAULT_NORETURN.
210 2014-02-19 Tom Tromey <tromey@redhat.com>
212 * target-delegates.c: Rebuild.
213 * target.c (update_current_target): Don't inherit or default
215 * target.h (struct target_ops) <to_post_attach>: Use
216 TARGET_DEFAULT_IGNORE.
218 2014-02-19 Tom Tromey <tromey@redhat.com>
220 * target-delegates.c: Rebuild.
221 * target.c (update_current_target): Don't inherit or default
223 (default_rcmd): New function.
224 (do_monitor_command): Unconditionally delegate.
225 * target.h (struct target_ops) <to_rmcd>: Use
228 2014-02-19 Tom Tromey <tromey@redhat.com>
230 * target-delegates.c: Rebuild.
231 * target.c (init_dummy_target): Don't initialize to_attach.
232 (target_attach): Unconditionally delegate.
233 * target.h (struct target_ops) <to_attach>: Use
236 2014-02-19 Tom Tromey <tromey@redhat.com>
238 * target-delegates.c: Rebuild.
239 * target.c (target_detach): Unconditionally delegate.
240 (init_dummy_target): Don't initialize to_detach.
241 * target.h (struct target_ops) <to_detach>: Use
242 TARGET_DEFAULT_IGNORE.
244 2014-02-19 Tom Tromey <tromey@redhat.com>
246 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
248 (target_augmented_libraries_svr4_read): Add argument.
249 * target.c (update_current_target): Update.
250 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
253 2014-02-19 Tom Tromey <tromey@redhat.com>
255 * target.h (struct target_ops) <to_call_history_range>: Add
257 * target.c (target_call_history_range): Add argument.
258 * record-btrace.c (record_btrace_call_history_range): Add 'self'
260 (record_btrace_call_history_from): Update.
262 2014-02-19 Tom Tromey <tromey@redhat.com>
264 * target.h (struct target_ops) <to_call_history_from>: Add
266 * target.c (target_call_history_from): Add argument.
267 * record-btrace.c (record_btrace_call_history_from): Add 'self'
270 2014-02-19 Tom Tromey <tromey@redhat.com>
272 * target.h (struct target_ops) <to_call_history>: Add argument.
273 * target.c (target_call_history): Add argument.
274 * record-btrace.c (record_btrace_call_history): Add 'self'
277 2014-02-19 Tom Tromey <tromey@redhat.com>
279 * target.h (struct target_ops) <to_insn_history_range>: Add
281 * target.c (target_insn_history_range): Add argument.
282 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
284 (record_btrace_insn_history_from): Update.
286 2014-02-19 Tom Tromey <tromey@redhat.com>
288 * target.h (struct target_ops) <to_insn_history_from>: Add
290 * target.c (target_insn_history_from): Add argument.
291 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
294 2014-02-19 Tom Tromey <tromey@redhat.com>
296 * target.h (struct target_ops) <to_insn_history>: Add argument.
297 * target.c (target_insn_history): Add argument.
298 * record-btrace.c (record_btrace_insn_history): Add 'self'
301 2014-02-19 Tom Tromey <tromey@redhat.com>
303 * target.h (struct target_ops) <to_goto_record>: Add argument.
304 * target.c (target_goto_record): Add argument.
305 * record-full.c (record_full_goto): Add 'self' argument.
306 * record-btrace.c (record_btrace_goto): Add 'self' argument.
308 2014-02-19 Tom Tromey <tromey@redhat.com>
310 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
311 * target.c (target_goto_record_end): Add argument.
312 * record-full.c (record_full_goto_end): Add 'self' argument.
313 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
315 2014-02-19 Tom Tromey <tromey@redhat.com>
317 * target.h (struct target_ops) <to_goto_record_begin>: Add
319 * target.c (target_goto_record_begin): Add argument.
320 * record-full.c (record_full_goto_begin): Add 'self' argument.
321 * record-btrace.c (record_btrace_goto_begin): Add 'self'
324 2014-02-19 Tom Tromey <tromey@redhat.com>
326 * target.h (struct target_ops) <to_record_is_replaying>: Add
328 * target.c (target_record_is_replaying): Add argument.
329 * record-full.c (record_full_is_replaying): Add 'self' argument.
330 * record-btrace.c (record_btrace_is_replaying): Add 'self'
332 (record_btrace_xfer_partial, record_btrace_store_registers)
333 (record_btrace_prepare_to_store, record_btrace_resume)
334 (record_btrace_wait, record_btrace_decr_pc_after_break)
335 (record_btrace_find_new_threads, record_btrace_thread_alive):
338 2014-02-19 Tom Tromey <tromey@redhat.com>
340 * target.h (struct target_ops) <to_delete_record>: Add argument.
341 * target.c (target_delete_record): Add argument.
342 * record-full.c (record_full_delete): Add 'self' argument.
344 2014-02-19 Tom Tromey <tromey@redhat.com>
346 * target.h (struct target_ops) <to_save_record>: Add argument.
347 * target.c (target_save_record): Add argument.
348 * record-full.c (record_full_save): Add 'self' argument.
349 (record_full_save): Add 'self' argument.
351 2014-02-19 Tom Tromey <tromey@redhat.com>
353 * target.h (struct target_ops) <to_info_record>: Add argument.
354 * target.c (target_info_record): Add argument.
355 * record.c (info_record_command): Add argument.
356 * record-full.c (record_full_info): Add 'self' argument.
357 * record-btrace.c (record_btrace_info): Add 'self' argument.
359 2014-02-19 Tom Tromey <tromey@redhat.com>
361 * target.h (struct target_ops) <to_stop_recording>: Add argument.
362 * target.c (target_stop_recording): Add argument.
363 * record.c (record_stop): Add argument.
364 * record-btrace.c (record_btrace_stop_recording): Add 'self'
367 2014-02-19 Tom Tromey <tromey@redhat.com>
369 * target.h (struct target_ops) <to_read_btrace>: Add argument.
370 * target.c (struct target_ops) <to_read_btrace>: Add argument.
371 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
373 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
374 (_initialize_amd64_linux_nat): Use it.
375 * i386-linux-nat.c (i386_linux_read_btrace): New function.
376 (_initialize_i386_linux_nat): Use it.
378 2014-02-19 Tom Tromey <tromey@redhat.com>
380 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
381 * target.c (target_teardown_btrace): Add argument.
382 * remote.c (remote_teardown_btrace): Add 'self' argument.
383 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
385 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
388 2014-02-19 Tom Tromey <tromey@redhat.com>
390 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
391 * target.c (target_disable_btrace): Add argument.
392 * remote.c (remote_disable_btrace): Add 'self' argument.
393 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
395 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
398 2014-02-19 Tom Tromey <tromey@redhat.com>
400 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
401 * target.c (target_enable_btrace): Add argument.
402 * remote.c (remote_enable_btrace): Add 'self' argument.
403 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
405 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
408 2014-02-19 Tom Tromey <tromey@redhat.com>
410 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
411 (target_can_use_agent): Add argument.
412 * target.c (update_current_target): Update.
413 * remote.c (remote_can_use_agent): Add 'self' argument.
414 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
416 2014-02-19 Tom Tromey <tromey@redhat.com>
418 * target.h (struct target_ops) <to_use_agent>: Add argument.
419 (target_use_agent): Add argument.
420 * target.c (update_current_target): Update.
421 * remote.c (remote_use_agent): Add 'self' argument.
422 * inf-child.c (inf_child_use_agent): Add 'self' argument.
424 2014-02-19 Tom Tromey <tromey@redhat.com>
426 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
427 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
428 (target_traceframe_info): Add argument.
429 * target.c (update_current_target): Update.
430 * remote.c (remote_traceframe_info): Add 'self' argument.
431 * ctf.c (ctf_traceframe_info): Add 'self' argument.
433 2014-02-19 Tom Tromey <tromey@redhat.com>
435 * target.h (target_static_tracepoint_markers_by_strid): Add
437 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
439 * target.c (update_current_target): Update.
440 * remote.c (struct target_ops)
441 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
442 * linux-nat.c (struct target_ops)
443 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
445 2014-02-19 Tom Tromey <tromey@redhat.com>
447 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
449 (target_static_tracepoint_marker_at): Add argument.
450 * target.c (update_current_target): Update.
451 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
454 2014-02-19 Tom Tromey <tromey@redhat.com>
456 * target.h (struct target_ops) <to_set_permissions>: Add argument.
457 (target_set_permissions): Add argument.
458 * target.c (update_current_target): Update.
459 * remote.c (remote_set_permissions): Add 'self' argument.
460 (remote_start_remote): Update.
462 2014-02-19 Tom Tromey <tromey@redhat.com>
464 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
465 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
466 (target_get_tib_address): Add argument.
467 * target.c (update_current_target): Update.
468 * remote.c (remote_get_tib_address): Add 'self' argument.
470 2014-02-19 Tom Tromey <tromey@redhat.com>
472 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
473 (target_set_trace_notes): Add argument.
474 * target.c (update_current_target): Update.
475 * remote.c (remote_set_trace_notes): Add 'self' argument.
477 2014-02-19 Tom Tromey <tromey@redhat.com>
479 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
481 (target_set_trace_buffer_size): Add argument.
482 * target.c (update_current_target): Update.
483 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
485 2014-02-19 Tom Tromey <tromey@redhat.com>
487 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
489 (target_set_circular_trace_buffer): Add argument.
490 * target.c (update_current_target): Update.
491 * remote.c (remote_set_circular_trace_buffer): Add 'self'
494 2014-02-19 Tom Tromey <tromey@redhat.com>
496 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
498 (target_set_disconnected_tracing): Add argument.
499 * target.c (update_current_target): Update.
500 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
502 2014-02-19 Tom Tromey <tromey@redhat.com>
504 * target.h (struct target_ops)
505 <to_get_min_fast_tracepoint_insn_len>: Add argument.
506 (target_get_min_fast_tracepoint_insn_len): Add argument.
507 * target.c (update_current_target): Update.
508 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
511 2014-02-19 Tom Tromey <tromey@redhat.com>
513 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
515 (target_get_raw_trace_data): Add argument.
516 * target.c (update_current_target): Update.
517 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
519 2014-02-19 Tom Tromey <tromey@redhat.com>
521 * target.h (struct target_ops) <to_upload_trace_state_variables>:
523 (target_upload_trace_state_variables): Add argument.
524 * target.c (update_current_target): Update.
525 * remote.c (remote_upload_trace_state_variables): Add 'self'
527 (remote_start_remote): Update.
529 2014-02-19 Tom Tromey <tromey@redhat.com>
531 * target.h (struct target_ops) <to_upload_tracepoints>: Add
533 (target_upload_tracepoints): Add argument.
534 * target.c (update_current_target): Update.
535 * remote.c (remote_upload_tracepoints): Add 'self' argument.
536 (remote_start_remote): Update.
538 2014-02-19 Tom Tromey <tromey@redhat.com>
540 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
541 (target_save_trace_data): Add argument.
542 * target.c (update_current_target): Update.
543 * remote.c (remote_save_trace_data): Add 'self' argument.
545 2014-02-19 Tom Tromey <tromey@redhat.com>
547 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
549 * target.h (struct target_ops)
550 <to_get_trace_state_variable_value>: Add argument.
551 (target_get_trace_state_variable_value): Add argument.
552 * target.c (update_current_target): Update.
553 * remote.c (remote_get_trace_state_variable_value): Add 'self'
555 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
557 2014-02-19 Tom Tromey <tromey@redhat.com>
559 * tracepoint.c (tfile_trace_find): Add 'self' argument.
560 * target.h (struct target_ops) <to_trace_find>: Add argument.
561 (target_trace_find): Add argument.
562 * target.c (update_current_target): Update.
563 * remote.c (remote_trace_find): Add 'self' argument.
564 * ctf.c (ctf_trace_find): Add 'self' argument.
566 2014-02-19 Tom Tromey <tromey@redhat.com>
568 * target.h (struct target_ops) <to_trace_stop>: Add argument.
569 (target_trace_stop): Add argument.
570 * target.c (update_current_target): Update.
571 * remote.c (remote_trace_stop): Add 'self' argument.
573 2014-02-19 Tom Tromey <tromey@redhat.com>
575 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
576 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
578 (target_get_tracepoint_status): Add argument.
579 * target.c (update_current_target): Update.
580 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
582 2014-02-19 Tom Tromey <tromey@redhat.com>
584 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
585 * target.h (struct target_ops) <to_get_trace_status>: Add
587 (target_get_trace_status): Add argument.
588 * target.c (update_current_target): Update.
589 * remote.c (remote_get_trace_status): Add 'self' argument.
590 (remote_start_remote, remote_can_download_tracepoint): Update.
591 * ctf.c (ctf_get_trace_status): Add 'self' argument.
593 2014-02-19 Tom Tromey <tromey@redhat.com>
595 * target.h (struct target_ops) <to_trace_start>: Add argument.
596 (target_trace_start): Add argument.
597 * target.c (update_current_target): Update.
598 * remote.c (remote_trace_start): Add 'self' argument.
600 2014-02-19 Tom Tromey <tromey@redhat.com>
602 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
604 (target_trace_set_readonly_regions): Add argument.
605 * target.c (update_current_target): Update.
606 * remote.c (remote_trace_set_readonly_regions): Add 'self'
609 2014-02-19 Tom Tromey <tromey@redhat.com>
611 * target.h (struct target_ops) <to_disable_tracepoint>: Add
613 (target_disable_tracepoint): Add argument.
614 * target.c (update_current_target): Update.
615 * remote.c (remote_disable_tracepoint): Add 'self' argument.
617 2014-02-19 Tom Tromey <tromey@redhat.com>
619 * target.h (struct target_ops) <to_enable_tracepoint>: Add
621 (target_enable_tracepoint): Add argument.
622 * target.c (update_current_target): Update.
623 * remote.c (remote_enable_tracepoint): Add 'self' argument.
625 2014-02-19 Tom Tromey <tromey@redhat.com>
627 * target.h (struct target_ops) <to_download_trace_state_variable>:
629 (target_download_trace_state_variable): Add argument.
630 * target.c (update_current_target): Update.
631 * remote.c (remote_download_trace_state_variable): Add 'self'
634 2014-02-19 Tom Tromey <tromey@redhat.com>
636 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
638 (target_can_download_tracepoint): Add argument.
639 * target.c (update_current_target): Update.
640 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
642 2014-02-19 Tom Tromey <tromey@redhat.com>
644 * target.h (struct target_ops) <to_download_tracepoint>: Add
646 (target_download_tracepoint): Add argument.
647 * target.c (update_current_target): Update.
648 * remote.c (remote_download_tracepoint): Add 'self' argument.
650 2014-02-19 Tom Tromey <tromey@redhat.com>
652 * target.h (struct target_ops) <to_trace_init>: Add argument.
653 (target_trace_init): Add argument.
654 * target.c (update_current_target): Update.
655 * remote.c (remote_trace_init): Add 'self' argument.
657 2014-02-19 Tom Tromey <tromey@redhat.com>
659 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
660 * target.c (target_fileio_readlink): Add argument.
661 * remote.c (remote_hostio_readlink): Add 'self' argument.
662 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
664 2014-02-19 Tom Tromey <tromey@redhat.com>
666 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
667 * target.c (target_fileio_unlink): Add argument.
668 * remote.c (remote_hostio_unlink): Add 'self' argument.
669 (remote_file_delete): Update.
670 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
672 2014-02-19 Tom Tromey <tromey@redhat.com>
674 * target.h (struct target_ops) <to_fileio_close>: Add argument.
675 * target.c (target_fileio_close): Add argument.
676 * remote.c (remote_hostio_close): Add 'self' argument.
677 (remote_hostio_close_cleanup): Update.
678 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
680 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
682 2014-02-19 Tom Tromey <tromey@redhat.com>
684 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
685 * target.c (target_fileio_pread): Add argument.
686 * remote.c (remote_hostio_pread): Add 'self' argument.
687 (remote_bfd_iovec_pread, remote_file_get): Update.
688 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
690 2014-02-19 Tom Tromey <tromey@redhat.com>
692 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
693 * target.c (target_fileio_pwrite): Add argument.
694 * remote.c (remote_hostio_pwrite): Add 'self' argument.
695 (remote_file_put): Update.
696 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
698 2014-02-19 Tom Tromey <tromey@redhat.com>
700 * target.h (struct target_ops) <to_fileio_open>: Add argument.
701 * target.c (target_fileio_open): Add argument.
702 * remote.c (remote_hostio_open): Add 'self' argument.
703 (remote_bfd_iovec_open): Add 'self' argument.
704 (remote_file_put): Add 'self' argument.
705 (remote_file_get): Add 'self' argument.
706 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
708 2014-02-19 Tom Tromey <tromey@redhat.com>
710 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
712 (target_can_run_breakpoint_commands): Add argument.
713 * target.c (update_current_target): Update.
714 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
716 (remote_insert_breakpoint): Add 'self' argument.
717 (remote_insert_hw_breakpoint): Add 'self' argument.
718 (remote_can_run_breakpoint_commands): Add 'self' argument.
720 2014-02-19 Tom Tromey <tromey@redhat.com>
722 * target.h (struct target_ops)
723 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
724 (target_supports_evaluation_of_breakpoint_conditions): Add
726 * target.c (update_current_target): Update.
727 * remote.c (remote_supports_cond_breakpoints): Add 'self'
729 (remote_insert_breakpoint): Add 'self' argument.
730 (remote_insert_hw_breakpoint): Add 'self' argument.
731 (remote_supports_cond_breakpoints): Add 'self' argument.
733 2014-02-19 Tom Tromey <tromey@redhat.com>
735 * target.h (struct target_ops) <to_supports_string_tracing>: Add
737 (target_supports_string_tracing): Add argument.
738 * target.c (update_current_target): Update.
739 * remote.c (remote_supports_string_tracing): Add 'self' argument.
741 2014-02-19 Tom Tromey <tromey@redhat.com>
743 * target.h (struct target_ops)
744 <to_supports_disable_randomization>: Add argument.
745 * target.c (find_default_supports_disable_randomization): Add
747 (target_supports_disable_randomization): Add argument.
748 (find_default_supports_disable_randomization): Add 'self'
750 * remote.c (extended_remote_supports_disable_randomization): Add
752 (remote_supports_disable_randomization): Add 'self' argument.
753 (extended_remote_create_inferior): Update.
754 * linux-nat.c (linux_nat_supports_disable_randomization): Add
757 2014-02-19 Tom Tromey <tromey@redhat.com>
759 * target.h (struct target_ops)
760 <to_supports_enable_disable_tracepoint>: Add argument.
761 (target_supports_enable_disable_tracepoint): Add argument.
762 * target.c (update_current_target): Update.
763 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
766 2014-02-19 Tom Tromey <tromey@redhat.com>
768 * target.h (struct target_ops) <to_supports_multi_process>: Add
770 (target_supports_multi_process): Add argument.
771 * target.c (update_current_target): Update.
772 * remote.c (remote_supports_multi_process): Add 'self' argument.
773 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
775 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
778 2014-02-19 Tom Tromey <tromey@redhat.com>
780 * target.h (struct target_ops) <to_execution_direction>: Add
782 (target_execution_direction): Add argument.
783 * target.c (default_execution_direction): Add 'self' argument.
784 * record-full.c (record_full_execution_direction): Add 'self'
787 2014-02-19 Tom Tromey <tromey@redhat.com>
789 * target.h (struct target_ops) <to_can_execute_reverse>: Add
791 (target_can_execute_reverse): Add argument.
792 * remote.c (remote_can_execute_reverse): Add 'self' argument.
793 * record-full.c (record_full_can_execute_reverse): Add 'self'
795 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
798 2014-02-19 Tom Tromey <tromey@redhat.com>
800 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
801 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
803 (target_get_ada_task_ptid): Add argument.
804 * target.c (update_current_target): Update.
805 (default_get_ada_task_ptid): Add 'self' argument.
806 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
807 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
808 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
810 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
812 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
814 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
816 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
817 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
820 2014-02-19 Tom Tromey <tromey@redhat.com>
822 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
823 (target_goto_bookmark): Add argument.
824 * target.c (dummy_goto_bookmark): Add 'self' argument.
825 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
827 2014-02-19 Tom Tromey <tromey@redhat.com>
829 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
830 (target_get_bookmark): Add argument.
831 * target.c (dummy_get_bookmark): Add 'self' argument.
832 * record-full.c (record_full_get_bookmark): Add 'self' argument.
834 2014-02-19 Tom Tromey <tromey@redhat.com>
836 * target.h (struct target_ops) <to_make_corefile_notes>: Add
838 (target_make_corefile_notes): Add argument.
839 * target.c (dummy_make_corefile_notes): Add 'self' argument.
840 * procfs.c (procfs_make_note_section): Add 'self' argument.
841 (procfs_make_note_section): Add 'self' argument.
842 (procfs_make_note_section): Add 'self' argument.
843 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
845 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
846 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
847 * exec.c (exec_make_note_section): Add 'self' argument.
848 (exec_make_note_section): Add 'self' argument.
850 2014-02-19 Tom Tromey <tromey@redhat.com>
852 * target.h (struct target_ops) <to_find_memory_regions>: Add
854 (target_find_memory_regions): Add argument.
855 * target.c (dummy_find_memory_regions): Add 'self' argument.
856 * procfs.c (proc_find_memory_regions): Add 'self' argument.
857 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
858 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
859 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
860 * exec. (exec_do_find_memory_regions): New global.
861 (exec_set_find_memory_regions): Rewrite.
862 (exec_find_memory_regions): New function.
863 (init_exec_ops): Use exec_find_memory_regions.
865 2014-02-19 Tom Tromey <tromey@redhat.com>
867 * target.h (struct target_ops) <to_supports_non_stop>: Add
869 * target.c (find_default_supports_non_stop): Add argument.
870 (target_supports_non_stop): Add argument.
871 (find_default_supports_non_stop): Add 'self' argument.
872 * remote.c (remote_supports_non_stop): Add 'self' argument.
873 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
875 2014-02-19 Tom Tromey <tromey@redhat.com>
877 * target.h (struct target_ops) <to_log_command>: Add argument.
878 (target_log_command): Add argument.
879 * serial.h (serial_log_command): Add 'self' argument.
880 * serial.c (serial_log_command): Add 'self' argument.
882 2014-02-19 Tom Tromey <tromey@redhat.com>
884 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
885 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
887 (target_pid_to_exec_file): Add argument.
888 * target.c (debug_to_pid_to_exec_file): Add argument.
889 (update_current_target): Update.
890 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
891 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
892 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
893 (linux_handle_extended_wait): Update.
894 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
895 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
896 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
897 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
899 2014-02-19 Tom Tromey <tromey@redhat.com>
901 * target.h (struct target_ops) <to_rcmd>: Add argument.
902 (target_rcmd): Add argument.
903 * target.c (debug_to_rcmd): Add argument.
904 (update_current_target, do_monitor_command): Update.
905 * remote.c (remote_rcmd): Add 'self' argument.
906 * monitor.c (monitor_rcmd): Add 'self' argument.
908 2014-02-19 Tom Tromey <tromey@redhat.com>
910 * windows-nat.c (windows_stop): Add 'self' argument.
911 * target.h (struct target_ops) <to_stop>: Add argument.
912 * target.c (target_stop): Add argument.
913 (debug_to_stop): Add argument.
914 (update_current_target): Update.
915 * remote.c (remote_stop): Add 'self' argument.
916 * remote-sim.c (gdbsim_stop): Add 'self' argument.
917 (gdbsim_cntrl_c): Update.
918 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
919 * procfs.c (procfs_stop): Add 'self' argument.
920 * nto-procfs.c (procfs_stop): Add 'self' argument.
921 * monitor.c (monitor_stop): Add 'self' argument.
922 (monitor_open): Update.
923 * linux-nat.c (linux_nat_stop): Add argument.
924 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
925 * gnu-nat.c (gnu_stop): Add 'self' argument.
926 * darwin-nat.c (darwin_stop): Add 'self' argument.
928 2014-02-19 Tom Tromey <tromey@redhat.com>
930 * target.h (struct target_ops) <to_thread_name>: Add argument.
931 * target.c (target_thread_name): Add argument.
932 (update_current_target): Update.
933 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
935 2014-02-19 Tom Tromey <tromey@redhat.com>
937 * target.h (struct target_ops) <to_extra_thread_info>: Add
939 (target_extra_thread_info): Add argument.
940 * target.c (update_current_target): Update.
941 * remote.c (remote_threads_extra_info): Add 'self' argument.
942 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
944 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
945 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
946 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
948 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
950 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
952 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
955 2014-02-19 Tom Tromey <tromey@redhat.com>
957 * target.h (struct target_ops) <to_program_signals>: Add argument.
958 * target.c (target_program_signals): Add argument.
959 * remote.c (remote_program_signals): Add 'self' argument.
961 2014-02-19 Tom Tromey <tromey@redhat.com>
963 * target.h (struct target_ops) <to_pass_signals>: Add argument.
964 * target.c (target_pass_signals): Add argument.
965 * remote.c (remote_pass_signals): Add 'self' argument.
966 (remote_start_remote): Update.
967 * procfs.c (procfs_pass_signals): Add 'self' argument.
968 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
969 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
970 (linux_nat_create_inferior, linux_nat_attach): Update.
972 2014-02-19 Tom Tromey <tromey@redhat.com>
974 * windows-nat.c (windows_can_run): Add 'self' argument.
975 * target.h (struct target_ops) <to_can_run>: Add argument.
976 (target_can_run): Add argument.
977 * target.c (debug_to_can_run): Add argument.
978 (update_current_target): Update.
979 * nto-procfs.c (procfs_can_run): Add 'self' argument.
980 * inf-child.c (inf_child_can_run): Add 'self' argument.
981 * go32-nat.c (go32_can_run): Add 'self' argument.
983 2014-02-19 Tom Tromey <tromey@redhat.com>
985 * target.h (struct target_ops) <to_has_exited>: Add argument.
986 (target_has_exited): Add argument.
987 * target.c (debug_to_has_exited): Add argument.
988 (update_current_target): Update.
990 2014-02-19 Tom Tromey <tromey@redhat.com>
992 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
994 (target_set_syscall_catchpoint): Add argument.
995 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
997 * target.c (update_current_target): Update.
999 2014-02-19 Tom Tromey <tromey@redhat.com>
1001 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1003 (target_remove_exec_catchpoint): Add argument.
1004 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1005 (update_current_target): Update.
1006 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1009 2014-02-19 Tom Tromey <tromey@redhat.com>
1011 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1013 (target_insert_exec_catchpoint): Add argument.
1014 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1015 (update_current_target): Update.
1016 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1019 2014-02-19 Tom Tromey <tromey@redhat.com>
1021 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1023 (target_remove_vfork_catchpoint): Add argument.
1024 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1025 (update_current_target): Update.
1026 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1029 2014-02-19 Tom Tromey <tromey@redhat.com>
1031 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1033 (target_insert_vfork_catchpoint): Add argument.
1034 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1035 (update_current_target): Update.
1036 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1039 2014-02-19 Tom Tromey <tromey@redhat.com>
1041 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1043 (target_remove_fork_catchpoint): Add argument.
1044 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1045 (update_current_target): Update.
1046 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1049 2014-02-19 Tom Tromey <tromey@redhat.com>
1051 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1053 (target_insert_fork_catchpoint): Add argument.
1054 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1055 (update_current_target): Update.
1056 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1059 2014-02-19 Tom Tromey <tromey@redhat.com>
1061 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1063 (target_post_startup_inferior): Add argument.
1064 * target.c (debug_to_post_startup_inferior): Add argument.
1065 (update_current_target): Update.
1066 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1068 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1070 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1072 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1074 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1076 (super_post_startup_inferior): Likewise.
1077 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1079 (super_post_startup_inferior): Likewise.
1080 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1081 Add 'self' argument.
1082 (super_post_startup_inferior): Likewise.
1084 2014-02-19 Tom Tromey <tromey@redhat.com>
1086 * target.h (struct target_ops) <to_load>: Add argument.
1087 * target.c (target_load): Add argument.
1088 (debug_to_load): Add argument.
1089 (update_current_target): Update.
1090 * remote.c (remote_load): Add 'self' argument.
1091 * remote-sim.c (gdbsim_load): Add 'self' argument.
1092 * remote-mips.c (mips_load): Add 'self' argument.
1093 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1094 * monitor.c (monitor_load): Add 'self' argument.
1095 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1097 2014-02-19 Tom Tromey <tromey@redhat.com>
1099 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1100 (target_terminal_info): Add argument.
1101 * target.c (debug_to_terminal_info): Add argument.
1102 (default_terminal_info): Likewise.
1103 * inflow.c (child_terminal_info): Add 'self' argument.
1104 * inferior.h (child_terminal_info): Add 'self' argument.
1105 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1107 2014-02-19 Tom Tromey <tromey@redhat.com>
1109 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1111 (target_terminal_save_ours): Add argument.
1112 * target.c (debug_to_terminal_save_ours): Add argument.
1113 (update_current_target): Update.
1114 * inflow.c (terminal_save_ours): Add 'self' argument.
1115 * inferior.h (terminal_save_ours): Add 'self' argument.
1117 2014-02-19 Tom Tromey <tromey@redhat.com>
1119 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1120 (target_terminal_ours): Add argument.
1121 * target.c (debug_to_terminal_ours): Add argument.
1122 (update_current_target): Update.
1123 * remote.c (remote_terminal_ours): Add 'self' argument.
1124 (remote_close): Update.
1125 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1126 * inflow.c (terminal_ours): Add 'self' argument.
1127 * inferior.h (terminal_ours): Add 'self' argument.
1128 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1130 2014-02-19 Pedro Alves <palves@redhat.com>
1131 Tom Tromey <tromey@redhat.com>
1133 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1135 (target_terminal_ours_for_output): Add argument.
1136 * target.c (debug_to_terminal_ours_for_output): Add argument.
1137 (update_current_target): Update.
1138 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1139 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1140 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1142 2014-02-19 Tom Tromey <tromey@redhat.com>
1144 * target.h (struct target_ops) <to_terminal_inferior>: Add
1146 * target.c (target_terminal_inferior): Add argument.
1147 (update_current_target): Update.
1148 * remote.c (remote_terminal_inferior): Add 'self' argument.
1149 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1150 * inflow.c (terminal_inferior): Add 'self' argument.
1151 * inferior.h (terminal_inferior): Add 'self' argument.
1152 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1153 (go32_terminal_inferior): Add 'self' argument.
1155 2014-02-19 Tom Tromey <tromey@redhat.com>
1157 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1158 (target_terminal_init): Add argument.
1159 * target.c (debug_to_terminal_init): Add argument.
1160 (update_current_target): Update.
1161 * inflow.c (terminal_init_inferior): Add 'self' argument.
1162 * inferior.h (terminal_init_inferior): Add 'self' argument.
1163 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1164 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1166 2014-02-19 Tom Tromey <tromey@redhat.com>
1168 * target.h (struct target_ops)
1169 <to_can_accel_watchpoint_condition>: Add argument.
1170 (target_can_accel_watchpoint_condition): Add argument.
1171 * target.c (debug_to_can_accel_watchpoint_condition): Add
1173 (update_current_target): Update.
1174 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1177 2014-02-19 Tom Tromey <tromey@redhat.com>
1179 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1181 (target_region_ok_for_hw_watchpoint): Add argument.
1182 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1183 (default_region_ok_for_hw_watchpoint): Add argument.
1184 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1185 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1187 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1189 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1191 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1193 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1195 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1197 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1198 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1200 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1201 Add 'self' argument.
1203 2014-02-19 Tom Tromey <tromey@redhat.com>
1205 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1207 (target_insert_watchpoint): Add argument.
1208 * target.c (debug_to_insert_watchpoint): Add argument.
1209 (update_current_target): Update.
1210 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1211 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1212 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1213 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1214 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1215 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1217 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1218 (procfs_insert_hw_watchpoint): Add 'self' argument.
1219 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1221 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1223 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1225 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1226 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1228 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1231 2014-02-19 Tom Tromey <tromey@redhat.com>
1233 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1235 (target_remove_watchpoint): Add argument.
1236 * target.c (debug_to_remove_watchpoint): Add argument.
1237 (update_current_target): Update.
1238 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1239 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1240 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1241 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1242 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1243 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1245 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1246 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1248 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1250 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1252 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1253 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1255 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1258 2014-02-19 Tom Tromey <tromey@redhat.com>
1260 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1262 (target_remove_hw_breakpoint): Add argument.
1263 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1264 (update_current_target): Update.
1265 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1266 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1268 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1269 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1271 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1274 2014-02-19 Tom Tromey <tromey@redhat.com>
1276 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1278 (target_insert_hw_breakpoint): Add argument.
1279 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1280 (update_current_target): Update.
1281 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1282 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1284 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1285 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1286 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1288 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1291 2014-02-19 Tom Tromey <tromey@redhat.com>
1293 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1295 (target_can_use_hardware_watchpoint): Add argument.
1296 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1297 (update_current_target): Update.
1298 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1300 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1302 * remote.c (remote_check_watch_resources): Add 'self' argument.
1303 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1304 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1306 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1307 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1309 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1311 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1313 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1315 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1317 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1319 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1320 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1322 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1325 2014-02-19 Tom Tromey <tromey@redhat.com>
1327 * target.h (struct target_ops) <to_post_attach>: Add argument.
1328 (target_post_attach): Add argument.
1329 * target.c (debug_to_post_attach): Add argument.
1330 (update_current_target): Update.
1331 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1332 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1333 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1334 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1335 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1337 2014-02-19 Tom Tromey <tromey@redhat.com>
1339 * windows-nat.c (windows_close): Add 'self' argument.
1340 * tracepoint.c (tfile_close): Add 'self' argument.
1341 * target.h (struct target_ops) <to_close>: Add argument.
1342 * target.c (target_close): Add argument.
1343 (update_current_target): Update.
1344 * remote.c (remote_close): Add 'self' argument.
1345 * remote-sim.c (gdbsim_close): Add 'self' argument.
1346 * remote-mips.c (mips_close): Add 'self' argument.
1347 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1348 * record-full.c (record_full_close): Add 'self' argument.
1349 * record-btrace.c (record_btrace_close): Add 'self' argument.
1350 * monitor.h (monitor_close): Add 'self' argument.
1351 * monitor.c (monitor_close): Add 'self' argument.
1352 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1353 * linux-nat.c (linux_nat_close): Add argument.
1354 * go32-nat.c (go32_close): Add 'self' argument.
1355 * exec.c (exec_close_1): Add 'self' argument.
1356 * ctf.c (ctf_close): Add 'self' argument.
1357 * corelow.c (core_close): Add 'self' argument.
1358 (core_close_cleanup): Update.
1359 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1360 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1362 2014-02-19 Tom Tromey <tromey@redhat.com>
1364 * remote.c (remote_load): New function.
1365 (init_remote_ops): Use it.
1367 2014-02-19 Tom Tromey <tromey@redhat.com>
1369 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1371 * common/linux-btrace.h (linux_supports_btrace): Update.
1372 * remote.c (remote_supports_btrace): Add "self" argument.
1373 * target-delegates.c: Rebuild.
1374 * target.c (target_supports_btrace): Remove.
1375 * target.h (struct target_ops) <to_supports_btrace>: Add
1376 target_ops argument.
1377 (target_supports_btrace): New define.
1379 2014-02-19 Tom Tromey <tromey@redhat.com>
1381 * record-full.c (record_full_beneath_to_resume_ops)
1382 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1383 (record_full_beneath_to_wait)
1384 (record_full_beneath_to_store_registers_ops)
1385 (record_full_beneath_to_store_registers)
1386 (record_full_beneath_to_xfer_partial_ops)
1387 (record_full_beneath_to_xfer_partial)
1388 (record_full_beneath_to_insert_breakpoint_ops)
1389 (record_full_beneath_to_insert_breakpoint)
1390 (record_full_beneath_to_remove_breakpoint_ops)
1391 (record_full_beneath_to_remove_breakpoint)
1392 (record_full_beneath_to_stopped_by_watchpoint)
1393 (record_full_beneath_to_stopped_data_address)
1394 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1395 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1396 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1397 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1398 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1399 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1400 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1401 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1402 (record_full_resume, record_full_wait_1)
1403 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1404 (record_full_store_registers, record_full_xfer_partial)
1405 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1406 (record_full_async, record_full_core_xfer_partial): Use target
1408 * target-delegates.c: Rebuild.
1409 * target.c (current_xfer_partial): Remove.
1410 (update_current_target): Do not INHERIT or de_fault
1411 to_insert_breakpoint, to_remove_breakpoint,
1412 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1413 to_is_async_p, to_async. Do not set to_xfer_partial field.
1414 (default_xfer_partial): Simplify.
1415 (current_xfer_partial): Remove.
1416 (target_wait, target_resume): Simplify.
1417 (find_default_can_async_p, find_default_is_async_p): Update.
1418 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1419 to_xfer_partial, to_stopped_by_watchpoint,
1420 to_stopped_data_address.
1421 (target_store_registers): Simplify.
1422 (forward_target_remove_breakpoint)
1423 (forward_target_insert_breakpoint): Remove.
1424 (target_remove_breakpoint, target_insert_breakpoint)
1425 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1426 * target.h (struct target_ops) <to_resume, to_wait,
1427 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1428 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1429 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1431 (forward_target_remove_breakpoint)
1432 (forward_target_insert_breakpoint): Remove.
1433 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1435 (record_btrace_insert_breakpoint): Delegate directly.
1437 2014-02-19 Tom Tromey <tromey@redhat.com>
1440 * target-delegates.c: New file.
1441 * target.c: Include target-delegates.c.
1442 (init_dummy_target): Call install_dummy_methods.
1443 (complete_target_initialization): Call install_delegators.
1444 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1445 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1446 * make-target-delegates: New file.
1448 2014-02-19 Tom Tromey <tromey@redhat.com>
1450 * record.c (find_record_target): Use find_target_at.
1451 * target.c (find_target_at): New function.
1452 * target.h (find_target_at): Declare.
1454 2014-02-19 Tom Tromey <tromey@redhat.com>
1456 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1458 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1460 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1461 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1463 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1465 * linux-nat.c (save_sigtrap): Update.
1466 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1467 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1468 (linux_nat_close): Update.
1469 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1471 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1473 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1474 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1475 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1476 (tmp_to_async): Add 'ops' argument.
1477 (record_full_stopped_by_watchpoint, record_full_async)
1478 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1480 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1481 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1482 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1483 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1484 (remote_is_async_p, remote_async): Add 'ops' argument.
1485 (remote_stopped_data_address): Update.
1486 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1487 * target.c (update_current_target)
1488 (find_default_can_async_p, find_default_is_async_p): Update.
1489 (init_dummy_target): Update.
1490 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1491 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1492 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1493 (target_can_async_p, target_is_async_p, target_async)
1494 (target_stopped_by_watchpoint): Update.
1496 2014-02-19 Yao Qi <yao@codesourcery.com>
1499 * gdbarch.sh: Remove startup_gdbarch.
1500 * gdbarch.c: Regenerated.
1501 * gdbarch.h: Likewise.
1503 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1505 * rl78-tdep.c (rl78_g10_register_name): New function.
1506 (rl78_return_value): Add g10 support.
1507 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1510 2014-02-17 Doug Evans <xdje42@gmail.com>
1512 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1513 (SUBDIR_GUILE_SRCS): Ditto.
1514 (scm-gsmob.o): Ditto.
1516 2014-02-17 Yao Qi <yao@codesourcery.com>
1518 * gnu-nat.c (ILL_RPC): Declare defined function.
1520 2014-02-17 Yao Qi <yao@codesourcery.com>
1522 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1523 mach_msg_type_number_t.
1524 (gnu_write_inferior): Likewise.
1526 2014-02-17 Yao Qi <yao@codesourcery.com>
1528 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1530 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1531 (inf_validate_procs, inf_signal): Likewise.
1532 (S_exception_raise_request): Likewise.
1533 (do_mach_notify_dead_name): Likewise.
1534 (steal_exc_port): Likewise.
1535 (gnu_read_inferior): Change 'copy_count''s type to
1536 mach_msg_type_number_t.
1537 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1540 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1542 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1543 flag. Adjust all users; in particular...
1544 (gnu_wait): ..., don't decrement its value in here...
1545 (gnu_create_inferior): ..., and instead set the flag in here,
1546 around the startup_inferior call, and call that one with
1547 START_INFERIOR_TRAPS_EXPECTED.
1549 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1550 (ILL_RPC): ... new macro.
1551 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1552 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1553 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1554 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1555 functions with ILL_RPC macro.
1556 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1557 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1558 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1559 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1560 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1561 (S_proc_getlogin_reply, S_proc_getsid_reply)
1562 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1563 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1564 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1565 (S_proc_getnports_reply, S_proc_is_important_reply)
1566 (S_proc_get_code_reply): New stub functions, generated with
1569 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1570 collected the type check structures.
1572 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1574 2014-02-14 Doug Evans <dje@google.com>
1576 * target.c (target_write_partial): Fix result type.
1578 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1580 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1581 the proper offsets to access fpregset_t.
1583 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1585 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1586 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1587 * h8300-tdep.c (setmachinelist): Remove global.
1588 * hppa-tdep.c (hppa_sigtramp): Remove global.
1589 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1590 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1591 * ravenscar-thread.c (update_target_observer): Remove global.
1592 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1594 2014-02-12 Tom Tromey <tromey@redhat.com>
1596 * common/rsp-low.c: Update comments.
1597 * common/rsp-low.h: Update comments.
1599 2014-02-12 Tom Tromey <tromey@redhat.com>
1601 * common/rsp-low.c (convert_ascii_to_int): Remove.
1602 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1604 2014-02-12 Tom Tromey <tromey@redhat.com>
1606 * common/rsp-low.h (unhexify): Don't declare.
1607 * common/rsp-low.c (unhexify): Remove.
1609 2014-02-12 Tom Tromey <tromey@redhat.com>
1611 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1612 * common/rsp-low.c (convert_int_to_ascii): Remove.
1614 2014-02-12 Tom Tromey <tromey@redhat.com>
1616 * common/rsp-low.h (hexify): Don't declare.
1617 * common/rsp-low.c (hexify): Remove.
1619 2014-02-12 Tom Tromey <tromey@redhat.com>
1621 * common/rsp-low.c (hexify): Never take strlen of argument.
1623 2014-02-12 Tom Tromey <tromey@redhat.com>
1625 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1626 * remote.c (extended_remote_run, remote_rcmd)
1627 (remote_download_trace_state_variable, remote_save_trace_data)
1628 (remote_set_trace_notes): Update.
1629 * tracepoint.c (encode_source_string, tfile_write_status)
1630 (tfile_write_uploaded_tsv): Update.
1632 2014-02-12 Tom Tromey <tromey@redhat.com>
1634 * tracepoint.c: Include rsp-low.h.
1635 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1636 * remote.c: Include rsp-low.h.
1637 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1638 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1639 (remote_unescape_input): Move to common/rsp-low.c.
1640 * common/rsp-low.h: New file.
1641 * common/rsp-low.c: New file.
1642 * Makefile.in (SFILES): Add common/rsp-low.c.
1643 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1644 (COMMON_OBS): Add rsp-low.o.
1645 (rsp-low.o): New target.
1647 2014-02-12 Tom Tromey <tromey@redhat.com>
1649 * utils.h: Include print-utils.h.
1650 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1651 (int_string, core_addr_to_string, core_addr_to_string_nz)
1652 (hex_string, hex_string_custom): Don't declare.
1653 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1654 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1655 (hex_string_custom, int_string, core_addr_to_string)
1656 (core_addr_to_string_nz, host_address_to_string): Move to
1657 common/print-utils.c.
1658 * common/print-utils.h: New file.
1659 * common/print-utils.c: New file
1660 * Makefile.in (SFILES): Add common/print-utils.c.
1661 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1662 (COMMON_OBS): Add print-utils.o.
1663 (print-utils.o): New target.
1665 2014-02-12 Tom Tromey <tromey@redhat.com>
1667 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1669 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1671 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1673 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1675 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1676 if a PT_IO ptrace request returns sucessfully but indicates that 0
1677 bytes were transferred.
1679 2014-02-12 Pedro Alves <palves@redhat.com>
1680 Kevin Buettner <kevinb@redhat.com>
1682 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1683 TYPE_INSTANCE_FLAG_CODE_SPACE.
1685 2014-02-12 Pedro Alves <palves@redhat.com>
1687 * h8300-tdep.c (pseudo_from_raw_register)
1688 (raw_from_pseudo_register): New functions.
1689 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1692 2014-02-12 Pedro Alves <palves@redhat.com>
1694 * h8300-tdep.c (h8300_register_sim_regno): New function.
1695 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1696 gdbarch_register_sim_regno hook.
1698 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1700 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1702 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1704 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1706 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1708 * obsd-tdep.h (obsd_init_abi): New prototype.
1709 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1710 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1711 (obsd_init_abi): New functions.
1712 * i386obsd-tdep.c: Include "obsd-tdep.h".
1713 (i386obsd_init_abi): Call obsd_init_abi.
1714 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1715 (amd64obsd_init_abi): Call obsd_init_abi.
1716 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1717 obsd-tdep.c to gdb_target_obs.
1719 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1721 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1722 double float arguments to 16-byte in the argument slots.
1724 2014-02-11 Doug Evans <xdje42@gmail.com>
1726 * configure.ac: Don't crash if pkg-config is not found and guile
1727 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1729 * configure: Regenerate.
1731 2014-02-11 Yao Qi <yao@codesourcery.com>
1733 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1734 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1735 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1736 * gnu-nat.c (gnu_xfer_memory): Likewise.
1737 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1738 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1739 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1740 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1742 2014-02-11 Yao Qi <yao@codesourcery.com>
1744 * target.h (enum target_xfer_error): Rename to ...
1745 (enum target_xfer_status): ... it. New. All users updated.
1746 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1748 (TARGET_XFER_STATUS_ERROR_P): New macro.
1749 (target_xfer_error_to_string): Remove declaration.
1750 (target_xfer_status_to_string): Declare.
1751 (target_xfer_partial_ftype): Adjust it.
1752 (struct target_ops) <to_xfer_partial>: Return
1753 target_xfer_status. Add argument xfered_len. Update
1755 * target.c (target_xfer_error_to_string): Rename to ...
1756 (target_xfer_status_to_string): ... it. New. All callers
1758 (target_read_live_memory): Likewise. Call target_xfer_partial
1759 instead of target_read.
1760 (memory_xfer_live_readonly_partial): Return
1761 target_xfer_status. Add argument xfered_len.
1762 (raw_memory_xfer_partial): Likewise.
1763 (memory_xfer_partial_1): Likewise.
1764 (memory_xfer_partial): Likewise.
1765 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1766 properly. Update debug message.
1767 (default_xfer_partial, current_xfer_partial): Likewise.
1768 (target_write_partial): Likewise.
1769 (target_read_partial): Likewise. All callers updated.
1770 (read_whatever_is_readable): Likewise.
1771 (target_write_with_progress): Likewise.
1772 (target_read_alloc_1): Likewise.
1774 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1775 * auxv.c (procfs_xfer_auxv): Likewise.
1776 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1777 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1778 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1779 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1780 * corefile.c (read_memory): Adjust.
1781 * corelow.c (core_xfer_partial): Likewise.
1782 * ctf.c (ctf_xfer_partial): Likewise.
1783 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1785 (darwin_xfer_partial): Likewise.
1786 * exec.c (section_table_xfer_memory_partial): Likewise. All
1788 (exec_xfer_partial): Likewise.
1789 * exec.h (section_table_xfer_memory_partial): Update
1791 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1793 (gnu_xfer_partial): Likewise.
1794 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1795 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1796 (ia64_hpux_xfer_solib_got): Likewise.
1797 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1798 type of 'partial_len' to ULONGEST.
1799 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1800 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1801 (linux_nat_xfer_partial): Likewise.
1802 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1803 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1804 * monitor.c (monitor_xfer_memory): Likewise.
1805 (monitor_xfer_partial): Likewise.
1806 * procfs.c (procfs_xfer_partial): Likewise.
1807 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1808 * record-full.c (record_full_xfer_partial): Likewise.
1809 (record_full_core_xfer_partial): Likewise.
1810 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1811 (gdbsim_xfer_partial): Likewise.
1812 * remote.c (remote_write_bytes_aux): Likewise. All callers
1814 (remote_write_bytes, remote_read_bytes): Likewise. All
1816 (remote_flash_erase): Likewise. All callers updated.
1817 (remote_write_qxfer): Likewise. All callers updated.
1818 (remote_read_qxfer): Likewise. All callers updated.
1819 (remote_xfer_partial): Likewise.
1820 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1821 (rs6000_xfer_shared_libraries): Likewise.
1822 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1823 (sol_thread_xfer_partial): Likewise.
1824 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1825 (sparc_xfer_partial): Likewise.
1826 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1828 (spu_xfer_partial): Likewise.
1829 * spu-multiarch.c (spu_xfer_partial): Likewise.
1830 * tracepoint.c (tfile_xfer_partial): Likewise.
1831 * windows-nat.c (windows_xfer_memory): Likewise.
1832 (windows_xfer_shared_libraries): Likewise.
1833 (windows_xfer_partial): Likewise.
1834 * valprint.c: Replace 'target_xfer_error' with
1835 'target_xfer_status' in comments.
1837 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1839 Checked in by Joel Brobecker <brobecker@adacore.com>.
1840 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1842 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1844 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1845 function parameters.
1847 2014-02-10 Will Newton <will.newton@linaro.org>
1849 * elfread.c (elf_rel_plt_read): Look for a .got section if
1850 looking up .got.plt fails.
1851 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1852 on address passed to elf_gnu_ifunc_record_cache.
1853 (elf_gnu_ifunc_resolve_addr): Likewise.
1854 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1856 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1858 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1859 (X_RETTURN): New macro.
1860 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1862 * sparc64-tdep.c (sparc64_init_abi): Hook
1863 sparc_in_function_epilogue_p.
1865 2014-02-10 Gary Benson <gbenson@redhat.com>
1867 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1868 Rename name_matcher to symbol_matcher.
1870 2014-02-10 Gary Benson <gbenson@redhat.com>
1872 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1873 Use expand_symtabs_file_matcher_ftype and
1874 expand_symtabs_symbol_matcher_ftype.
1876 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1878 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1879 (struct ada_symbol_cache): New.
1880 (ada_free_symbol_cache): Forward declare.
1881 (struct ada_pspace_data): New.
1882 (ada_pspace_data_handle): New static global.
1883 (get_ada_pspace_data, ada_pspace_data_cleanup)
1884 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1885 (cache_space, cache): Delete, now folded inside struct
1887 (ada_get_symbol_cache): New function.
1888 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1890 (_initialize_ada_language): Remove initialization of cache_space.
1891 Move call to observer_attach_inferior_exit up, grouping it
1892 with the other observer registrations inside this function.
1893 Rename command to be more general. Add call to
1894 register_program_space_data_with_cleanup.
1896 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1898 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1899 ada_new_objfile_observer.
1900 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1901 (_initialize_tasks): Update uses of ada_new_objfile_observer
1902 and ada_tasks_normal_stop_observer.
1904 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1906 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1907 returned by the 'Length attribute to integer.
1909 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1911 * ada-lang.c (_initialize_ada_language): Initialize
1912 cache_space obstack.
1914 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1916 * ada-lang.c (HASH_SIZE): New macro.
1917 (struct cache_entry): New type.
1918 (cache_space, cache): New static globals.
1919 (ada_clear_symbol_cache, find_entry): New functions.
1920 (lookup_cached_symbol, cache_symbol): Implement.
1921 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1922 (_initialize_ada_language): Attach ada_new_objfile_observer
1923 and ada_free_objfile_observer.
1925 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1927 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1928 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1929 struct block * parameter.
1930 (ada_lookup_symbol_list_worker): Constify local variable "block".
1931 Remove cast which is no longer necessary.
1933 2014-02-10 Doug Evans <xdje42@gmail.com>
1935 Add Guile as an extension language.
1936 * NEWS: Mention Guile scripting.
1937 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1938 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1939 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1940 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1941 (CLIBS): Add GUILE_LIBS.
1942 (install-guile): New rule.
1943 (guile.o): New rule.
1944 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1945 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1946 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1947 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1948 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1949 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1950 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1951 * configure.ac: New option --with-guile.
1952 * configure: Regenerate.
1953 * config.in: Regenerate.
1954 * auto-load.c: Remove #include "python/python.h". Add #include
1955 "gdb/section-scripts.h".
1956 (source_section_scripts): Handle Guile scripts.
1957 (_initialize_auto_load): Add name of Guile objfile script to
1958 scripts-directory help text.
1959 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1960 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1961 (struct breakpoint): New member scm_bp_object.
1962 * defs.h (enum command_control_type): New value guile_control.
1963 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1965 (show_user): Update comment.
1966 (_initialize_cli_cmds): Update help text for "show user". Update help
1967 text for max-user-call-depth.
1968 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1970 (multi_line_command_p): Add guile_control.
1971 (print_command_lines): Handle guile_control.
1972 (execute_control_command, recurse_read_control_structure): Ditto.
1973 (process_next_line): Recognize "guile" commands.
1974 * disasm.c (gdb_disassemble_info): Make non-static.
1975 * disasm.h: #include "dis-asm.h".
1976 (struct gdbarch): Add forward decl.
1977 (gdb_disassemble_info): Declare.
1978 * extension.c: #include "guile/guile.h".
1979 (extension_languages): Add guile.
1980 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1981 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1982 * gdbtypes.c (get_unsigned_type_max): New function.
1983 (get_signed_type_minmax): New function.
1984 * gdbtypes.h (get_unsigned_type_max): Declare.
1985 (get_signed_type_minmax): Declare.
1986 * guile/README: New file.
1987 * guile/guile-internal.h: New file.
1988 * guile/guile.c: New file.
1989 * guile/guile.h: New file.
1990 * guile/scm-arch.c: New file.
1991 * guile/scm-auto-load.c: New file.
1992 * guile/scm-block.c: New file.
1993 * guile/scm-breakpoint.c: New file.
1994 * guile/scm-disasm.c: New file.
1995 * guile/scm-exception.c: New file.
1996 * guile/scm-frame.c: New file.
1997 * guile/scm-gsmob.c: New file.
1998 * guile/scm-iterator.c: New file.
1999 * guile/scm-lazy-string.c: New file.
2000 * guile/scm-math.c: New file.
2001 * guile/scm-objfile.c: New file.
2002 * guile/scm-ports.c: New file.
2003 * guile/scm-pretty-print.c: New file.
2004 * guile/scm-safe-call.c: New file.
2005 * guile/scm-string.c: New file.
2006 * guile/scm-symbol.c: New file.
2007 * guile/scm-symtab.c: New file.
2008 * guile/scm-type.c: New file.
2009 * guile/scm-utils.c: New file.
2010 * guile/scm-value.c: New file.
2011 * guile/lib/gdb.scm: New file.
2012 * guile/lib/gdb/boot.scm: New file.
2013 * guile/lib/gdb/experimental.scm: New file.
2014 * guile/lib/gdb/init.scm: New file.
2015 * guile/lib/gdb/iterator.scm: New file.
2016 * guile/lib/gdb/printing.scm: New file.
2017 * guile/lib/gdb/types.scm: New file.
2018 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2019 (VPATH): Add $(GUILE_SRCDIR).
2020 (GUILE_DIR): New variable.
2021 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2022 (all): Add stamp-guile dependency.
2023 (stamp-guile): New rule.
2024 (clean-guile, install-guile, uninstall-guile): New rules.
2025 (install-only): Add install-guile dependency.
2026 (uninstall): Add uninstall-guile dependency.
2027 (clean): Add clean-guile dependency.
2029 2014-02-09 Doug Evans <xdje42@gmail.com>
2031 Revert this patch (which I approved, mea culpa).
2033 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2035 * Makefile.in (all-lib): Remove.
2036 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2038 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 Fix Python stack corruption.
2041 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2044 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2046 * Makefile.in (all-lib): Remove.
2047 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2049 2014-02-07 Doug Evans <dje@google.com>
2051 * extension-priv.h (extension_language_script_ops): Add comment.
2052 (extension_language_ops): Add comment.
2053 (active_ext_lang_state): Fix typo in comment.
2055 2014-02-07 Pedro Alves <palves@redhat.com>
2057 * infrun.c (handle_signal_stop) <signal arrives while stepping
2058 over a breakpoint>: Switch back to the stepping thread.
2060 2014-02-07 Yao Qi <yao@codesourcery.com>
2062 * target.c (target_xfer_partial): Return zero if LEN is zero.
2064 2014-02-07 Yao Qi <yao@codesourcery.com>
2066 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2067 (ld_so_xfer_auxv): Likewise.
2068 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2069 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2070 * corelow.c (core_xfer_partial): Likewise.
2071 * ctf.c (ctf_xfer_partial): Likewise.
2072 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2073 (darwin_xfer_partial): Likewise.
2074 * exec.c (exec_xfer_partial): Likewise.
2075 * gnu-nat.c (gnu_xfer_partial): Likewise.
2076 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2077 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2078 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2079 * linux-nat.c (linux_xfer_siginfo): Likewise.
2080 (linux_proc_xfer_spu): Likewise.
2081 * procfs.c (procfs_xfer_partial): Likewise.
2082 * record-full.c (record_full_xfer_partial): Likewise.
2083 (record_full_core_xfer_partial): Likewise.
2084 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2085 * remote.c (remote_write_qxfer): Likewise.
2086 (remote_write_qxfer, remote_read_qxfer): Likewise.
2087 (remote_xfer_partial): Likewise.
2088 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2089 (rs6000_xfer_shared_libraries): Likewise.
2090 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2091 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2092 (spu_xfer_partial): Likewise.
2093 * target.c (memory_xfer_partial_1): Likewise.
2094 * tracepoint.c (tfile_xfer_partial): Likewise.
2095 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2096 (windows_xfer_partial): Likewise.
2098 2014-02-07 Yao Qi <yao@codesourcery.com>
2100 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2102 (core_xfer_shared_libraries_aix): Likewise.
2103 * gdbarch.c, gdbarch.h: Regenerated.
2104 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2105 ULONGEST. Change 'len_avail' type to ULONGEST.
2106 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2107 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2109 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2111 2014-02-07 Yao Qi <yao@codesourcery.com>
2113 * corefile.c (memory_error): Get 'exception' from ERR and pass
2114 'exception' to throw_error.
2116 2014-02-06 Doug Evans <xdje42@gmail.com>
2118 * configure.ac (libpython checking): Remove all but python.o from
2119 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2120 * configure: Regenerate.
2122 * Makefile.in (SFILES): Add extension.c.
2123 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2124 (COMMON_OBS): Add extension.o.
2125 * extension.h: New file.
2126 * extension-priv.h: New file.
2127 * extension.c: New file.
2129 * python/python-internal.h: #include "extension.h".
2130 (gdbpy_auto_load_enabled): Declare.
2131 (gdbpy_apply_val_pretty_printer): Declare.
2132 (gdbpy_apply_frame_filter): Declare.
2133 (gdbpy_preserve_values): Declare.
2134 (gdbpy_breakpoint_cond_says_stop): Declare.
2135 (gdbpy_breakpoint_has_cond): Declare.
2136 (void source_python_script_for_objfile): Delete.
2137 * python/python.c: #include "extension-priv.h".
2138 Delete inclusion of "observer.h".
2139 (extension_language_python): Moved here and renamed from
2140 script_language_python in py-auto-load.c.
2141 Redefined to be of type extension_language_defn.
2142 (python_extension_script_ops): New global.
2143 (python_extension_ops): New global.
2144 (struct python_env): New member previous_active.
2145 (restore_python_env): Call restore_active_ext_lang.
2146 (ensure_python_env): Call set_active_ext_lang.
2147 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2149 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2151 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2153 (gdbpy_eval_from_control_command): Renamed from
2154 eval_python_from_control_command, made static. New arg extlang.
2155 (gdbpy_source_script) Renamed from source_python_script, made static.
2157 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2158 result to int. New arg extlang.
2159 (gdbpy_source_objfile_script): Renamed from
2160 source_python_script_for_objfile, made static. New arg extlang.
2161 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2162 static. New args extlang, extlang_printers. Change result type to
2164 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2165 static. New arg extlang. Rename arg printers to extlang_printers
2166 and change type to ext_lang_type_printers *.
2167 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2168 static. Replace argument arg with extlang, extlang_printers.
2169 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2170 (!HAVE_PYTHON, source_python_script): Delete.
2171 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2172 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2173 (!HAVE_PYTHON, start_type_printers): Delete.
2174 (!HAVE_PYTHON, apply_type_printers): Delete.
2175 (!HAVE_PYTHON, free_type_printers): Delete.
2176 (_initialize_python): Delete call to observer_attach_before_prompt.
2177 (finalize_python): Set/restore active extension language.
2178 (gdbpy_finish_initialization) Renamed from
2179 finish_python_initialization, made static. New arg extlang.
2180 (gdbpy_initialized): New function.
2181 * python/python.h: #include "extension.h". Delete #include
2182 "value.h", "mi/mi-cmds.h".
2183 (extension_language_python): Declare.
2184 (GDBPY_AUTO_FILE_NAME): Delete.
2185 (enum py_bt_status): Moved to extension.h and renamed to
2187 (enum frame_filter_flags): Moved to extension.h.
2188 (enum py_frame_args): Moved to extension.h and renamed to
2189 ext_lang_frame_args.
2190 (finish_python_initialization): Delete.
2191 (eval_python_from_control_command): Delete.
2192 (source_python_script): Delete.
2193 (apply_val_pretty_printer): Delete.
2194 (apply_frame_filter): Delete.
2195 (preserve_python_values): Delete.
2196 (gdbpy_script_language_defn): Delete.
2197 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2198 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2200 * auto-load.c: #include "extension.h".
2201 (GDB_AUTO_FILE_NAME): Delete.
2202 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2203 (script_language_gdb): Delete, moved to extension.c and renamed to
2204 extension_language_gdb.
2205 (source_gdb_script_for_objfile): Delete.
2206 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2207 (loaded_script): Change type of language member to
2208 struct extension_language_defn *.
2209 (init_loaded_scripts_info): Initialize
2210 unsupported_script_warning_printed.
2211 (maybe_add_script): Make static. Change type of language arg to
2212 struct extension_language_defn *.
2213 (clear_section_scripts): Reset unsupported_script_warning_printed.
2214 (auto_load_objfile_script_1): Rewrite to use extension language API.
2215 (auto_load_objfile_script): Make public. Remove support-compiled-in
2216 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2217 (source_section_scripts): Rewrite to use extension language API.
2218 (load_auto_scripts_for_objfile): Rewrite to use
2219 auto_load_scripts_for_objfile.
2220 (collect_matching_scripts_data): Change type of language member to
2221 struct extension_language_defn *.
2222 (auto_load_info_scripts): Change type of language arg to
2223 struct extension_language_defn *.
2224 (unsupported_script_warning_print): New function.
2225 (script_not_found_warning_print): Make static.
2226 (_initialize_auto_load): Rewrite construction of scripts-directory
2228 * auto-load.h (struct objfile): Add forward decl.
2229 (struct script_language): Delete.
2230 (struct auto_load_pspace_info): Add forward decl.
2231 (struct extension_language_defn): Add forward decl.
2232 (maybe_add_script): Delete.
2233 (auto_load_objfile_script): Declare.
2234 (script_not_found_warning_print): Delete.
2235 (auto_load_info_scripts): Update prototype.
2236 (auto_load_gdb_scripts_enabled): Declare.
2237 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2238 auto_load_python_scripts_enabled and made public.
2239 (script_language_python): Delete, moved to python.c.
2240 (gdbpy_script_language_defn): Delete.
2241 (info_auto_load_python_scripts): Update to use
2242 extension_language_python.
2244 * breakpoint.c (condition_command): Replace call to
2245 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2246 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2247 with call to breakpoint_ext_lang_cond_says_stop.
2248 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2249 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2250 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2251 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2253 (local_setattro): Print name of extension language with existing
2256 * valprint.c (val_print, value_print): Update to call
2257 apply_ext_lang_val_pretty_printer.
2258 * cp-valprint.c (cp_print_value): Update call to
2259 apply_ext_lang_val_pretty_printer.
2260 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2261 (gdbpy_apply_val_pretty_printer): Renamed from
2262 apply_val_pretty_printer. New arg extlang.
2263 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2265 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2266 extension language API.
2267 * cli/cli-script.c (execute_control_command): Update to call
2268 eval_ext_lang_from_control_command.
2270 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2271 enum ext_lang_bt_status values. Update call to
2272 apply_ext_lang_frame_filter.
2273 (mi_cmd_stack_list_locals): Ditto.
2274 (mi_cmd_stack_list_args): Ditto.
2275 (mi_cmd_stack_list_variables): Ditto.
2276 * mi/mi-main.c: Delete #include "python/python-internal.h".
2277 Add #include "extension.h".
2278 (mi_cmd_list_features): Replace reference to python internal variable
2279 gdb_python_initialized with call to ext_lang_initialized_p.
2281 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2282 Update to use enum ext_lang_frame_args. Update to call
2283 apply_ext_lang_frame_filter.
2284 * python/py-framefilter.c (extract_sym): Update to use enum
2286 (extract_value, py_print_type, py_print_value): Ditto.
2287 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2288 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2289 (py_print_frame): Ditto.
2290 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2291 New arg extlang. Update to use enum ext_lang_bt_status.
2293 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2294 finish_python_initialization. Replace with call to
2295 finish_ext_lang_initialization.
2297 * typeprint.c (do_free_global_table): Update to call
2298 free_ext_lang_type_printers.
2299 (create_global_typedef_table): Update to call
2300 start_ext_lang_type_printers.
2301 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2302 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2303 (type_print_options): Change type of global_printers from "void *"
2304 to "struct ext_lang_type_printers *".
2306 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2307 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2308 (gdbpy_preserve_values): Renamed from preserve_python_values.
2310 (!HAVE_PYTHON, preserve_python_values): Delete.
2312 * utils.c (quit_flag): Delete, moved to extension.c.
2313 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2316 * eval.c: Delete #include "python/python.h".
2317 * main.c: Delete #include "python/python.h".
2319 * defs.h: Update comment.
2321 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2325 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2327 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2330 2014-02-05 Yao Qi <yao@codesourcery.com>
2332 * remote.c (remote_pass_signals): Remove local 'buf' and use
2334 (remote_program_signals): Likewise.
2336 2014-02-05 Yao Qi <yao@codesourcery.com>
2338 * ctf.c: Include "inferior.h" and "gdbthread.h".
2339 (CTF_PID): A new macro.
2340 (ctf_open): Call inferior_appeared and add_thread_silent.
2341 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2342 (ctf_thread_alive): New function.
2343 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2345 2014-02-05 Yao Qi <yao@codesourcery.com>
2349 2013-05-24 Yao Qi <yao@codesourcery.com>
2351 * tracepoint.c (TFILE_PID): Remove.
2352 (tfile_open): Don't add thread and inferior.
2353 (tfile_close): Don't set 'inferior_ptid'. Don't call
2354 exit_inferior_silent.
2355 (tfile_thread_alive): Remove.
2356 (init_tfile_ops): Don't set field 'to_thread_alive' of
2359 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2361 * remote.c (remote_start_remote): Call remote_check_symbols even
2362 if only symbol-file (not file) has been given.
2364 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2366 * gdbarch.sh (skip_entrypoint): New callback.
2367 * gdbarch.c, gdbarch.h: Regenerate.
2368 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2369 * infrun.c (fill_in_stop_func): Likewise.
2370 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2371 (ppc_elfv2_elf_make_msymbol_special): New function.
2372 (ppc_elfv2_skip_entrypoint): Likewise.
2373 (ppc_linux_init_abi): Install them for ELFv2.
2375 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2377 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2378 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2379 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2380 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2381 structures returned in GPRs.
2383 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2385 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2386 offset to the stack parameter list for the ELFv2 ABI.
2388 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2390 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2391 set_gdbarch_convert_from_func_ptr_addr and
2392 set_gdbarch_elf_make_msymbol_special for ELFv1.
2393 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2394 function descriptors on ELFv1.
2395 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2396 set up r12 at function entry.
2398 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2400 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2401 (struct gdbarch_tdep): New member elf_abi.
2403 * rs6000-tdep.c: Include "elf/ppc64.h".
2404 (rs6000_gdbarch_init): Detect ELF ABI version.
2406 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2408 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2409 within a register pair holding a DFP 128-bit value on little-endian.
2410 (ppc64_sysv_abi_return_value_base): Likewise.
2411 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2412 (dfp_pseudo_register_write): Likewise.
2414 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2416 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2417 offset on little-endian when passing _Decimal32.
2418 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2420 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2422 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2423 of the overlapped FP register within the VSX register on little-
2425 (efpr_pseudo_register_write): Likewise.
2427 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2429 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2430 offset on little-endian when passing small structures.
2432 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2434 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2435 (struct ppc64_sysv_argpos): New data structure.
2436 (ppc64_sysv_abi_push_float): Remove.
2437 (ppc64_sysv_abi_push_val): New function.
2438 (ppc64_sysv_abi_push_integer): Likewise.
2439 (ppc64_sysv_abi_push_freg): Likewise.
2440 (ppc64_sysv_abi_push_vreg): Likewise.
2441 (ppc64_sysv_abi_push_param): Likewise.
2442 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2443 (ppc64_sysv_abi_return_value_base): New function.
2444 (ppc64_sysv_abi_return_value): Refactor to use it.
2446 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2448 * NEWS: Document new target powerpc64le-*-linux*.
2450 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2452 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2453 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2455 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2456 register set used in ELF core dumps. Add floating-point register set.
2458 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2460 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2461 dwarf2_to_gdb[] table using symbolic constants. Adjust
2462 penultimate entry from number representing the PC register
2463 to symbolic constant representing the MDR register. Add
2464 constant for the PC register to the end of the table.
2466 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2468 * bsd-kvm.c: Include <sys/param.h>
2470 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2472 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2474 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2476 * ada-lang.h (clear_ada_sym_cache): Delete.
2478 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2480 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2482 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2484 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2485 the sigreturn register save area only if the syscall is
2488 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2490 * valops.c (value_slice): Minor reformatting.
2492 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2494 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2496 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2498 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2500 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2501 (ada_ignore_descriptive_types_p): New static global.
2502 (find_parallel_type_by_descriptive_type): Return immediately
2503 if ada_ignore_descriptive_types_p is set.
2504 (_initialize_ada_language): Register new commands "maintenance
2505 set ada", "maintenance show ada", "maintenance set ada
2506 ignore-descriptive-types" and "maintenance show ada
2507 ignore-descriptive-types".
2508 * NEWS: Add entry for new "maint ada set/show
2509 ignore-descriptive-types" commands.
2511 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2513 * record-btrace.c (record_btrace_close): Call btrace_teardown
2516 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2518 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2521 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2523 * ada-typeprint (type_is_full_subrange_of_target_type):
2525 (print_range): Add parameter bounds_prefered_p. If not set,
2526 try printing range types using the name of their base type.
2527 (print_range_type): Add parameter bounds_prefered_p.
2528 Use it in call to print_range.
2529 (print_array_type, ada_print_type): Update calls to print_range
2530 and print_range_type.
2532 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2534 * ada-typeprint.c (print_array_type, print_choices, print_range)
2535 (print_range_bound, print_dynamic_range_bound, print_range_type):
2538 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2540 * ada-typeprint.c (print_range): Add missing empty line
2541 after local declaration.
2543 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2545 * ada-valprint.c (print_optional_low_bound): Get index_type's
2546 target type for as long as it is a TYPE_CODE_RANGE.
2548 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2550 * procfs.c (procfs_make_note_section): Remove assertion and
2553 2014-01-24 Yao Qi <yao@codesourcery.com>
2555 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2556 * corelow.c (get_core_siginfo): Likewise.
2558 2014-01-24 Yao Qi <yao@codesourcery.com>
2560 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2561 ULONGEST. Don't check 'len' is negative.
2562 (remote_write_bytes): Change type of 'len' to ULONGEST.
2564 2014-01-23 Tom Tromey <tromey@redhat.com>
2567 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2568 Handle exception from frame.block.
2569 (FrameVars.fetch_frame_locals): Likewise.
2571 2014-01-23 Tom Tromey <tromey@redhat.com>
2574 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2575 on a NULL pointer. Move "goto error" to correct place.
2577 2014-01-23 Tom Tromey <tromey@redhat.com>
2580 * python/py-framefilter.c (apply_frame_filter): Call
2581 ensure_python_env after computing gdbarch.
2583 2014-01-23 Yao Qi <yao@codesourcery.com>
2585 * target.c (raw_memory_xfer_partial): Change argument type
2586 from void * to gdb_byte *.
2587 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2589 2014-01-22 Doug Evans <dje@google.com>
2591 New gdbserver option --debug-format=timestamp.
2594 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2596 * syscalls/s390x-linux.xml: New file.
2597 * syscalls/s390-linux.xml: New file.
2598 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2599 (XML_SYSCALL_FILENAME_S390X): Likewise.
2600 (op_svc): New enum value for SVC opcode.
2601 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2602 (s390_linux_get_syscall_number): New function.
2603 (s390_gdbarch_init): Register '*get_syscall_number' and the
2604 syscall xml file name.
2605 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2606 "s390-linux.xml" and "s390x-linux.xml".
2607 * NEWS: Announce new feature.
2609 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2611 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2613 2014-01-22 Pedro Alves <palves@redhat.com>
2615 * xtensa-config.c: Include defs.h.
2617 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2619 * common/common-utils.h: Add "ARI:" comment beside __func__
2622 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2624 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2625 documentation a bit.
2627 2014-01-21 Roland McGrath <mcgrathr@google.com>
2629 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2630 * configure: Regenerate.
2631 * aclocal.m4: Regenerate.
2632 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2633 New substituted variables.
2634 (install-strip): New target.
2635 (INSTALL_SCRIPT): New substituted variable.
2636 (FLAGS_TO_PASS): Add it.
2637 (install-only): Use $(INSTALL_SCRIPT) rather than
2638 $(INSTALL_PROGRAM) for gcore.
2640 2014-01-20 Tom Tromey <tromey@redhat.com>
2642 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2645 2014-01-20 Tom Tromey <tromey@redhat.com>
2647 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2648 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2649 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2650 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2651 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2652 (struct cmd_list_element) <flags>: Remove.
2653 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2654 doc_allocated>: New fields.
2655 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2657 * maint.c (maintenance_do_deprecate): Update.
2658 * top.c (execute_command): Update.
2660 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2662 * xtensa-linux-nat.c: Include asm/ptrace.h.
2664 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2666 * Makefile.in (SFILES): Add d-support.c.
2667 (COMMON_OBS): Add d-support.o.
2668 * d-lang.h (d_parse_symbol): Add comment, now defined in
2670 * d-lang.c (parse_call_convention)
2671 (parse_attributes, parse_function_types)
2672 (parse_function_args, parse_type, parse_identifier)
2673 (call_convention_p, d_parse_symbol): Move functions to ...
2674 * d-support.c: ... New file.
2676 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2678 * d-lang.h (d_parse_symbol): Add declaration.
2679 * d-lang.c (extract_identifiers)
2680 (extract_type_info): Remove functions.
2681 (parse_call_convention, parse_attributes)
2682 (parse_function_types, parse_function_args)
2683 (parse_type, parse_identifier, call_convention_p)
2684 (d_parse_symbol): New functions.
2685 (d_demangle): Use d_parse_symbol to demangle D symbols.
2687 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2689 * d-lang.h (struct builtin_d_type): New data type.
2690 (builtin_d_type): Add declaration.
2691 * d-lang.c (d_language_arch_info, build_d_types)
2692 (builtin_d_type): New functions.
2693 (enum d_primitive_types): New data type.
2694 (d_language_defn): Change c_language_arch_info to
2695 d_language_arch_info.
2696 (d_type_data): New static variable.
2697 (_initialize_d_language): Initialize d_type_data.
2699 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2701 * d-lang.h (d_main_name): Add declaration.
2702 * d-lang.c (d_main_name): New function.
2703 * symtab.c (find_main_name): Add call to d_main_name.
2705 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2707 * d-lang.c (d_language_defn): Change macro_expansion_c to
2710 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2712 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2714 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2716 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2717 gdb_exception" declaration.
2718 * remote.c (getpkt_or_notif_sane): Likewise.
2720 2014-01-17 Doug Evans <dje@google.com>
2722 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2723 function, contents of dirnames_to_char_ptr_vec_append moved here.
2724 (delim_string_to_char_ptr_vec): New function.
2725 (dirnames_to_char_ptr_vec_append): Rewrite.
2726 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2728 2014-01-17 Doug Evans <dje@google.com>
2730 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2732 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2733 #include "common-utils.h".
2734 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2735 * common/vec.h (VEC_ASSERT_PASS): Update.
2736 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2737 (MACH_CHECK_ERROR): Update.
2739 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2741 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2743 * gdbarch.h: Regenerate.
2745 2014-01-16 Tom Tromey <tromey@redhat.com>
2747 * value.c (struct value) <regnum>: Move earlier.
2749 2014-01-16 Tom Tromey <tromey@redhat.com>
2751 * remote.c (extended_remote_create_inferior): Rename from
2752 extended_remote_create_inferior_1. Add "ops" argument. Remove
2755 2014-01-16 Pedro Alves <palves@redhat.com>
2757 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2758 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2761 2014-01-16 Doug Evans <dje@google.com>
2763 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2767 * btrace.h (btrace_thread_flag): New.
2768 (struct btrace_thread_info) <flags>: New.
2769 * record-btrace.c (record_btrace_resume_thread)
2770 (record_btrace_find_thread_to_move, btrace_step_no_history)
2771 (btrace_step_stopped, record_btrace_start_replaying)
2772 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2773 (record_btrace_find_resume_thread): New.
2774 (record_btrace_resume, record_btrace_wait): Extend.
2775 (record_btrace_can_execute_reverse): New.
2776 (record_btrace_open): Fail in non-stop mode.
2777 (record_btrace_set_replay): Split into this, ...
2778 (record_btrace_stop_replaying): ... this, ...
2779 (record_btrace_clear_histories): ... and this.
2780 (init_record_btrace_ops): Init to_can_execute_reverse.
2781 * NEWS: Announce it.
2783 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2785 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2786 (forward_target_decr_pc_after_break)
2787 (target_decr_pc_after_break): New.
2788 * target.c (forward_target_decr_pc_after_break)
2789 (target_decr_pc_after_break): New.
2790 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2791 instead of gdbarch_decr_pc_after_break.
2792 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2793 instead of gdbarch_decr_pc_after_break.
2794 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2795 instead of gdbarch_decr_pc_after_break.
2796 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2797 instead of gdbarch_decr_pc_after_break.
2798 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2799 instead of gdbarch_decr_pc_after_break.
2800 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2801 instead of gdbarch_decr_pc_after_break.
2803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2805 * btrace.c: Include regcache.h.
2806 (btrace_add_pc): New.
2807 (btrace_enable): Call btrace_add_pc.
2808 (btrace_is_empty): New.
2809 * btrace.h (btrace_is_empty): New.
2810 * record-btrace.c (require_btrace, record_btrace_info): Call
2813 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2815 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2816 Support delta reads.
2817 (linux_disable_btrace): Change return type.
2818 * common/linux-btrace.h (linux_read_btrace): Change parameters
2819 and return type to allow error reporting. Update users.
2820 (linux_disable_btrace): Change return type. Update users.
2821 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2823 (btrace_error): New.
2824 (btrace_block) <begin>: Comment on BEGIN == 0.
2825 * btrace.c (btrace_compute_ftrace): Start from the end of
2827 (btrace_stitch_trace, btrace_clear_history): New.
2828 (btrace_fetch): Read delta trace, return if replaying.
2829 (btrace_clear): Move clear history code to btrace_clear_history.
2830 (parse_xml_btrace): Throw an error if parsing failed.
2831 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2832 and return type to allow error reporting.
2833 (target_read_btrace): Change parameters and return type to allow
2835 * target.c (target_read_btrace): Update.
2836 * remote.c (remote_read_btrace): Support delta reads. Pass
2838 * NEWS: Announce it.
2840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2842 * record.h (record_btrace_frame_unwind)
2843 (record_btrace_tailcall_frame_unwind): New declarations.
2844 * dwarf2-frame: Include record.h
2845 (dwarf2_frame_cfa): Throw an error for btrace frames.
2846 * record-btrace.c: Include hashtab.h.
2847 (btrace_get_bfun_name): New.
2848 (btrace_call_history): Call btrace_get_bfun_name.
2849 (struct btrace_frame_cache): New.
2851 (bfcache_hash, bfcache_eq, bfcache_new): New.
2852 (btrace_get_frame_function): New.
2853 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2854 (record_btrace_frame_this_id): Compute own id.
2855 (record_btrace_frame_prev_register): Provide PC, throw_error
2856 for all other registers.
2857 (record_btrace_frame_sniffer): Detect btrace frames.
2858 (record_btrace_tailcall_frame_sniffer): New.
2859 (record_btrace_frame_dealloc_cache): New.
2860 (record_btrace_frame_unwind): Add new functions.
2861 (record_btrace_tailcall_frame_unwind): New.
2862 (_initialize_record_btrace): Allocate cache.
2863 * btrace.c (btrace_clear): Call reinit_frame_cache.
2864 * NEWS: Announce it.
2866 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2868 * record-btrace.c (record_btrace_set_replay)
2869 (record_btrace_goto_begin, record_btrace_goto_end)
2870 (record_btrace_goto): New.
2871 (init_record_btrace_ops): Initialize them.
2872 * NEWS: Announce it.
2874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2876 * record-btrace.c (record_btrace_find_new_threads)
2877 (record_btrace_thread_alive): New.
2878 (init_record_btrace_ops): Initialize to_find_new_threads and
2881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2883 * record-btrace.c (record_btrace_resume): New.
2884 (record_btrace_wait): New.
2885 (init_record_btrace_ops): Initialize to_wait and to_resume.
2887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2889 * record-btrace.c (record_btrace_xfer_partial)
2890 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2891 (record_btrace_allow_memory_access): New.
2892 (init_record_btrace_ops): Initialize new methods.
2893 * target.c (raw_memory_xfer_partial): Bail out if target reports
2894 that this memory is not available.
2896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2898 * target.h (target_ops) <to_insert_breakpoint>
2899 <to_remove_breakpoint>: Add target_ops parameter.
2900 (forward_target_insert_breakpoint): New.
2901 (forward_target_remove_breakpoint): New.
2902 (memory_remove_breakpoint, memory_insert_breakpoint):
2903 Add target_ops parameter.
2904 * target.c (target_insert_breakpoint): Split into this and ...
2905 (forward_target_insert_breakpoint): ... this.
2906 (target_remove_breakpoint): Split into this and ...
2907 (forward_target_remove_breakpoint): ... this.
2908 (debug_to_insert_breakpoint): Add target_ops parameter.
2909 Call forward_target_insert_breakpoint.
2910 (debug_to_remove_breakpoint): Add target_ops parameter.
2911 Call forward_target_remove_breakpoint.
2912 (update_current_target): Do not inherit or default to_insert_breakpoint
2913 and to_remove_breakpoint.
2914 * corelow.c (ignore): Add target_ops parameter.
2915 * exec.c (ignore): Add target_ops parameter.
2916 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2917 Add target_ops parameter.
2918 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2919 Add target_ops parameter.
2920 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2921 Add target_ops parameter.
2922 * record-full.c (record_full_beneath_to_insert_breakpoint)
2923 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2924 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2925 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2926 (record_full_core_remove_breakpoint): Add target_ops parameter.
2928 (record_full_beneath_to_insert_breakpoint_ops)
2929 (record_full_beneath_to_remove_breakpoint_ops)
2930 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2931 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2932 tmp_to_remove_breakpoint_ops,
2933 record_full_beneath_to_insert_breakpoint_ops, and
2934 record_full_beneath_to_remove_breakpoint_ops.
2935 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2936 (m32r_remove_breakpoint): Add target_ops parameter.
2937 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2938 Add target_ops parameter.
2939 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2940 Add target_ops parameter.
2942 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2943 Markus Metzger <markus.t.metzger@intel.com>
2945 * record-btrace.c: Include frame-unwind.h.
2946 (record_btrace_frame_unwind_stop_reason)
2947 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2948 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2950 (init_record_btrace_ops): Install it.
2952 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2954 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2957 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2959 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2962 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 * frame-unwind.c: Include target.h.
2965 (frame_unwind_try_unwinder): New function with code from ...
2966 (frame_unwind_find_by_frame): ... here. New variable
2967 unwinder_from_target, call also target_get_unwinder)
2968 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2969 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2970 * target.h (struct target_ops): New fields to_get_unwinder and
2971 to_get_tailcall_unwinder.
2972 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2976 * record-btrace.c (record_btrace_fetch_registers)
2977 (record_btrace_store_registers)
2978 (record_btrace_to_prepare_to_store): New.
2979 (init_record_btrace_ops): Add the above.
2981 2014-01-16 Tom Tromey <tromey@redhat.com>
2983 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2984 * target.h (struct target_ops) <to_prepare_to_store>: Add
2986 (target_prepare_to_store): Add argument.
2987 * target.c (debug_to_prepare_to_store): Add argument.
2988 (update_current_target): Update.
2989 * remote.c (remote_prepare_to_store): Add 'self' argument.
2990 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2991 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2992 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2993 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2995 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2996 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2997 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2998 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2999 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3003 * btrace.h (replay) <replay>: New.
3004 (btrace_is_replaying): New.
3005 * btrace.c (btrace_clear): Free replay iterator.
3006 (btrace_is_replaying): New.
3007 * record-btrace.c (record_btrace_is_replaying): New.
3008 (record_btrace_info): Print insn number if replaying.
3009 (record_btrace_insn_history): Start at replay position.
3010 (record_btrace_call_history): Start at replay position.
3011 (init_record_btrace_ops): Init to_record_is_replaying.
3013 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3015 * record-btrace.c (record_btrace_insn_history_range): Include
3017 (record_btrace_insn_history_from): Adjust range.
3018 (record_btrace_call_history_range): Include
3020 (record_btrace_call_history_from): Adjust range.
3021 * NEWS: Announce changes.
3023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3025 * record.h (enum record_print_flag)
3026 <record_print_indent_calls>: New.
3027 * record.c (get_call_history_modifiers): Recognize /c modifier.
3028 (_initialize_record): Document /c modifier.
3029 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3030 Reorder fields. Optionally indent the function name. Update
3032 * NEWS: Announce changes.
3034 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3036 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3040 * btrace.c (ftrace_new_function): Start counting at one.
3041 * record-btrace.c (record_btrace_info): Adjust number of calls
3043 * NEWS: Announce it.
3045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3047 * record-btrace.c (btrace_call_history_insn_range): Print
3048 insn range as [begin, end].
3050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3052 * btrace.h (struct btrace_func_link): New.
3053 (enum btrace_function_flag): New.
3054 (struct btrace_inst): Rename to ...
3055 (struct btrace_insn): ...this. Update all users.
3056 (struct btrace_func) <ibegin, iend>: Remove.
3057 (struct btrace_func_link): New.
3058 (struct btrace_func): Rename to ...
3059 (struct btrace_function): ...this. Update all users.
3060 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3061 (number, level, flags>: New.
3062 (struct btrace_insn_iterator): Rename to ...
3063 (struct btrace_insn_history): ...this.
3065 (struct btrace_insn_iterator, btrace_call_iterator): New.
3066 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3067 (struct btrace_target_info) <begin, end, level>
3068 <insn_history, call_history>: New.
3069 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3070 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3071 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3072 (btrace_call_number, btrace_call_begin, btrace_call_end)
3073 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3074 (btrace_find_function_by_number, btrace_set_insn_history)
3075 (btrace_set_call_history): New.
3076 * btrace.c (btrace_init_insn_iterator)
3077 (btrace_init_func_iterator, compute_itrace): Remove.
3078 (ftrace_print_function_name, ftrace_print_filename)
3079 (ftrace_skip_file): Change
3081 (ftrace_init_func): Remove.
3082 (ftrace_debug): Use new btrace_function fields.
3083 (ftrace_function_switched): Also consider gaining and
3084 losing symbol information).
3085 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3086 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3087 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3089 (ftrace_new_function): Move. Remove debug print.
3090 (ftrace_update_lines, ftrace_update_insns): New.
3091 (ftrace_update_function): Check for call, ret, and jump.
3092 (compute_ftrace): Renamed to ...
3093 (btrace_compute_ftrace): ...this. Rewritten to compute call
3095 (btrace_fetch, btrace_clear): Updated.
3096 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3097 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3098 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3099 (btrace_call_number, btrace_call_begin, btrace_call_end)
3100 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3101 (btrace_find_function_by_number, btrace_set_insn_history)
3102 (btrace_set_call_history): New.
3103 * record-btrace.c (require_btrace): Use new btrace thread
3105 (record_btrace_info, btrace_insn_history)
3106 (record_btrace_insn_history, record_btrace_insn_history_range):
3107 Use new btrace thread info fields and new iterator.
3108 (btrace_func_history_src_line): Rename to ...
3109 (btrace_call_history_src_line): ...this. Use new btrace
3111 (btrace_func_history): Rename to ...
3112 (btrace_call_history): ...this. Use new btrace thread info
3113 fields and new iterator.
3114 (record_btrace_call_history, record_btrace_call_history_range):
3115 Use new btrace thread info fields and new iterator.
3117 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3119 * frame.h (frame_id_build_unavailable_stack_special): New.
3120 * frame.c (frame_id_build_unavailable_stack_special): New.
3122 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3124 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3125 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3126 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3128 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3129 (i386_insn_is_jump, i386_jmp_p): New.
3130 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3131 insn_is_jump to gdbarch.
3132 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3133 * gdbarch.h: Regenerated.
3134 * gdbarch.c: Regenerated.
3135 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3136 (default_insn_is_jump): New.
3137 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3138 (default_insn_is_jump): New.
3140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3142 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3144 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3145 (btrace_read_type) <btrace_read_new>: Change to ...
3146 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3148 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3150 * common/linux-btrace.c (linux_read_btrace): Free trace from
3153 2014-01-15 Doug Evans <dje@google.com>
3155 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3158 2014-01-15 Tom Tromey <tromey@redhat.com>
3160 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3161 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3162 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3163 (set_objfile_main_name): New function.
3164 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3165 language_of_main>: New fields.
3166 (set_objfile_main_name): Declare.
3167 * symtab.c (find_main_name): Loop over objfiles to find the main
3169 (set_main_name): Now static.
3170 (get_main_info): Add comment.
3171 * symtab.h (set_main_name): Don't declare.
3173 2014-01-15 Tom Tromey <tromey@redhat.com>
3175 * symtab.c (main_progspace_key): New global.
3176 (struct main_info): New.
3177 (name_of_main, language_of_main): Remove.
3178 (get_main_info, main_info_cleanup): New function.
3179 (set_main_name, main_name, main_language): Use get_main_info.
3180 (_initialize_symtab): Initialize main_progspace_key.
3182 2014-01-15 Tom Tromey <tromey@redhat.com>
3184 * dbxread.c (process_one_symbol): Update.
3185 * dwarf2read.c (read_partial_die): Update.
3186 * symfile.c (set_initial_language): Call main_language.
3187 * symtab.c (language_of_main): Now static.
3188 (set_main_name): Add 'lang' parameter.
3189 (find_main_name): Update.
3190 (main_language): New function.
3191 (symtab_observer_executable_changed): Update.
3192 * symtab.h (set_main_name): Update.
3193 (language_of_main): Remove.
3194 (main_language): Declare.
3196 2014-01-15 Tom Tromey <tromey@redhat.com>
3198 * symfile.c (init_entry_point_info): Use new "initialized" field.
3200 * objfiles.h (struct entry_point) <initialized>: New field.
3201 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3202 (struct objfile) <ei>: ...here. Remove.
3203 * objfiles.c (entry_point_address_query): Update.
3205 2014-01-15 Tom Tromey <tromey@redhat.com>
3207 * objfiles.c (entry_point_address_query): Relocate entry point
3209 (objfile_relocate1): Do not relocate entry point address.
3210 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3211 <the_bfd_section_index>: New field.
3212 * symfile.c (init_entry_point_info): Find the entry point's
3215 2014-01-15 Tom Tromey <tromey@redhat.com>
3217 * solib-frv.c (enable_break): Use entry_point_address_query.
3219 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3221 * NEWS: Add note on improved process record-replay on
3222 arm*-linux* targets.
3224 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3226 * arm-tdep.c (enum arm_record_result): New enum.
3227 (arm_record_unsupported_insn): New function.
3228 (arm_record_coproc_data_proc): Removed.
3229 (thumb2_record_ld_st_multiple): New function.
3230 (thumb2_record_ld_st_dual_ex_tbb): New function.
3231 (thumb2_record_data_proc_sreg_mimm): New function.
3232 (thumb2_record_ps_dest_generic): New function.
3233 (thumb2_record_branch_misc_cntrl): New function.
3234 (thumb2_record_str_single_data): New function.
3235 (thumb2_record_ld_mem_hints): New function.
3236 (thumb2_record_ld_word): New function.
3237 (thumb2_record_lmul_lmla_div): New function.
3238 (thumb2_record_decode_insn_handler): New function.
3239 (decode_insn): Add thumb32 instruction handlers.
3241 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3243 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3244 (struct arm_linux_record_tdep): Declare.
3245 (arm_canonicalize_syscall): New function.
3246 (arm_all_but_pc_registers_record): New function.
3247 (arm_linux_syscall_record): New function.
3248 (arm_linux_init_abi): Add syscall recording constructs.
3249 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3250 decoding. (arm_record_coproc_data_proc): Update arm syscall
3252 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3253 <arm_syscall_record>: New field.
3254 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3257 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3259 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3260 register for push instruction recording.
3262 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3264 * arm-tdep.c (thumb_record_misc): Update to correct logical
3265 error while recording ldm, ldmia and pop instructions.
3267 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3269 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3271 2014-01-15 Pedro Alves <palves@redhat.com>
3273 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3274 (go32_resume, go32_fetch_registers, store_register)
3275 (go32_store_registers, go32_prepare_to_store)
3276 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3277 (go32_create_inferior, go32_can_run, go32_terminal_init)
3278 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3281 2014-01-15 Tom Tromey <tromey@redhat.com>
3283 * target.h (async_callback_ftype): New typedef.
3284 (struct target_ops) <to_async>: Use it.
3286 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3288 * python/py-value.c (get_field_type): Remove unnecessary curly
3289 braces for single-statement if block.
3291 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3293 * python/py-type.c (convert_field): Add missing empty line
3296 2014-01-14 Doug Evans <dje@google.com>
3298 * symfile.h (expand_symtabs_matching): Renamed from
3299 expand_partial_symbol_names. Update prototype.
3300 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3301 * symfile.c (expand_symtabs_matching): Renamed from
3302 expand_partial_symbol_names. New args file_matcher, kind.
3303 Rename arg fun to symbol_matcher.
3304 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3305 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3306 ada_expand_partial_symbol_name.
3307 (ada_make_symbol_completion_list): Update to call
3308 expand_symtabs_matching.
3309 (ada_add_global_exceptions): Call expand_symtabs_matching.
3310 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3311 call map_symbol_filenames.
3312 * symtab.c (sources_info): Update to call map_symbol_filenames.
3313 (search_symbols): Call expand_symtabs_matching.
3314 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3315 (default_make_symbol_completion_list_break_on): Update to call
3316 expand_symtabs_matching.
3317 (make_source_files_completion_list): Update to call
3318 map_symbol_filenames.
3320 2014-01-14 Doug Evans <dje@google.com>
3322 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3323 (expand_symtabs_symbol_matcher_ftype): New typedef.
3324 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3325 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3326 * symfile.c (expand_partial_symbol_names): Update to use
3327 expand_symtabs_symbol_matcher_ftype.
3328 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3329 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3330 Arg name_matcher renamed to symbol_matcher.
3331 * psymtab.c (recursively_search_psymtabs): Update to use
3332 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3334 (expand_symtabs_matching_via_partial): Update to use
3335 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3336 Arg name_matcher renamed to symbol_matcher.
3338 2014-01-14 Doug Evans <dje@google.com>
3340 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3341 (map_partial_symbol_filenames): Ditto.
3342 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3343 (map_partial_symbol_filenames): Ditto.
3344 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3345 (map_partial_symbol_filenames): Ditto.
3346 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3347 (map_partial_symbol_filenames): Ditto.
3348 * symtab.c: Delete #include "psymtab.h".
3350 2014-01-14 Pedro Alves <palves@redhat.com>
3351 Tom Tromey <tromey@redhat.com>
3353 * infrun.c (use_displaced_stepping): Use find_record_target
3354 instead of RECORD_IS_USED.
3355 (adjust_pc_after_break): Use record_full_is_used instead of
3357 * record-btrace.c (record_btrace_open): Call record_preopen
3358 instead of checking RECORD_IS_USED.
3359 * record-full.c (record_full_shortname)
3360 (record_full_core_shortname): New globals.
3361 (record_full_is_used): New function.
3362 (find_full_open): Call record_preopen instead of checking
3364 (init_record_full_ops): Set the target's shortname to
3365 record_full_shortname.
3366 (init_record_full_core_ops): Set the target's shortname to
3367 record_full_core_shortname.
3368 * record-full.h (record_full_is_used): Declare.
3369 * record.c (find_record_target): Make extern.
3370 (record_preopen): New function.
3371 * record.h (RECORD_IS_USED): Delete macro.
3372 (find_record_target, record_preopen): Declare functions.
3374 2014-01-14 Yao Qi <yao@codesourcery.com>
3376 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3377 'len''s type to ULONGEST.
3378 (core_xfer_shared_libraries_aix): Likewise.
3379 * gdbarch.c, gdbarch.h: Regenerated.
3380 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3381 Change type of 'len' to ULONGEST.
3382 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3383 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3385 2014-01-14 Yao Qi <yao@codesourcery.com>
3387 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3388 type of 'len' to ULONGEST.
3389 (linux_xfer_osdata_processgroups): Likewise.
3390 (linux_xfer_osdata_threads): Likewise.
3391 (linux_xfer_osdata_fds): Likewise.
3392 (linux_xfer_osdata_isockets): Likewise.
3393 (linux_xfer_osdata_shm): Likewise.
3394 (linux_xfer_osdata_sem): Likewise.
3395 (linux_xfer_osdata_msg): Likewise.
3396 (linux_common_xfer_osdata): Likewise.
3397 (struct osdata_type) <getter>: Likewise.
3398 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3401 2014-01-14 Yao Qi <yao@codesourcery.com>
3403 * target.h (target_xfer_partial_ftype): Update.
3404 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3406 * aix-thread.c (aix_thread_xfer_partial): Change type of
3407 argument 'len' to ULONGEST.
3408 * auxv.c (procfs_xfer_auxv): Likewise.
3409 (ld_so_xfer_auxv): Likewise.
3410 (memory_xfer_auxv): Likewise.
3411 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3412 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3413 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3414 * corelow.c (core_xfer_partial): Likewise.
3415 * ctf.c (ctf_xfer_partial): Likewise.
3416 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3418 (darwin_read_dyld_info): Likewise.
3419 (darwin_xfer_partial): Likewise.
3420 * exec.c (section_table_xfer_memory_partial): Likewise.
3421 (exec_xfer_partial): Likewise.
3422 * exec.h (section_table_xfer_memory_partial): Update
3424 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3425 instead of plongest.
3426 (gnu_xfer_partial): Likewise.
3427 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3428 (ia64_hpux_xfer_solib_got): Likewise.
3429 (ia64_hpux_xfer_partial): Likewise.
3430 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3431 * inf-ptrace.c (inf_ptrace_xfer_partial):
3432 * inf-ttrace.c (inf_ttrace_xfer_partial):
3433 * linux-nat.c (linux_xfer_siginfo): Likewise.
3434 (linux_nat_xfer_partial): Likewise.
3435 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3436 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3437 * monitor.c (monitor_xfer_memory): Likewise.
3438 (monitor_xfer_partial): Likewise.
3439 * procfs.c (procfs_xfer_partial): Likewise.
3440 * record-full.c (record_full_xfer_partial): Likewise.
3441 (record_full_core_xfer_partial): Likewise.
3442 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3443 instead of plongest.
3444 (gdbsim_xfer_partial): Likewise.
3445 * remote.c (remote_xfer_partial): Likewise.
3446 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3447 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3449 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3450 (rs6000_xfer_shared_libraries): Likewise.
3451 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3452 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3453 (sparc_xfer_partial): Likewise.
3454 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3455 (spu_xfer_partial): Likewise.
3456 * spu-multiarch.c (spu_xfer_partial): Likewise.
3457 * target.c (target_read_live_memory): Likewise.
3458 (memory_xfer_live_readonly_partial): Likewise.
3459 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3460 (target_xfer_partial, default_xfer_partial): Likewise.
3461 (current_xfer_partial): Likewise.
3462 * tracepoint.c (tfile_xfer_partial): Likewise.
3463 * windows-nat.c (windows_xfer_memory): Likewise. Call
3464 pulongest instead of plongest.
3465 (windows_xfer_partial): Likewise.
3466 (windows_xfer_shared_libraries): Likewise.
3468 2014-01-14 Yao Qi <yao@codesourcery.com>
3470 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3471 target_xfer_partial_ftype.
3473 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3477 * valops.c (value_struct_elt_bitpos): New function
3478 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3479 object to 'None' if the field name is an empty string ("").
3480 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3481 attribute to look for a field when 'name' is 'None'.
3482 (get_field_type): New function
3484 2014-01-13 Doug Evans <dje@google.com>
3487 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3488 (try_open_dwop_file): Ditto.
3489 * gdb_bfd.c: #include "vec.h".
3490 (bfdp): New typedef.
3491 (struct gdb_bfd_data): New member included_bfds.
3492 (gdb_bfd_unref): Unref all included bfds.
3493 (gdb_bfd_record_inclusion): New function.
3494 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3496 2014-01-13 Tom Tromey <tromey@redhat.com>
3498 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3500 2014-01-13 Tom Tromey <tromey@redhat.com>
3502 * defs.h (use_windows): Remove.
3503 * gdb.c (main): Update.
3504 * main.c (captured_main, gdb_main): Update.
3505 * main.h (struct captured_main_args) <use_windows>: Remove.
3506 * top.c (use_windows): Remove.
3508 2014-01-13 Tom Tromey <tromey@redhat.com>
3510 * defs.h (deprecated_flush_hook): Remove.
3512 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 * linux-thread-db.c (try_thread_db_load): Add parameter
3516 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3517 (try_thread_db_load_from_pdir_1): Move it there from here.
3518 (try_thread_db_load_from_sdir): Update caller.
3519 (try_thread_db_load_from_dir): Move it there from here.
3521 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3523 * regformats/regdat.sh: Always rewrite the register file.
3525 2014-01-13 Pedro Alves <palves@redhat.com>
3527 * Makefile.in (CHECK_HEADERS): New variable.
3528 (check-headers:): New rule.
3530 2014-01-13 Tom Tromey <tromey@redhat.com>
3532 * cli/cli-setshow.c (do_set_command): Update.
3533 * defs.h (deprecated_set_hook): Remove.
3534 * top.c (deprecated_set_hook): Remove.
3536 2014-01-13 Pedro Alves <palves@redhat.com>
3538 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3539 the tracepoint if the PC is a pseudo-register.
3541 2014-01-13 Tom Tromey <tromey@redhat.com>
3543 * defs.h (XCALLOC): Remove.
3544 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3545 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3546 * dwarf2loc.c (allocate_piece_closure): Likewise.
3547 * elfread.c (elf_symfile_segments): Likewise.
3548 (elf_symfile_segments): Likewise.
3549 * gdbtypes.c (copy_type_recursive): Likewise.
3550 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3551 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3552 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3554 * mt-tdep.c (mt_gdbarch_init): Likewise.
3555 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3557 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3558 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3559 * registry.c (registry_alloc_data): Likewise.
3560 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3561 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3562 * serial.c (serial_fdopen_ops): Likewise.
3563 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3565 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3566 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3569 2014-01-13 Tom Tromey <tromey@redhat.com>
3571 * defs.h (XMALLOC): Remove.
3572 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3573 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3574 * cli-out.c (struct ui_out *): Likewise.
3575 * cli/cli-dump.c (add_dump_command): Likewise.
3576 (add_dump_command): Likewise.
3577 * complaints.c (get_complaints): Likewise.
3578 (find_complaint): Likewise.
3579 * dwarf2-frame.c (execute_cfa_program): Likewise.
3580 * dwarf2read.c (abbrev_table_read_table): Likewise.
3581 * gdbarch.sh: Likewise.
3582 * gdbarch.c: Rebuild.
3583 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3584 * interps.c (interp_new): Likewise.
3585 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3586 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3587 * mi/mi-console.c (mi_console_file_new): Likewise.
3588 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3589 * mi/mi-out.c (mi_out_new): Likewise.
3590 * mi/mi-parse.c (mi_parse): Likewise.
3591 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3592 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3593 * observer.c (xalloc_observer_list_node): Likewise.
3594 * regcache.c (regcache_xmalloc_1): Likewise.
3595 * reggroups.c (reggroup_new): Likewise.
3596 (_initialize_reggroup): Likewise.
3597 * registry.c (register_data_with_cleanup): Likewise.
3598 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3599 * ser-base.c (serial_ttystate): Likewise.
3600 * ser-mingw.c (make_pipe_state): Likewise.
3601 * ser-pipe.c (pipe_open): Likewise.
3602 * serial.c (serial_open): Likewise.
3603 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3604 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3605 (tui_alloc_win_info): Likewise.
3606 (tui_add_content_elements): Likewise.
3607 * tui/tui-file.c (tui_file_new): Likewise.
3608 * tui/tui-out.c (tui_out_new): Likewise.
3609 * ui-file.c (mem_file_new): Likewise.
3610 * ui-out.c (push_level): Likewise.
3611 (make_cleanup_ui_out_end): Likewise.
3612 (append_header_to_list): Likewise.
3613 (ui_out_new): Likewise.
3614 * user-regs.c (user_reg_add_builtin): Likewise.
3616 2014-01-13 Tom Tromey <tromey@redhat.com>
3618 * defs.h (XZALLOC): Remove.
3619 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3620 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3621 (get_ada_tasks_inferior_data): Likewise.
3622 * auto-load.c (get_auto_load_pspace_data): Likewise.
3623 * auxv.c (get_auxv_inferior_data): Likewise.
3624 * bfd-target.c (target_bfd_reopen): Likewise.
3625 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3626 (deprecated_insert_raw_breakpoint): Likewise.
3627 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3628 * corelow.c (core_open): Likewise.
3629 * darwin-nat.c (darwin_check_new_threads): Likewise.
3630 (darwin_attach_pid): Likewise.
3631 * dummy-frame.c (dummy_frame_push): Likewise.
3632 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3633 * dwarf2loc.c (allocate_piece_closure): Likewise.
3634 * elfread.c (elf_symfile_segments): Likewise.
3635 * eval.c (ptrmath_type_p): Likewise.
3636 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3637 * gdbtypes.c (alloc_type_arch): Likewise.
3638 (alloc_type_instance): Likewise.
3639 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3640 * inf-child.c (inf_child_can_use_agent): Likewise.
3641 * inflow.c (get_inflow_inferior_data): Likewise.
3642 * infrun.c (save_infcall_suspend_state): Likewise.
3643 * jit.c (jit_reader_load): Likewise.
3644 (get_jit_objfile_data): Likewise.
3645 (get_jit_program_space_data): Likewise.
3646 (jit_object_open_impl): Likewise.
3647 (jit_symtab_open_impl): Likewise.
3648 (jit_block_open_impl): Likewise.
3649 (jit_frame_sniffer): Likewise.
3650 * linux-fork.c (add_fork): Likewise.
3651 * maint.c (make_command_stats_cleanup): Likewise.
3652 * objfiles.c (get_objfile_pspace_data): Likewise.
3653 * opencl-lang.c (struct lval_closure): Likewise.
3654 * osdata.c (osdata_start_osdata): Likewise.
3655 * progspace.c (new_address_space): Likewise.
3656 (add_program_space): Likewise.
3657 * remote-sim.c (get_sim_inferior_data): Likewise.
3658 * sh-tdep.c (sh_gdbarch_init): Likewise.
3659 * skip.c (Ignore): Likewise.
3660 (skip_delete_command): Likewise.
3661 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3662 (library_list_start_library): Likewise.
3663 (solib_aix_current_sos): Likewise.
3664 * solib-darwin.c (get_darwin_info): Likewise.
3665 (darwin_current_sos): Likewise.
3666 * solib-dsbt.c (get_dsbt_info): Likewise.
3667 * solib-ia64-hpux.c (new_so_list): Likewise.
3668 (ia64_hpux_get_solib_linkage_addr): Likewise.
3669 * solib-spu.c (append_ocl_sos): Likewise.
3670 (spu_current_sos): Likewise.
3671 * solib-svr4.c (get_svr4_info): Likewise.
3672 (svr4_keep_data_in_core): Likewise.
3673 (library_list_start_library): Likewise.
3674 (svr4_default_sos): Likewise.
3675 (svr4_read_so_list): Likewise.
3676 * solib-target.c (library_list_start_library): Likewise.
3677 (solib_target_current_sos): Likewise.
3678 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3679 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3680 * symfile.c (default_symfile_segments): Likewise.
3681 * target-descriptions.c (tdesc_data_init): Likewise.
3682 (tdesc_create_reg): Likewise.
3683 (struct tdesc_type *): Likewise.
3684 (tdesc_create_vector): Likewise.
3685 (tdesc_set_struct_size): Likewise.
3686 (struct tdesc_type *): Likewise.
3687 (tdesc_free_feature): Likewise.
3688 (tdesc_create_feature): Likewise.
3689 * windows-nat.c (windows_add_thread): Likewise.
3690 (windows_make_so): Likewise.
3691 * xml-support.c (gdb_xml_body_text): Likewise.
3692 (gdb_xml_create_parser_and_cleanup): Likewise.
3693 (xml_process_xincludes): Likewise.
3694 * xml-syscall.c (allocate_syscalls_info): Likewise.
3695 (syscall_create_syscall_desc): Likewise.
3697 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3699 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3700 function, with code from i386_stap_parse_special_token.
3701 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3702 (i386_stap_parse_special_token): Move code to the two functions
3705 2014-01-09 Pedro Alves <palves@redhat.com>
3706 Hui Zhu <hui@codesourcery.com>
3709 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3710 bp_err_string. Don't mark the location shlib_disabled if the
3711 error thrown wasn't a generic or memory error. Catch errors
3712 thrown while inserting breakpoints in overlayed code. Output
3713 error message of software breakpoints.
3714 * remote.c (remote_insert_breakpoint): If this breakpoint has
3715 target-side commands but this stub doesn't support Z0 packets,
3716 throw NOT_SUPPORTED_ERROR error.
3717 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3718 * target.h (target_insert_breakpoint): Extend comment.
3719 (target_insert_hw_breakpoint): Add comment.
3721 2014-01-08 Pedro Alves <palves@redhat.com>
3723 * remote.c (remote_add_thread): Add threads silently if starting
3725 (remote_notice_new_inferior): If in all-stop, and starting up,
3726 don't call notice_new_inferior.
3727 (get_current_thread): New function, factored out from ...
3728 (add_current_inferior_and_thread): ... this. Adjust.
3729 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3730 found any thread, then select the remote's current thread as GDB's
3733 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3735 * NEWS: Create a new section for the next release branch.
3736 Rename the section of the current branch, now that it has
3739 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3741 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3742 * version.in: Bump version to 7.7.50.DATE-cvs.
3744 2014-01-08 Yao Qi <yao@codesourcery.com>
3746 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3747 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3748 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3750 2014-01-08 Yao Qi <yao@codesourcery.com>
3752 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3753 return value of bfd_get_filename to symbol_file_add_from_bfd.
3755 2014-01-08 Pierre Muller <muller@sourceware.org>
3758 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3759 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3760 to prim_record_mininal_symbol_and_info.
3761 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3762 in call to prim_record_minimal_symbol_and_info.
3763 (read_pe_exported_syms): Set index field of section_data.
3765 2014-01-07 Andrew Pinski <apinski@cavium.com>
3767 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3768 * features/aarch64.c: Regenerate.
3770 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3772 * target.c (return_null): Define.
3773 (update_current_target): Use it instead of return_zero for
3774 functions that return a pointer.
3776 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3778 * source.c (add_path): Fix check for duplicated paths in the previously
3781 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3783 * ada-lang.c: Remove duplicated include statements.
3784 * alphabsd-nat.c: Ditto.
3785 * amd64-darwin-tdep.c: Ditto.
3786 * amd64fbsd-nat.c: Ditto.
3787 * auto-load.c: Ditto.
3789 * breakpoint.c: Ditto.
3791 * fork-child.c: Ditto.
3792 * gdb_usleep.c: Ditto.
3793 * i386-darwin-tdep.c: Ditto.
3794 * i386fbsd-nat.c: Ditto.
3796 * inferior.c: Ditto.
3798 * linux-nat.c: Ditto.
3799 * linux-tdep.c: Ditto.
3800 * m68kbsd-nat.c: Ditto.
3801 * m68klinux-nat.c: Ditto.
3802 * microblaze-tdep.c: Ditto.
3803 * mips-linux-tdep.c: Ditto.
3804 * mn10300-tdep.c: Ditto.
3805 * nto-tdep.c: Ditto.
3806 * opencl-lang.c: Ditto.
3808 * printcmd.c: Ditto.
3809 * regcache.c: Ditto.
3810 * remote-m32r-sdi.c: Ditto.
3814 * tilegx-linux-nat.c: Ditto.
3815 * tilegx-tdep.c: Ditto.
3816 * tracepoint.c: Ditto.
3818 * vaxbsd-nat.c: Ditto.
3819 * windows-nat.c: Ditto.
3820 * xtensa-tdep.c: Ditto.
3822 2014-01-07 Yao Qi <yao@codesourcery.com>
3824 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3826 2014-01-07 Yao Qi <yao@codesourcery.com>
3827 Joel Brobecker <brobecker@adacore.com>
3829 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3830 (pdc_write_regs): Likewise.
3831 (fetch_regs_kernel_thread): Likewise.
3832 (store_regs_kernel_thread): Likewise.
3834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3836 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3837 tagged type objects to their actual type.
3839 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3841 * ada-valprint.c (print_field_values): Add "language" parameter.
3842 Update calls to print_field_values and print_variant_part.
3843 Pass new parameter "language" in call to val_print instead
3844 of "current_language". Replace call to ada_val_print by call
3846 (print_variant_part): Add "language" parameter.
3847 (ada_val_print_struct_union): Update call to print_field_values.
3849 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3851 * ada-valprint.c (ui_memcpy): Delete.
3852 (ada_print_floating): Update documentation. Add empty line
3853 between between function documentation and implementation.
3854 Delete variable "buffer". Use ui_file_xstrdup in place of
3855 ui_file_put. Minor adjustments following this change.
3857 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3859 * ada-valprint.c (ada_val_print_string): New function,
3860 extracted from ada_val_print_array.
3861 (ada_val_print_array): Replace extracted code by call
3862 to ada_val_print_string followed by a return. Move
3863 "else" branch to the function's top block.
3865 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3867 * ada-valprint.c (ada_val_print_array): Move implementation
3868 down. Rename parameter "offset" and "val" into "offset_aligned"
3869 and "original_value" respectively. Add parameter "offset".
3871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3873 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3874 re-organizing the code. Change the "???" message printed
3875 when target type is a TYPE_CODE_UNDEF into
3876 "<ref to undefined type>".
3878 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3880 * ada-valprint.c (print_record): Delete, implementation inlined...
3881 (ada_val_print_struct_union): ... here. Remove call to
3882 ada_check_typedef in inlined implementation.
3884 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3886 * ada-valprint.c (ada_val_print_gnat_array): New function,
3887 extracted from ada_val_print_1;
3888 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3889 (ada_val_print_flt, ada_val_print_struct_union)
3890 (ada_val_print_ref): Likewise.
3891 (ada_val_print_1): Delete variables i and elttype.
3892 Replace extracted-out code by call to corresponding
3895 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3897 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3899 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3901 * ada-valprint.c (ada_val_print_1): Replace calls to
3902 ada_val_print_1 by calls to val_print.
3904 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3906 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3907 Update calls to self accordingly. Replace calls to c_val_print
3908 by calls to val_print.
3910 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3912 * ada-valprint.c (print_record): Delete declaration.
3913 (adjust_type_signedness, ada_val_print_1): Likewise.
3914 (ada_val_print): Move function implementation down.
3915 (print_variant_part, print_field_values, print_record):
3916 Move function implementation up.
3918 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3920 * python/py-type.c (typy_get_name): New function.
3921 (type_object_getset): Add entry for attribute "name".
3922 * NEWS: Add entry mentioning this new attribute.
3924 2014-01-07 Yao Qi <yao@codesourcery.com>
3926 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3929 2014-01-07 Yao Qi <yao@codesourcery.com>
3931 * gnu-nat.c (info_port_rights): Add qualifier const to
3934 2014-01-07 Yao Qi <yao@codesourcery.com>
3936 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3938 2014-01-07 Yao Qi <yao@codesourcery.com>
3940 * gnu-nat.c (make_inf) Update declaration.
3941 (make_inf): Make it static.
3942 (inf_set_traced): Likewise.
3943 (inf_port_to_thread, inf_task_died_status): Likewise.
3945 2014-01-07 Yao Qi <yao@codesourcery.com>
3947 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3949 2014-01-07 Yao Qi <yao@codesourcery.com>
3951 * gnu-nat.c (_initialize_gnu_nat): Declare.
3953 2014-01-07 Yao Qi <yao@codesourcery.com>
3955 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3957 (struct gdbarch_info) <byte_order>: Change type to
3959 <byte_order_for_code>: Likewise.
3960 * gdbarch.c, gdbarch.h: Regenerated.
3962 2014-01-06 Sasha Smundak <asmundak@google.com>
3964 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3966 2014-01-06 Tom Tromey <tromey@redhat.com>
3968 * doublest.c (convert_doublest_to_floatformat): Use const, not
3970 * somread.c (som_symtab_read): Likewise.
3972 2014-01-07 Hui Zhu <hui@codesourcery.com>
3974 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3975 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3976 (gdb_bfd_fopen): Ditto.
3977 (gdb_bfd_openr): Ditto.
3978 (gdb_bfd_openw): Ditto.
3979 (gdb_bfd_openr_iovec): Ditto.
3980 (gdb_bfd_fdopenr): Ditto.
3981 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3982 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3984 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3986 * symfile-mem.c (symbol_file_add_from_memory): Removed
3987 gdb_bfd_stash_filename.
3989 2014-01-03 Doug Evans <dje@google.com>
3991 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3994 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3996 Update year range in copyright notice of all files.
3998 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4000 * top.c (print_gdb_version): Set copyright year to 2014.
4002 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4004 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4006 For older changes see ChangeLog-2013.
4012 version-control: never