1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target-delegates.c: Rebuild.
4 * target.c (update_current_target): Don't inherit or default
5 to_terminal_ours_for_output.
6 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
14 * target.h (struct target_ops) <to_terminal_inferior>: Use
15 TARGET_DEFAULT_IGNORE.
17 2014-02-19 Tom Tromey <tromey@redhat.com>
19 * target-delegates.c: Rebuild.
20 * target.c (update_current_target): Don't inherit or default
22 * target.h (struct target_ops) <to_terminal_init>: Use
23 TARGET_DEFAULT_IGNORE.
25 2014-02-19 Tom Tromey <tromey@redhat.com>
27 * target-delegates.c: Rebuild.
28 * target.c (update_current_target): Don't inherit or default
29 to_can_accel_watchpoint_condition.
30 * target.h (struct target_ops)
31 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
33 2014-02-19 Tom Tromey <tromey@redhat.com>
35 * target-delegates.c: Rebuild.
36 * target.c (update_current_target): Don't inherit or default
37 to_region_ok_for_hw_watchpoint.
38 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
39 Use TARGET_DEFAULT_FUNC.
41 2014-02-19 Tom Tromey <tromey@redhat.com>
43 * target-delegates.c: Rebuild.
44 * target.c (update_current_target): Don't inherit or default
45 to_watchpoint_addr_within_range.
46 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
47 Use TARGET_DEFAULT_FUNC.
49 2014-02-19 Tom Tromey <tromey@redhat.com>
51 * target-delegates.c: Rebuild.
52 * target.c (update_current_target): Don't inherit or default
54 * target.h (struct target_ops) <to_remove_watchpoint>: Use
55 TARGET_DEFAULT_NORETURN.
57 2014-02-19 Tom Tromey <tromey@redhat.com>
59 * target-delegates.c: Rebuild.
60 * target.c (update_current_target): Don't inherit or default
62 * target.h (struct target_ops) <to_insert_watchpoint>: Use
63 TARGET_DEFAULT_RETURN.
65 2014-02-19 Tom Tromey <tromey@redhat.com>
67 * target-delegates.c: Rebuild.
68 * target.c (update_current_target): Don't inherit or default
69 to_remove_hw_breakpoint.
70 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
71 TARGET_DEFAULT_RETURN.
73 2014-02-19 Tom Tromey <tromey@redhat.com>
75 * target-delegates.c: Rebuild.
76 * target.c (update_current_target): Don't inherit or default
77 to_insert_hw_breakpoint.
78 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
79 TARGET_DEFAULT_RETURN.
81 2014-02-19 Tom Tromey <tromey@redhat.com>
83 * target-delegates.c: Rebuild.
84 * target.c (update_current_target): Don't inherit or default
85 to_can_use_hw_breakpoint.
86 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
87 TARGET_DEFAULT_RETURN.
89 2014-02-19 Tom Tromey <tromey@redhat.com>
91 * target-delegates.c: Rebuild.
92 * target.c (update_current_target): Don't inherit or default
94 * target.h (struct target_ops) <to_files_info>: Use
95 TARGET_DEFAULT_IGNORE.
97 2014-02-19 Tom Tromey <tromey@redhat.com>
99 * target-delegates.c: Rebuild.
100 * target.c (update_current_target): Don't inherit or default
102 * target.h (struct target_ops) <to_store>: Use
103 TARGET_DEFAULT_NORETURN.
105 2014-02-19 Tom Tromey <tromey@redhat.com>
107 * target-delegates.c: Rebuild.
108 * target.c (update_current_target): Don't inherit or default
110 * target.h (struct target_ops) <to_post_attach>: Use
111 TARGET_DEFAULT_IGNORE.
113 2014-02-19 Tom Tromey <tromey@redhat.com>
115 * target-delegates.c: Rebuild.
116 * target.c (update_current_target): Don't inherit or default
118 (default_rcmd): New function.
119 (do_monitor_command): Unconditionally delegate.
120 * target.h (struct target_ops) <to_rmcd>: Use
123 2014-02-19 Tom Tromey <tromey@redhat.com>
125 * target-delegates.c: Rebuild.
126 * target.c (init_dummy_target): Don't initialize to_attach.
127 (target_attach): Unconditionally delegate.
128 * target.h (struct target_ops) <to_attach>: Use
131 2014-02-19 Tom Tromey <tromey@redhat.com>
133 * target-delegates.c: Rebuild.
134 * target.c (target_detach): Unconditionally delegate.
135 (init_dummy_target): Don't initialize to_detach.
136 * target.h (struct target_ops) <to_detach>: Use
137 TARGET_DEFAULT_IGNORE.
139 2014-02-19 Tom Tromey <tromey@redhat.com>
141 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
143 (target_augmented_libraries_svr4_read): Add argument.
144 * target.c (update_current_target): Update.
145 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
148 2014-02-19 Tom Tromey <tromey@redhat.com>
150 * target.h (struct target_ops) <to_call_history_range>: Add
152 * target.c (target_call_history_range): Add argument.
153 * record-btrace.c (record_btrace_call_history_range): Add 'self'
155 (record_btrace_call_history_from): Update.
157 2014-02-19 Tom Tromey <tromey@redhat.com>
159 * target.h (struct target_ops) <to_call_history_from>: Add
161 * target.c (target_call_history_from): Add argument.
162 * record-btrace.c (record_btrace_call_history_from): Add 'self'
165 2014-02-19 Tom Tromey <tromey@redhat.com>
167 * target.h (struct target_ops) <to_call_history>: Add argument.
168 * target.c (target_call_history): Add argument.
169 * record-btrace.c (record_btrace_call_history): Add 'self'
172 2014-02-19 Tom Tromey <tromey@redhat.com>
174 * target.h (struct target_ops) <to_insn_history_range>: Add
176 * target.c (target_insn_history_range): Add argument.
177 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
179 (record_btrace_insn_history_from): Update.
181 2014-02-19 Tom Tromey <tromey@redhat.com>
183 * target.h (struct target_ops) <to_insn_history_from>: Add
185 * target.c (target_insn_history_from): Add argument.
186 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
189 2014-02-19 Tom Tromey <tromey@redhat.com>
191 * target.h (struct target_ops) <to_insn_history>: Add argument.
192 * target.c (target_insn_history): Add argument.
193 * record-btrace.c (record_btrace_insn_history): Add 'self'
196 2014-02-19 Tom Tromey <tromey@redhat.com>
198 * target.h (struct target_ops) <to_goto_record>: Add argument.
199 * target.c (target_goto_record): Add argument.
200 * record-full.c (record_full_goto): Add 'self' argument.
201 * record-btrace.c (record_btrace_goto): Add 'self' argument.
203 2014-02-19 Tom Tromey <tromey@redhat.com>
205 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
206 * target.c (target_goto_record_end): Add argument.
207 * record-full.c (record_full_goto_end): Add 'self' argument.
208 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
210 2014-02-19 Tom Tromey <tromey@redhat.com>
212 * target.h (struct target_ops) <to_goto_record_begin>: Add
214 * target.c (target_goto_record_begin): Add argument.
215 * record-full.c (record_full_goto_begin): Add 'self' argument.
216 * record-btrace.c (record_btrace_goto_begin): Add 'self'
219 2014-02-19 Tom Tromey <tromey@redhat.com>
221 * target.h (struct target_ops) <to_record_is_replaying>: Add
223 * target.c (target_record_is_replaying): Add argument.
224 * record-full.c (record_full_is_replaying): Add 'self' argument.
225 * record-btrace.c (record_btrace_is_replaying): Add 'self'
227 (record_btrace_xfer_partial, record_btrace_store_registers)
228 (record_btrace_prepare_to_store, record_btrace_resume)
229 (record_btrace_wait, record_btrace_decr_pc_after_break)
230 (record_btrace_find_new_threads, record_btrace_thread_alive):
233 2014-02-19 Tom Tromey <tromey@redhat.com>
235 * target.h (struct target_ops) <to_delete_record>: Add argument.
236 * target.c (target_delete_record): Add argument.
237 * record-full.c (record_full_delete): Add 'self' argument.
239 2014-02-19 Tom Tromey <tromey@redhat.com>
241 * target.h (struct target_ops) <to_save_record>: Add argument.
242 * target.c (target_save_record): Add argument.
243 * record-full.c (record_full_save): Add 'self' argument.
244 (record_full_save): Add 'self' argument.
246 2014-02-19 Tom Tromey <tromey@redhat.com>
248 * target.h (struct target_ops) <to_info_record>: Add argument.
249 * target.c (target_info_record): Add argument.
250 * record.c (info_record_command): Add argument.
251 * record-full.c (record_full_info): Add 'self' argument.
252 * record-btrace.c (record_btrace_info): Add 'self' argument.
254 2014-02-19 Tom Tromey <tromey@redhat.com>
256 * target.h (struct target_ops) <to_stop_recording>: Add argument.
257 * target.c (target_stop_recording): Add argument.
258 * record.c (record_stop): Add argument.
259 * record-btrace.c (record_btrace_stop_recording): Add 'self'
262 2014-02-19 Tom Tromey <tromey@redhat.com>
264 * target.h (struct target_ops) <to_read_btrace>: Add argument.
265 * target.c (struct target_ops) <to_read_btrace>: Add argument.
266 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
268 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
269 (_initialize_amd64_linux_nat): Use it.
270 * i386-linux-nat.c (i386_linux_read_btrace): New function.
271 (_initialize_i386_linux_nat): Use it.
273 2014-02-19 Tom Tromey <tromey@redhat.com>
275 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
276 * target.c (target_teardown_btrace): Add argument.
277 * remote.c (remote_teardown_btrace): Add 'self' argument.
278 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
280 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
283 2014-02-19 Tom Tromey <tromey@redhat.com>
285 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
286 * target.c (target_disable_btrace): Add argument.
287 * remote.c (remote_disable_btrace): Add 'self' argument.
288 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
290 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
293 2014-02-19 Tom Tromey <tromey@redhat.com>
295 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
296 * target.c (target_enable_btrace): Add argument.
297 * remote.c (remote_enable_btrace): Add 'self' argument.
298 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
300 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
303 2014-02-19 Tom Tromey <tromey@redhat.com>
305 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
306 (target_can_use_agent): Add argument.
307 * target.c (update_current_target): Update.
308 * remote.c (remote_can_use_agent): Add 'self' argument.
309 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
311 2014-02-19 Tom Tromey <tromey@redhat.com>
313 * target.h (struct target_ops) <to_use_agent>: Add argument.
314 (target_use_agent): Add argument.
315 * target.c (update_current_target): Update.
316 * remote.c (remote_use_agent): Add 'self' argument.
317 * inf-child.c (inf_child_use_agent): Add 'self' argument.
319 2014-02-19 Tom Tromey <tromey@redhat.com>
321 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
322 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
323 (target_traceframe_info): Add argument.
324 * target.c (update_current_target): Update.
325 * remote.c (remote_traceframe_info): Add 'self' argument.
326 * ctf.c (ctf_traceframe_info): Add 'self' argument.
328 2014-02-19 Tom Tromey <tromey@redhat.com>
330 * target.h (target_static_tracepoint_markers_by_strid): Add
332 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
334 * target.c (update_current_target): Update.
335 * remote.c (struct target_ops)
336 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
337 * linux-nat.c (struct target_ops)
338 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
340 2014-02-19 Tom Tromey <tromey@redhat.com>
342 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
344 (target_static_tracepoint_marker_at): Add argument.
345 * target.c (update_current_target): Update.
346 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
349 2014-02-19 Tom Tromey <tromey@redhat.com>
351 * target.h (struct target_ops) <to_set_permissions>: Add argument.
352 (target_set_permissions): Add argument.
353 * target.c (update_current_target): Update.
354 * remote.c (remote_set_permissions): Add 'self' argument.
355 (remote_start_remote): Update.
357 2014-02-19 Tom Tromey <tromey@redhat.com>
359 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
360 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
361 (target_get_tib_address): Add argument.
362 * target.c (update_current_target): Update.
363 * remote.c (remote_get_tib_address): Add 'self' argument.
365 2014-02-19 Tom Tromey <tromey@redhat.com>
367 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
368 (target_set_trace_notes): Add argument.
369 * target.c (update_current_target): Update.
370 * remote.c (remote_set_trace_notes): Add 'self' argument.
372 2014-02-19 Tom Tromey <tromey@redhat.com>
374 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
376 (target_set_trace_buffer_size): Add argument.
377 * target.c (update_current_target): Update.
378 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
380 2014-02-19 Tom Tromey <tromey@redhat.com>
382 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
384 (target_set_circular_trace_buffer): Add argument.
385 * target.c (update_current_target): Update.
386 * remote.c (remote_set_circular_trace_buffer): Add 'self'
389 2014-02-19 Tom Tromey <tromey@redhat.com>
391 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
393 (target_set_disconnected_tracing): Add argument.
394 * target.c (update_current_target): Update.
395 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
397 2014-02-19 Tom Tromey <tromey@redhat.com>
399 * target.h (struct target_ops)
400 <to_get_min_fast_tracepoint_insn_len>: Add argument.
401 (target_get_min_fast_tracepoint_insn_len): Add argument.
402 * target.c (update_current_target): Update.
403 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
406 2014-02-19 Tom Tromey <tromey@redhat.com>
408 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
410 (target_get_raw_trace_data): Add argument.
411 * target.c (update_current_target): Update.
412 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
414 2014-02-19 Tom Tromey <tromey@redhat.com>
416 * target.h (struct target_ops) <to_upload_trace_state_variables>:
418 (target_upload_trace_state_variables): Add argument.
419 * target.c (update_current_target): Update.
420 * remote.c (remote_upload_trace_state_variables): Add 'self'
422 (remote_start_remote): Update.
424 2014-02-19 Tom Tromey <tromey@redhat.com>
426 * target.h (struct target_ops) <to_upload_tracepoints>: Add
428 (target_upload_tracepoints): Add argument.
429 * target.c (update_current_target): Update.
430 * remote.c (remote_upload_tracepoints): Add 'self' argument.
431 (remote_start_remote): Update.
433 2014-02-19 Tom Tromey <tromey@redhat.com>
435 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
436 (target_save_trace_data): Add argument.
437 * target.c (update_current_target): Update.
438 * remote.c (remote_save_trace_data): Add 'self' argument.
440 2014-02-19 Tom Tromey <tromey@redhat.com>
442 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
444 * target.h (struct target_ops)
445 <to_get_trace_state_variable_value>: Add argument.
446 (target_get_trace_state_variable_value): Add argument.
447 * target.c (update_current_target): Update.
448 * remote.c (remote_get_trace_state_variable_value): Add 'self'
450 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
452 2014-02-19 Tom Tromey <tromey@redhat.com>
454 * tracepoint.c (tfile_trace_find): Add 'self' argument.
455 * target.h (struct target_ops) <to_trace_find>: Add argument.
456 (target_trace_find): Add argument.
457 * target.c (update_current_target): Update.
458 * remote.c (remote_trace_find): Add 'self' argument.
459 * ctf.c (ctf_trace_find): Add 'self' argument.
461 2014-02-19 Tom Tromey <tromey@redhat.com>
463 * target.h (struct target_ops) <to_trace_stop>: Add argument.
464 (target_trace_stop): Add argument.
465 * target.c (update_current_target): Update.
466 * remote.c (remote_trace_stop): Add 'self' argument.
468 2014-02-19 Tom Tromey <tromey@redhat.com>
470 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
471 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
473 (target_get_tracepoint_status): Add argument.
474 * target.c (update_current_target): Update.
475 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
477 2014-02-19 Tom Tromey <tromey@redhat.com>
479 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
480 * target.h (struct target_ops) <to_get_trace_status>: Add
482 (target_get_trace_status): Add argument.
483 * target.c (update_current_target): Update.
484 * remote.c (remote_get_trace_status): Add 'self' argument.
485 (remote_start_remote, remote_can_download_tracepoint): Update.
486 * ctf.c (ctf_get_trace_status): Add 'self' argument.
488 2014-02-19 Tom Tromey <tromey@redhat.com>
490 * target.h (struct target_ops) <to_trace_start>: Add argument.
491 (target_trace_start): Add argument.
492 * target.c (update_current_target): Update.
493 * remote.c (remote_trace_start): Add 'self' argument.
495 2014-02-19 Tom Tromey <tromey@redhat.com>
497 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
499 (target_trace_set_readonly_regions): Add argument.
500 * target.c (update_current_target): Update.
501 * remote.c (remote_trace_set_readonly_regions): Add 'self'
504 2014-02-19 Tom Tromey <tromey@redhat.com>
506 * target.h (struct target_ops) <to_disable_tracepoint>: Add
508 (target_disable_tracepoint): Add argument.
509 * target.c (update_current_target): Update.
510 * remote.c (remote_disable_tracepoint): Add 'self' argument.
512 2014-02-19 Tom Tromey <tromey@redhat.com>
514 * target.h (struct target_ops) <to_enable_tracepoint>: Add
516 (target_enable_tracepoint): Add argument.
517 * target.c (update_current_target): Update.
518 * remote.c (remote_enable_tracepoint): Add 'self' argument.
520 2014-02-19 Tom Tromey <tromey@redhat.com>
522 * target.h (struct target_ops) <to_download_trace_state_variable>:
524 (target_download_trace_state_variable): Add argument.
525 * target.c (update_current_target): Update.
526 * remote.c (remote_download_trace_state_variable): Add 'self'
529 2014-02-19 Tom Tromey <tromey@redhat.com>
531 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
533 (target_can_download_tracepoint): Add argument.
534 * target.c (update_current_target): Update.
535 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
537 2014-02-19 Tom Tromey <tromey@redhat.com>
539 * target.h (struct target_ops) <to_download_tracepoint>: Add
541 (target_download_tracepoint): Add argument.
542 * target.c (update_current_target): Update.
543 * remote.c (remote_download_tracepoint): Add 'self' argument.
545 2014-02-19 Tom Tromey <tromey@redhat.com>
547 * target.h (struct target_ops) <to_trace_init>: Add argument.
548 (target_trace_init): Add argument.
549 * target.c (update_current_target): Update.
550 * remote.c (remote_trace_init): Add 'self' argument.
552 2014-02-19 Tom Tromey <tromey@redhat.com>
554 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
555 * target.c (target_fileio_readlink): Add argument.
556 * remote.c (remote_hostio_readlink): Add 'self' argument.
557 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
559 2014-02-19 Tom Tromey <tromey@redhat.com>
561 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
562 * target.c (target_fileio_unlink): Add argument.
563 * remote.c (remote_hostio_unlink): Add 'self' argument.
564 (remote_file_delete): Update.
565 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
567 2014-02-19 Tom Tromey <tromey@redhat.com>
569 * target.h (struct target_ops) <to_fileio_close>: Add argument.
570 * target.c (target_fileio_close): Add argument.
571 * remote.c (remote_hostio_close): Add 'self' argument.
572 (remote_hostio_close_cleanup): Update.
573 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
575 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
577 2014-02-19 Tom Tromey <tromey@redhat.com>
579 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
580 * target.c (target_fileio_pread): Add argument.
581 * remote.c (remote_hostio_pread): Add 'self' argument.
582 (remote_bfd_iovec_pread, remote_file_get): Update.
583 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
585 2014-02-19 Tom Tromey <tromey@redhat.com>
587 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
588 * target.c (target_fileio_pwrite): Add argument.
589 * remote.c (remote_hostio_pwrite): Add 'self' argument.
590 (remote_file_put): Update.
591 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
593 2014-02-19 Tom Tromey <tromey@redhat.com>
595 * target.h (struct target_ops) <to_fileio_open>: Add argument.
596 * target.c (target_fileio_open): Add argument.
597 * remote.c (remote_hostio_open): Add 'self' argument.
598 (remote_bfd_iovec_open): Add 'self' argument.
599 (remote_file_put): Add 'self' argument.
600 (remote_file_get): Add 'self' argument.
601 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
603 2014-02-19 Tom Tromey <tromey@redhat.com>
605 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
607 (target_can_run_breakpoint_commands): Add argument.
608 * target.c (update_current_target): Update.
609 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
611 (remote_insert_breakpoint): Add 'self' argument.
612 (remote_insert_hw_breakpoint): Add 'self' argument.
613 (remote_can_run_breakpoint_commands): Add 'self' argument.
615 2014-02-19 Tom Tromey <tromey@redhat.com>
617 * target.h (struct target_ops)
618 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
619 (target_supports_evaluation_of_breakpoint_conditions): Add
621 * target.c (update_current_target): Update.
622 * remote.c (remote_supports_cond_breakpoints): Add 'self'
624 (remote_insert_breakpoint): Add 'self' argument.
625 (remote_insert_hw_breakpoint): Add 'self' argument.
626 (remote_supports_cond_breakpoints): Add 'self' argument.
628 2014-02-19 Tom Tromey <tromey@redhat.com>
630 * target.h (struct target_ops) <to_supports_string_tracing>: Add
632 (target_supports_string_tracing): Add argument.
633 * target.c (update_current_target): Update.
634 * remote.c (remote_supports_string_tracing): Add 'self' argument.
636 2014-02-19 Tom Tromey <tromey@redhat.com>
638 * target.h (struct target_ops)
639 <to_supports_disable_randomization>: Add argument.
640 * target.c (find_default_supports_disable_randomization): Add
642 (target_supports_disable_randomization): Add argument.
643 (find_default_supports_disable_randomization): Add 'self'
645 * remote.c (extended_remote_supports_disable_randomization): Add
647 (remote_supports_disable_randomization): Add 'self' argument.
648 (extended_remote_create_inferior): Update.
649 * linux-nat.c (linux_nat_supports_disable_randomization): Add
652 2014-02-19 Tom Tromey <tromey@redhat.com>
654 * target.h (struct target_ops)
655 <to_supports_enable_disable_tracepoint>: Add argument.
656 (target_supports_enable_disable_tracepoint): Add argument.
657 * target.c (update_current_target): Update.
658 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
661 2014-02-19 Tom Tromey <tromey@redhat.com>
663 * target.h (struct target_ops) <to_supports_multi_process>: Add
665 (target_supports_multi_process): Add argument.
666 * target.c (update_current_target): Update.
667 * remote.c (remote_supports_multi_process): Add 'self' argument.
668 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
670 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
673 2014-02-19 Tom Tromey <tromey@redhat.com>
675 * target.h (struct target_ops) <to_execution_direction>: Add
677 (target_execution_direction): Add argument.
678 * target.c (default_execution_direction): Add 'self' argument.
679 * record-full.c (record_full_execution_direction): Add 'self'
682 2014-02-19 Tom Tromey <tromey@redhat.com>
684 * target.h (struct target_ops) <to_can_execute_reverse>: Add
686 (target_can_execute_reverse): Add argument.
687 * remote.c (remote_can_execute_reverse): Add 'self' argument.
688 * record-full.c (record_full_can_execute_reverse): Add 'self'
690 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
693 2014-02-19 Tom Tromey <tromey@redhat.com>
695 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
696 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
698 (target_get_ada_task_ptid): Add argument.
699 * target.c (update_current_target): Update.
700 (default_get_ada_task_ptid): Add 'self' argument.
701 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
702 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
703 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
705 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
707 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
709 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
711 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
712 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
715 2014-02-19 Tom Tromey <tromey@redhat.com>
717 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
718 (target_goto_bookmark): Add argument.
719 * target.c (dummy_goto_bookmark): Add 'self' argument.
720 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
722 2014-02-19 Tom Tromey <tromey@redhat.com>
724 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
725 (target_get_bookmark): Add argument.
726 * target.c (dummy_get_bookmark): Add 'self' argument.
727 * record-full.c (record_full_get_bookmark): Add 'self' argument.
729 2014-02-19 Tom Tromey <tromey@redhat.com>
731 * target.h (struct target_ops) <to_make_corefile_notes>: Add
733 (target_make_corefile_notes): Add argument.
734 * target.c (dummy_make_corefile_notes): Add 'self' argument.
735 * procfs.c (procfs_make_note_section): Add 'self' argument.
736 (procfs_make_note_section): Add 'self' argument.
737 (procfs_make_note_section): Add 'self' argument.
738 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
740 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
741 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
742 * exec.c (exec_make_note_section): Add 'self' argument.
743 (exec_make_note_section): Add 'self' argument.
745 2014-02-19 Tom Tromey <tromey@redhat.com>
747 * target.h (struct target_ops) <to_find_memory_regions>: Add
749 (target_find_memory_regions): Add argument.
750 * target.c (dummy_find_memory_regions): Add 'self' argument.
751 * procfs.c (proc_find_memory_regions): Add 'self' argument.
752 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
753 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
754 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
755 * exec. (exec_do_find_memory_regions): New global.
756 (exec_set_find_memory_regions): Rewrite.
757 (exec_find_memory_regions): New function.
758 (init_exec_ops): Use exec_find_memory_regions.
760 2014-02-19 Tom Tromey <tromey@redhat.com>
762 * target.h (struct target_ops) <to_supports_non_stop>: Add
764 * target.c (find_default_supports_non_stop): Add argument.
765 (target_supports_non_stop): Add argument.
766 (find_default_supports_non_stop): Add 'self' argument.
767 * remote.c (remote_supports_non_stop): Add 'self' argument.
768 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
770 2014-02-19 Tom Tromey <tromey@redhat.com>
772 * target.h (struct target_ops) <to_log_command>: Add argument.
773 (target_log_command): Add argument.
774 * serial.h (serial_log_command): Add 'self' argument.
775 * serial.c (serial_log_command): Add 'self' argument.
777 2014-02-19 Tom Tromey <tromey@redhat.com>
779 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
780 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
782 (target_pid_to_exec_file): Add argument.
783 * target.c (debug_to_pid_to_exec_file): Add argument.
784 (update_current_target): Update.
785 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
786 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
787 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
788 (linux_handle_extended_wait): Update.
789 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
790 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
791 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
792 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
794 2014-02-19 Tom Tromey <tromey@redhat.com>
796 * target.h (struct target_ops) <to_rcmd>: Add argument.
797 (target_rcmd): Add argument.
798 * target.c (debug_to_rcmd): Add argument.
799 (update_current_target, do_monitor_command): Update.
800 * remote.c (remote_rcmd): Add 'self' argument.
801 * monitor.c (monitor_rcmd): Add 'self' argument.
803 2014-02-19 Tom Tromey <tromey@redhat.com>
805 * windows-nat.c (windows_stop): Add 'self' argument.
806 * target.h (struct target_ops) <to_stop>: Add argument.
807 * target.c (target_stop): Add argument.
808 (debug_to_stop): Add argument.
809 (update_current_target): Update.
810 * remote.c (remote_stop): Add 'self' argument.
811 * remote-sim.c (gdbsim_stop): Add 'self' argument.
812 (gdbsim_cntrl_c): Update.
813 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
814 * procfs.c (procfs_stop): Add 'self' argument.
815 * nto-procfs.c (procfs_stop): Add 'self' argument.
816 * monitor.c (monitor_stop): Add 'self' argument.
817 (monitor_open): Update.
818 * linux-nat.c (linux_nat_stop): Add argument.
819 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
820 * gnu-nat.c (gnu_stop): Add 'self' argument.
821 * darwin-nat.c (darwin_stop): Add 'self' argument.
823 2014-02-19 Tom Tromey <tromey@redhat.com>
825 * target.h (struct target_ops) <to_thread_name>: Add argument.
826 * target.c (target_thread_name): Add argument.
827 (update_current_target): Update.
828 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
830 2014-02-19 Tom Tromey <tromey@redhat.com>
832 * target.h (struct target_ops) <to_extra_thread_info>: Add
834 (target_extra_thread_info): Add argument.
835 * target.c (update_current_target): Update.
836 * remote.c (remote_threads_extra_info): Add 'self' argument.
837 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
839 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
840 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
841 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
843 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
845 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
847 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
850 2014-02-19 Tom Tromey <tromey@redhat.com>
852 * target.h (struct target_ops) <to_program_signals>: Add argument.
853 * target.c (target_program_signals): Add argument.
854 * remote.c (remote_program_signals): Add 'self' argument.
856 2014-02-19 Tom Tromey <tromey@redhat.com>
858 * target.h (struct target_ops) <to_pass_signals>: Add argument.
859 * target.c (target_pass_signals): Add argument.
860 * remote.c (remote_pass_signals): Add 'self' argument.
861 (remote_start_remote): Update.
862 * procfs.c (procfs_pass_signals): Add 'self' argument.
863 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
864 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
865 (linux_nat_create_inferior, linux_nat_attach): Update.
867 2014-02-19 Tom Tromey <tromey@redhat.com>
869 * windows-nat.c (windows_can_run): Add 'self' argument.
870 * target.h (struct target_ops) <to_can_run>: Add argument.
871 (target_can_run): Add argument.
872 * target.c (debug_to_can_run): Add argument.
873 (update_current_target): Update.
874 * nto-procfs.c (procfs_can_run): Add 'self' argument.
875 * inf-child.c (inf_child_can_run): Add 'self' argument.
876 * go32-nat.c (go32_can_run): Add 'self' argument.
878 2014-02-19 Tom Tromey <tromey@redhat.com>
880 * target.h (struct target_ops) <to_has_exited>: Add argument.
881 (target_has_exited): Add argument.
882 * target.c (debug_to_has_exited): Add argument.
883 (update_current_target): Update.
885 2014-02-19 Tom Tromey <tromey@redhat.com>
887 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
889 (target_set_syscall_catchpoint): Add argument.
890 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
892 * target.c (update_current_target): Update.
894 2014-02-19 Tom Tromey <tromey@redhat.com>
896 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
898 (target_remove_exec_catchpoint): Add argument.
899 * target.c (debug_to_remove_exec_catchpoint): Add argument.
900 (update_current_target): Update.
901 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
904 2014-02-19 Tom Tromey <tromey@redhat.com>
906 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
908 (target_insert_exec_catchpoint): Add argument.
909 * target.c (debug_to_insert_exec_catchpoint): Add argument.
910 (update_current_target): Update.
911 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
914 2014-02-19 Tom Tromey <tromey@redhat.com>
916 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
918 (target_remove_vfork_catchpoint): Add argument.
919 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
920 (update_current_target): Update.
921 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
924 2014-02-19 Tom Tromey <tromey@redhat.com>
926 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
928 (target_insert_vfork_catchpoint): Add argument.
929 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
930 (update_current_target): Update.
931 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
934 2014-02-19 Tom Tromey <tromey@redhat.com>
936 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
938 (target_remove_fork_catchpoint): Add argument.
939 * target.c (debug_to_remove_fork_catchpoint): Add argument.
940 (update_current_target): Update.
941 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
944 2014-02-19 Tom Tromey <tromey@redhat.com>
946 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
948 (target_insert_fork_catchpoint): Add argument.
949 * target.c (debug_to_insert_fork_catchpoint): Add argument.
950 (update_current_target): Update.
951 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
954 2014-02-19 Tom Tromey <tromey@redhat.com>
956 * target.h (struct target_ops) <to_post_startup_inferior>: Add
958 (target_post_startup_inferior): Add argument.
959 * target.c (debug_to_post_startup_inferior): Add argument.
960 (update_current_target): Update.
961 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
963 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
965 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
967 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
969 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
971 (super_post_startup_inferior): Likewise.
972 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
974 (super_post_startup_inferior): Likewise.
975 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
977 (super_post_startup_inferior): Likewise.
979 2014-02-19 Tom Tromey <tromey@redhat.com>
981 * target.h (struct target_ops) <to_load>: Add argument.
982 * target.c (target_load): Add argument.
983 (debug_to_load): Add argument.
984 (update_current_target): Update.
985 * remote.c (remote_load): Add 'self' argument.
986 * remote-sim.c (gdbsim_load): Add 'self' argument.
987 * remote-mips.c (mips_load): Add 'self' argument.
988 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
989 * monitor.c (monitor_load): Add 'self' argument.
990 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
992 2014-02-19 Tom Tromey <tromey@redhat.com>
994 * target.h (struct target_ops) <to_terminal_info>: Add argument.
995 (target_terminal_info): Add argument.
996 * target.c (debug_to_terminal_info): Add argument.
997 (default_terminal_info): Likewise.
998 * inflow.c (child_terminal_info): Add 'self' argument.
999 * inferior.h (child_terminal_info): Add 'self' argument.
1000 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1002 2014-02-19 Tom Tromey <tromey@redhat.com>
1004 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1006 (target_terminal_save_ours): Add argument.
1007 * target.c (debug_to_terminal_save_ours): Add argument.
1008 (update_current_target): Update.
1009 * inflow.c (terminal_save_ours): Add 'self' argument.
1010 * inferior.h (terminal_save_ours): Add 'self' argument.
1012 2014-02-19 Tom Tromey <tromey@redhat.com>
1014 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1015 (target_terminal_ours): Add argument.
1016 * target.c (debug_to_terminal_ours): Add argument.
1017 (update_current_target): Update.
1018 * remote.c (remote_terminal_ours): Add 'self' argument.
1019 (remote_close): Update.
1020 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1021 * inflow.c (terminal_ours): Add 'self' argument.
1022 * inferior.h (terminal_ours): Add 'self' argument.
1023 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1025 2014-02-19 Pedro Alves <palves@redhat.com>
1026 Tom Tromey <tromey@redhat.com>
1028 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1030 (target_terminal_ours_for_output): Add argument.
1031 * target.c (debug_to_terminal_ours_for_output): Add argument.
1032 (update_current_target): Update.
1033 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1034 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1035 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1037 2014-02-19 Tom Tromey <tromey@redhat.com>
1039 * target.h (struct target_ops) <to_terminal_inferior>: Add
1041 * target.c (target_terminal_inferior): Add argument.
1042 (update_current_target): Update.
1043 * remote.c (remote_terminal_inferior): Add 'self' argument.
1044 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1045 * inflow.c (terminal_inferior): Add 'self' argument.
1046 * inferior.h (terminal_inferior): Add 'self' argument.
1047 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1048 (go32_terminal_inferior): Add 'self' argument.
1050 2014-02-19 Tom Tromey <tromey@redhat.com>
1052 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1053 (target_terminal_init): Add argument.
1054 * target.c (debug_to_terminal_init): Add argument.
1055 (update_current_target): Update.
1056 * inflow.c (terminal_init_inferior): Add 'self' argument.
1057 * inferior.h (terminal_init_inferior): Add 'self' argument.
1058 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1059 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1061 2014-02-19 Tom Tromey <tromey@redhat.com>
1063 * target.h (struct target_ops)
1064 <to_can_accel_watchpoint_condition>: Add argument.
1065 (target_can_accel_watchpoint_condition): Add argument.
1066 * target.c (debug_to_can_accel_watchpoint_condition): Add
1068 (update_current_target): Update.
1069 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1072 2014-02-19 Tom Tromey <tromey@redhat.com>
1074 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1076 (target_region_ok_for_hw_watchpoint): Add argument.
1077 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1078 (default_region_ok_for_hw_watchpoint): Add argument.
1079 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1080 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1082 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1084 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1086 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1088 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1090 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1092 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1093 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1095 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1096 Add 'self' argument.
1098 2014-02-19 Tom Tromey <tromey@redhat.com>
1100 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1102 (target_insert_watchpoint): Add argument.
1103 * target.c (debug_to_insert_watchpoint): Add argument.
1104 (update_current_target): Update.
1105 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1106 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1107 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1108 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1109 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1110 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1112 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1113 (procfs_insert_hw_watchpoint): Add 'self' argument.
1114 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1116 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1118 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1120 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1121 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1123 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1126 2014-02-19 Tom Tromey <tromey@redhat.com>
1128 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1130 (target_remove_watchpoint): Add argument.
1131 * target.c (debug_to_remove_watchpoint): Add argument.
1132 (update_current_target): Update.
1133 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1134 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1135 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1136 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1137 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1138 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1140 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1141 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1143 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1145 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1147 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1148 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1150 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1153 2014-02-19 Tom Tromey <tromey@redhat.com>
1155 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1157 (target_remove_hw_breakpoint): Add argument.
1158 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1159 (update_current_target): Update.
1160 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1161 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1163 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1164 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1166 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1169 2014-02-19 Tom Tromey <tromey@redhat.com>
1171 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1173 (target_insert_hw_breakpoint): Add argument.
1174 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1175 (update_current_target): Update.
1176 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1177 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1179 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1180 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1181 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1183 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1186 2014-02-19 Tom Tromey <tromey@redhat.com>
1188 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1190 (target_can_use_hardware_watchpoint): Add argument.
1191 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1192 (update_current_target): Update.
1193 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1195 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1197 * remote.c (remote_check_watch_resources): Add 'self' argument.
1198 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1199 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1201 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1202 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1204 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1206 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1208 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1210 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1212 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1214 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1215 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1217 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1220 2014-02-19 Tom Tromey <tromey@redhat.com>
1222 * target.h (struct target_ops) <to_post_attach>: Add argument.
1223 (target_post_attach): Add argument.
1224 * target.c (debug_to_post_attach): Add argument.
1225 (update_current_target): Update.
1226 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1227 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1228 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1229 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1230 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1232 2014-02-19 Tom Tromey <tromey@redhat.com>
1234 * windows-nat.c (windows_close): Add 'self' argument.
1235 * tracepoint.c (tfile_close): Add 'self' argument.
1236 * target.h (struct target_ops) <to_close>: Add argument.
1237 * target.c (target_close): Add argument.
1238 (update_current_target): Update.
1239 * remote.c (remote_close): Add 'self' argument.
1240 * remote-sim.c (gdbsim_close): Add 'self' argument.
1241 * remote-mips.c (mips_close): Add 'self' argument.
1242 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1243 * record-full.c (record_full_close): Add 'self' argument.
1244 * record-btrace.c (record_btrace_close): Add 'self' argument.
1245 * monitor.h (monitor_close): Add 'self' argument.
1246 * monitor.c (monitor_close): Add 'self' argument.
1247 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1248 * linux-nat.c (linux_nat_close): Add argument.
1249 * go32-nat.c (go32_close): Add 'self' argument.
1250 * exec.c (exec_close_1): Add 'self' argument.
1251 * ctf.c (ctf_close): Add 'self' argument.
1252 * corelow.c (core_close): Add 'self' argument.
1253 (core_close_cleanup): Update.
1254 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1255 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1257 2014-02-19 Tom Tromey <tromey@redhat.com>
1259 * remote.c (remote_load): New function.
1260 (init_remote_ops): Use it.
1262 2014-02-19 Tom Tromey <tromey@redhat.com>
1264 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1266 * common/linux-btrace.h (linux_supports_btrace): Update.
1267 * remote.c (remote_supports_btrace): Add "self" argument.
1268 * target-delegates.c: Rebuild.
1269 * target.c (target_supports_btrace): Remove.
1270 * target.h (struct target_ops) <to_supports_btrace>: Add
1271 target_ops argument.
1272 (target_supports_btrace): New define.
1274 2014-02-19 Tom Tromey <tromey@redhat.com>
1276 * record-full.c (record_full_beneath_to_resume_ops)
1277 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1278 (record_full_beneath_to_wait)
1279 (record_full_beneath_to_store_registers_ops)
1280 (record_full_beneath_to_store_registers)
1281 (record_full_beneath_to_xfer_partial_ops)
1282 (record_full_beneath_to_xfer_partial)
1283 (record_full_beneath_to_insert_breakpoint_ops)
1284 (record_full_beneath_to_insert_breakpoint)
1285 (record_full_beneath_to_remove_breakpoint_ops)
1286 (record_full_beneath_to_remove_breakpoint)
1287 (record_full_beneath_to_stopped_by_watchpoint)
1288 (record_full_beneath_to_stopped_data_address)
1289 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1290 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1291 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1292 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1293 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1294 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1295 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1296 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1297 (record_full_resume, record_full_wait_1)
1298 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1299 (record_full_store_registers, record_full_xfer_partial)
1300 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1301 (record_full_async, record_full_core_xfer_partial): Use target
1303 * target-delegates.c: Rebuild.
1304 * target.c (current_xfer_partial): Remove.
1305 (update_current_target): Do not INHERIT or de_fault
1306 to_insert_breakpoint, to_remove_breakpoint,
1307 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1308 to_is_async_p, to_async. Do not set to_xfer_partial field.
1309 (default_xfer_partial): Simplify.
1310 (current_xfer_partial): Remove.
1311 (target_wait, target_resume): Simplify.
1312 (find_default_can_async_p, find_default_is_async_p): Update.
1313 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1314 to_xfer_partial, to_stopped_by_watchpoint,
1315 to_stopped_data_address.
1316 (target_store_registers): Simplify.
1317 (forward_target_remove_breakpoint)
1318 (forward_target_insert_breakpoint): Remove.
1319 (target_remove_breakpoint, target_insert_breakpoint)
1320 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1321 * target.h (struct target_ops) <to_resume, to_wait,
1322 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1323 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1324 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1326 (forward_target_remove_breakpoint)
1327 (forward_target_insert_breakpoint): Remove.
1328 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1330 (record_btrace_insert_breakpoint): Delegate directly.
1332 2014-02-19 Tom Tromey <tromey@redhat.com>
1335 * target-delegates.c: New file.
1336 * target.c: Include target-delegates.c.
1337 (init_dummy_target): Call install_dummy_methods.
1338 (complete_target_initialization): Call install_delegators.
1339 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1340 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1341 * make-target-delegates: New file.
1343 2014-02-19 Tom Tromey <tromey@redhat.com>
1345 * record.c (find_record_target): Use find_target_at.
1346 * target.c (find_target_at): New function.
1347 * target.h (find_target_at): Declare.
1349 2014-02-19 Tom Tromey <tromey@redhat.com>
1351 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1353 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1355 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1356 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1358 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1360 * linux-nat.c (save_sigtrap): Update.
1361 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1362 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1363 (linux_nat_close): Update.
1364 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1366 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1368 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1369 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1370 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1371 (tmp_to_async): Add 'ops' argument.
1372 (record_full_stopped_by_watchpoint, record_full_async)
1373 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1375 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1376 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1377 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1378 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1379 (remote_is_async_p, remote_async): Add 'ops' argument.
1380 (remote_stopped_data_address): Update.
1381 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1382 * target.c (update_current_target)
1383 (find_default_can_async_p, find_default_is_async_p): Update.
1384 (init_dummy_target): Update.
1385 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1386 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1387 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1388 (target_can_async_p, target_is_async_p, target_async)
1389 (target_stopped_by_watchpoint): Update.
1391 2014-02-19 Yao Qi <yao@codesourcery.com>
1394 * gdbarch.sh: Remove startup_gdbarch.
1395 * gdbarch.c: Regenerated.
1396 * gdbarch.h: Likewise.
1398 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1400 * rl78-tdep.c (rl78_g10_register_name): New function.
1401 (rl78_return_value): Add g10 support.
1402 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1405 2014-02-17 Doug Evans <xdje42@gmail.com>
1407 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1408 (SUBDIR_GUILE_SRCS): Ditto.
1409 (scm-gsmob.o): Ditto.
1411 2014-02-17 Yao Qi <yao@codesourcery.com>
1413 * gnu-nat.c (ILL_RPC): Declare defined function.
1415 2014-02-17 Yao Qi <yao@codesourcery.com>
1417 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1418 mach_msg_type_number_t.
1419 (gnu_write_inferior): Likewise.
1421 2014-02-17 Yao Qi <yao@codesourcery.com>
1423 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1425 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1426 (inf_validate_procs, inf_signal): Likewise.
1427 (S_exception_raise_request): Likewise.
1428 (do_mach_notify_dead_name): Likewise.
1429 (steal_exc_port): Likewise.
1430 (gnu_read_inferior): Change 'copy_count''s type to
1431 mach_msg_type_number_t.
1432 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1435 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1437 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1438 flag. Adjust all users; in particular...
1439 (gnu_wait): ..., don't decrement its value in here...
1440 (gnu_create_inferior): ..., and instead set the flag in here,
1441 around the startup_inferior call, and call that one with
1442 START_INFERIOR_TRAPS_EXPECTED.
1444 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1445 (ILL_RPC): ... new macro.
1446 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1447 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1448 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1449 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1450 functions with ILL_RPC macro.
1451 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1452 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1453 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1454 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1455 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1456 (S_proc_getlogin_reply, S_proc_getsid_reply)
1457 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1458 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1459 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1460 (S_proc_getnports_reply, S_proc_is_important_reply)
1461 (S_proc_get_code_reply): New stub functions, generated with
1464 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1465 collected the type check structures.
1467 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1469 2014-02-14 Doug Evans <dje@google.com>
1471 * target.c (target_write_partial): Fix result type.
1473 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1475 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1476 the proper offsets to access fpregset_t.
1478 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1480 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1481 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1482 * h8300-tdep.c (setmachinelist): Remove global.
1483 * hppa-tdep.c (hppa_sigtramp): Remove global.
1484 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1485 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1486 * ravenscar-thread.c (update_target_observer): Remove global.
1487 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1489 2014-02-12 Tom Tromey <tromey@redhat.com>
1491 * common/rsp-low.c: Update comments.
1492 * common/rsp-low.h: Update comments.
1494 2014-02-12 Tom Tromey <tromey@redhat.com>
1496 * common/rsp-low.c (convert_ascii_to_int): Remove.
1497 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1499 2014-02-12 Tom Tromey <tromey@redhat.com>
1501 * common/rsp-low.h (unhexify): Don't declare.
1502 * common/rsp-low.c (unhexify): Remove.
1504 2014-02-12 Tom Tromey <tromey@redhat.com>
1506 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1507 * common/rsp-low.c (convert_int_to_ascii): Remove.
1509 2014-02-12 Tom Tromey <tromey@redhat.com>
1511 * common/rsp-low.h (hexify): Don't declare.
1512 * common/rsp-low.c (hexify): Remove.
1514 2014-02-12 Tom Tromey <tromey@redhat.com>
1516 * common/rsp-low.c (hexify): Never take strlen of argument.
1518 2014-02-12 Tom Tromey <tromey@redhat.com>
1520 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1521 * remote.c (extended_remote_run, remote_rcmd)
1522 (remote_download_trace_state_variable, remote_save_trace_data)
1523 (remote_set_trace_notes): Update.
1524 * tracepoint.c (encode_source_string, tfile_write_status)
1525 (tfile_write_uploaded_tsv): Update.
1527 2014-02-12 Tom Tromey <tromey@redhat.com>
1529 * tracepoint.c: Include rsp-low.h.
1530 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1531 * remote.c: Include rsp-low.h.
1532 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1533 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1534 (remote_unescape_input): Move to common/rsp-low.c.
1535 * common/rsp-low.h: New file.
1536 * common/rsp-low.c: New file.
1537 * Makefile.in (SFILES): Add common/rsp-low.c.
1538 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1539 (COMMON_OBS): Add rsp-low.o.
1540 (rsp-low.o): New target.
1542 2014-02-12 Tom Tromey <tromey@redhat.com>
1544 * utils.h: Include print-utils.h.
1545 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1546 (int_string, core_addr_to_string, core_addr_to_string_nz)
1547 (hex_string, hex_string_custom): Don't declare.
1548 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1549 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1550 (hex_string_custom, int_string, core_addr_to_string)
1551 (core_addr_to_string_nz, host_address_to_string): Move to
1552 common/print-utils.c.
1553 * common/print-utils.h: New file.
1554 * common/print-utils.c: New file
1555 * Makefile.in (SFILES): Add common/print-utils.c.
1556 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1557 (COMMON_OBS): Add print-utils.o.
1558 (print-utils.o): New target.
1560 2014-02-12 Tom Tromey <tromey@redhat.com>
1562 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1564 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1566 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1568 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1570 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1571 if a PT_IO ptrace request returns sucessfully but indicates that 0
1572 bytes were transferred.
1574 2014-02-12 Pedro Alves <palves@redhat.com>
1575 Kevin Buettner <kevinb@redhat.com>
1577 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1578 TYPE_INSTANCE_FLAG_CODE_SPACE.
1580 2014-02-12 Pedro Alves <palves@redhat.com>
1582 * h8300-tdep.c (pseudo_from_raw_register)
1583 (raw_from_pseudo_register): New functions.
1584 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1587 2014-02-12 Pedro Alves <palves@redhat.com>
1589 * h8300-tdep.c (h8300_register_sim_regno): New function.
1590 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1591 gdbarch_register_sim_regno hook.
1593 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1595 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1597 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1599 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1601 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1603 * obsd-tdep.h (obsd_init_abi): New prototype.
1604 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1605 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1606 (obsd_init_abi): New functions.
1607 * i386obsd-tdep.c: Include "obsd-tdep.h".
1608 (i386obsd_init_abi): Call obsd_init_abi.
1609 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1610 (amd64obsd_init_abi): Call obsd_init_abi.
1611 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1612 obsd-tdep.c to gdb_target_obs.
1614 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1616 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1617 double float arguments to 16-byte in the argument slots.
1619 2014-02-11 Doug Evans <xdje42@gmail.com>
1621 * configure.ac: Don't crash if pkg-config is not found and guile
1622 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1624 * configure: Regenerate.
1626 2014-02-11 Yao Qi <yao@codesourcery.com>
1628 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1629 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1630 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1631 * gnu-nat.c (gnu_xfer_memory): Likewise.
1632 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1633 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1634 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1635 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1637 2014-02-11 Yao Qi <yao@codesourcery.com>
1639 * target.h (enum target_xfer_error): Rename to ...
1640 (enum target_xfer_status): ... it. New. All users updated.
1641 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1643 (TARGET_XFER_STATUS_ERROR_P): New macro.
1644 (target_xfer_error_to_string): Remove declaration.
1645 (target_xfer_status_to_string): Declare.
1646 (target_xfer_partial_ftype): Adjust it.
1647 (struct target_ops) <to_xfer_partial>: Return
1648 target_xfer_status. Add argument xfered_len. Update
1650 * target.c (target_xfer_error_to_string): Rename to ...
1651 (target_xfer_status_to_string): ... it. New. All callers
1653 (target_read_live_memory): Likewise. Call target_xfer_partial
1654 instead of target_read.
1655 (memory_xfer_live_readonly_partial): Return
1656 target_xfer_status. Add argument xfered_len.
1657 (raw_memory_xfer_partial): Likewise.
1658 (memory_xfer_partial_1): Likewise.
1659 (memory_xfer_partial): Likewise.
1660 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1661 properly. Update debug message.
1662 (default_xfer_partial, current_xfer_partial): Likewise.
1663 (target_write_partial): Likewise.
1664 (target_read_partial): Likewise. All callers updated.
1665 (read_whatever_is_readable): Likewise.
1666 (target_write_with_progress): Likewise.
1667 (target_read_alloc_1): Likewise.
1669 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1670 * auxv.c (procfs_xfer_auxv): Likewise.
1671 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1672 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1673 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1674 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1675 * corefile.c (read_memory): Adjust.
1676 * corelow.c (core_xfer_partial): Likewise.
1677 * ctf.c (ctf_xfer_partial): Likewise.
1678 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1680 (darwin_xfer_partial): Likewise.
1681 * exec.c (section_table_xfer_memory_partial): Likewise. All
1683 (exec_xfer_partial): Likewise.
1684 * exec.h (section_table_xfer_memory_partial): Update
1686 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1688 (gnu_xfer_partial): Likewise.
1689 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1690 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1691 (ia64_hpux_xfer_solib_got): Likewise.
1692 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1693 type of 'partial_len' to ULONGEST.
1694 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1695 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1696 (linux_nat_xfer_partial): Likewise.
1697 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1698 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1699 * monitor.c (monitor_xfer_memory): Likewise.
1700 (monitor_xfer_partial): Likewise.
1701 * procfs.c (procfs_xfer_partial): Likewise.
1702 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1703 * record-full.c (record_full_xfer_partial): Likewise.
1704 (record_full_core_xfer_partial): Likewise.
1705 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1706 (gdbsim_xfer_partial): Likewise.
1707 * remote.c (remote_write_bytes_aux): Likewise. All callers
1709 (remote_write_bytes, remote_read_bytes): Likewise. All
1711 (remote_flash_erase): Likewise. All callers updated.
1712 (remote_write_qxfer): Likewise. All callers updated.
1713 (remote_read_qxfer): Likewise. All callers updated.
1714 (remote_xfer_partial): Likewise.
1715 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1716 (rs6000_xfer_shared_libraries): Likewise.
1717 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1718 (sol_thread_xfer_partial): Likewise.
1719 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1720 (sparc_xfer_partial): Likewise.
1721 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1723 (spu_xfer_partial): Likewise.
1724 * spu-multiarch.c (spu_xfer_partial): Likewise.
1725 * tracepoint.c (tfile_xfer_partial): Likewise.
1726 * windows-nat.c (windows_xfer_memory): Likewise.
1727 (windows_xfer_shared_libraries): Likewise.
1728 (windows_xfer_partial): Likewise.
1729 * valprint.c: Replace 'target_xfer_error' with
1730 'target_xfer_status' in comments.
1732 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1734 Checked in by Joel Brobecker <brobecker@adacore.com>.
1735 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1737 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1739 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1740 function parameters.
1742 2014-02-10 Will Newton <will.newton@linaro.org>
1744 * elfread.c (elf_rel_plt_read): Look for a .got section if
1745 looking up .got.plt fails.
1746 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1747 on address passed to elf_gnu_ifunc_record_cache.
1748 (elf_gnu_ifunc_resolve_addr): Likewise.
1749 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1751 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1753 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1754 (X_RETTURN): New macro.
1755 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1757 * sparc64-tdep.c (sparc64_init_abi): Hook
1758 sparc_in_function_epilogue_p.
1760 2014-02-10 Gary Benson <gbenson@redhat.com>
1762 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1763 Rename name_matcher to symbol_matcher.
1765 2014-02-10 Gary Benson <gbenson@redhat.com>
1767 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1768 Use expand_symtabs_file_matcher_ftype and
1769 expand_symtabs_symbol_matcher_ftype.
1771 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1773 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1774 (struct ada_symbol_cache): New.
1775 (ada_free_symbol_cache): Forward declare.
1776 (struct ada_pspace_data): New.
1777 (ada_pspace_data_handle): New static global.
1778 (get_ada_pspace_data, ada_pspace_data_cleanup)
1779 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1780 (cache_space, cache): Delete, now folded inside struct
1782 (ada_get_symbol_cache): New function.
1783 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1785 (_initialize_ada_language): Remove initialization of cache_space.
1786 Move call to observer_attach_inferior_exit up, grouping it
1787 with the other observer registrations inside this function.
1788 Rename command to be more general. Add call to
1789 register_program_space_data_with_cleanup.
1791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1793 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1794 ada_new_objfile_observer.
1795 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1796 (_initialize_tasks): Update uses of ada_new_objfile_observer
1797 and ada_tasks_normal_stop_observer.
1799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1801 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1802 returned by the 'Length attribute to integer.
1804 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1806 * ada-lang.c (_initialize_ada_language): Initialize
1807 cache_space obstack.
1809 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1811 * ada-lang.c (HASH_SIZE): New macro.
1812 (struct cache_entry): New type.
1813 (cache_space, cache): New static globals.
1814 (ada_clear_symbol_cache, find_entry): New functions.
1815 (lookup_cached_symbol, cache_symbol): Implement.
1816 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1817 (_initialize_ada_language): Attach ada_new_objfile_observer
1818 and ada_free_objfile_observer.
1820 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1822 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1823 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1824 struct block * parameter.
1825 (ada_lookup_symbol_list_worker): Constify local variable "block".
1826 Remove cast which is no longer necessary.
1828 2014-02-10 Doug Evans <xdje42@gmail.com>
1830 Add Guile as an extension language.
1831 * NEWS: Mention Guile scripting.
1832 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1833 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1834 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1835 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1836 (CLIBS): Add GUILE_LIBS.
1837 (install-guile): New rule.
1838 (guile.o): New rule.
1839 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1840 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1841 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1842 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1843 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1844 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1845 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1846 * configure.ac: New option --with-guile.
1847 * configure: Regenerate.
1848 * config.in: Regenerate.
1849 * auto-load.c: Remove #include "python/python.h". Add #include
1850 "gdb/section-scripts.h".
1851 (source_section_scripts): Handle Guile scripts.
1852 (_initialize_auto_load): Add name of Guile objfile script to
1853 scripts-directory help text.
1854 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1855 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1856 (struct breakpoint): New member scm_bp_object.
1857 * defs.h (enum command_control_type): New value guile_control.
1858 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1860 (show_user): Update comment.
1861 (_initialize_cli_cmds): Update help text for "show user". Update help
1862 text for max-user-call-depth.
1863 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1865 (multi_line_command_p): Add guile_control.
1866 (print_command_lines): Handle guile_control.
1867 (execute_control_command, recurse_read_control_structure): Ditto.
1868 (process_next_line): Recognize "guile" commands.
1869 * disasm.c (gdb_disassemble_info): Make non-static.
1870 * disasm.h: #include "dis-asm.h".
1871 (struct gdbarch): Add forward decl.
1872 (gdb_disassemble_info): Declare.
1873 * extension.c: #include "guile/guile.h".
1874 (extension_languages): Add guile.
1875 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1876 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1877 * gdbtypes.c (get_unsigned_type_max): New function.
1878 (get_signed_type_minmax): New function.
1879 * gdbtypes.h (get_unsigned_type_max): Declare.
1880 (get_signed_type_minmax): Declare.
1881 * guile/README: New file.
1882 * guile/guile-internal.h: New file.
1883 * guile/guile.c: New file.
1884 * guile/guile.h: New file.
1885 * guile/scm-arch.c: New file.
1886 * guile/scm-auto-load.c: New file.
1887 * guile/scm-block.c: New file.
1888 * guile/scm-breakpoint.c: New file.
1889 * guile/scm-disasm.c: New file.
1890 * guile/scm-exception.c: New file.
1891 * guile/scm-frame.c: New file.
1892 * guile/scm-gsmob.c: New file.
1893 * guile/scm-iterator.c: New file.
1894 * guile/scm-lazy-string.c: New file.
1895 * guile/scm-math.c: New file.
1896 * guile/scm-objfile.c: New file.
1897 * guile/scm-ports.c: New file.
1898 * guile/scm-pretty-print.c: New file.
1899 * guile/scm-safe-call.c: New file.
1900 * guile/scm-string.c: New file.
1901 * guile/scm-symbol.c: New file.
1902 * guile/scm-symtab.c: New file.
1903 * guile/scm-type.c: New file.
1904 * guile/scm-utils.c: New file.
1905 * guile/scm-value.c: New file.
1906 * guile/lib/gdb.scm: New file.
1907 * guile/lib/gdb/boot.scm: New file.
1908 * guile/lib/gdb/experimental.scm: New file.
1909 * guile/lib/gdb/init.scm: New file.
1910 * guile/lib/gdb/iterator.scm: New file.
1911 * guile/lib/gdb/printing.scm: New file.
1912 * guile/lib/gdb/types.scm: New file.
1913 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1914 (VPATH): Add $(GUILE_SRCDIR).
1915 (GUILE_DIR): New variable.
1916 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1917 (all): Add stamp-guile dependency.
1918 (stamp-guile): New rule.
1919 (clean-guile, install-guile, uninstall-guile): New rules.
1920 (install-only): Add install-guile dependency.
1921 (uninstall): Add uninstall-guile dependency.
1922 (clean): Add clean-guile dependency.
1924 2014-02-09 Doug Evans <xdje42@gmail.com>
1926 Revert this patch (which I approved, mea culpa).
1928 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1930 * Makefile.in (all-lib): Remove.
1931 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1933 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1935 Fix Python stack corruption.
1936 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1939 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1941 * Makefile.in (all-lib): Remove.
1942 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1944 2014-02-07 Doug Evans <dje@google.com>
1946 * extension-priv.h (extension_language_script_ops): Add comment.
1947 (extension_language_ops): Add comment.
1948 (active_ext_lang_state): Fix typo in comment.
1950 2014-02-07 Pedro Alves <palves@redhat.com>
1952 * infrun.c (handle_signal_stop) <signal arrives while stepping
1953 over a breakpoint>: Switch back to the stepping thread.
1955 2014-02-07 Yao Qi <yao@codesourcery.com>
1957 * target.c (target_xfer_partial): Return zero if LEN is zero.
1959 2014-02-07 Yao Qi <yao@codesourcery.com>
1961 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1962 (ld_so_xfer_auxv): Likewise.
1963 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1964 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1965 * corelow.c (core_xfer_partial): Likewise.
1966 * ctf.c (ctf_xfer_partial): Likewise.
1967 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1968 (darwin_xfer_partial): Likewise.
1969 * exec.c (exec_xfer_partial): Likewise.
1970 * gnu-nat.c (gnu_xfer_partial): Likewise.
1971 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1972 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1973 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1974 * linux-nat.c (linux_xfer_siginfo): Likewise.
1975 (linux_proc_xfer_spu): Likewise.
1976 * procfs.c (procfs_xfer_partial): Likewise.
1977 * record-full.c (record_full_xfer_partial): Likewise.
1978 (record_full_core_xfer_partial): Likewise.
1979 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1980 * remote.c (remote_write_qxfer): Likewise.
1981 (remote_write_qxfer, remote_read_qxfer): Likewise.
1982 (remote_xfer_partial): Likewise.
1983 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1984 (rs6000_xfer_shared_libraries): Likewise.
1985 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1986 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1987 (spu_xfer_partial): Likewise.
1988 * target.c (memory_xfer_partial_1): Likewise.
1989 * tracepoint.c (tfile_xfer_partial): Likewise.
1990 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1991 (windows_xfer_partial): Likewise.
1993 2014-02-07 Yao Qi <yao@codesourcery.com>
1995 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1997 (core_xfer_shared_libraries_aix): Likewise.
1998 * gdbarch.c, gdbarch.h: Regenerated.
1999 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2000 ULONGEST. Change 'len_avail' type to ULONGEST.
2001 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2002 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2004 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2006 2014-02-07 Yao Qi <yao@codesourcery.com>
2008 * corefile.c (memory_error): Get 'exception' from ERR and pass
2009 'exception' to throw_error.
2011 2014-02-06 Doug Evans <xdje42@gmail.com>
2013 * configure.ac (libpython checking): Remove all but python.o from
2014 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2015 * configure: Regenerate.
2017 * Makefile.in (SFILES): Add extension.c.
2018 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2019 (COMMON_OBS): Add extension.o.
2020 * extension.h: New file.
2021 * extension-priv.h: New file.
2022 * extension.c: New file.
2024 * python/python-internal.h: #include "extension.h".
2025 (gdbpy_auto_load_enabled): Declare.
2026 (gdbpy_apply_val_pretty_printer): Declare.
2027 (gdbpy_apply_frame_filter): Declare.
2028 (gdbpy_preserve_values): Declare.
2029 (gdbpy_breakpoint_cond_says_stop): Declare.
2030 (gdbpy_breakpoint_has_cond): Declare.
2031 (void source_python_script_for_objfile): Delete.
2032 * python/python.c: #include "extension-priv.h".
2033 Delete inclusion of "observer.h".
2034 (extension_language_python): Moved here and renamed from
2035 script_language_python in py-auto-load.c.
2036 Redefined to be of type extension_language_defn.
2037 (python_extension_script_ops): New global.
2038 (python_extension_ops): New global.
2039 (struct python_env): New member previous_active.
2040 (restore_python_env): Call restore_active_ext_lang.
2041 (ensure_python_env): Call set_active_ext_lang.
2042 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2044 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2046 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2048 (gdbpy_eval_from_control_command): Renamed from
2049 eval_python_from_control_command, made static. New arg extlang.
2050 (gdbpy_source_script) Renamed from source_python_script, made static.
2052 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2053 result to int. New arg extlang.
2054 (gdbpy_source_objfile_script): Renamed from
2055 source_python_script_for_objfile, made static. New arg extlang.
2056 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2057 static. New args extlang, extlang_printers. Change result type to
2059 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2060 static. New arg extlang. Rename arg printers to extlang_printers
2061 and change type to ext_lang_type_printers *.
2062 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2063 static. Replace argument arg with extlang, extlang_printers.
2064 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2065 (!HAVE_PYTHON, source_python_script): Delete.
2066 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2067 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2068 (!HAVE_PYTHON, start_type_printers): Delete.
2069 (!HAVE_PYTHON, apply_type_printers): Delete.
2070 (!HAVE_PYTHON, free_type_printers): Delete.
2071 (_initialize_python): Delete call to observer_attach_before_prompt.
2072 (finalize_python): Set/restore active extension language.
2073 (gdbpy_finish_initialization) Renamed from
2074 finish_python_initialization, made static. New arg extlang.
2075 (gdbpy_initialized): New function.
2076 * python/python.h: #include "extension.h". Delete #include
2077 "value.h", "mi/mi-cmds.h".
2078 (extension_language_python): Declare.
2079 (GDBPY_AUTO_FILE_NAME): Delete.
2080 (enum py_bt_status): Moved to extension.h and renamed to
2082 (enum frame_filter_flags): Moved to extension.h.
2083 (enum py_frame_args): Moved to extension.h and renamed to
2084 ext_lang_frame_args.
2085 (finish_python_initialization): Delete.
2086 (eval_python_from_control_command): Delete.
2087 (source_python_script): Delete.
2088 (apply_val_pretty_printer): Delete.
2089 (apply_frame_filter): Delete.
2090 (preserve_python_values): Delete.
2091 (gdbpy_script_language_defn): Delete.
2092 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2093 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2095 * auto-load.c: #include "extension.h".
2096 (GDB_AUTO_FILE_NAME): Delete.
2097 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2098 (script_language_gdb): Delete, moved to extension.c and renamed to
2099 extension_language_gdb.
2100 (source_gdb_script_for_objfile): Delete.
2101 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2102 (loaded_script): Change type of language member to
2103 struct extension_language_defn *.
2104 (init_loaded_scripts_info): Initialize
2105 unsupported_script_warning_printed.
2106 (maybe_add_script): Make static. Change type of language arg to
2107 struct extension_language_defn *.
2108 (clear_section_scripts): Reset unsupported_script_warning_printed.
2109 (auto_load_objfile_script_1): Rewrite to use extension language API.
2110 (auto_load_objfile_script): Make public. Remove support-compiled-in
2111 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2112 (source_section_scripts): Rewrite to use extension language API.
2113 (load_auto_scripts_for_objfile): Rewrite to use
2114 auto_load_scripts_for_objfile.
2115 (collect_matching_scripts_data): Change type of language member to
2116 struct extension_language_defn *.
2117 (auto_load_info_scripts): Change type of language arg to
2118 struct extension_language_defn *.
2119 (unsupported_script_warning_print): New function.
2120 (script_not_found_warning_print): Make static.
2121 (_initialize_auto_load): Rewrite construction of scripts-directory
2123 * auto-load.h (struct objfile): Add forward decl.
2124 (struct script_language): Delete.
2125 (struct auto_load_pspace_info): Add forward decl.
2126 (struct extension_language_defn): Add forward decl.
2127 (maybe_add_script): Delete.
2128 (auto_load_objfile_script): Declare.
2129 (script_not_found_warning_print): Delete.
2130 (auto_load_info_scripts): Update prototype.
2131 (auto_load_gdb_scripts_enabled): Declare.
2132 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2133 auto_load_python_scripts_enabled and made public.
2134 (script_language_python): Delete, moved to python.c.
2135 (gdbpy_script_language_defn): Delete.
2136 (info_auto_load_python_scripts): Update to use
2137 extension_language_python.
2139 * breakpoint.c (condition_command): Replace call to
2140 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2141 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2142 with call to breakpoint_ext_lang_cond_says_stop.
2143 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2144 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2145 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2146 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2148 (local_setattro): Print name of extension language with existing
2151 * valprint.c (val_print, value_print): Update to call
2152 apply_ext_lang_val_pretty_printer.
2153 * cp-valprint.c (cp_print_value): Update call to
2154 apply_ext_lang_val_pretty_printer.
2155 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2156 (gdbpy_apply_val_pretty_printer): Renamed from
2157 apply_val_pretty_printer. New arg extlang.
2158 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2160 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2161 extension language API.
2162 * cli/cli-script.c (execute_control_command): Update to call
2163 eval_ext_lang_from_control_command.
2165 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2166 enum ext_lang_bt_status values. Update call to
2167 apply_ext_lang_frame_filter.
2168 (mi_cmd_stack_list_locals): Ditto.
2169 (mi_cmd_stack_list_args): Ditto.
2170 (mi_cmd_stack_list_variables): Ditto.
2171 * mi/mi-main.c: Delete #include "python/python-internal.h".
2172 Add #include "extension.h".
2173 (mi_cmd_list_features): Replace reference to python internal variable
2174 gdb_python_initialized with call to ext_lang_initialized_p.
2176 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2177 Update to use enum ext_lang_frame_args. Update to call
2178 apply_ext_lang_frame_filter.
2179 * python/py-framefilter.c (extract_sym): Update to use enum
2181 (extract_value, py_print_type, py_print_value): Ditto.
2182 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2183 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2184 (py_print_frame): Ditto.
2185 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2186 New arg extlang. Update to use enum ext_lang_bt_status.
2188 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2189 finish_python_initialization. Replace with call to
2190 finish_ext_lang_initialization.
2192 * typeprint.c (do_free_global_table): Update to call
2193 free_ext_lang_type_printers.
2194 (create_global_typedef_table): Update to call
2195 start_ext_lang_type_printers.
2196 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2197 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2198 (type_print_options): Change type of global_printers from "void *"
2199 to "struct ext_lang_type_printers *".
2201 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2202 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2203 (gdbpy_preserve_values): Renamed from preserve_python_values.
2205 (!HAVE_PYTHON, preserve_python_values): Delete.
2207 * utils.c (quit_flag): Delete, moved to extension.c.
2208 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2211 * eval.c: Delete #include "python/python.h".
2212 * main.c: Delete #include "python/python.h".
2214 * defs.h: Update comment.
2216 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2220 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2222 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2225 2014-02-05 Yao Qi <yao@codesourcery.com>
2227 * remote.c (remote_pass_signals): Remove local 'buf' and use
2229 (remote_program_signals): Likewise.
2231 2014-02-05 Yao Qi <yao@codesourcery.com>
2233 * ctf.c: Include "inferior.h" and "gdbthread.h".
2234 (CTF_PID): A new macro.
2235 (ctf_open): Call inferior_appeared and add_thread_silent.
2236 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2237 (ctf_thread_alive): New function.
2238 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2240 2014-02-05 Yao Qi <yao@codesourcery.com>
2244 2013-05-24 Yao Qi <yao@codesourcery.com>
2246 * tracepoint.c (TFILE_PID): Remove.
2247 (tfile_open): Don't add thread and inferior.
2248 (tfile_close): Don't set 'inferior_ptid'. Don't call
2249 exit_inferior_silent.
2250 (tfile_thread_alive): Remove.
2251 (init_tfile_ops): Don't set field 'to_thread_alive' of
2254 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2256 * remote.c (remote_start_remote): Call remote_check_symbols even
2257 if only symbol-file (not file) has been given.
2259 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2261 * gdbarch.sh (skip_entrypoint): New callback.
2262 * gdbarch.c, gdbarch.h: Regenerate.
2263 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2264 * infrun.c (fill_in_stop_func): Likewise.
2265 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2266 (ppc_elfv2_elf_make_msymbol_special): New function.
2267 (ppc_elfv2_skip_entrypoint): Likewise.
2268 (ppc_linux_init_abi): Install them for ELFv2.
2270 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2272 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2273 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2274 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2275 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2276 structures returned in GPRs.
2278 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2280 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2281 offset to the stack parameter list for the ELFv2 ABI.
2283 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2285 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2286 set_gdbarch_convert_from_func_ptr_addr and
2287 set_gdbarch_elf_make_msymbol_special for ELFv1.
2288 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2289 function descriptors on ELFv1.
2290 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2291 set up r12 at function entry.
2293 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2295 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2296 (struct gdbarch_tdep): New member elf_abi.
2298 * rs6000-tdep.c: Include "elf/ppc64.h".
2299 (rs6000_gdbarch_init): Detect ELF ABI version.
2301 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2303 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2304 within a register pair holding a DFP 128-bit value on little-endian.
2305 (ppc64_sysv_abi_return_value_base): Likewise.
2306 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2307 (dfp_pseudo_register_write): Likewise.
2309 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2311 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2312 offset on little-endian when passing _Decimal32.
2313 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2315 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2317 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2318 of the overlapped FP register within the VSX register on little-
2320 (efpr_pseudo_register_write): Likewise.
2322 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2324 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2325 offset on little-endian when passing small structures.
2327 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2329 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2330 (struct ppc64_sysv_argpos): New data structure.
2331 (ppc64_sysv_abi_push_float): Remove.
2332 (ppc64_sysv_abi_push_val): New function.
2333 (ppc64_sysv_abi_push_integer): Likewise.
2334 (ppc64_sysv_abi_push_freg): Likewise.
2335 (ppc64_sysv_abi_push_vreg): Likewise.
2336 (ppc64_sysv_abi_push_param): Likewise.
2337 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2338 (ppc64_sysv_abi_return_value_base): New function.
2339 (ppc64_sysv_abi_return_value): Refactor to use it.
2341 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2343 * NEWS: Document new target powerpc64le-*-linux*.
2345 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2347 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2348 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2350 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2351 register set used in ELF core dumps. Add floating-point register set.
2353 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2355 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2356 dwarf2_to_gdb[] table using symbolic constants. Adjust
2357 penultimate entry from number representing the PC register
2358 to symbolic constant representing the MDR register. Add
2359 constant for the PC register to the end of the table.
2361 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2363 * bsd-kvm.c: Include <sys/param.h>
2365 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2367 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2369 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2371 * ada-lang.h (clear_ada_sym_cache): Delete.
2373 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2375 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2377 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2379 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2380 the sigreturn register save area only if the syscall is
2383 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2385 * valops.c (value_slice): Minor reformatting.
2387 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2389 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2391 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2393 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2395 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2396 (ada_ignore_descriptive_types_p): New static global.
2397 (find_parallel_type_by_descriptive_type): Return immediately
2398 if ada_ignore_descriptive_types_p is set.
2399 (_initialize_ada_language): Register new commands "maintenance
2400 set ada", "maintenance show ada", "maintenance set ada
2401 ignore-descriptive-types" and "maintenance show ada
2402 ignore-descriptive-types".
2403 * NEWS: Add entry for new "maint ada set/show
2404 ignore-descriptive-types" commands.
2406 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2408 * record-btrace.c (record_btrace_close): Call btrace_teardown
2411 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2413 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2416 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2418 * ada-typeprint (type_is_full_subrange_of_target_type):
2420 (print_range): Add parameter bounds_prefered_p. If not set,
2421 try printing range types using the name of their base type.
2422 (print_range_type): Add parameter bounds_prefered_p.
2423 Use it in call to print_range.
2424 (print_array_type, ada_print_type): Update calls to print_range
2425 and print_range_type.
2427 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2429 * ada-typeprint.c (print_array_type, print_choices, print_range)
2430 (print_range_bound, print_dynamic_range_bound, print_range_type):
2433 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2435 * ada-typeprint.c (print_range): Add missing empty line
2436 after local declaration.
2438 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2440 * ada-valprint.c (print_optional_low_bound): Get index_type's
2441 target type for as long as it is a TYPE_CODE_RANGE.
2443 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2445 * procfs.c (procfs_make_note_section): Remove assertion and
2448 2014-01-24 Yao Qi <yao@codesourcery.com>
2450 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2451 * corelow.c (get_core_siginfo): Likewise.
2453 2014-01-24 Yao Qi <yao@codesourcery.com>
2455 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2456 ULONGEST. Don't check 'len' is negative.
2457 (remote_write_bytes): Change type of 'len' to ULONGEST.
2459 2014-01-23 Tom Tromey <tromey@redhat.com>
2462 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2463 Handle exception from frame.block.
2464 (FrameVars.fetch_frame_locals): Likewise.
2466 2014-01-23 Tom Tromey <tromey@redhat.com>
2469 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2470 on a NULL pointer. Move "goto error" to correct place.
2472 2014-01-23 Tom Tromey <tromey@redhat.com>
2475 * python/py-framefilter.c (apply_frame_filter): Call
2476 ensure_python_env after computing gdbarch.
2478 2014-01-23 Yao Qi <yao@codesourcery.com>
2480 * target.c (raw_memory_xfer_partial): Change argument type
2481 from void * to gdb_byte *.
2482 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2484 2014-01-22 Doug Evans <dje@google.com>
2486 New gdbserver option --debug-format=timestamp.
2489 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2491 * syscalls/s390x-linux.xml: New file.
2492 * syscalls/s390-linux.xml: New file.
2493 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2494 (XML_SYSCALL_FILENAME_S390X): Likewise.
2495 (op_svc): New enum value for SVC opcode.
2496 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2497 (s390_linux_get_syscall_number): New function.
2498 (s390_gdbarch_init): Register '*get_syscall_number' and the
2499 syscall xml file name.
2500 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2501 "s390-linux.xml" and "s390x-linux.xml".
2502 * NEWS: Announce new feature.
2504 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2506 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2508 2014-01-22 Pedro Alves <palves@redhat.com>
2510 * xtensa-config.c: Include defs.h.
2512 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2514 * common/common-utils.h: Add "ARI:" comment beside __func__
2517 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2519 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2520 documentation a bit.
2522 2014-01-21 Roland McGrath <mcgrathr@google.com>
2524 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2525 * configure: Regenerate.
2526 * aclocal.m4: Regenerate.
2527 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2528 New substituted variables.
2529 (install-strip): New target.
2530 (INSTALL_SCRIPT): New substituted variable.
2531 (FLAGS_TO_PASS): Add it.
2532 (install-only): Use $(INSTALL_SCRIPT) rather than
2533 $(INSTALL_PROGRAM) for gcore.
2535 2014-01-20 Tom Tromey <tromey@redhat.com>
2537 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2540 2014-01-20 Tom Tromey <tromey@redhat.com>
2542 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2543 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2544 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2545 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2546 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2547 (struct cmd_list_element) <flags>: Remove.
2548 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2549 doc_allocated>: New fields.
2550 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2552 * maint.c (maintenance_do_deprecate): Update.
2553 * top.c (execute_command): Update.
2555 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2557 * xtensa-linux-nat.c: Include asm/ptrace.h.
2559 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2561 * Makefile.in (SFILES): Add d-support.c.
2562 (COMMON_OBS): Add d-support.o.
2563 * d-lang.h (d_parse_symbol): Add comment, now defined in
2565 * d-lang.c (parse_call_convention)
2566 (parse_attributes, parse_function_types)
2567 (parse_function_args, parse_type, parse_identifier)
2568 (call_convention_p, d_parse_symbol): Move functions to ...
2569 * d-support.c: ... New file.
2571 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2573 * d-lang.h (d_parse_symbol): Add declaration.
2574 * d-lang.c (extract_identifiers)
2575 (extract_type_info): Remove functions.
2576 (parse_call_convention, parse_attributes)
2577 (parse_function_types, parse_function_args)
2578 (parse_type, parse_identifier, call_convention_p)
2579 (d_parse_symbol): New functions.
2580 (d_demangle): Use d_parse_symbol to demangle D symbols.
2582 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2584 * d-lang.h (struct builtin_d_type): New data type.
2585 (builtin_d_type): Add declaration.
2586 * d-lang.c (d_language_arch_info, build_d_types)
2587 (builtin_d_type): New functions.
2588 (enum d_primitive_types): New data type.
2589 (d_language_defn): Change c_language_arch_info to
2590 d_language_arch_info.
2591 (d_type_data): New static variable.
2592 (_initialize_d_language): Initialize d_type_data.
2594 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2596 * d-lang.h (d_main_name): Add declaration.
2597 * d-lang.c (d_main_name): New function.
2598 * symtab.c (find_main_name): Add call to d_main_name.
2600 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2602 * d-lang.c (d_language_defn): Change macro_expansion_c to
2605 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2607 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2609 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2611 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2612 gdb_exception" declaration.
2613 * remote.c (getpkt_or_notif_sane): Likewise.
2615 2014-01-17 Doug Evans <dje@google.com>
2617 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2618 function, contents of dirnames_to_char_ptr_vec_append moved here.
2619 (delim_string_to_char_ptr_vec): New function.
2620 (dirnames_to_char_ptr_vec_append): Rewrite.
2621 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2623 2014-01-17 Doug Evans <dje@google.com>
2625 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2627 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2628 #include "common-utils.h".
2629 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2630 * common/vec.h (VEC_ASSERT_PASS): Update.
2631 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2632 (MACH_CHECK_ERROR): Update.
2634 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2636 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2638 * gdbarch.h: Regenerate.
2640 2014-01-16 Tom Tromey <tromey@redhat.com>
2642 * value.c (struct value) <regnum>: Move earlier.
2644 2014-01-16 Tom Tromey <tromey@redhat.com>
2646 * remote.c (extended_remote_create_inferior): Rename from
2647 extended_remote_create_inferior_1. Add "ops" argument. Remove
2650 2014-01-16 Pedro Alves <palves@redhat.com>
2652 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2653 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2656 2014-01-16 Doug Evans <dje@google.com>
2658 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2662 * btrace.h (btrace_thread_flag): New.
2663 (struct btrace_thread_info) <flags>: New.
2664 * record-btrace.c (record_btrace_resume_thread)
2665 (record_btrace_find_thread_to_move, btrace_step_no_history)
2666 (btrace_step_stopped, record_btrace_start_replaying)
2667 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2668 (record_btrace_find_resume_thread): New.
2669 (record_btrace_resume, record_btrace_wait): Extend.
2670 (record_btrace_can_execute_reverse): New.
2671 (record_btrace_open): Fail in non-stop mode.
2672 (record_btrace_set_replay): Split into this, ...
2673 (record_btrace_stop_replaying): ... this, ...
2674 (record_btrace_clear_histories): ... and this.
2675 (init_record_btrace_ops): Init to_can_execute_reverse.
2676 * NEWS: Announce it.
2678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2680 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2681 (forward_target_decr_pc_after_break)
2682 (target_decr_pc_after_break): New.
2683 * target.c (forward_target_decr_pc_after_break)
2684 (target_decr_pc_after_break): New.
2685 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2686 instead of gdbarch_decr_pc_after_break.
2687 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2688 instead of gdbarch_decr_pc_after_break.
2689 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2690 instead of gdbarch_decr_pc_after_break.
2691 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2692 instead of gdbarch_decr_pc_after_break.
2693 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2694 instead of gdbarch_decr_pc_after_break.
2695 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2696 instead of gdbarch_decr_pc_after_break.
2698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2700 * btrace.c: Include regcache.h.
2701 (btrace_add_pc): New.
2702 (btrace_enable): Call btrace_add_pc.
2703 (btrace_is_empty): New.
2704 * btrace.h (btrace_is_empty): New.
2705 * record-btrace.c (require_btrace, record_btrace_info): Call
2708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2710 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2711 Support delta reads.
2712 (linux_disable_btrace): Change return type.
2713 * common/linux-btrace.h (linux_read_btrace): Change parameters
2714 and return type to allow error reporting. Update users.
2715 (linux_disable_btrace): Change return type. Update users.
2716 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2718 (btrace_error): New.
2719 (btrace_block) <begin>: Comment on BEGIN == 0.
2720 * btrace.c (btrace_compute_ftrace): Start from the end of
2722 (btrace_stitch_trace, btrace_clear_history): New.
2723 (btrace_fetch): Read delta trace, return if replaying.
2724 (btrace_clear): Move clear history code to btrace_clear_history.
2725 (parse_xml_btrace): Throw an error if parsing failed.
2726 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2727 and return type to allow error reporting.
2728 (target_read_btrace): Change parameters and return type to allow
2730 * target.c (target_read_btrace): Update.
2731 * remote.c (remote_read_btrace): Support delta reads. Pass
2733 * NEWS: Announce it.
2735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2737 * record.h (record_btrace_frame_unwind)
2738 (record_btrace_tailcall_frame_unwind): New declarations.
2739 * dwarf2-frame: Include record.h
2740 (dwarf2_frame_cfa): Throw an error for btrace frames.
2741 * record-btrace.c: Include hashtab.h.
2742 (btrace_get_bfun_name): New.
2743 (btrace_call_history): Call btrace_get_bfun_name.
2744 (struct btrace_frame_cache): New.
2746 (bfcache_hash, bfcache_eq, bfcache_new): New.
2747 (btrace_get_frame_function): New.
2748 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2749 (record_btrace_frame_this_id): Compute own id.
2750 (record_btrace_frame_prev_register): Provide PC, throw_error
2751 for all other registers.
2752 (record_btrace_frame_sniffer): Detect btrace frames.
2753 (record_btrace_tailcall_frame_sniffer): New.
2754 (record_btrace_frame_dealloc_cache): New.
2755 (record_btrace_frame_unwind): Add new functions.
2756 (record_btrace_tailcall_frame_unwind): New.
2757 (_initialize_record_btrace): Allocate cache.
2758 * btrace.c (btrace_clear): Call reinit_frame_cache.
2759 * NEWS: Announce it.
2761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2763 * record-btrace.c (record_btrace_set_replay)
2764 (record_btrace_goto_begin, record_btrace_goto_end)
2765 (record_btrace_goto): New.
2766 (init_record_btrace_ops): Initialize them.
2767 * NEWS: Announce it.
2769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2771 * record-btrace.c (record_btrace_find_new_threads)
2772 (record_btrace_thread_alive): New.
2773 (init_record_btrace_ops): Initialize to_find_new_threads and
2776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2778 * record-btrace.c (record_btrace_resume): New.
2779 (record_btrace_wait): New.
2780 (init_record_btrace_ops): Initialize to_wait and to_resume.
2782 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2784 * record-btrace.c (record_btrace_xfer_partial)
2785 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2786 (record_btrace_allow_memory_access): New.
2787 (init_record_btrace_ops): Initialize new methods.
2788 * target.c (raw_memory_xfer_partial): Bail out if target reports
2789 that this memory is not available.
2791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2793 * target.h (target_ops) <to_insert_breakpoint>
2794 <to_remove_breakpoint>: Add target_ops parameter.
2795 (forward_target_insert_breakpoint): New.
2796 (forward_target_remove_breakpoint): New.
2797 (memory_remove_breakpoint, memory_insert_breakpoint):
2798 Add target_ops parameter.
2799 * target.c (target_insert_breakpoint): Split into this and ...
2800 (forward_target_insert_breakpoint): ... this.
2801 (target_remove_breakpoint): Split into this and ...
2802 (forward_target_remove_breakpoint): ... this.
2803 (debug_to_insert_breakpoint): Add target_ops parameter.
2804 Call forward_target_insert_breakpoint.
2805 (debug_to_remove_breakpoint): Add target_ops parameter.
2806 Call forward_target_remove_breakpoint.
2807 (update_current_target): Do not inherit or default to_insert_breakpoint
2808 and to_remove_breakpoint.
2809 * corelow.c (ignore): Add target_ops parameter.
2810 * exec.c (ignore): Add target_ops parameter.
2811 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2812 Add target_ops parameter.
2813 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2814 Add target_ops parameter.
2815 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2816 Add target_ops parameter.
2817 * record-full.c (record_full_beneath_to_insert_breakpoint)
2818 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2819 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2820 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2821 (record_full_core_remove_breakpoint): Add target_ops parameter.
2823 (record_full_beneath_to_insert_breakpoint_ops)
2824 (record_full_beneath_to_remove_breakpoint_ops)
2825 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2826 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2827 tmp_to_remove_breakpoint_ops,
2828 record_full_beneath_to_insert_breakpoint_ops, and
2829 record_full_beneath_to_remove_breakpoint_ops.
2830 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2831 (m32r_remove_breakpoint): Add target_ops parameter.
2832 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2833 Add target_ops parameter.
2834 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2835 Add target_ops parameter.
2837 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 Markus Metzger <markus.t.metzger@intel.com>
2840 * record-btrace.c: Include frame-unwind.h.
2841 (record_btrace_frame_unwind_stop_reason)
2842 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2843 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2845 (init_record_btrace_ops): Install it.
2847 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2849 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2852 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2854 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2857 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2859 * frame-unwind.c: Include target.h.
2860 (frame_unwind_try_unwinder): New function with code from ...
2861 (frame_unwind_find_by_frame): ... here. New variable
2862 unwinder_from_target, call also target_get_unwinder)
2863 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2864 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2865 * target.h (struct target_ops): New fields to_get_unwinder and
2866 to_get_tailcall_unwinder.
2867 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2871 * record-btrace.c (record_btrace_fetch_registers)
2872 (record_btrace_store_registers)
2873 (record_btrace_to_prepare_to_store): New.
2874 (init_record_btrace_ops): Add the above.
2876 2014-01-16 Tom Tromey <tromey@redhat.com>
2878 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2879 * target.h (struct target_ops) <to_prepare_to_store>: Add
2881 (target_prepare_to_store): Add argument.
2882 * target.c (debug_to_prepare_to_store): Add argument.
2883 (update_current_target): Update.
2884 * remote.c (remote_prepare_to_store): Add 'self' argument.
2885 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2886 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2887 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2888 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2890 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2891 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2892 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2893 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2894 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2898 * btrace.h (replay) <replay>: New.
2899 (btrace_is_replaying): New.
2900 * btrace.c (btrace_clear): Free replay iterator.
2901 (btrace_is_replaying): New.
2902 * record-btrace.c (record_btrace_is_replaying): New.
2903 (record_btrace_info): Print insn number if replaying.
2904 (record_btrace_insn_history): Start at replay position.
2905 (record_btrace_call_history): Start at replay position.
2906 (init_record_btrace_ops): Init to_record_is_replaying.
2908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2910 * record-btrace.c (record_btrace_insn_history_range): Include
2912 (record_btrace_insn_history_from): Adjust range.
2913 (record_btrace_call_history_range): Include
2915 (record_btrace_call_history_from): Adjust range.
2916 * NEWS: Announce changes.
2918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2920 * record.h (enum record_print_flag)
2921 <record_print_indent_calls>: New.
2922 * record.c (get_call_history_modifiers): Recognize /c modifier.
2923 (_initialize_record): Document /c modifier.
2924 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2925 Reorder fields. Optionally indent the function name. Update
2927 * NEWS: Announce changes.
2929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2931 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2935 * btrace.c (ftrace_new_function): Start counting at one.
2936 * record-btrace.c (record_btrace_info): Adjust number of calls
2938 * NEWS: Announce it.
2940 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2942 * record-btrace.c (btrace_call_history_insn_range): Print
2943 insn range as [begin, end].
2945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2947 * btrace.h (struct btrace_func_link): New.
2948 (enum btrace_function_flag): New.
2949 (struct btrace_inst): Rename to ...
2950 (struct btrace_insn): ...this. Update all users.
2951 (struct btrace_func) <ibegin, iend>: Remove.
2952 (struct btrace_func_link): New.
2953 (struct btrace_func): Rename to ...
2954 (struct btrace_function): ...this. Update all users.
2955 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2956 (number, level, flags>: New.
2957 (struct btrace_insn_iterator): Rename to ...
2958 (struct btrace_insn_history): ...this.
2960 (struct btrace_insn_iterator, btrace_call_iterator): New.
2961 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2962 (struct btrace_target_info) <begin, end, level>
2963 <insn_history, call_history>: New.
2964 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2965 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2966 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2967 (btrace_call_number, btrace_call_begin, btrace_call_end)
2968 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2969 (btrace_find_function_by_number, btrace_set_insn_history)
2970 (btrace_set_call_history): New.
2971 * btrace.c (btrace_init_insn_iterator)
2972 (btrace_init_func_iterator, compute_itrace): Remove.
2973 (ftrace_print_function_name, ftrace_print_filename)
2974 (ftrace_skip_file): Change
2976 (ftrace_init_func): Remove.
2977 (ftrace_debug): Use new btrace_function fields.
2978 (ftrace_function_switched): Also consider gaining and
2979 losing symbol information).
2980 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2981 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2982 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2984 (ftrace_new_function): Move. Remove debug print.
2985 (ftrace_update_lines, ftrace_update_insns): New.
2986 (ftrace_update_function): Check for call, ret, and jump.
2987 (compute_ftrace): Renamed to ...
2988 (btrace_compute_ftrace): ...this. Rewritten to compute call
2990 (btrace_fetch, btrace_clear): Updated.
2991 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2992 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2993 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2994 (btrace_call_number, btrace_call_begin, btrace_call_end)
2995 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2996 (btrace_find_function_by_number, btrace_set_insn_history)
2997 (btrace_set_call_history): New.
2998 * record-btrace.c (require_btrace): Use new btrace thread
3000 (record_btrace_info, btrace_insn_history)
3001 (record_btrace_insn_history, record_btrace_insn_history_range):
3002 Use new btrace thread info fields and new iterator.
3003 (btrace_func_history_src_line): Rename to ...
3004 (btrace_call_history_src_line): ...this. Use new btrace
3006 (btrace_func_history): Rename to ...
3007 (btrace_call_history): ...this. Use new btrace thread info
3008 fields and new iterator.
3009 (record_btrace_call_history, record_btrace_call_history_range):
3010 Use new btrace thread info fields and new iterator.
3012 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3014 * frame.h (frame_id_build_unavailable_stack_special): New.
3015 * frame.c (frame_id_build_unavailable_stack_special): New.
3017 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3019 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3020 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3021 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3023 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3024 (i386_insn_is_jump, i386_jmp_p): New.
3025 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3026 insn_is_jump to gdbarch.
3027 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3028 * gdbarch.h: Regenerated.
3029 * gdbarch.c: Regenerated.
3030 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3031 (default_insn_is_jump): New.
3032 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3033 (default_insn_is_jump): New.
3035 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3037 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3039 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3040 (btrace_read_type) <btrace_read_new>: Change to ...
3041 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3043 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3045 * common/linux-btrace.c (linux_read_btrace): Free trace from
3048 2014-01-15 Doug Evans <dje@google.com>
3050 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3053 2014-01-15 Tom Tromey <tromey@redhat.com>
3055 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3056 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3057 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3058 (set_objfile_main_name): New function.
3059 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3060 language_of_main>: New fields.
3061 (set_objfile_main_name): Declare.
3062 * symtab.c (find_main_name): Loop over objfiles to find the main
3064 (set_main_name): Now static.
3065 (get_main_info): Add comment.
3066 * symtab.h (set_main_name): Don't declare.
3068 2014-01-15 Tom Tromey <tromey@redhat.com>
3070 * symtab.c (main_progspace_key): New global.
3071 (struct main_info): New.
3072 (name_of_main, language_of_main): Remove.
3073 (get_main_info, main_info_cleanup): New function.
3074 (set_main_name, main_name, main_language): Use get_main_info.
3075 (_initialize_symtab): Initialize main_progspace_key.
3077 2014-01-15 Tom Tromey <tromey@redhat.com>
3079 * dbxread.c (process_one_symbol): Update.
3080 * dwarf2read.c (read_partial_die): Update.
3081 * symfile.c (set_initial_language): Call main_language.
3082 * symtab.c (language_of_main): Now static.
3083 (set_main_name): Add 'lang' parameter.
3084 (find_main_name): Update.
3085 (main_language): New function.
3086 (symtab_observer_executable_changed): Update.
3087 * symtab.h (set_main_name): Update.
3088 (language_of_main): Remove.
3089 (main_language): Declare.
3091 2014-01-15 Tom Tromey <tromey@redhat.com>
3093 * symfile.c (init_entry_point_info): Use new "initialized" field.
3095 * objfiles.h (struct entry_point) <initialized>: New field.
3096 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3097 (struct objfile) <ei>: ...here. Remove.
3098 * objfiles.c (entry_point_address_query): Update.
3100 2014-01-15 Tom Tromey <tromey@redhat.com>
3102 * objfiles.c (entry_point_address_query): Relocate entry point
3104 (objfile_relocate1): Do not relocate entry point address.
3105 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3106 <the_bfd_section_index>: New field.
3107 * symfile.c (init_entry_point_info): Find the entry point's
3110 2014-01-15 Tom Tromey <tromey@redhat.com>
3112 * solib-frv.c (enable_break): Use entry_point_address_query.
3114 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3116 * NEWS: Add note on improved process record-replay on
3117 arm*-linux* targets.
3119 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3121 * arm-tdep.c (enum arm_record_result): New enum.
3122 (arm_record_unsupported_insn): New function.
3123 (arm_record_coproc_data_proc): Removed.
3124 (thumb2_record_ld_st_multiple): New function.
3125 (thumb2_record_ld_st_dual_ex_tbb): New function.
3126 (thumb2_record_data_proc_sreg_mimm): New function.
3127 (thumb2_record_ps_dest_generic): New function.
3128 (thumb2_record_branch_misc_cntrl): New function.
3129 (thumb2_record_str_single_data): New function.
3130 (thumb2_record_ld_mem_hints): New function.
3131 (thumb2_record_ld_word): New function.
3132 (thumb2_record_lmul_lmla_div): New function.
3133 (thumb2_record_decode_insn_handler): New function.
3134 (decode_insn): Add thumb32 instruction handlers.
3136 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3138 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3139 (struct arm_linux_record_tdep): Declare.
3140 (arm_canonicalize_syscall): New function.
3141 (arm_all_but_pc_registers_record): New function.
3142 (arm_linux_syscall_record): New function.
3143 (arm_linux_init_abi): Add syscall recording constructs.
3144 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3145 decoding. (arm_record_coproc_data_proc): Update arm syscall
3147 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3148 <arm_syscall_record>: New field.
3149 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3152 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3154 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3155 register for push instruction recording.
3157 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3159 * arm-tdep.c (thumb_record_misc): Update to correct logical
3160 error while recording ldm, ldmia and pop instructions.
3162 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3164 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3166 2014-01-15 Pedro Alves <palves@redhat.com>
3168 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3169 (go32_resume, go32_fetch_registers, store_register)
3170 (go32_store_registers, go32_prepare_to_store)
3171 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3172 (go32_create_inferior, go32_can_run, go32_terminal_init)
3173 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3176 2014-01-15 Tom Tromey <tromey@redhat.com>
3178 * target.h (async_callback_ftype): New typedef.
3179 (struct target_ops) <to_async>: Use it.
3181 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3183 * python/py-value.c (get_field_type): Remove unnecessary curly
3184 braces for single-statement if block.
3186 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3188 * python/py-type.c (convert_field): Add missing empty line
3191 2014-01-14 Doug Evans <dje@google.com>
3193 * symfile.h (expand_symtabs_matching): Renamed from
3194 expand_partial_symbol_names. Update prototype.
3195 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3196 * symfile.c (expand_symtabs_matching): Renamed from
3197 expand_partial_symbol_names. New args file_matcher, kind.
3198 Rename arg fun to symbol_matcher.
3199 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3200 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3201 ada_expand_partial_symbol_name.
3202 (ada_make_symbol_completion_list): Update to call
3203 expand_symtabs_matching.
3204 (ada_add_global_exceptions): Call expand_symtabs_matching.
3205 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3206 call map_symbol_filenames.
3207 * symtab.c (sources_info): Update to call map_symbol_filenames.
3208 (search_symbols): Call expand_symtabs_matching.
3209 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3210 (default_make_symbol_completion_list_break_on): Update to call
3211 expand_symtabs_matching.
3212 (make_source_files_completion_list): Update to call
3213 map_symbol_filenames.
3215 2014-01-14 Doug Evans <dje@google.com>
3217 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3218 (expand_symtabs_symbol_matcher_ftype): New typedef.
3219 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3221 * symfile.c (expand_partial_symbol_names): Update to use
3222 expand_symtabs_symbol_matcher_ftype.
3223 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3224 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3225 Arg name_matcher renamed to symbol_matcher.
3226 * psymtab.c (recursively_search_psymtabs): Update to use
3227 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3229 (expand_symtabs_matching_via_partial): Update to use
3230 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3231 Arg name_matcher renamed to symbol_matcher.
3233 2014-01-14 Doug Evans <dje@google.com>
3235 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3236 (map_partial_symbol_filenames): Ditto.
3237 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3238 (map_partial_symbol_filenames): Ditto.
3239 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3240 (map_partial_symbol_filenames): Ditto.
3241 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3242 (map_partial_symbol_filenames): Ditto.
3243 * symtab.c: Delete #include "psymtab.h".
3245 2014-01-14 Pedro Alves <palves@redhat.com>
3246 Tom Tromey <tromey@redhat.com>
3248 * infrun.c (use_displaced_stepping): Use find_record_target
3249 instead of RECORD_IS_USED.
3250 (adjust_pc_after_break): Use record_full_is_used instead of
3252 * record-btrace.c (record_btrace_open): Call record_preopen
3253 instead of checking RECORD_IS_USED.
3254 * record-full.c (record_full_shortname)
3255 (record_full_core_shortname): New globals.
3256 (record_full_is_used): New function.
3257 (find_full_open): Call record_preopen instead of checking
3259 (init_record_full_ops): Set the target's shortname to
3260 record_full_shortname.
3261 (init_record_full_core_ops): Set the target's shortname to
3262 record_full_core_shortname.
3263 * record-full.h (record_full_is_used): Declare.
3264 * record.c (find_record_target): Make extern.
3265 (record_preopen): New function.
3266 * record.h (RECORD_IS_USED): Delete macro.
3267 (find_record_target, record_preopen): Declare functions.
3269 2014-01-14 Yao Qi <yao@codesourcery.com>
3271 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3272 'len''s type to ULONGEST.
3273 (core_xfer_shared_libraries_aix): Likewise.
3274 * gdbarch.c, gdbarch.h: Regenerated.
3275 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3276 Change type of 'len' to ULONGEST.
3277 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3278 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3280 2014-01-14 Yao Qi <yao@codesourcery.com>
3282 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3283 type of 'len' to ULONGEST.
3284 (linux_xfer_osdata_processgroups): Likewise.
3285 (linux_xfer_osdata_threads): Likewise.
3286 (linux_xfer_osdata_fds): Likewise.
3287 (linux_xfer_osdata_isockets): Likewise.
3288 (linux_xfer_osdata_shm): Likewise.
3289 (linux_xfer_osdata_sem): Likewise.
3290 (linux_xfer_osdata_msg): Likewise.
3291 (linux_common_xfer_osdata): Likewise.
3292 (struct osdata_type) <getter>: Likewise.
3293 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3296 2014-01-14 Yao Qi <yao@codesourcery.com>
3298 * target.h (target_xfer_partial_ftype): Update.
3299 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3301 * aix-thread.c (aix_thread_xfer_partial): Change type of
3302 argument 'len' to ULONGEST.
3303 * auxv.c (procfs_xfer_auxv): Likewise.
3304 (ld_so_xfer_auxv): Likewise.
3305 (memory_xfer_auxv): Likewise.
3306 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3307 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3308 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3309 * corelow.c (core_xfer_partial): Likewise.
3310 * ctf.c (ctf_xfer_partial): Likewise.
3311 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3313 (darwin_read_dyld_info): Likewise.
3314 (darwin_xfer_partial): Likewise.
3315 * exec.c (section_table_xfer_memory_partial): Likewise.
3316 (exec_xfer_partial): Likewise.
3317 * exec.h (section_table_xfer_memory_partial): Update
3319 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3320 instead of plongest.
3321 (gnu_xfer_partial): Likewise.
3322 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3323 (ia64_hpux_xfer_solib_got): Likewise.
3324 (ia64_hpux_xfer_partial): Likewise.
3325 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3326 * inf-ptrace.c (inf_ptrace_xfer_partial):
3327 * inf-ttrace.c (inf_ttrace_xfer_partial):
3328 * linux-nat.c (linux_xfer_siginfo): Likewise.
3329 (linux_nat_xfer_partial): Likewise.
3330 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3331 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3332 * monitor.c (monitor_xfer_memory): Likewise.
3333 (monitor_xfer_partial): Likewise.
3334 * procfs.c (procfs_xfer_partial): Likewise.
3335 * record-full.c (record_full_xfer_partial): Likewise.
3336 (record_full_core_xfer_partial): Likewise.
3337 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3338 instead of plongest.
3339 (gdbsim_xfer_partial): Likewise.
3340 * remote.c (remote_xfer_partial): Likewise.
3341 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3342 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3344 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3345 (rs6000_xfer_shared_libraries): Likewise.
3346 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3347 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3348 (sparc_xfer_partial): Likewise.
3349 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3350 (spu_xfer_partial): Likewise.
3351 * spu-multiarch.c (spu_xfer_partial): Likewise.
3352 * target.c (target_read_live_memory): Likewise.
3353 (memory_xfer_live_readonly_partial): Likewise.
3354 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3355 (target_xfer_partial, default_xfer_partial): Likewise.
3356 (current_xfer_partial): Likewise.
3357 * tracepoint.c (tfile_xfer_partial): Likewise.
3358 * windows-nat.c (windows_xfer_memory): Likewise. Call
3359 pulongest instead of plongest.
3360 (windows_xfer_partial): Likewise.
3361 (windows_xfer_shared_libraries): Likewise.
3363 2014-01-14 Yao Qi <yao@codesourcery.com>
3365 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3366 target_xfer_partial_ftype.
3368 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3372 * valops.c (value_struct_elt_bitpos): New function
3373 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3374 object to 'None' if the field name is an empty string ("").
3375 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3376 attribute to look for a field when 'name' is 'None'.
3377 (get_field_type): New function
3379 2014-01-13 Doug Evans <dje@google.com>
3382 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3383 (try_open_dwop_file): Ditto.
3384 * gdb_bfd.c: #include "vec.h".
3385 (bfdp): New typedef.
3386 (struct gdb_bfd_data): New member included_bfds.
3387 (gdb_bfd_unref): Unref all included bfds.
3388 (gdb_bfd_record_inclusion): New function.
3389 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3391 2014-01-13 Tom Tromey <tromey@redhat.com>
3393 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3395 2014-01-13 Tom Tromey <tromey@redhat.com>
3397 * defs.h (use_windows): Remove.
3398 * gdb.c (main): Update.
3399 * main.c (captured_main, gdb_main): Update.
3400 * main.h (struct captured_main_args) <use_windows>: Remove.
3401 * top.c (use_windows): Remove.
3403 2014-01-13 Tom Tromey <tromey@redhat.com>
3405 * defs.h (deprecated_flush_hook): Remove.
3407 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3410 * linux-thread-db.c (try_thread_db_load): Add parameter
3411 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3412 (try_thread_db_load_from_pdir_1): Move it there from here.
3413 (try_thread_db_load_from_sdir): Update caller.
3414 (try_thread_db_load_from_dir): Move it there from here.
3416 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3418 * regformats/regdat.sh: Always rewrite the register file.
3420 2014-01-13 Pedro Alves <palves@redhat.com>
3422 * Makefile.in (CHECK_HEADERS): New variable.
3423 (check-headers:): New rule.
3425 2014-01-13 Tom Tromey <tromey@redhat.com>
3427 * cli/cli-setshow.c (do_set_command): Update.
3428 * defs.h (deprecated_set_hook): Remove.
3429 * top.c (deprecated_set_hook): Remove.
3431 2014-01-13 Pedro Alves <palves@redhat.com>
3433 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3434 the tracepoint if the PC is a pseudo-register.
3436 2014-01-13 Tom Tromey <tromey@redhat.com>
3438 * defs.h (XCALLOC): Remove.
3439 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3440 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3441 * dwarf2loc.c (allocate_piece_closure): Likewise.
3442 * elfread.c (elf_symfile_segments): Likewise.
3443 (elf_symfile_segments): Likewise.
3444 * gdbtypes.c (copy_type_recursive): Likewise.
3445 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3446 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3447 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3449 * mt-tdep.c (mt_gdbarch_init): Likewise.
3450 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3452 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3453 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3454 * registry.c (registry_alloc_data): Likewise.
3455 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3456 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3457 * serial.c (serial_fdopen_ops): Likewise.
3458 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3460 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3461 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3464 2014-01-13 Tom Tromey <tromey@redhat.com>
3466 * defs.h (XMALLOC): Remove.
3467 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3468 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3469 * cli-out.c (struct ui_out *): Likewise.
3470 * cli/cli-dump.c (add_dump_command): Likewise.
3471 (add_dump_command): Likewise.
3472 * complaints.c (get_complaints): Likewise.
3473 (find_complaint): Likewise.
3474 * dwarf2-frame.c (execute_cfa_program): Likewise.
3475 * dwarf2read.c (abbrev_table_read_table): Likewise.
3476 * gdbarch.sh: Likewise.
3477 * gdbarch.c: Rebuild.
3478 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3479 * interps.c (interp_new): Likewise.
3480 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3481 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3482 * mi/mi-console.c (mi_console_file_new): Likewise.
3483 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3484 * mi/mi-out.c (mi_out_new): Likewise.
3485 * mi/mi-parse.c (mi_parse): Likewise.
3486 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3487 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3488 * observer.c (xalloc_observer_list_node): Likewise.
3489 * regcache.c (regcache_xmalloc_1): Likewise.
3490 * reggroups.c (reggroup_new): Likewise.
3491 (_initialize_reggroup): Likewise.
3492 * registry.c (register_data_with_cleanup): Likewise.
3493 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3494 * ser-base.c (serial_ttystate): Likewise.
3495 * ser-mingw.c (make_pipe_state): Likewise.
3496 * ser-pipe.c (pipe_open): Likewise.
3497 * serial.c (serial_open): Likewise.
3498 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3499 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3500 (tui_alloc_win_info): Likewise.
3501 (tui_add_content_elements): Likewise.
3502 * tui/tui-file.c (tui_file_new): Likewise.
3503 * tui/tui-out.c (tui_out_new): Likewise.
3504 * ui-file.c (mem_file_new): Likewise.
3505 * ui-out.c (push_level): Likewise.
3506 (make_cleanup_ui_out_end): Likewise.
3507 (append_header_to_list): Likewise.
3508 (ui_out_new): Likewise.
3509 * user-regs.c (user_reg_add_builtin): Likewise.
3511 2014-01-13 Tom Tromey <tromey@redhat.com>
3513 * defs.h (XZALLOC): Remove.
3514 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3515 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3516 (get_ada_tasks_inferior_data): Likewise.
3517 * auto-load.c (get_auto_load_pspace_data): Likewise.
3518 * auxv.c (get_auxv_inferior_data): Likewise.
3519 * bfd-target.c (target_bfd_reopen): Likewise.
3520 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3521 (deprecated_insert_raw_breakpoint): Likewise.
3522 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3523 * corelow.c (core_open): Likewise.
3524 * darwin-nat.c (darwin_check_new_threads): Likewise.
3525 (darwin_attach_pid): Likewise.
3526 * dummy-frame.c (dummy_frame_push): Likewise.
3527 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3528 * dwarf2loc.c (allocate_piece_closure): Likewise.
3529 * elfread.c (elf_symfile_segments): Likewise.
3530 * eval.c (ptrmath_type_p): Likewise.
3531 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3532 * gdbtypes.c (alloc_type_arch): Likewise.
3533 (alloc_type_instance): Likewise.
3534 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3535 * inf-child.c (inf_child_can_use_agent): Likewise.
3536 * inflow.c (get_inflow_inferior_data): Likewise.
3537 * infrun.c (save_infcall_suspend_state): Likewise.
3538 * jit.c (jit_reader_load): Likewise.
3539 (get_jit_objfile_data): Likewise.
3540 (get_jit_program_space_data): Likewise.
3541 (jit_object_open_impl): Likewise.
3542 (jit_symtab_open_impl): Likewise.
3543 (jit_block_open_impl): Likewise.
3544 (jit_frame_sniffer): Likewise.
3545 * linux-fork.c (add_fork): Likewise.
3546 * maint.c (make_command_stats_cleanup): Likewise.
3547 * objfiles.c (get_objfile_pspace_data): Likewise.
3548 * opencl-lang.c (struct lval_closure): Likewise.
3549 * osdata.c (osdata_start_osdata): Likewise.
3550 * progspace.c (new_address_space): Likewise.
3551 (add_program_space): Likewise.
3552 * remote-sim.c (get_sim_inferior_data): Likewise.
3553 * sh-tdep.c (sh_gdbarch_init): Likewise.
3554 * skip.c (Ignore): Likewise.
3555 (skip_delete_command): Likewise.
3556 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3557 (library_list_start_library): Likewise.
3558 (solib_aix_current_sos): Likewise.
3559 * solib-darwin.c (get_darwin_info): Likewise.
3560 (darwin_current_sos): Likewise.
3561 * solib-dsbt.c (get_dsbt_info): Likewise.
3562 * solib-ia64-hpux.c (new_so_list): Likewise.
3563 (ia64_hpux_get_solib_linkage_addr): Likewise.
3564 * solib-spu.c (append_ocl_sos): Likewise.
3565 (spu_current_sos): Likewise.
3566 * solib-svr4.c (get_svr4_info): Likewise.
3567 (svr4_keep_data_in_core): Likewise.
3568 (library_list_start_library): Likewise.
3569 (svr4_default_sos): Likewise.
3570 (svr4_read_so_list): Likewise.
3571 * solib-target.c (library_list_start_library): Likewise.
3572 (solib_target_current_sos): Likewise.
3573 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3574 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3575 * symfile.c (default_symfile_segments): Likewise.
3576 * target-descriptions.c (tdesc_data_init): Likewise.
3577 (tdesc_create_reg): Likewise.
3578 (struct tdesc_type *): Likewise.
3579 (tdesc_create_vector): Likewise.
3580 (tdesc_set_struct_size): Likewise.
3581 (struct tdesc_type *): Likewise.
3582 (tdesc_free_feature): Likewise.
3583 (tdesc_create_feature): Likewise.
3584 * windows-nat.c (windows_add_thread): Likewise.
3585 (windows_make_so): Likewise.
3586 * xml-support.c (gdb_xml_body_text): Likewise.
3587 (gdb_xml_create_parser_and_cleanup): Likewise.
3588 (xml_process_xincludes): Likewise.
3589 * xml-syscall.c (allocate_syscalls_info): Likewise.
3590 (syscall_create_syscall_desc): Likewise.
3592 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3594 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3595 function, with code from i386_stap_parse_special_token.
3596 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3597 (i386_stap_parse_special_token): Move code to the two functions
3600 2014-01-09 Pedro Alves <palves@redhat.com>
3601 Hui Zhu <hui@codesourcery.com>
3604 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3605 bp_err_string. Don't mark the location shlib_disabled if the
3606 error thrown wasn't a generic or memory error. Catch errors
3607 thrown while inserting breakpoints in overlayed code. Output
3608 error message of software breakpoints.
3609 * remote.c (remote_insert_breakpoint): If this breakpoint has
3610 target-side commands but this stub doesn't support Z0 packets,
3611 throw NOT_SUPPORTED_ERROR error.
3612 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3613 * target.h (target_insert_breakpoint): Extend comment.
3614 (target_insert_hw_breakpoint): Add comment.
3616 2014-01-08 Pedro Alves <palves@redhat.com>
3618 * remote.c (remote_add_thread): Add threads silently if starting
3620 (remote_notice_new_inferior): If in all-stop, and starting up,
3621 don't call notice_new_inferior.
3622 (get_current_thread): New function, factored out from ...
3623 (add_current_inferior_and_thread): ... this. Adjust.
3624 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3625 found any thread, then select the remote's current thread as GDB's
3628 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3630 * NEWS: Create a new section for the next release branch.
3631 Rename the section of the current branch, now that it has
3634 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3636 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3637 * version.in: Bump version to 7.7.50.DATE-cvs.
3639 2014-01-08 Yao Qi <yao@codesourcery.com>
3641 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3642 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3643 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3645 2014-01-08 Yao Qi <yao@codesourcery.com>
3647 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3648 return value of bfd_get_filename to symbol_file_add_from_bfd.
3650 2014-01-08 Pierre Muller <muller@sourceware.org>
3653 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3654 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3655 to prim_record_mininal_symbol_and_info.
3656 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3657 in call to prim_record_minimal_symbol_and_info.
3658 (read_pe_exported_syms): Set index field of section_data.
3660 2014-01-07 Andrew Pinski <apinski@cavium.com>
3662 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3663 * features/aarch64.c: Regenerate.
3665 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3667 * target.c (return_null): Define.
3668 (update_current_target): Use it instead of return_zero for
3669 functions that return a pointer.
3671 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3673 * source.c (add_path): Fix check for duplicated paths in the previously
3676 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3678 * ada-lang.c: Remove duplicated include statements.
3679 * alphabsd-nat.c: Ditto.
3680 * amd64-darwin-tdep.c: Ditto.
3681 * amd64fbsd-nat.c: Ditto.
3682 * auto-load.c: Ditto.
3684 * breakpoint.c: Ditto.
3686 * fork-child.c: Ditto.
3687 * gdb_usleep.c: Ditto.
3688 * i386-darwin-tdep.c: Ditto.
3689 * i386fbsd-nat.c: Ditto.
3691 * inferior.c: Ditto.
3693 * linux-nat.c: Ditto.
3694 * linux-tdep.c: Ditto.
3695 * m68kbsd-nat.c: Ditto.
3696 * m68klinux-nat.c: Ditto.
3697 * microblaze-tdep.c: Ditto.
3698 * mips-linux-tdep.c: Ditto.
3699 * mn10300-tdep.c: Ditto.
3700 * nto-tdep.c: Ditto.
3701 * opencl-lang.c: Ditto.
3703 * printcmd.c: Ditto.
3704 * regcache.c: Ditto.
3705 * remote-m32r-sdi.c: Ditto.
3709 * tilegx-linux-nat.c: Ditto.
3710 * tilegx-tdep.c: Ditto.
3711 * tracepoint.c: Ditto.
3713 * vaxbsd-nat.c: Ditto.
3714 * windows-nat.c: Ditto.
3715 * xtensa-tdep.c: Ditto.
3717 2014-01-07 Yao Qi <yao@codesourcery.com>
3719 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3721 2014-01-07 Yao Qi <yao@codesourcery.com>
3722 Joel Brobecker <brobecker@adacore.com>
3724 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3725 (pdc_write_regs): Likewise.
3726 (fetch_regs_kernel_thread): Likewise.
3727 (store_regs_kernel_thread): Likewise.
3729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3731 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3732 tagged type objects to their actual type.
3734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3736 * ada-valprint.c (print_field_values): Add "language" parameter.
3737 Update calls to print_field_values and print_variant_part.
3738 Pass new parameter "language" in call to val_print instead
3739 of "current_language". Replace call to ada_val_print by call
3741 (print_variant_part): Add "language" parameter.
3742 (ada_val_print_struct_union): Update call to print_field_values.
3744 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3746 * ada-valprint.c (ui_memcpy): Delete.
3747 (ada_print_floating): Update documentation. Add empty line
3748 between between function documentation and implementation.
3749 Delete variable "buffer". Use ui_file_xstrdup in place of
3750 ui_file_put. Minor adjustments following this change.
3752 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3754 * ada-valprint.c (ada_val_print_string): New function,
3755 extracted from ada_val_print_array.
3756 (ada_val_print_array): Replace extracted code by call
3757 to ada_val_print_string followed by a return. Move
3758 "else" branch to the function's top block.
3760 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3762 * ada-valprint.c (ada_val_print_array): Move implementation
3763 down. Rename parameter "offset" and "val" into "offset_aligned"
3764 and "original_value" respectively. Add parameter "offset".
3766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3768 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3769 re-organizing the code. Change the "???" message printed
3770 when target type is a TYPE_CODE_UNDEF into
3771 "<ref to undefined type>".
3773 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3775 * ada-valprint.c (print_record): Delete, implementation inlined...
3776 (ada_val_print_struct_union): ... here. Remove call to
3777 ada_check_typedef in inlined implementation.
3779 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3781 * ada-valprint.c (ada_val_print_gnat_array): New function,
3782 extracted from ada_val_print_1;
3783 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3784 (ada_val_print_flt, ada_val_print_struct_union)
3785 (ada_val_print_ref): Likewise.
3786 (ada_val_print_1): Delete variables i and elttype.
3787 Replace extracted-out code by call to corresponding
3790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3792 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3794 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3796 * ada-valprint.c (ada_val_print_1): Replace calls to
3797 ada_val_print_1 by calls to val_print.
3799 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3801 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3802 Update calls to self accordingly. Replace calls to c_val_print
3803 by calls to val_print.
3805 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3807 * ada-valprint.c (print_record): Delete declaration.
3808 (adjust_type_signedness, ada_val_print_1): Likewise.
3809 (ada_val_print): Move function implementation down.
3810 (print_variant_part, print_field_values, print_record):
3811 Move function implementation up.
3813 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3815 * python/py-type.c (typy_get_name): New function.
3816 (type_object_getset): Add entry for attribute "name".
3817 * NEWS: Add entry mentioning this new attribute.
3819 2014-01-07 Yao Qi <yao@codesourcery.com>
3821 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3824 2014-01-07 Yao Qi <yao@codesourcery.com>
3826 * gnu-nat.c (info_port_rights): Add qualifier const to
3829 2014-01-07 Yao Qi <yao@codesourcery.com>
3831 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3833 2014-01-07 Yao Qi <yao@codesourcery.com>
3835 * gnu-nat.c (make_inf) Update declaration.
3836 (make_inf): Make it static.
3837 (inf_set_traced): Likewise.
3838 (inf_port_to_thread, inf_task_died_status): Likewise.
3840 2014-01-07 Yao Qi <yao@codesourcery.com>
3842 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3844 2014-01-07 Yao Qi <yao@codesourcery.com>
3846 * gnu-nat.c (_initialize_gnu_nat): Declare.
3848 2014-01-07 Yao Qi <yao@codesourcery.com>
3850 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3852 (struct gdbarch_info) <byte_order>: Change type to
3854 <byte_order_for_code>: Likewise.
3855 * gdbarch.c, gdbarch.h: Regenerated.
3857 2014-01-06 Sasha Smundak <asmundak@google.com>
3859 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3861 2014-01-06 Tom Tromey <tromey@redhat.com>
3863 * doublest.c (convert_doublest_to_floatformat): Use const, not
3865 * somread.c (som_symtab_read): Likewise.
3867 2014-01-07 Hui Zhu <hui@codesourcery.com>
3869 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3870 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3871 (gdb_bfd_fopen): Ditto.
3872 (gdb_bfd_openr): Ditto.
3873 (gdb_bfd_openw): Ditto.
3874 (gdb_bfd_openr_iovec): Ditto.
3875 (gdb_bfd_fdopenr): Ditto.
3876 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3877 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3879 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3881 * symfile-mem.c (symbol_file_add_from_memory): Removed
3882 gdb_bfd_stash_filename.
3884 2014-01-03 Doug Evans <dje@google.com>
3886 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3889 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3891 Update year range in copyright notice of all files.
3893 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3895 * top.c (print_gdb_version): Set copyright year to 2014.
3897 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3899 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3901 For older changes see ChangeLog-2013.
3907 version-control: never