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_watchpoint_addr_within_range.
6 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint>: Use
15 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint>: Use
23 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
30 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
31 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_insert_hw_breakpoint.
38 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
39 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
46 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
47 TARGET_DEFAULT_RETURN.
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_files_info>: Use
55 TARGET_DEFAULT_IGNORE.
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_store>: Use
63 TARGET_DEFAULT_NORETURN.
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
70 * target.h (struct target_ops) <to_post_attach>: Use
71 TARGET_DEFAULT_IGNORE.
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
78 (default_rcmd): New function.
79 (do_monitor_command): Unconditionally delegate.
80 * target.h (struct target_ops) <to_rmcd>: Use
83 2014-02-19 Tom Tromey <tromey@redhat.com>
85 * target-delegates.c: Rebuild.
86 * target.c (init_dummy_target): Don't initialize to_attach.
87 (target_attach): Unconditionally delegate.
88 * target.h (struct target_ops) <to_attach>: Use
91 2014-02-19 Tom Tromey <tromey@redhat.com>
93 * target-delegates.c: Rebuild.
94 * target.c (target_detach): Unconditionally delegate.
95 (init_dummy_target): Don't initialize to_detach.
96 * target.h (struct target_ops) <to_detach>: Use
97 TARGET_DEFAULT_IGNORE.
99 2014-02-19 Tom Tromey <tromey@redhat.com>
101 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
103 (target_augmented_libraries_svr4_read): Add argument.
104 * target.c (update_current_target): Update.
105 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
108 2014-02-19 Tom Tromey <tromey@redhat.com>
110 * target.h (struct target_ops) <to_call_history_range>: Add
112 * target.c (target_call_history_range): Add argument.
113 * record-btrace.c (record_btrace_call_history_range): Add 'self'
115 (record_btrace_call_history_from): Update.
117 2014-02-19 Tom Tromey <tromey@redhat.com>
119 * target.h (struct target_ops) <to_call_history_from>: Add
121 * target.c (target_call_history_from): Add argument.
122 * record-btrace.c (record_btrace_call_history_from): Add 'self'
125 2014-02-19 Tom Tromey <tromey@redhat.com>
127 * target.h (struct target_ops) <to_call_history>: Add argument.
128 * target.c (target_call_history): Add argument.
129 * record-btrace.c (record_btrace_call_history): Add 'self'
132 2014-02-19 Tom Tromey <tromey@redhat.com>
134 * target.h (struct target_ops) <to_insn_history_range>: Add
136 * target.c (target_insn_history_range): Add argument.
137 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
139 (record_btrace_insn_history_from): Update.
141 2014-02-19 Tom Tromey <tromey@redhat.com>
143 * target.h (struct target_ops) <to_insn_history_from>: Add
145 * target.c (target_insn_history_from): Add argument.
146 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
149 2014-02-19 Tom Tromey <tromey@redhat.com>
151 * target.h (struct target_ops) <to_insn_history>: Add argument.
152 * target.c (target_insn_history): Add argument.
153 * record-btrace.c (record_btrace_insn_history): Add 'self'
156 2014-02-19 Tom Tromey <tromey@redhat.com>
158 * target.h (struct target_ops) <to_goto_record>: Add argument.
159 * target.c (target_goto_record): Add argument.
160 * record-full.c (record_full_goto): Add 'self' argument.
161 * record-btrace.c (record_btrace_goto): Add 'self' argument.
163 2014-02-19 Tom Tromey <tromey@redhat.com>
165 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
166 * target.c (target_goto_record_end): Add argument.
167 * record-full.c (record_full_goto_end): Add 'self' argument.
168 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
170 2014-02-19 Tom Tromey <tromey@redhat.com>
172 * target.h (struct target_ops) <to_goto_record_begin>: Add
174 * target.c (target_goto_record_begin): Add argument.
175 * record-full.c (record_full_goto_begin): Add 'self' argument.
176 * record-btrace.c (record_btrace_goto_begin): Add 'self'
179 2014-02-19 Tom Tromey <tromey@redhat.com>
181 * target.h (struct target_ops) <to_record_is_replaying>: Add
183 * target.c (target_record_is_replaying): Add argument.
184 * record-full.c (record_full_is_replaying): Add 'self' argument.
185 * record-btrace.c (record_btrace_is_replaying): Add 'self'
187 (record_btrace_xfer_partial, record_btrace_store_registers)
188 (record_btrace_prepare_to_store, record_btrace_resume)
189 (record_btrace_wait, record_btrace_decr_pc_after_break)
190 (record_btrace_find_new_threads, record_btrace_thread_alive):
193 2014-02-19 Tom Tromey <tromey@redhat.com>
195 * target.h (struct target_ops) <to_delete_record>: Add argument.
196 * target.c (target_delete_record): Add argument.
197 * record-full.c (record_full_delete): Add 'self' argument.
199 2014-02-19 Tom Tromey <tromey@redhat.com>
201 * target.h (struct target_ops) <to_save_record>: Add argument.
202 * target.c (target_save_record): Add argument.
203 * record-full.c (record_full_save): Add 'self' argument.
204 (record_full_save): Add 'self' argument.
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (struct target_ops) <to_info_record>: Add argument.
209 * target.c (target_info_record): Add argument.
210 * record.c (info_record_command): Add argument.
211 * record-full.c (record_full_info): Add 'self' argument.
212 * record-btrace.c (record_btrace_info): Add 'self' argument.
214 2014-02-19 Tom Tromey <tromey@redhat.com>
216 * target.h (struct target_ops) <to_stop_recording>: Add argument.
217 * target.c (target_stop_recording): Add argument.
218 * record.c (record_stop): Add argument.
219 * record-btrace.c (record_btrace_stop_recording): Add 'self'
222 2014-02-19 Tom Tromey <tromey@redhat.com>
224 * target.h (struct target_ops) <to_read_btrace>: Add argument.
225 * target.c (struct target_ops) <to_read_btrace>: Add argument.
226 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
228 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
229 (_initialize_amd64_linux_nat): Use it.
230 * i386-linux-nat.c (i386_linux_read_btrace): New function.
231 (_initialize_i386_linux_nat): Use it.
233 2014-02-19 Tom Tromey <tromey@redhat.com>
235 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
236 * target.c (target_teardown_btrace): Add argument.
237 * remote.c (remote_teardown_btrace): Add 'self' argument.
238 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
240 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
246 * target.c (target_disable_btrace): Add argument.
247 * remote.c (remote_disable_btrace): Add 'self' argument.
248 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
250 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
253 2014-02-19 Tom Tromey <tromey@redhat.com>
255 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
256 * target.c (target_enable_btrace): Add argument.
257 * remote.c (remote_enable_btrace): Add 'self' argument.
258 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
260 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
263 2014-02-19 Tom Tromey <tromey@redhat.com>
265 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
266 (target_can_use_agent): Add argument.
267 * target.c (update_current_target): Update.
268 * remote.c (remote_can_use_agent): Add 'self' argument.
269 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
271 2014-02-19 Tom Tromey <tromey@redhat.com>
273 * target.h (struct target_ops) <to_use_agent>: Add argument.
274 (target_use_agent): Add argument.
275 * target.c (update_current_target): Update.
276 * remote.c (remote_use_agent): Add 'self' argument.
277 * inf-child.c (inf_child_use_agent): Add 'self' argument.
279 2014-02-19 Tom Tromey <tromey@redhat.com>
281 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
282 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
283 (target_traceframe_info): Add argument.
284 * target.c (update_current_target): Update.
285 * remote.c (remote_traceframe_info): Add 'self' argument.
286 * ctf.c (ctf_traceframe_info): Add 'self' argument.
288 2014-02-19 Tom Tromey <tromey@redhat.com>
290 * target.h (target_static_tracepoint_markers_by_strid): Add
292 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
294 * target.c (update_current_target): Update.
295 * remote.c (struct target_ops)
296 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
297 * linux-nat.c (struct target_ops)
298 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
300 2014-02-19 Tom Tromey <tromey@redhat.com>
302 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
304 (target_static_tracepoint_marker_at): Add argument.
305 * target.c (update_current_target): Update.
306 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
309 2014-02-19 Tom Tromey <tromey@redhat.com>
311 * target.h (struct target_ops) <to_set_permissions>: Add argument.
312 (target_set_permissions): Add argument.
313 * target.c (update_current_target): Update.
314 * remote.c (remote_set_permissions): Add 'self' argument.
315 (remote_start_remote): Update.
317 2014-02-19 Tom Tromey <tromey@redhat.com>
319 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
320 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
321 (target_get_tib_address): Add argument.
322 * target.c (update_current_target): Update.
323 * remote.c (remote_get_tib_address): Add 'self' argument.
325 2014-02-19 Tom Tromey <tromey@redhat.com>
327 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
328 (target_set_trace_notes): Add argument.
329 * target.c (update_current_target): Update.
330 * remote.c (remote_set_trace_notes): Add 'self' argument.
332 2014-02-19 Tom Tromey <tromey@redhat.com>
334 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
336 (target_set_trace_buffer_size): Add argument.
337 * target.c (update_current_target): Update.
338 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
340 2014-02-19 Tom Tromey <tromey@redhat.com>
342 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
344 (target_set_circular_trace_buffer): Add argument.
345 * target.c (update_current_target): Update.
346 * remote.c (remote_set_circular_trace_buffer): Add 'self'
349 2014-02-19 Tom Tromey <tromey@redhat.com>
351 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
353 (target_set_disconnected_tracing): Add argument.
354 * target.c (update_current_target): Update.
355 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
357 2014-02-19 Tom Tromey <tromey@redhat.com>
359 * target.h (struct target_ops)
360 <to_get_min_fast_tracepoint_insn_len>: Add argument.
361 (target_get_min_fast_tracepoint_insn_len): Add argument.
362 * target.c (update_current_target): Update.
363 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
370 (target_get_raw_trace_data): Add argument.
371 * target.c (update_current_target): Update.
372 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
374 2014-02-19 Tom Tromey <tromey@redhat.com>
376 * target.h (struct target_ops) <to_upload_trace_state_variables>:
378 (target_upload_trace_state_variables): Add argument.
379 * target.c (update_current_target): Update.
380 * remote.c (remote_upload_trace_state_variables): Add 'self'
382 (remote_start_remote): Update.
384 2014-02-19 Tom Tromey <tromey@redhat.com>
386 * target.h (struct target_ops) <to_upload_tracepoints>: Add
388 (target_upload_tracepoints): Add argument.
389 * target.c (update_current_target): Update.
390 * remote.c (remote_upload_tracepoints): Add 'self' argument.
391 (remote_start_remote): Update.
393 2014-02-19 Tom Tromey <tromey@redhat.com>
395 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
396 (target_save_trace_data): Add argument.
397 * target.c (update_current_target): Update.
398 * remote.c (remote_save_trace_data): Add 'self' argument.
400 2014-02-19 Tom Tromey <tromey@redhat.com>
402 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
404 * target.h (struct target_ops)
405 <to_get_trace_state_variable_value>: Add argument.
406 (target_get_trace_state_variable_value): Add argument.
407 * target.c (update_current_target): Update.
408 * remote.c (remote_get_trace_state_variable_value): Add 'self'
410 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
412 2014-02-19 Tom Tromey <tromey@redhat.com>
414 * tracepoint.c (tfile_trace_find): Add 'self' argument.
415 * target.h (struct target_ops) <to_trace_find>: Add argument.
416 (target_trace_find): Add argument.
417 * target.c (update_current_target): Update.
418 * remote.c (remote_trace_find): Add 'self' argument.
419 * ctf.c (ctf_trace_find): Add 'self' argument.
421 2014-02-19 Tom Tromey <tromey@redhat.com>
423 * target.h (struct target_ops) <to_trace_stop>: Add argument.
424 (target_trace_stop): Add argument.
425 * target.c (update_current_target): Update.
426 * remote.c (remote_trace_stop): Add 'self' argument.
428 2014-02-19 Tom Tromey <tromey@redhat.com>
430 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
431 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
433 (target_get_tracepoint_status): Add argument.
434 * target.c (update_current_target): Update.
435 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
437 2014-02-19 Tom Tromey <tromey@redhat.com>
439 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
440 * target.h (struct target_ops) <to_get_trace_status>: Add
442 (target_get_trace_status): Add argument.
443 * target.c (update_current_target): Update.
444 * remote.c (remote_get_trace_status): Add 'self' argument.
445 (remote_start_remote, remote_can_download_tracepoint): Update.
446 * ctf.c (ctf_get_trace_status): Add 'self' argument.
448 2014-02-19 Tom Tromey <tromey@redhat.com>
450 * target.h (struct target_ops) <to_trace_start>: Add argument.
451 (target_trace_start): Add argument.
452 * target.c (update_current_target): Update.
453 * remote.c (remote_trace_start): Add 'self' argument.
455 2014-02-19 Tom Tromey <tromey@redhat.com>
457 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
459 (target_trace_set_readonly_regions): Add argument.
460 * target.c (update_current_target): Update.
461 * remote.c (remote_trace_set_readonly_regions): Add 'self'
464 2014-02-19 Tom Tromey <tromey@redhat.com>
466 * target.h (struct target_ops) <to_disable_tracepoint>: Add
468 (target_disable_tracepoint): Add argument.
469 * target.c (update_current_target): Update.
470 * remote.c (remote_disable_tracepoint): Add 'self' argument.
472 2014-02-19 Tom Tromey <tromey@redhat.com>
474 * target.h (struct target_ops) <to_enable_tracepoint>: Add
476 (target_enable_tracepoint): Add argument.
477 * target.c (update_current_target): Update.
478 * remote.c (remote_enable_tracepoint): Add 'self' argument.
480 2014-02-19 Tom Tromey <tromey@redhat.com>
482 * target.h (struct target_ops) <to_download_trace_state_variable>:
484 (target_download_trace_state_variable): Add argument.
485 * target.c (update_current_target): Update.
486 * remote.c (remote_download_trace_state_variable): Add 'self'
489 2014-02-19 Tom Tromey <tromey@redhat.com>
491 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
493 (target_can_download_tracepoint): Add argument.
494 * target.c (update_current_target): Update.
495 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
497 2014-02-19 Tom Tromey <tromey@redhat.com>
499 * target.h (struct target_ops) <to_download_tracepoint>: Add
501 (target_download_tracepoint): Add argument.
502 * target.c (update_current_target): Update.
503 * remote.c (remote_download_tracepoint): Add 'self' argument.
505 2014-02-19 Tom Tromey <tromey@redhat.com>
507 * target.h (struct target_ops) <to_trace_init>: Add argument.
508 (target_trace_init): Add argument.
509 * target.c (update_current_target): Update.
510 * remote.c (remote_trace_init): Add 'self' argument.
512 2014-02-19 Tom Tromey <tromey@redhat.com>
514 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
515 * target.c (target_fileio_readlink): Add argument.
516 * remote.c (remote_hostio_readlink): Add 'self' argument.
517 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
519 2014-02-19 Tom Tromey <tromey@redhat.com>
521 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
522 * target.c (target_fileio_unlink): Add argument.
523 * remote.c (remote_hostio_unlink): Add 'self' argument.
524 (remote_file_delete): Update.
525 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
527 2014-02-19 Tom Tromey <tromey@redhat.com>
529 * target.h (struct target_ops) <to_fileio_close>: Add argument.
530 * target.c (target_fileio_close): Add argument.
531 * remote.c (remote_hostio_close): Add 'self' argument.
532 (remote_hostio_close_cleanup): Update.
533 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
535 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
537 2014-02-19 Tom Tromey <tromey@redhat.com>
539 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
540 * target.c (target_fileio_pread): Add argument.
541 * remote.c (remote_hostio_pread): Add 'self' argument.
542 (remote_bfd_iovec_pread, remote_file_get): Update.
543 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
545 2014-02-19 Tom Tromey <tromey@redhat.com>
547 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
548 * target.c (target_fileio_pwrite): Add argument.
549 * remote.c (remote_hostio_pwrite): Add 'self' argument.
550 (remote_file_put): Update.
551 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
553 2014-02-19 Tom Tromey <tromey@redhat.com>
555 * target.h (struct target_ops) <to_fileio_open>: Add argument.
556 * target.c (target_fileio_open): Add argument.
557 * remote.c (remote_hostio_open): Add 'self' argument.
558 (remote_bfd_iovec_open): Add 'self' argument.
559 (remote_file_put): Add 'self' argument.
560 (remote_file_get): Add 'self' argument.
561 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
563 2014-02-19 Tom Tromey <tromey@redhat.com>
565 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
567 (target_can_run_breakpoint_commands): Add argument.
568 * target.c (update_current_target): Update.
569 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
571 (remote_insert_breakpoint): Add 'self' argument.
572 (remote_insert_hw_breakpoint): Add 'self' argument.
573 (remote_can_run_breakpoint_commands): Add 'self' argument.
575 2014-02-19 Tom Tromey <tromey@redhat.com>
577 * target.h (struct target_ops)
578 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
579 (target_supports_evaluation_of_breakpoint_conditions): Add
581 * target.c (update_current_target): Update.
582 * remote.c (remote_supports_cond_breakpoints): Add 'self'
584 (remote_insert_breakpoint): Add 'self' argument.
585 (remote_insert_hw_breakpoint): Add 'self' argument.
586 (remote_supports_cond_breakpoints): Add 'self' argument.
588 2014-02-19 Tom Tromey <tromey@redhat.com>
590 * target.h (struct target_ops) <to_supports_string_tracing>: Add
592 (target_supports_string_tracing): Add argument.
593 * target.c (update_current_target): Update.
594 * remote.c (remote_supports_string_tracing): Add 'self' argument.
596 2014-02-19 Tom Tromey <tromey@redhat.com>
598 * target.h (struct target_ops)
599 <to_supports_disable_randomization>: Add argument.
600 * target.c (find_default_supports_disable_randomization): Add
602 (target_supports_disable_randomization): Add argument.
603 (find_default_supports_disable_randomization): Add 'self'
605 * remote.c (extended_remote_supports_disable_randomization): Add
607 (remote_supports_disable_randomization): Add 'self' argument.
608 (extended_remote_create_inferior): Update.
609 * linux-nat.c (linux_nat_supports_disable_randomization): Add
612 2014-02-19 Tom Tromey <tromey@redhat.com>
614 * target.h (struct target_ops)
615 <to_supports_enable_disable_tracepoint>: Add argument.
616 (target_supports_enable_disable_tracepoint): Add argument.
617 * target.c (update_current_target): Update.
618 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
621 2014-02-19 Tom Tromey <tromey@redhat.com>
623 * target.h (struct target_ops) <to_supports_multi_process>: Add
625 (target_supports_multi_process): Add argument.
626 * target.c (update_current_target): Update.
627 * remote.c (remote_supports_multi_process): Add 'self' argument.
628 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
630 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
633 2014-02-19 Tom Tromey <tromey@redhat.com>
635 * target.h (struct target_ops) <to_execution_direction>: Add
637 (target_execution_direction): Add argument.
638 * target.c (default_execution_direction): Add 'self' argument.
639 * record-full.c (record_full_execution_direction): Add 'self'
642 2014-02-19 Tom Tromey <tromey@redhat.com>
644 * target.h (struct target_ops) <to_can_execute_reverse>: Add
646 (target_can_execute_reverse): Add argument.
647 * remote.c (remote_can_execute_reverse): Add 'self' argument.
648 * record-full.c (record_full_can_execute_reverse): Add 'self'
650 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
653 2014-02-19 Tom Tromey <tromey@redhat.com>
655 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
656 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
658 (target_get_ada_task_ptid): Add argument.
659 * target.c (update_current_target): Update.
660 (default_get_ada_task_ptid): Add 'self' argument.
661 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
662 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
663 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
665 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
667 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
669 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
671 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
672 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
675 2014-02-19 Tom Tromey <tromey@redhat.com>
677 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
678 (target_goto_bookmark): Add argument.
679 * target.c (dummy_goto_bookmark): Add 'self' argument.
680 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
682 2014-02-19 Tom Tromey <tromey@redhat.com>
684 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
685 (target_get_bookmark): Add argument.
686 * target.c (dummy_get_bookmark): Add 'self' argument.
687 * record-full.c (record_full_get_bookmark): Add 'self' argument.
689 2014-02-19 Tom Tromey <tromey@redhat.com>
691 * target.h (struct target_ops) <to_make_corefile_notes>: Add
693 (target_make_corefile_notes): Add argument.
694 * target.c (dummy_make_corefile_notes): Add 'self' argument.
695 * procfs.c (procfs_make_note_section): Add 'self' argument.
696 (procfs_make_note_section): Add 'self' argument.
697 (procfs_make_note_section): Add 'self' argument.
698 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
700 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
701 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
702 * exec.c (exec_make_note_section): Add 'self' argument.
703 (exec_make_note_section): Add 'self' argument.
705 2014-02-19 Tom Tromey <tromey@redhat.com>
707 * target.h (struct target_ops) <to_find_memory_regions>: Add
709 (target_find_memory_regions): Add argument.
710 * target.c (dummy_find_memory_regions): Add 'self' argument.
711 * procfs.c (proc_find_memory_regions): Add 'self' argument.
712 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
713 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
714 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
715 * exec. (exec_do_find_memory_regions): New global.
716 (exec_set_find_memory_regions): Rewrite.
717 (exec_find_memory_regions): New function.
718 (init_exec_ops): Use exec_find_memory_regions.
720 2014-02-19 Tom Tromey <tromey@redhat.com>
722 * target.h (struct target_ops) <to_supports_non_stop>: Add
724 * target.c (find_default_supports_non_stop): Add argument.
725 (target_supports_non_stop): Add argument.
726 (find_default_supports_non_stop): Add 'self' argument.
727 * remote.c (remote_supports_non_stop): Add 'self' argument.
728 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
730 2014-02-19 Tom Tromey <tromey@redhat.com>
732 * target.h (struct target_ops) <to_log_command>: Add argument.
733 (target_log_command): Add argument.
734 * serial.h (serial_log_command): Add 'self' argument.
735 * serial.c (serial_log_command): Add 'self' argument.
737 2014-02-19 Tom Tromey <tromey@redhat.com>
739 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
740 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
742 (target_pid_to_exec_file): Add argument.
743 * target.c (debug_to_pid_to_exec_file): Add argument.
744 (update_current_target): Update.
745 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
746 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
747 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
748 (linux_handle_extended_wait): Update.
749 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
750 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
751 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
752 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
754 2014-02-19 Tom Tromey <tromey@redhat.com>
756 * target.h (struct target_ops) <to_rcmd>: Add argument.
757 (target_rcmd): Add argument.
758 * target.c (debug_to_rcmd): Add argument.
759 (update_current_target, do_monitor_command): Update.
760 * remote.c (remote_rcmd): Add 'self' argument.
761 * monitor.c (monitor_rcmd): Add 'self' argument.
763 2014-02-19 Tom Tromey <tromey@redhat.com>
765 * windows-nat.c (windows_stop): Add 'self' argument.
766 * target.h (struct target_ops) <to_stop>: Add argument.
767 * target.c (target_stop): Add argument.
768 (debug_to_stop): Add argument.
769 (update_current_target): Update.
770 * remote.c (remote_stop): Add 'self' argument.
771 * remote-sim.c (gdbsim_stop): Add 'self' argument.
772 (gdbsim_cntrl_c): Update.
773 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
774 * procfs.c (procfs_stop): Add 'self' argument.
775 * nto-procfs.c (procfs_stop): Add 'self' argument.
776 * monitor.c (monitor_stop): Add 'self' argument.
777 (monitor_open): Update.
778 * linux-nat.c (linux_nat_stop): Add argument.
779 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
780 * gnu-nat.c (gnu_stop): Add 'self' argument.
781 * darwin-nat.c (darwin_stop): Add 'self' argument.
783 2014-02-19 Tom Tromey <tromey@redhat.com>
785 * target.h (struct target_ops) <to_thread_name>: Add argument.
786 * target.c (target_thread_name): Add argument.
787 (update_current_target): Update.
788 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
790 2014-02-19 Tom Tromey <tromey@redhat.com>
792 * target.h (struct target_ops) <to_extra_thread_info>: Add
794 (target_extra_thread_info): Add argument.
795 * target.c (update_current_target): Update.
796 * remote.c (remote_threads_extra_info): Add 'self' argument.
797 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
799 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
800 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
801 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
803 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
805 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
807 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
810 2014-02-19 Tom Tromey <tromey@redhat.com>
812 * target.h (struct target_ops) <to_program_signals>: Add argument.
813 * target.c (target_program_signals): Add argument.
814 * remote.c (remote_program_signals): Add 'self' argument.
816 2014-02-19 Tom Tromey <tromey@redhat.com>
818 * target.h (struct target_ops) <to_pass_signals>: Add argument.
819 * target.c (target_pass_signals): Add argument.
820 * remote.c (remote_pass_signals): Add 'self' argument.
821 (remote_start_remote): Update.
822 * procfs.c (procfs_pass_signals): Add 'self' argument.
823 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
824 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
825 (linux_nat_create_inferior, linux_nat_attach): Update.
827 2014-02-19 Tom Tromey <tromey@redhat.com>
829 * windows-nat.c (windows_can_run): Add 'self' argument.
830 * target.h (struct target_ops) <to_can_run>: Add argument.
831 (target_can_run): Add argument.
832 * target.c (debug_to_can_run): Add argument.
833 (update_current_target): Update.
834 * nto-procfs.c (procfs_can_run): Add 'self' argument.
835 * inf-child.c (inf_child_can_run): Add 'self' argument.
836 * go32-nat.c (go32_can_run): Add 'self' argument.
838 2014-02-19 Tom Tromey <tromey@redhat.com>
840 * target.h (struct target_ops) <to_has_exited>: Add argument.
841 (target_has_exited): Add argument.
842 * target.c (debug_to_has_exited): Add argument.
843 (update_current_target): Update.
845 2014-02-19 Tom Tromey <tromey@redhat.com>
847 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
849 (target_set_syscall_catchpoint): Add argument.
850 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
852 * target.c (update_current_target): Update.
854 2014-02-19 Tom Tromey <tromey@redhat.com>
856 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
858 (target_remove_exec_catchpoint): Add argument.
859 * target.c (debug_to_remove_exec_catchpoint): Add argument.
860 (update_current_target): Update.
861 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
864 2014-02-19 Tom Tromey <tromey@redhat.com>
866 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
868 (target_insert_exec_catchpoint): Add argument.
869 * target.c (debug_to_insert_exec_catchpoint): Add argument.
870 (update_current_target): Update.
871 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
874 2014-02-19 Tom Tromey <tromey@redhat.com>
876 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
878 (target_remove_vfork_catchpoint): Add argument.
879 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
880 (update_current_target): Update.
881 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
884 2014-02-19 Tom Tromey <tromey@redhat.com>
886 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
888 (target_insert_vfork_catchpoint): Add argument.
889 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
890 (update_current_target): Update.
891 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
894 2014-02-19 Tom Tromey <tromey@redhat.com>
896 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
898 (target_remove_fork_catchpoint): Add argument.
899 * target.c (debug_to_remove_fork_catchpoint): Add argument.
900 (update_current_target): Update.
901 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
904 2014-02-19 Tom Tromey <tromey@redhat.com>
906 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
908 (target_insert_fork_catchpoint): Add argument.
909 * target.c (debug_to_insert_fork_catchpoint): Add argument.
910 (update_current_target): Update.
911 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
914 2014-02-19 Tom Tromey <tromey@redhat.com>
916 * target.h (struct target_ops) <to_post_startup_inferior>: Add
918 (target_post_startup_inferior): Add argument.
919 * target.c (debug_to_post_startup_inferior): Add argument.
920 (update_current_target): Update.
921 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
923 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
925 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
927 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
929 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
931 (super_post_startup_inferior): Likewise.
932 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
934 (super_post_startup_inferior): Likewise.
935 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
937 (super_post_startup_inferior): Likewise.
939 2014-02-19 Tom Tromey <tromey@redhat.com>
941 * target.h (struct target_ops) <to_load>: Add argument.
942 * target.c (target_load): Add argument.
943 (debug_to_load): Add argument.
944 (update_current_target): Update.
945 * remote.c (remote_load): Add 'self' argument.
946 * remote-sim.c (gdbsim_load): Add 'self' argument.
947 * remote-mips.c (mips_load): Add 'self' argument.
948 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
949 * monitor.c (monitor_load): Add 'self' argument.
950 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
952 2014-02-19 Tom Tromey <tromey@redhat.com>
954 * target.h (struct target_ops) <to_terminal_info>: Add argument.
955 (target_terminal_info): Add argument.
956 * target.c (debug_to_terminal_info): Add argument.
957 (default_terminal_info): Likewise.
958 * inflow.c (child_terminal_info): Add 'self' argument.
959 * inferior.h (child_terminal_info): Add 'self' argument.
960 * go32-nat.c (go32_terminal_info): Add 'self' argument.
962 2014-02-19 Tom Tromey <tromey@redhat.com>
964 * target.h (struct target_ops) <to_terminal_save_ours>: Add
966 (target_terminal_save_ours): Add argument.
967 * target.c (debug_to_terminal_save_ours): Add argument.
968 (update_current_target): Update.
969 * inflow.c (terminal_save_ours): Add 'self' argument.
970 * inferior.h (terminal_save_ours): Add 'self' argument.
972 2014-02-19 Tom Tromey <tromey@redhat.com>
974 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
975 (target_terminal_ours): Add argument.
976 * target.c (debug_to_terminal_ours): Add argument.
977 (update_current_target): Update.
978 * remote.c (remote_terminal_ours): Add 'self' argument.
979 (remote_close): Update.
980 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
981 * inflow.c (terminal_ours): Add 'self' argument.
982 * inferior.h (terminal_ours): Add 'self' argument.
983 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
985 2014-02-19 Pedro Alves <palves@redhat.com>
986 Tom Tromey <tromey@redhat.com>
988 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
990 (target_terminal_ours_for_output): Add argument.
991 * target.c (debug_to_terminal_ours_for_output): Add argument.
992 (update_current_target): Update.
993 * inflow.c (terminal_ours_for_output): Add 'self' argument.
994 * inferior.h (terminal_ours_for_output): Add 'self' argument.
995 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
997 2014-02-19 Tom Tromey <tromey@redhat.com>
999 * target.h (struct target_ops) <to_terminal_inferior>: Add
1001 * target.c (target_terminal_inferior): Add argument.
1002 (update_current_target): Update.
1003 * remote.c (remote_terminal_inferior): Add 'self' argument.
1004 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1005 * inflow.c (terminal_inferior): Add 'self' argument.
1006 * inferior.h (terminal_inferior): Add 'self' argument.
1007 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1008 (go32_terminal_inferior): Add 'self' argument.
1010 2014-02-19 Tom Tromey <tromey@redhat.com>
1012 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1013 (target_terminal_init): Add argument.
1014 * target.c (debug_to_terminal_init): Add argument.
1015 (update_current_target): Update.
1016 * inflow.c (terminal_init_inferior): Add 'self' argument.
1017 * inferior.h (terminal_init_inferior): Add 'self' argument.
1018 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1019 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1021 2014-02-19 Tom Tromey <tromey@redhat.com>
1023 * target.h (struct target_ops)
1024 <to_can_accel_watchpoint_condition>: Add argument.
1025 (target_can_accel_watchpoint_condition): Add argument.
1026 * target.c (debug_to_can_accel_watchpoint_condition): Add
1028 (update_current_target): Update.
1029 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1032 2014-02-19 Tom Tromey <tromey@redhat.com>
1034 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1036 (target_region_ok_for_hw_watchpoint): Add argument.
1037 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1038 (default_region_ok_for_hw_watchpoint): Add argument.
1039 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1040 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1042 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1044 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1046 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1048 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1050 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1052 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1053 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1055 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1056 Add 'self' argument.
1058 2014-02-19 Tom Tromey <tromey@redhat.com>
1060 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1062 (target_insert_watchpoint): Add argument.
1063 * target.c (debug_to_insert_watchpoint): Add argument.
1064 (update_current_target): Update.
1065 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1066 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1067 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1068 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1069 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1070 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1072 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1073 (procfs_insert_hw_watchpoint): Add 'self' argument.
1074 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1076 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1078 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1080 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1081 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1083 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1086 2014-02-19 Tom Tromey <tromey@redhat.com>
1088 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1090 (target_remove_watchpoint): Add argument.
1091 * target.c (debug_to_remove_watchpoint): Add argument.
1092 (update_current_target): Update.
1093 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1094 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1095 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1096 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1097 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1098 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1100 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1101 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1103 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1105 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1107 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1108 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1110 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1113 2014-02-19 Tom Tromey <tromey@redhat.com>
1115 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1117 (target_remove_hw_breakpoint): Add argument.
1118 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1119 (update_current_target): Update.
1120 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1121 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1123 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1124 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1126 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1129 2014-02-19 Tom Tromey <tromey@redhat.com>
1131 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1133 (target_insert_hw_breakpoint): Add argument.
1134 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1135 (update_current_target): Update.
1136 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1137 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1139 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1140 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1141 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1143 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1146 2014-02-19 Tom Tromey <tromey@redhat.com>
1148 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1150 (target_can_use_hardware_watchpoint): Add argument.
1151 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1152 (update_current_target): Update.
1153 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1155 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1157 * remote.c (remote_check_watch_resources): Add 'self' argument.
1158 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1159 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1161 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1162 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1164 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1166 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1168 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1170 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1172 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1174 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1175 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1177 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1180 2014-02-19 Tom Tromey <tromey@redhat.com>
1182 * target.h (struct target_ops) <to_post_attach>: Add argument.
1183 (target_post_attach): Add argument.
1184 * target.c (debug_to_post_attach): Add argument.
1185 (update_current_target): Update.
1186 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1187 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1188 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1189 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1190 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1192 2014-02-19 Tom Tromey <tromey@redhat.com>
1194 * windows-nat.c (windows_close): Add 'self' argument.
1195 * tracepoint.c (tfile_close): Add 'self' argument.
1196 * target.h (struct target_ops) <to_close>: Add argument.
1197 * target.c (target_close): Add argument.
1198 (update_current_target): Update.
1199 * remote.c (remote_close): Add 'self' argument.
1200 * remote-sim.c (gdbsim_close): Add 'self' argument.
1201 * remote-mips.c (mips_close): Add 'self' argument.
1202 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1203 * record-full.c (record_full_close): Add 'self' argument.
1204 * record-btrace.c (record_btrace_close): Add 'self' argument.
1205 * monitor.h (monitor_close): Add 'self' argument.
1206 * monitor.c (monitor_close): Add 'self' argument.
1207 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1208 * linux-nat.c (linux_nat_close): Add argument.
1209 * go32-nat.c (go32_close): Add 'self' argument.
1210 * exec.c (exec_close_1): Add 'self' argument.
1211 * ctf.c (ctf_close): Add 'self' argument.
1212 * corelow.c (core_close): Add 'self' argument.
1213 (core_close_cleanup): Update.
1214 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1215 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1217 2014-02-19 Tom Tromey <tromey@redhat.com>
1219 * remote.c (remote_load): New function.
1220 (init_remote_ops): Use it.
1222 2014-02-19 Tom Tromey <tromey@redhat.com>
1224 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1226 * common/linux-btrace.h (linux_supports_btrace): Update.
1227 * remote.c (remote_supports_btrace): Add "self" argument.
1228 * target-delegates.c: Rebuild.
1229 * target.c (target_supports_btrace): Remove.
1230 * target.h (struct target_ops) <to_supports_btrace>: Add
1231 target_ops argument.
1232 (target_supports_btrace): New define.
1234 2014-02-19 Tom Tromey <tromey@redhat.com>
1236 * record-full.c (record_full_beneath_to_resume_ops)
1237 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1238 (record_full_beneath_to_wait)
1239 (record_full_beneath_to_store_registers_ops)
1240 (record_full_beneath_to_store_registers)
1241 (record_full_beneath_to_xfer_partial_ops)
1242 (record_full_beneath_to_xfer_partial)
1243 (record_full_beneath_to_insert_breakpoint_ops)
1244 (record_full_beneath_to_insert_breakpoint)
1245 (record_full_beneath_to_remove_breakpoint_ops)
1246 (record_full_beneath_to_remove_breakpoint)
1247 (record_full_beneath_to_stopped_by_watchpoint)
1248 (record_full_beneath_to_stopped_data_address)
1249 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1250 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1251 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1252 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1253 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1254 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1255 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1256 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1257 (record_full_resume, record_full_wait_1)
1258 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1259 (record_full_store_registers, record_full_xfer_partial)
1260 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1261 (record_full_async, record_full_core_xfer_partial): Use target
1263 * target-delegates.c: Rebuild.
1264 * target.c (current_xfer_partial): Remove.
1265 (update_current_target): Do not INHERIT or de_fault
1266 to_insert_breakpoint, to_remove_breakpoint,
1267 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1268 to_is_async_p, to_async. Do not set to_xfer_partial field.
1269 (default_xfer_partial): Simplify.
1270 (current_xfer_partial): Remove.
1271 (target_wait, target_resume): Simplify.
1272 (find_default_can_async_p, find_default_is_async_p): Update.
1273 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1274 to_xfer_partial, to_stopped_by_watchpoint,
1275 to_stopped_data_address.
1276 (target_store_registers): Simplify.
1277 (forward_target_remove_breakpoint)
1278 (forward_target_insert_breakpoint): Remove.
1279 (target_remove_breakpoint, target_insert_breakpoint)
1280 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1281 * target.h (struct target_ops) <to_resume, to_wait,
1282 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1283 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1284 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1286 (forward_target_remove_breakpoint)
1287 (forward_target_insert_breakpoint): Remove.
1288 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1290 (record_btrace_insert_breakpoint): Delegate directly.
1292 2014-02-19 Tom Tromey <tromey@redhat.com>
1295 * target-delegates.c: New file.
1296 * target.c: Include target-delegates.c.
1297 (init_dummy_target): Call install_dummy_methods.
1298 (complete_target_initialization): Call install_delegators.
1299 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1300 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1301 * make-target-delegates: New file.
1303 2014-02-19 Tom Tromey <tromey@redhat.com>
1305 * record.c (find_record_target): Use find_target_at.
1306 * target.c (find_target_at): New function.
1307 * target.h (find_target_at): Declare.
1309 2014-02-19 Tom Tromey <tromey@redhat.com>
1311 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1313 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1315 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1316 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1318 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1320 * linux-nat.c (save_sigtrap): Update.
1321 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1322 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1323 (linux_nat_close): Update.
1324 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1326 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1328 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1329 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1330 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1331 (tmp_to_async): Add 'ops' argument.
1332 (record_full_stopped_by_watchpoint, record_full_async)
1333 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1335 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1336 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1337 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1338 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1339 (remote_is_async_p, remote_async): Add 'ops' argument.
1340 (remote_stopped_data_address): Update.
1341 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1342 * target.c (update_current_target)
1343 (find_default_can_async_p, find_default_is_async_p): Update.
1344 (init_dummy_target): Update.
1345 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1346 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1347 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1348 (target_can_async_p, target_is_async_p, target_async)
1349 (target_stopped_by_watchpoint): Update.
1351 2014-02-19 Yao Qi <yao@codesourcery.com>
1354 * gdbarch.sh: Remove startup_gdbarch.
1355 * gdbarch.c: Regenerated.
1356 * gdbarch.h: Likewise.
1358 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1360 * rl78-tdep.c (rl78_g10_register_name): New function.
1361 (rl78_return_value): Add g10 support.
1362 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1365 2014-02-17 Doug Evans <xdje42@gmail.com>
1367 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1368 (SUBDIR_GUILE_SRCS): Ditto.
1369 (scm-gsmob.o): Ditto.
1371 2014-02-17 Yao Qi <yao@codesourcery.com>
1373 * gnu-nat.c (ILL_RPC): Declare defined function.
1375 2014-02-17 Yao Qi <yao@codesourcery.com>
1377 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1378 mach_msg_type_number_t.
1379 (gnu_write_inferior): Likewise.
1381 2014-02-17 Yao Qi <yao@codesourcery.com>
1383 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1385 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1386 (inf_validate_procs, inf_signal): Likewise.
1387 (S_exception_raise_request): Likewise.
1388 (do_mach_notify_dead_name): Likewise.
1389 (steal_exc_port): Likewise.
1390 (gnu_read_inferior): Change 'copy_count''s type to
1391 mach_msg_type_number_t.
1392 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1395 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1397 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1398 flag. Adjust all users; in particular...
1399 (gnu_wait): ..., don't decrement its value in here...
1400 (gnu_create_inferior): ..., and instead set the flag in here,
1401 around the startup_inferior call, and call that one with
1402 START_INFERIOR_TRAPS_EXPECTED.
1404 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1405 (ILL_RPC): ... new macro.
1406 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1407 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1408 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1409 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1410 functions with ILL_RPC macro.
1411 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1412 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1413 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1414 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1415 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1416 (S_proc_getlogin_reply, S_proc_getsid_reply)
1417 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1418 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1419 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1420 (S_proc_getnports_reply, S_proc_is_important_reply)
1421 (S_proc_get_code_reply): New stub functions, generated with
1424 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1425 collected the type check structures.
1427 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1429 2014-02-14 Doug Evans <dje@google.com>
1431 * target.c (target_write_partial): Fix result type.
1433 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1435 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1436 the proper offsets to access fpregset_t.
1438 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1440 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1441 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1442 * h8300-tdep.c (setmachinelist): Remove global.
1443 * hppa-tdep.c (hppa_sigtramp): Remove global.
1444 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1445 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1446 * ravenscar-thread.c (update_target_observer): Remove global.
1447 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1449 2014-02-12 Tom Tromey <tromey@redhat.com>
1451 * common/rsp-low.c: Update comments.
1452 * common/rsp-low.h: Update comments.
1454 2014-02-12 Tom Tromey <tromey@redhat.com>
1456 * common/rsp-low.c (convert_ascii_to_int): Remove.
1457 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1459 2014-02-12 Tom Tromey <tromey@redhat.com>
1461 * common/rsp-low.h (unhexify): Don't declare.
1462 * common/rsp-low.c (unhexify): Remove.
1464 2014-02-12 Tom Tromey <tromey@redhat.com>
1466 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1467 * common/rsp-low.c (convert_int_to_ascii): Remove.
1469 2014-02-12 Tom Tromey <tromey@redhat.com>
1471 * common/rsp-low.h (hexify): Don't declare.
1472 * common/rsp-low.c (hexify): Remove.
1474 2014-02-12 Tom Tromey <tromey@redhat.com>
1476 * common/rsp-low.c (hexify): Never take strlen of argument.
1478 2014-02-12 Tom Tromey <tromey@redhat.com>
1480 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1481 * remote.c (extended_remote_run, remote_rcmd)
1482 (remote_download_trace_state_variable, remote_save_trace_data)
1483 (remote_set_trace_notes): Update.
1484 * tracepoint.c (encode_source_string, tfile_write_status)
1485 (tfile_write_uploaded_tsv): Update.
1487 2014-02-12 Tom Tromey <tromey@redhat.com>
1489 * tracepoint.c: Include rsp-low.h.
1490 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1491 * remote.c: Include rsp-low.h.
1492 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1493 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1494 (remote_unescape_input): Move to common/rsp-low.c.
1495 * common/rsp-low.h: New file.
1496 * common/rsp-low.c: New file.
1497 * Makefile.in (SFILES): Add common/rsp-low.c.
1498 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1499 (COMMON_OBS): Add rsp-low.o.
1500 (rsp-low.o): New target.
1502 2014-02-12 Tom Tromey <tromey@redhat.com>
1504 * utils.h: Include print-utils.h.
1505 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1506 (int_string, core_addr_to_string, core_addr_to_string_nz)
1507 (hex_string, hex_string_custom): Don't declare.
1508 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1509 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1510 (hex_string_custom, int_string, core_addr_to_string)
1511 (core_addr_to_string_nz, host_address_to_string): Move to
1512 common/print-utils.c.
1513 * common/print-utils.h: New file.
1514 * common/print-utils.c: New file
1515 * Makefile.in (SFILES): Add common/print-utils.c.
1516 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1517 (COMMON_OBS): Add print-utils.o.
1518 (print-utils.o): New target.
1520 2014-02-12 Tom Tromey <tromey@redhat.com>
1522 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1524 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1526 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1528 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1530 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1531 if a PT_IO ptrace request returns sucessfully but indicates that 0
1532 bytes were transferred.
1534 2014-02-12 Pedro Alves <palves@redhat.com>
1535 Kevin Buettner <kevinb@redhat.com>
1537 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1538 TYPE_INSTANCE_FLAG_CODE_SPACE.
1540 2014-02-12 Pedro Alves <palves@redhat.com>
1542 * h8300-tdep.c (pseudo_from_raw_register)
1543 (raw_from_pseudo_register): New functions.
1544 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1547 2014-02-12 Pedro Alves <palves@redhat.com>
1549 * h8300-tdep.c (h8300_register_sim_regno): New function.
1550 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1551 gdbarch_register_sim_regno hook.
1553 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1555 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1557 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1559 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1561 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1563 * obsd-tdep.h (obsd_init_abi): New prototype.
1564 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1565 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1566 (obsd_init_abi): New functions.
1567 * i386obsd-tdep.c: Include "obsd-tdep.h".
1568 (i386obsd_init_abi): Call obsd_init_abi.
1569 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1570 (amd64obsd_init_abi): Call obsd_init_abi.
1571 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1572 obsd-tdep.c to gdb_target_obs.
1574 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1576 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1577 double float arguments to 16-byte in the argument slots.
1579 2014-02-11 Doug Evans <xdje42@gmail.com>
1581 * configure.ac: Don't crash if pkg-config is not found and guile
1582 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1584 * configure: Regenerate.
1586 2014-02-11 Yao Qi <yao@codesourcery.com>
1588 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1589 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1590 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1591 * gnu-nat.c (gnu_xfer_memory): Likewise.
1592 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1593 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1594 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1595 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1597 2014-02-11 Yao Qi <yao@codesourcery.com>
1599 * target.h (enum target_xfer_error): Rename to ...
1600 (enum target_xfer_status): ... it. New. All users updated.
1601 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1603 (TARGET_XFER_STATUS_ERROR_P): New macro.
1604 (target_xfer_error_to_string): Remove declaration.
1605 (target_xfer_status_to_string): Declare.
1606 (target_xfer_partial_ftype): Adjust it.
1607 (struct target_ops) <to_xfer_partial>: Return
1608 target_xfer_status. Add argument xfered_len. Update
1610 * target.c (target_xfer_error_to_string): Rename to ...
1611 (target_xfer_status_to_string): ... it. New. All callers
1613 (target_read_live_memory): Likewise. Call target_xfer_partial
1614 instead of target_read.
1615 (memory_xfer_live_readonly_partial): Return
1616 target_xfer_status. Add argument xfered_len.
1617 (raw_memory_xfer_partial): Likewise.
1618 (memory_xfer_partial_1): Likewise.
1619 (memory_xfer_partial): Likewise.
1620 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1621 properly. Update debug message.
1622 (default_xfer_partial, current_xfer_partial): Likewise.
1623 (target_write_partial): Likewise.
1624 (target_read_partial): Likewise. All callers updated.
1625 (read_whatever_is_readable): Likewise.
1626 (target_write_with_progress): Likewise.
1627 (target_read_alloc_1): Likewise.
1629 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1630 * auxv.c (procfs_xfer_auxv): Likewise.
1631 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1632 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1633 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1634 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1635 * corefile.c (read_memory): Adjust.
1636 * corelow.c (core_xfer_partial): Likewise.
1637 * ctf.c (ctf_xfer_partial): Likewise.
1638 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1640 (darwin_xfer_partial): Likewise.
1641 * exec.c (section_table_xfer_memory_partial): Likewise. All
1643 (exec_xfer_partial): Likewise.
1644 * exec.h (section_table_xfer_memory_partial): Update
1646 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1648 (gnu_xfer_partial): Likewise.
1649 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1650 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1651 (ia64_hpux_xfer_solib_got): Likewise.
1652 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1653 type of 'partial_len' to ULONGEST.
1654 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1655 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1656 (linux_nat_xfer_partial): Likewise.
1657 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1658 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1659 * monitor.c (monitor_xfer_memory): Likewise.
1660 (monitor_xfer_partial): Likewise.
1661 * procfs.c (procfs_xfer_partial): Likewise.
1662 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1663 * record-full.c (record_full_xfer_partial): Likewise.
1664 (record_full_core_xfer_partial): Likewise.
1665 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1666 (gdbsim_xfer_partial): Likewise.
1667 * remote.c (remote_write_bytes_aux): Likewise. All callers
1669 (remote_write_bytes, remote_read_bytes): Likewise. All
1671 (remote_flash_erase): Likewise. All callers updated.
1672 (remote_write_qxfer): Likewise. All callers updated.
1673 (remote_read_qxfer): Likewise. All callers updated.
1674 (remote_xfer_partial): Likewise.
1675 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1676 (rs6000_xfer_shared_libraries): Likewise.
1677 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1678 (sol_thread_xfer_partial): Likewise.
1679 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1680 (sparc_xfer_partial): Likewise.
1681 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1683 (spu_xfer_partial): Likewise.
1684 * spu-multiarch.c (spu_xfer_partial): Likewise.
1685 * tracepoint.c (tfile_xfer_partial): Likewise.
1686 * windows-nat.c (windows_xfer_memory): Likewise.
1687 (windows_xfer_shared_libraries): Likewise.
1688 (windows_xfer_partial): Likewise.
1689 * valprint.c: Replace 'target_xfer_error' with
1690 'target_xfer_status' in comments.
1692 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1694 Checked in by Joel Brobecker <brobecker@adacore.com>.
1695 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1697 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1699 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1700 function parameters.
1702 2014-02-10 Will Newton <will.newton@linaro.org>
1704 * elfread.c (elf_rel_plt_read): Look for a .got section if
1705 looking up .got.plt fails.
1706 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1707 on address passed to elf_gnu_ifunc_record_cache.
1708 (elf_gnu_ifunc_resolve_addr): Likewise.
1709 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1711 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1713 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1714 (X_RETTURN): New macro.
1715 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1717 * sparc64-tdep.c (sparc64_init_abi): Hook
1718 sparc_in_function_epilogue_p.
1720 2014-02-10 Gary Benson <gbenson@redhat.com>
1722 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1723 Rename name_matcher to symbol_matcher.
1725 2014-02-10 Gary Benson <gbenson@redhat.com>
1727 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1728 Use expand_symtabs_file_matcher_ftype and
1729 expand_symtabs_symbol_matcher_ftype.
1731 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1733 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1734 (struct ada_symbol_cache): New.
1735 (ada_free_symbol_cache): Forward declare.
1736 (struct ada_pspace_data): New.
1737 (ada_pspace_data_handle): New static global.
1738 (get_ada_pspace_data, ada_pspace_data_cleanup)
1739 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1740 (cache_space, cache): Delete, now folded inside struct
1742 (ada_get_symbol_cache): New function.
1743 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1745 (_initialize_ada_language): Remove initialization of cache_space.
1746 Move call to observer_attach_inferior_exit up, grouping it
1747 with the other observer registrations inside this function.
1748 Rename command to be more general. Add call to
1749 register_program_space_data_with_cleanup.
1751 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1753 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1754 ada_new_objfile_observer.
1755 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1756 (_initialize_tasks): Update uses of ada_new_objfile_observer
1757 and ada_tasks_normal_stop_observer.
1759 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1761 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1762 returned by the 'Length attribute to integer.
1764 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1766 * ada-lang.c (_initialize_ada_language): Initialize
1767 cache_space obstack.
1769 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1771 * ada-lang.c (HASH_SIZE): New macro.
1772 (struct cache_entry): New type.
1773 (cache_space, cache): New static globals.
1774 (ada_clear_symbol_cache, find_entry): New functions.
1775 (lookup_cached_symbol, cache_symbol): Implement.
1776 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1777 (_initialize_ada_language): Attach ada_new_objfile_observer
1778 and ada_free_objfile_observer.
1780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1782 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1783 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1784 struct block * parameter.
1785 (ada_lookup_symbol_list_worker): Constify local variable "block".
1786 Remove cast which is no longer necessary.
1788 2014-02-10 Doug Evans <xdje42@gmail.com>
1790 Add Guile as an extension language.
1791 * NEWS: Mention Guile scripting.
1792 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1793 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1794 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1795 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1796 (CLIBS): Add GUILE_LIBS.
1797 (install-guile): New rule.
1798 (guile.o): New rule.
1799 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1800 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1801 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1802 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1803 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1804 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1805 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1806 * configure.ac: New option --with-guile.
1807 * configure: Regenerate.
1808 * config.in: Regenerate.
1809 * auto-load.c: Remove #include "python/python.h". Add #include
1810 "gdb/section-scripts.h".
1811 (source_section_scripts): Handle Guile scripts.
1812 (_initialize_auto_load): Add name of Guile objfile script to
1813 scripts-directory help text.
1814 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1815 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1816 (struct breakpoint): New member scm_bp_object.
1817 * defs.h (enum command_control_type): New value guile_control.
1818 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1820 (show_user): Update comment.
1821 (_initialize_cli_cmds): Update help text for "show user". Update help
1822 text for max-user-call-depth.
1823 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1825 (multi_line_command_p): Add guile_control.
1826 (print_command_lines): Handle guile_control.
1827 (execute_control_command, recurse_read_control_structure): Ditto.
1828 (process_next_line): Recognize "guile" commands.
1829 * disasm.c (gdb_disassemble_info): Make non-static.
1830 * disasm.h: #include "dis-asm.h".
1831 (struct gdbarch): Add forward decl.
1832 (gdb_disassemble_info): Declare.
1833 * extension.c: #include "guile/guile.h".
1834 (extension_languages): Add guile.
1835 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1836 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1837 * gdbtypes.c (get_unsigned_type_max): New function.
1838 (get_signed_type_minmax): New function.
1839 * gdbtypes.h (get_unsigned_type_max): Declare.
1840 (get_signed_type_minmax): Declare.
1841 * guile/README: New file.
1842 * guile/guile-internal.h: New file.
1843 * guile/guile.c: New file.
1844 * guile/guile.h: New file.
1845 * guile/scm-arch.c: New file.
1846 * guile/scm-auto-load.c: New file.
1847 * guile/scm-block.c: New file.
1848 * guile/scm-breakpoint.c: New file.
1849 * guile/scm-disasm.c: New file.
1850 * guile/scm-exception.c: New file.
1851 * guile/scm-frame.c: New file.
1852 * guile/scm-gsmob.c: New file.
1853 * guile/scm-iterator.c: New file.
1854 * guile/scm-lazy-string.c: New file.
1855 * guile/scm-math.c: New file.
1856 * guile/scm-objfile.c: New file.
1857 * guile/scm-ports.c: New file.
1858 * guile/scm-pretty-print.c: New file.
1859 * guile/scm-safe-call.c: New file.
1860 * guile/scm-string.c: New file.
1861 * guile/scm-symbol.c: New file.
1862 * guile/scm-symtab.c: New file.
1863 * guile/scm-type.c: New file.
1864 * guile/scm-utils.c: New file.
1865 * guile/scm-value.c: New file.
1866 * guile/lib/gdb.scm: New file.
1867 * guile/lib/gdb/boot.scm: New file.
1868 * guile/lib/gdb/experimental.scm: New file.
1869 * guile/lib/gdb/init.scm: New file.
1870 * guile/lib/gdb/iterator.scm: New file.
1871 * guile/lib/gdb/printing.scm: New file.
1872 * guile/lib/gdb/types.scm: New file.
1873 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1874 (VPATH): Add $(GUILE_SRCDIR).
1875 (GUILE_DIR): New variable.
1876 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1877 (all): Add stamp-guile dependency.
1878 (stamp-guile): New rule.
1879 (clean-guile, install-guile, uninstall-guile): New rules.
1880 (install-only): Add install-guile dependency.
1881 (uninstall): Add uninstall-guile dependency.
1882 (clean): Add clean-guile dependency.
1884 2014-02-09 Doug Evans <xdje42@gmail.com>
1886 Revert this patch (which I approved, mea culpa).
1888 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1890 * Makefile.in (all-lib): Remove.
1891 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1893 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 Fix Python stack corruption.
1896 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1899 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1901 * Makefile.in (all-lib): Remove.
1902 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1904 2014-02-07 Doug Evans <dje@google.com>
1906 * extension-priv.h (extension_language_script_ops): Add comment.
1907 (extension_language_ops): Add comment.
1908 (active_ext_lang_state): Fix typo in comment.
1910 2014-02-07 Pedro Alves <palves@redhat.com>
1912 * infrun.c (handle_signal_stop) <signal arrives while stepping
1913 over a breakpoint>: Switch back to the stepping thread.
1915 2014-02-07 Yao Qi <yao@codesourcery.com>
1917 * target.c (target_xfer_partial): Return zero if LEN is zero.
1919 2014-02-07 Yao Qi <yao@codesourcery.com>
1921 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1922 (ld_so_xfer_auxv): Likewise.
1923 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1924 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1925 * corelow.c (core_xfer_partial): Likewise.
1926 * ctf.c (ctf_xfer_partial): Likewise.
1927 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1928 (darwin_xfer_partial): Likewise.
1929 * exec.c (exec_xfer_partial): Likewise.
1930 * gnu-nat.c (gnu_xfer_partial): Likewise.
1931 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1932 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1933 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1934 * linux-nat.c (linux_xfer_siginfo): Likewise.
1935 (linux_proc_xfer_spu): Likewise.
1936 * procfs.c (procfs_xfer_partial): Likewise.
1937 * record-full.c (record_full_xfer_partial): Likewise.
1938 (record_full_core_xfer_partial): Likewise.
1939 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1940 * remote.c (remote_write_qxfer): Likewise.
1941 (remote_write_qxfer, remote_read_qxfer): Likewise.
1942 (remote_xfer_partial): Likewise.
1943 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1944 (rs6000_xfer_shared_libraries): Likewise.
1945 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1946 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1947 (spu_xfer_partial): Likewise.
1948 * target.c (memory_xfer_partial_1): Likewise.
1949 * tracepoint.c (tfile_xfer_partial): Likewise.
1950 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1951 (windows_xfer_partial): Likewise.
1953 2014-02-07 Yao Qi <yao@codesourcery.com>
1955 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1957 (core_xfer_shared_libraries_aix): Likewise.
1958 * gdbarch.c, gdbarch.h: Regenerated.
1959 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1960 ULONGEST. Change 'len_avail' type to ULONGEST.
1961 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1962 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1964 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1966 2014-02-07 Yao Qi <yao@codesourcery.com>
1968 * corefile.c (memory_error): Get 'exception' from ERR and pass
1969 'exception' to throw_error.
1971 2014-02-06 Doug Evans <xdje42@gmail.com>
1973 * configure.ac (libpython checking): Remove all but python.o from
1974 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1975 * configure: Regenerate.
1977 * Makefile.in (SFILES): Add extension.c.
1978 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1979 (COMMON_OBS): Add extension.o.
1980 * extension.h: New file.
1981 * extension-priv.h: New file.
1982 * extension.c: New file.
1984 * python/python-internal.h: #include "extension.h".
1985 (gdbpy_auto_load_enabled): Declare.
1986 (gdbpy_apply_val_pretty_printer): Declare.
1987 (gdbpy_apply_frame_filter): Declare.
1988 (gdbpy_preserve_values): Declare.
1989 (gdbpy_breakpoint_cond_says_stop): Declare.
1990 (gdbpy_breakpoint_has_cond): Declare.
1991 (void source_python_script_for_objfile): Delete.
1992 * python/python.c: #include "extension-priv.h".
1993 Delete inclusion of "observer.h".
1994 (extension_language_python): Moved here and renamed from
1995 script_language_python in py-auto-load.c.
1996 Redefined to be of type extension_language_defn.
1997 (python_extension_script_ops): New global.
1998 (python_extension_ops): New global.
1999 (struct python_env): New member previous_active.
2000 (restore_python_env): Call restore_active_ext_lang.
2001 (ensure_python_env): Call set_active_ext_lang.
2002 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2004 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2006 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2008 (gdbpy_eval_from_control_command): Renamed from
2009 eval_python_from_control_command, made static. New arg extlang.
2010 (gdbpy_source_script) Renamed from source_python_script, made static.
2012 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2013 result to int. New arg extlang.
2014 (gdbpy_source_objfile_script): Renamed from
2015 source_python_script_for_objfile, made static. New arg extlang.
2016 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2017 static. New args extlang, extlang_printers. Change result type to
2019 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2020 static. New arg extlang. Rename arg printers to extlang_printers
2021 and change type to ext_lang_type_printers *.
2022 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2023 static. Replace argument arg with extlang, extlang_printers.
2024 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2025 (!HAVE_PYTHON, source_python_script): Delete.
2026 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2027 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2028 (!HAVE_PYTHON, start_type_printers): Delete.
2029 (!HAVE_PYTHON, apply_type_printers): Delete.
2030 (!HAVE_PYTHON, free_type_printers): Delete.
2031 (_initialize_python): Delete call to observer_attach_before_prompt.
2032 (finalize_python): Set/restore active extension language.
2033 (gdbpy_finish_initialization) Renamed from
2034 finish_python_initialization, made static. New arg extlang.
2035 (gdbpy_initialized): New function.
2036 * python/python.h: #include "extension.h". Delete #include
2037 "value.h", "mi/mi-cmds.h".
2038 (extension_language_python): Declare.
2039 (GDBPY_AUTO_FILE_NAME): Delete.
2040 (enum py_bt_status): Moved to extension.h and renamed to
2042 (enum frame_filter_flags): Moved to extension.h.
2043 (enum py_frame_args): Moved to extension.h and renamed to
2044 ext_lang_frame_args.
2045 (finish_python_initialization): Delete.
2046 (eval_python_from_control_command): Delete.
2047 (source_python_script): Delete.
2048 (apply_val_pretty_printer): Delete.
2049 (apply_frame_filter): Delete.
2050 (preserve_python_values): Delete.
2051 (gdbpy_script_language_defn): Delete.
2052 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2053 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2055 * auto-load.c: #include "extension.h".
2056 (GDB_AUTO_FILE_NAME): Delete.
2057 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2058 (script_language_gdb): Delete, moved to extension.c and renamed to
2059 extension_language_gdb.
2060 (source_gdb_script_for_objfile): Delete.
2061 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2062 (loaded_script): Change type of language member to
2063 struct extension_language_defn *.
2064 (init_loaded_scripts_info): Initialize
2065 unsupported_script_warning_printed.
2066 (maybe_add_script): Make static. Change type of language arg to
2067 struct extension_language_defn *.
2068 (clear_section_scripts): Reset unsupported_script_warning_printed.
2069 (auto_load_objfile_script_1): Rewrite to use extension language API.
2070 (auto_load_objfile_script): Make public. Remove support-compiled-in
2071 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2072 (source_section_scripts): Rewrite to use extension language API.
2073 (load_auto_scripts_for_objfile): Rewrite to use
2074 auto_load_scripts_for_objfile.
2075 (collect_matching_scripts_data): Change type of language member to
2076 struct extension_language_defn *.
2077 (auto_load_info_scripts): Change type of language arg to
2078 struct extension_language_defn *.
2079 (unsupported_script_warning_print): New function.
2080 (script_not_found_warning_print): Make static.
2081 (_initialize_auto_load): Rewrite construction of scripts-directory
2083 * auto-load.h (struct objfile): Add forward decl.
2084 (struct script_language): Delete.
2085 (struct auto_load_pspace_info): Add forward decl.
2086 (struct extension_language_defn): Add forward decl.
2087 (maybe_add_script): Delete.
2088 (auto_load_objfile_script): Declare.
2089 (script_not_found_warning_print): Delete.
2090 (auto_load_info_scripts): Update prototype.
2091 (auto_load_gdb_scripts_enabled): Declare.
2092 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2093 auto_load_python_scripts_enabled and made public.
2094 (script_language_python): Delete, moved to python.c.
2095 (gdbpy_script_language_defn): Delete.
2096 (info_auto_load_python_scripts): Update to use
2097 extension_language_python.
2099 * breakpoint.c (condition_command): Replace call to
2100 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2101 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2102 with call to breakpoint_ext_lang_cond_says_stop.
2103 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2104 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2105 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2106 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2108 (local_setattro): Print name of extension language with existing
2111 * valprint.c (val_print, value_print): Update to call
2112 apply_ext_lang_val_pretty_printer.
2113 * cp-valprint.c (cp_print_value): Update call to
2114 apply_ext_lang_val_pretty_printer.
2115 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2116 (gdbpy_apply_val_pretty_printer): Renamed from
2117 apply_val_pretty_printer. New arg extlang.
2118 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2120 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2121 extension language API.
2122 * cli/cli-script.c (execute_control_command): Update to call
2123 eval_ext_lang_from_control_command.
2125 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2126 enum ext_lang_bt_status values. Update call to
2127 apply_ext_lang_frame_filter.
2128 (mi_cmd_stack_list_locals): Ditto.
2129 (mi_cmd_stack_list_args): Ditto.
2130 (mi_cmd_stack_list_variables): Ditto.
2131 * mi/mi-main.c: Delete #include "python/python-internal.h".
2132 Add #include "extension.h".
2133 (mi_cmd_list_features): Replace reference to python internal variable
2134 gdb_python_initialized with call to ext_lang_initialized_p.
2136 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2137 Update to use enum ext_lang_frame_args. Update to call
2138 apply_ext_lang_frame_filter.
2139 * python/py-framefilter.c (extract_sym): Update to use enum
2141 (extract_value, py_print_type, py_print_value): Ditto.
2142 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2143 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2144 (py_print_frame): Ditto.
2145 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2146 New arg extlang. Update to use enum ext_lang_bt_status.
2148 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2149 finish_python_initialization. Replace with call to
2150 finish_ext_lang_initialization.
2152 * typeprint.c (do_free_global_table): Update to call
2153 free_ext_lang_type_printers.
2154 (create_global_typedef_table): Update to call
2155 start_ext_lang_type_printers.
2156 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2157 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2158 (type_print_options): Change type of global_printers from "void *"
2159 to "struct ext_lang_type_printers *".
2161 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2162 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2163 (gdbpy_preserve_values): Renamed from preserve_python_values.
2165 (!HAVE_PYTHON, preserve_python_values): Delete.
2167 * utils.c (quit_flag): Delete, moved to extension.c.
2168 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2171 * eval.c: Delete #include "python/python.h".
2172 * main.c: Delete #include "python/python.h".
2174 * defs.h: Update comment.
2176 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2180 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2182 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2185 2014-02-05 Yao Qi <yao@codesourcery.com>
2187 * remote.c (remote_pass_signals): Remove local 'buf' and use
2189 (remote_program_signals): Likewise.
2191 2014-02-05 Yao Qi <yao@codesourcery.com>
2193 * ctf.c: Include "inferior.h" and "gdbthread.h".
2194 (CTF_PID): A new macro.
2195 (ctf_open): Call inferior_appeared and add_thread_silent.
2196 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2197 (ctf_thread_alive): New function.
2198 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2200 2014-02-05 Yao Qi <yao@codesourcery.com>
2204 2013-05-24 Yao Qi <yao@codesourcery.com>
2206 * tracepoint.c (TFILE_PID): Remove.
2207 (tfile_open): Don't add thread and inferior.
2208 (tfile_close): Don't set 'inferior_ptid'. Don't call
2209 exit_inferior_silent.
2210 (tfile_thread_alive): Remove.
2211 (init_tfile_ops): Don't set field 'to_thread_alive' of
2214 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2216 * remote.c (remote_start_remote): Call remote_check_symbols even
2217 if only symbol-file (not file) has been given.
2219 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2221 * gdbarch.sh (skip_entrypoint): New callback.
2222 * gdbarch.c, gdbarch.h: Regenerate.
2223 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2224 * infrun.c (fill_in_stop_func): Likewise.
2225 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2226 (ppc_elfv2_elf_make_msymbol_special): New function.
2227 (ppc_elfv2_skip_entrypoint): Likewise.
2228 (ppc_linux_init_abi): Install them for ELFv2.
2230 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2232 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2233 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2234 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2235 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2236 structures returned in GPRs.
2238 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2240 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2241 offset to the stack parameter list for the ELFv2 ABI.
2243 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2245 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2246 set_gdbarch_convert_from_func_ptr_addr and
2247 set_gdbarch_elf_make_msymbol_special for ELFv1.
2248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2249 function descriptors on ELFv1.
2250 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2251 set up r12 at function entry.
2253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2255 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2256 (struct gdbarch_tdep): New member elf_abi.
2258 * rs6000-tdep.c: Include "elf/ppc64.h".
2259 (rs6000_gdbarch_init): Detect ELF ABI version.
2261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2263 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2264 within a register pair holding a DFP 128-bit value on little-endian.
2265 (ppc64_sysv_abi_return_value_base): Likewise.
2266 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2267 (dfp_pseudo_register_write): Likewise.
2269 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2271 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2272 offset on little-endian when passing _Decimal32.
2273 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2275 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2277 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2278 of the overlapped FP register within the VSX register on little-
2280 (efpr_pseudo_register_write): Likewise.
2282 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2285 offset on little-endian when passing small structures.
2287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2289 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2290 (struct ppc64_sysv_argpos): New data structure.
2291 (ppc64_sysv_abi_push_float): Remove.
2292 (ppc64_sysv_abi_push_val): New function.
2293 (ppc64_sysv_abi_push_integer): Likewise.
2294 (ppc64_sysv_abi_push_freg): Likewise.
2295 (ppc64_sysv_abi_push_vreg): Likewise.
2296 (ppc64_sysv_abi_push_param): Likewise.
2297 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2298 (ppc64_sysv_abi_return_value_base): New function.
2299 (ppc64_sysv_abi_return_value): Refactor to use it.
2301 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2303 * NEWS: Document new target powerpc64le-*-linux*.
2305 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2307 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2308 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2310 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2311 register set used in ELF core dumps. Add floating-point register set.
2313 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2315 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2316 dwarf2_to_gdb[] table using symbolic constants. Adjust
2317 penultimate entry from number representing the PC register
2318 to symbolic constant representing the MDR register. Add
2319 constant for the PC register to the end of the table.
2321 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2323 * bsd-kvm.c: Include <sys/param.h>
2325 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2327 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2329 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2331 * ada-lang.h (clear_ada_sym_cache): Delete.
2333 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2335 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2337 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2339 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2340 the sigreturn register save area only if the syscall is
2343 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2345 * valops.c (value_slice): Minor reformatting.
2347 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2349 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2351 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2353 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2355 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2356 (ada_ignore_descriptive_types_p): New static global.
2357 (find_parallel_type_by_descriptive_type): Return immediately
2358 if ada_ignore_descriptive_types_p is set.
2359 (_initialize_ada_language): Register new commands "maintenance
2360 set ada", "maintenance show ada", "maintenance set ada
2361 ignore-descriptive-types" and "maintenance show ada
2362 ignore-descriptive-types".
2363 * NEWS: Add entry for new "maint ada set/show
2364 ignore-descriptive-types" commands.
2366 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2368 * record-btrace.c (record_btrace_close): Call btrace_teardown
2371 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2373 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2376 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2378 * ada-typeprint (type_is_full_subrange_of_target_type):
2380 (print_range): Add parameter bounds_prefered_p. If not set,
2381 try printing range types using the name of their base type.
2382 (print_range_type): Add parameter bounds_prefered_p.
2383 Use it in call to print_range.
2384 (print_array_type, ada_print_type): Update calls to print_range
2385 and print_range_type.
2387 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2389 * ada-typeprint.c (print_array_type, print_choices, print_range)
2390 (print_range_bound, print_dynamic_range_bound, print_range_type):
2393 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2395 * ada-typeprint.c (print_range): Add missing empty line
2396 after local declaration.
2398 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2400 * ada-valprint.c (print_optional_low_bound): Get index_type's
2401 target type for as long as it is a TYPE_CODE_RANGE.
2403 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2405 * procfs.c (procfs_make_note_section): Remove assertion and
2408 2014-01-24 Yao Qi <yao@codesourcery.com>
2410 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2411 * corelow.c (get_core_siginfo): Likewise.
2413 2014-01-24 Yao Qi <yao@codesourcery.com>
2415 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2416 ULONGEST. Don't check 'len' is negative.
2417 (remote_write_bytes): Change type of 'len' to ULONGEST.
2419 2014-01-23 Tom Tromey <tromey@redhat.com>
2422 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2423 Handle exception from frame.block.
2424 (FrameVars.fetch_frame_locals): Likewise.
2426 2014-01-23 Tom Tromey <tromey@redhat.com>
2429 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2430 on a NULL pointer. Move "goto error" to correct place.
2432 2014-01-23 Tom Tromey <tromey@redhat.com>
2435 * python/py-framefilter.c (apply_frame_filter): Call
2436 ensure_python_env after computing gdbarch.
2438 2014-01-23 Yao Qi <yao@codesourcery.com>
2440 * target.c (raw_memory_xfer_partial): Change argument type
2441 from void * to gdb_byte *.
2442 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2444 2014-01-22 Doug Evans <dje@google.com>
2446 New gdbserver option --debug-format=timestamp.
2449 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2451 * syscalls/s390x-linux.xml: New file.
2452 * syscalls/s390-linux.xml: New file.
2453 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2454 (XML_SYSCALL_FILENAME_S390X): Likewise.
2455 (op_svc): New enum value for SVC opcode.
2456 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2457 (s390_linux_get_syscall_number): New function.
2458 (s390_gdbarch_init): Register '*get_syscall_number' and the
2459 syscall xml file name.
2460 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2461 "s390-linux.xml" and "s390x-linux.xml".
2462 * NEWS: Announce new feature.
2464 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2466 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2468 2014-01-22 Pedro Alves <palves@redhat.com>
2470 * xtensa-config.c: Include defs.h.
2472 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2474 * common/common-utils.h: Add "ARI:" comment beside __func__
2477 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2479 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2480 documentation a bit.
2482 2014-01-21 Roland McGrath <mcgrathr@google.com>
2484 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2485 * configure: Regenerate.
2486 * aclocal.m4: Regenerate.
2487 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2488 New substituted variables.
2489 (install-strip): New target.
2490 (INSTALL_SCRIPT): New substituted variable.
2491 (FLAGS_TO_PASS): Add it.
2492 (install-only): Use $(INSTALL_SCRIPT) rather than
2493 $(INSTALL_PROGRAM) for gcore.
2495 2014-01-20 Tom Tromey <tromey@redhat.com>
2497 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2500 2014-01-20 Tom Tromey <tromey@redhat.com>
2502 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2503 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2504 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2505 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2506 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2507 (struct cmd_list_element) <flags>: Remove.
2508 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2509 doc_allocated>: New fields.
2510 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2512 * maint.c (maintenance_do_deprecate): Update.
2513 * top.c (execute_command): Update.
2515 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2517 * xtensa-linux-nat.c: Include asm/ptrace.h.
2519 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2521 * Makefile.in (SFILES): Add d-support.c.
2522 (COMMON_OBS): Add d-support.o.
2523 * d-lang.h (d_parse_symbol): Add comment, now defined in
2525 * d-lang.c (parse_call_convention)
2526 (parse_attributes, parse_function_types)
2527 (parse_function_args, parse_type, parse_identifier)
2528 (call_convention_p, d_parse_symbol): Move functions to ...
2529 * d-support.c: ... New file.
2531 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2533 * d-lang.h (d_parse_symbol): Add declaration.
2534 * d-lang.c (extract_identifiers)
2535 (extract_type_info): Remove functions.
2536 (parse_call_convention, parse_attributes)
2537 (parse_function_types, parse_function_args)
2538 (parse_type, parse_identifier, call_convention_p)
2539 (d_parse_symbol): New functions.
2540 (d_demangle): Use d_parse_symbol to demangle D symbols.
2542 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2544 * d-lang.h (struct builtin_d_type): New data type.
2545 (builtin_d_type): Add declaration.
2546 * d-lang.c (d_language_arch_info, build_d_types)
2547 (builtin_d_type): New functions.
2548 (enum d_primitive_types): New data type.
2549 (d_language_defn): Change c_language_arch_info to
2550 d_language_arch_info.
2551 (d_type_data): New static variable.
2552 (_initialize_d_language): Initialize d_type_data.
2554 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2556 * d-lang.h (d_main_name): Add declaration.
2557 * d-lang.c (d_main_name): New function.
2558 * symtab.c (find_main_name): Add call to d_main_name.
2560 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2562 * d-lang.c (d_language_defn): Change macro_expansion_c to
2565 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2567 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2569 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2571 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2572 gdb_exception" declaration.
2573 * remote.c (getpkt_or_notif_sane): Likewise.
2575 2014-01-17 Doug Evans <dje@google.com>
2577 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2578 function, contents of dirnames_to_char_ptr_vec_append moved here.
2579 (delim_string_to_char_ptr_vec): New function.
2580 (dirnames_to_char_ptr_vec_append): Rewrite.
2581 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2583 2014-01-17 Doug Evans <dje@google.com>
2585 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2587 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2588 #include "common-utils.h".
2589 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2590 * common/vec.h (VEC_ASSERT_PASS): Update.
2591 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2592 (MACH_CHECK_ERROR): Update.
2594 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2596 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2598 * gdbarch.h: Regenerate.
2600 2014-01-16 Tom Tromey <tromey@redhat.com>
2602 * value.c (struct value) <regnum>: Move earlier.
2604 2014-01-16 Tom Tromey <tromey@redhat.com>
2606 * remote.c (extended_remote_create_inferior): Rename from
2607 extended_remote_create_inferior_1. Add "ops" argument. Remove
2610 2014-01-16 Pedro Alves <palves@redhat.com>
2612 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2613 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2616 2014-01-16 Doug Evans <dje@google.com>
2618 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2622 * btrace.h (btrace_thread_flag): New.
2623 (struct btrace_thread_info) <flags>: New.
2624 * record-btrace.c (record_btrace_resume_thread)
2625 (record_btrace_find_thread_to_move, btrace_step_no_history)
2626 (btrace_step_stopped, record_btrace_start_replaying)
2627 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2628 (record_btrace_find_resume_thread): New.
2629 (record_btrace_resume, record_btrace_wait): Extend.
2630 (record_btrace_can_execute_reverse): New.
2631 (record_btrace_open): Fail in non-stop mode.
2632 (record_btrace_set_replay): Split into this, ...
2633 (record_btrace_stop_replaying): ... this, ...
2634 (record_btrace_clear_histories): ... and this.
2635 (init_record_btrace_ops): Init to_can_execute_reverse.
2636 * NEWS: Announce it.
2638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2640 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2641 (forward_target_decr_pc_after_break)
2642 (target_decr_pc_after_break): New.
2643 * target.c (forward_target_decr_pc_after_break)
2644 (target_decr_pc_after_break): New.
2645 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2646 instead of gdbarch_decr_pc_after_break.
2647 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2648 instead of gdbarch_decr_pc_after_break.
2649 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2650 instead of gdbarch_decr_pc_after_break.
2651 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2652 instead of gdbarch_decr_pc_after_break.
2653 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2654 instead of gdbarch_decr_pc_after_break.
2655 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2656 instead of gdbarch_decr_pc_after_break.
2658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2660 * btrace.c: Include regcache.h.
2661 (btrace_add_pc): New.
2662 (btrace_enable): Call btrace_add_pc.
2663 (btrace_is_empty): New.
2664 * btrace.h (btrace_is_empty): New.
2665 * record-btrace.c (require_btrace, record_btrace_info): Call
2668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2670 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2671 Support delta reads.
2672 (linux_disable_btrace): Change return type.
2673 * common/linux-btrace.h (linux_read_btrace): Change parameters
2674 and return type to allow error reporting. Update users.
2675 (linux_disable_btrace): Change return type. Update users.
2676 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2678 (btrace_error): New.
2679 (btrace_block) <begin>: Comment on BEGIN == 0.
2680 * btrace.c (btrace_compute_ftrace): Start from the end of
2682 (btrace_stitch_trace, btrace_clear_history): New.
2683 (btrace_fetch): Read delta trace, return if replaying.
2684 (btrace_clear): Move clear history code to btrace_clear_history.
2685 (parse_xml_btrace): Throw an error if parsing failed.
2686 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2687 and return type to allow error reporting.
2688 (target_read_btrace): Change parameters and return type to allow
2690 * target.c (target_read_btrace): Update.
2691 * remote.c (remote_read_btrace): Support delta reads. Pass
2693 * NEWS: Announce it.
2695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2697 * record.h (record_btrace_frame_unwind)
2698 (record_btrace_tailcall_frame_unwind): New declarations.
2699 * dwarf2-frame: Include record.h
2700 (dwarf2_frame_cfa): Throw an error for btrace frames.
2701 * record-btrace.c: Include hashtab.h.
2702 (btrace_get_bfun_name): New.
2703 (btrace_call_history): Call btrace_get_bfun_name.
2704 (struct btrace_frame_cache): New.
2706 (bfcache_hash, bfcache_eq, bfcache_new): New.
2707 (btrace_get_frame_function): New.
2708 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2709 (record_btrace_frame_this_id): Compute own id.
2710 (record_btrace_frame_prev_register): Provide PC, throw_error
2711 for all other registers.
2712 (record_btrace_frame_sniffer): Detect btrace frames.
2713 (record_btrace_tailcall_frame_sniffer): New.
2714 (record_btrace_frame_dealloc_cache): New.
2715 (record_btrace_frame_unwind): Add new functions.
2716 (record_btrace_tailcall_frame_unwind): New.
2717 (_initialize_record_btrace): Allocate cache.
2718 * btrace.c (btrace_clear): Call reinit_frame_cache.
2719 * NEWS: Announce it.
2721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2723 * record-btrace.c (record_btrace_set_replay)
2724 (record_btrace_goto_begin, record_btrace_goto_end)
2725 (record_btrace_goto): New.
2726 (init_record_btrace_ops): Initialize them.
2727 * NEWS: Announce it.
2729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2731 * record-btrace.c (record_btrace_find_new_threads)
2732 (record_btrace_thread_alive): New.
2733 (init_record_btrace_ops): Initialize to_find_new_threads and
2736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2738 * record-btrace.c (record_btrace_resume): New.
2739 (record_btrace_wait): New.
2740 (init_record_btrace_ops): Initialize to_wait and to_resume.
2742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2744 * record-btrace.c (record_btrace_xfer_partial)
2745 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2746 (record_btrace_allow_memory_access): New.
2747 (init_record_btrace_ops): Initialize new methods.
2748 * target.c (raw_memory_xfer_partial): Bail out if target reports
2749 that this memory is not available.
2751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2753 * target.h (target_ops) <to_insert_breakpoint>
2754 <to_remove_breakpoint>: Add target_ops parameter.
2755 (forward_target_insert_breakpoint): New.
2756 (forward_target_remove_breakpoint): New.
2757 (memory_remove_breakpoint, memory_insert_breakpoint):
2758 Add target_ops parameter.
2759 * target.c (target_insert_breakpoint): Split into this and ...
2760 (forward_target_insert_breakpoint): ... this.
2761 (target_remove_breakpoint): Split into this and ...
2762 (forward_target_remove_breakpoint): ... this.
2763 (debug_to_insert_breakpoint): Add target_ops parameter.
2764 Call forward_target_insert_breakpoint.
2765 (debug_to_remove_breakpoint): Add target_ops parameter.
2766 Call forward_target_remove_breakpoint.
2767 (update_current_target): Do not inherit or default to_insert_breakpoint
2768 and to_remove_breakpoint.
2769 * corelow.c (ignore): Add target_ops parameter.
2770 * exec.c (ignore): Add target_ops parameter.
2771 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2772 Add target_ops parameter.
2773 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2774 Add target_ops parameter.
2775 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2776 Add target_ops parameter.
2777 * record-full.c (record_full_beneath_to_insert_breakpoint)
2778 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2779 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2780 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2781 (record_full_core_remove_breakpoint): Add target_ops parameter.
2783 (record_full_beneath_to_insert_breakpoint_ops)
2784 (record_full_beneath_to_remove_breakpoint_ops)
2785 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2786 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2787 tmp_to_remove_breakpoint_ops,
2788 record_full_beneath_to_insert_breakpoint_ops, and
2789 record_full_beneath_to_remove_breakpoint_ops.
2790 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2791 (m32r_remove_breakpoint): Add target_ops parameter.
2792 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2793 Add target_ops parameter.
2794 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2795 Add target_ops parameter.
2797 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2798 Markus Metzger <markus.t.metzger@intel.com>
2800 * record-btrace.c: Include frame-unwind.h.
2801 (record_btrace_frame_unwind_stop_reason)
2802 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2803 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2805 (init_record_btrace_ops): Install it.
2807 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2809 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2812 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2814 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2817 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2819 * frame-unwind.c: Include target.h.
2820 (frame_unwind_try_unwinder): New function with code from ...
2821 (frame_unwind_find_by_frame): ... here. New variable
2822 unwinder_from_target, call also target_get_unwinder)
2823 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2824 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2825 * target.h (struct target_ops): New fields to_get_unwinder and
2826 to_get_tailcall_unwinder.
2827 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2831 * record-btrace.c (record_btrace_fetch_registers)
2832 (record_btrace_store_registers)
2833 (record_btrace_to_prepare_to_store): New.
2834 (init_record_btrace_ops): Add the above.
2836 2014-01-16 Tom Tromey <tromey@redhat.com>
2838 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2839 * target.h (struct target_ops) <to_prepare_to_store>: Add
2841 (target_prepare_to_store): Add argument.
2842 * target.c (debug_to_prepare_to_store): Add argument.
2843 (update_current_target): Update.
2844 * remote.c (remote_prepare_to_store): Add 'self' argument.
2845 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2846 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2847 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2848 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2850 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2851 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2852 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2853 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2854 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2858 * btrace.h (replay) <replay>: New.
2859 (btrace_is_replaying): New.
2860 * btrace.c (btrace_clear): Free replay iterator.
2861 (btrace_is_replaying): New.
2862 * record-btrace.c (record_btrace_is_replaying): New.
2863 (record_btrace_info): Print insn number if replaying.
2864 (record_btrace_insn_history): Start at replay position.
2865 (record_btrace_call_history): Start at replay position.
2866 (init_record_btrace_ops): Init to_record_is_replaying.
2868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2870 * record-btrace.c (record_btrace_insn_history_range): Include
2872 (record_btrace_insn_history_from): Adjust range.
2873 (record_btrace_call_history_range): Include
2875 (record_btrace_call_history_from): Adjust range.
2876 * NEWS: Announce changes.
2878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2880 * record.h (enum record_print_flag)
2881 <record_print_indent_calls>: New.
2882 * record.c (get_call_history_modifiers): Recognize /c modifier.
2883 (_initialize_record): Document /c modifier.
2884 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2885 Reorder fields. Optionally indent the function name. Update
2887 * NEWS: Announce changes.
2889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2891 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2895 * btrace.c (ftrace_new_function): Start counting at one.
2896 * record-btrace.c (record_btrace_info): Adjust number of calls
2898 * NEWS: Announce it.
2900 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2902 * record-btrace.c (btrace_call_history_insn_range): Print
2903 insn range as [begin, end].
2905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2907 * btrace.h (struct btrace_func_link): New.
2908 (enum btrace_function_flag): New.
2909 (struct btrace_inst): Rename to ...
2910 (struct btrace_insn): ...this. Update all users.
2911 (struct btrace_func) <ibegin, iend>: Remove.
2912 (struct btrace_func_link): New.
2913 (struct btrace_func): Rename to ...
2914 (struct btrace_function): ...this. Update all users.
2915 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2916 (number, level, flags>: New.
2917 (struct btrace_insn_iterator): Rename to ...
2918 (struct btrace_insn_history): ...this.
2920 (struct btrace_insn_iterator, btrace_call_iterator): New.
2921 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2922 (struct btrace_target_info) <begin, end, level>
2923 <insn_history, call_history>: New.
2924 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2925 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2926 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2927 (btrace_call_number, btrace_call_begin, btrace_call_end)
2928 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2929 (btrace_find_function_by_number, btrace_set_insn_history)
2930 (btrace_set_call_history): New.
2931 * btrace.c (btrace_init_insn_iterator)
2932 (btrace_init_func_iterator, compute_itrace): Remove.
2933 (ftrace_print_function_name, ftrace_print_filename)
2934 (ftrace_skip_file): Change
2936 (ftrace_init_func): Remove.
2937 (ftrace_debug): Use new btrace_function fields.
2938 (ftrace_function_switched): Also consider gaining and
2939 losing symbol information).
2940 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2941 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2942 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2944 (ftrace_new_function): Move. Remove debug print.
2945 (ftrace_update_lines, ftrace_update_insns): New.
2946 (ftrace_update_function): Check for call, ret, and jump.
2947 (compute_ftrace): Renamed to ...
2948 (btrace_compute_ftrace): ...this. Rewritten to compute call
2950 (btrace_fetch, btrace_clear): Updated.
2951 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2952 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2953 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2954 (btrace_call_number, btrace_call_begin, btrace_call_end)
2955 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2956 (btrace_find_function_by_number, btrace_set_insn_history)
2957 (btrace_set_call_history): New.
2958 * record-btrace.c (require_btrace): Use new btrace thread
2960 (record_btrace_info, btrace_insn_history)
2961 (record_btrace_insn_history, record_btrace_insn_history_range):
2962 Use new btrace thread info fields and new iterator.
2963 (btrace_func_history_src_line): Rename to ...
2964 (btrace_call_history_src_line): ...this. Use new btrace
2966 (btrace_func_history): Rename to ...
2967 (btrace_call_history): ...this. Use new btrace thread info
2968 fields and new iterator.
2969 (record_btrace_call_history, record_btrace_call_history_range):
2970 Use new btrace thread info fields and new iterator.
2972 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2974 * frame.h (frame_id_build_unavailable_stack_special): New.
2975 * frame.c (frame_id_build_unavailable_stack_special): New.
2977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2979 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2980 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2981 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2983 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2984 (i386_insn_is_jump, i386_jmp_p): New.
2985 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2986 insn_is_jump to gdbarch.
2987 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2988 * gdbarch.h: Regenerated.
2989 * gdbarch.c: Regenerated.
2990 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2991 (default_insn_is_jump): New.
2992 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2993 (default_insn_is_jump): New.
2995 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2997 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2999 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3000 (btrace_read_type) <btrace_read_new>: Change to ...
3001 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3005 * common/linux-btrace.c (linux_read_btrace): Free trace from
3008 2014-01-15 Doug Evans <dje@google.com>
3010 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3013 2014-01-15 Tom Tromey <tromey@redhat.com>
3015 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3016 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3017 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3018 (set_objfile_main_name): New function.
3019 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3020 language_of_main>: New fields.
3021 (set_objfile_main_name): Declare.
3022 * symtab.c (find_main_name): Loop over objfiles to find the main
3024 (set_main_name): Now static.
3025 (get_main_info): Add comment.
3026 * symtab.h (set_main_name): Don't declare.
3028 2014-01-15 Tom Tromey <tromey@redhat.com>
3030 * symtab.c (main_progspace_key): New global.
3031 (struct main_info): New.
3032 (name_of_main, language_of_main): Remove.
3033 (get_main_info, main_info_cleanup): New function.
3034 (set_main_name, main_name, main_language): Use get_main_info.
3035 (_initialize_symtab): Initialize main_progspace_key.
3037 2014-01-15 Tom Tromey <tromey@redhat.com>
3039 * dbxread.c (process_one_symbol): Update.
3040 * dwarf2read.c (read_partial_die): Update.
3041 * symfile.c (set_initial_language): Call main_language.
3042 * symtab.c (language_of_main): Now static.
3043 (set_main_name): Add 'lang' parameter.
3044 (find_main_name): Update.
3045 (main_language): New function.
3046 (symtab_observer_executable_changed): Update.
3047 * symtab.h (set_main_name): Update.
3048 (language_of_main): Remove.
3049 (main_language): Declare.
3051 2014-01-15 Tom Tromey <tromey@redhat.com>
3053 * symfile.c (init_entry_point_info): Use new "initialized" field.
3055 * objfiles.h (struct entry_point) <initialized>: New field.
3056 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3057 (struct objfile) <ei>: ...here. Remove.
3058 * objfiles.c (entry_point_address_query): Update.
3060 2014-01-15 Tom Tromey <tromey@redhat.com>
3062 * objfiles.c (entry_point_address_query): Relocate entry point
3064 (objfile_relocate1): Do not relocate entry point address.
3065 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3066 <the_bfd_section_index>: New field.
3067 * symfile.c (init_entry_point_info): Find the entry point's
3070 2014-01-15 Tom Tromey <tromey@redhat.com>
3072 * solib-frv.c (enable_break): Use entry_point_address_query.
3074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3076 * NEWS: Add note on improved process record-replay on
3077 arm*-linux* targets.
3079 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3081 * arm-tdep.c (enum arm_record_result): New enum.
3082 (arm_record_unsupported_insn): New function.
3083 (arm_record_coproc_data_proc): Removed.
3084 (thumb2_record_ld_st_multiple): New function.
3085 (thumb2_record_ld_st_dual_ex_tbb): New function.
3086 (thumb2_record_data_proc_sreg_mimm): New function.
3087 (thumb2_record_ps_dest_generic): New function.
3088 (thumb2_record_branch_misc_cntrl): New function.
3089 (thumb2_record_str_single_data): New function.
3090 (thumb2_record_ld_mem_hints): New function.
3091 (thumb2_record_ld_word): New function.
3092 (thumb2_record_lmul_lmla_div): New function.
3093 (thumb2_record_decode_insn_handler): New function.
3094 (decode_insn): Add thumb32 instruction handlers.
3096 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3098 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3099 (struct arm_linux_record_tdep): Declare.
3100 (arm_canonicalize_syscall): New function.
3101 (arm_all_but_pc_registers_record): New function.
3102 (arm_linux_syscall_record): New function.
3103 (arm_linux_init_abi): Add syscall recording constructs.
3104 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3105 decoding. (arm_record_coproc_data_proc): Update arm syscall
3107 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3108 <arm_syscall_record>: New field.
3109 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3112 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3114 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3115 register for push instruction recording.
3117 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3119 * arm-tdep.c (thumb_record_misc): Update to correct logical
3120 error while recording ldm, ldmia and pop instructions.
3122 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3124 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3126 2014-01-15 Pedro Alves <palves@redhat.com>
3128 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3129 (go32_resume, go32_fetch_registers, store_register)
3130 (go32_store_registers, go32_prepare_to_store)
3131 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3132 (go32_create_inferior, go32_can_run, go32_terminal_init)
3133 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3136 2014-01-15 Tom Tromey <tromey@redhat.com>
3138 * target.h (async_callback_ftype): New typedef.
3139 (struct target_ops) <to_async>: Use it.
3141 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3143 * python/py-value.c (get_field_type): Remove unnecessary curly
3144 braces for single-statement if block.
3146 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3148 * python/py-type.c (convert_field): Add missing empty line
3151 2014-01-14 Doug Evans <dje@google.com>
3153 * symfile.h (expand_symtabs_matching): Renamed from
3154 expand_partial_symbol_names. Update prototype.
3155 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3156 * symfile.c (expand_symtabs_matching): Renamed from
3157 expand_partial_symbol_names. New args file_matcher, kind.
3158 Rename arg fun to symbol_matcher.
3159 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3160 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3161 ada_expand_partial_symbol_name.
3162 (ada_make_symbol_completion_list): Update to call
3163 expand_symtabs_matching.
3164 (ada_add_global_exceptions): Call expand_symtabs_matching.
3165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3166 call map_symbol_filenames.
3167 * symtab.c (sources_info): Update to call map_symbol_filenames.
3168 (search_symbols): Call expand_symtabs_matching.
3169 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3170 (default_make_symbol_completion_list_break_on): Update to call
3171 expand_symtabs_matching.
3172 (make_source_files_completion_list): Update to call
3173 map_symbol_filenames.
3175 2014-01-14 Doug Evans <dje@google.com>
3177 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3178 (expand_symtabs_symbol_matcher_ftype): New typedef.
3179 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3180 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3181 * symfile.c (expand_partial_symbol_names): Update to use
3182 expand_symtabs_symbol_matcher_ftype.
3183 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3184 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3185 Arg name_matcher renamed to symbol_matcher.
3186 * psymtab.c (recursively_search_psymtabs): Update to use
3187 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3189 (expand_symtabs_matching_via_partial): Update to use
3190 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3191 Arg name_matcher renamed to symbol_matcher.
3193 2014-01-14 Doug Evans <dje@google.com>
3195 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3196 (map_partial_symbol_filenames): Ditto.
3197 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3198 (map_partial_symbol_filenames): Ditto.
3199 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3200 (map_partial_symbol_filenames): Ditto.
3201 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3202 (map_partial_symbol_filenames): Ditto.
3203 * symtab.c: Delete #include "psymtab.h".
3205 2014-01-14 Pedro Alves <palves@redhat.com>
3206 Tom Tromey <tromey@redhat.com>
3208 * infrun.c (use_displaced_stepping): Use find_record_target
3209 instead of RECORD_IS_USED.
3210 (adjust_pc_after_break): Use record_full_is_used instead of
3212 * record-btrace.c (record_btrace_open): Call record_preopen
3213 instead of checking RECORD_IS_USED.
3214 * record-full.c (record_full_shortname)
3215 (record_full_core_shortname): New globals.
3216 (record_full_is_used): New function.
3217 (find_full_open): Call record_preopen instead of checking
3219 (init_record_full_ops): Set the target's shortname to
3220 record_full_shortname.
3221 (init_record_full_core_ops): Set the target's shortname to
3222 record_full_core_shortname.
3223 * record-full.h (record_full_is_used): Declare.
3224 * record.c (find_record_target): Make extern.
3225 (record_preopen): New function.
3226 * record.h (RECORD_IS_USED): Delete macro.
3227 (find_record_target, record_preopen): Declare functions.
3229 2014-01-14 Yao Qi <yao@codesourcery.com>
3231 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3232 'len''s type to ULONGEST.
3233 (core_xfer_shared_libraries_aix): Likewise.
3234 * gdbarch.c, gdbarch.h: Regenerated.
3235 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3236 Change type of 'len' to ULONGEST.
3237 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3238 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3240 2014-01-14 Yao Qi <yao@codesourcery.com>
3242 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3243 type of 'len' to ULONGEST.
3244 (linux_xfer_osdata_processgroups): Likewise.
3245 (linux_xfer_osdata_threads): Likewise.
3246 (linux_xfer_osdata_fds): Likewise.
3247 (linux_xfer_osdata_isockets): Likewise.
3248 (linux_xfer_osdata_shm): Likewise.
3249 (linux_xfer_osdata_sem): Likewise.
3250 (linux_xfer_osdata_msg): Likewise.
3251 (linux_common_xfer_osdata): Likewise.
3252 (struct osdata_type) <getter>: Likewise.
3253 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3256 2014-01-14 Yao Qi <yao@codesourcery.com>
3258 * target.h (target_xfer_partial_ftype): Update.
3259 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3261 * aix-thread.c (aix_thread_xfer_partial): Change type of
3262 argument 'len' to ULONGEST.
3263 * auxv.c (procfs_xfer_auxv): Likewise.
3264 (ld_so_xfer_auxv): Likewise.
3265 (memory_xfer_auxv): Likewise.
3266 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3267 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3268 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3269 * corelow.c (core_xfer_partial): Likewise.
3270 * ctf.c (ctf_xfer_partial): Likewise.
3271 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3273 (darwin_read_dyld_info): Likewise.
3274 (darwin_xfer_partial): Likewise.
3275 * exec.c (section_table_xfer_memory_partial): Likewise.
3276 (exec_xfer_partial): Likewise.
3277 * exec.h (section_table_xfer_memory_partial): Update
3279 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3280 instead of plongest.
3281 (gnu_xfer_partial): Likewise.
3282 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3283 (ia64_hpux_xfer_solib_got): Likewise.
3284 (ia64_hpux_xfer_partial): Likewise.
3285 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3286 * inf-ptrace.c (inf_ptrace_xfer_partial):
3287 * inf-ttrace.c (inf_ttrace_xfer_partial):
3288 * linux-nat.c (linux_xfer_siginfo): Likewise.
3289 (linux_nat_xfer_partial): Likewise.
3290 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3291 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3292 * monitor.c (monitor_xfer_memory): Likewise.
3293 (monitor_xfer_partial): Likewise.
3294 * procfs.c (procfs_xfer_partial): Likewise.
3295 * record-full.c (record_full_xfer_partial): Likewise.
3296 (record_full_core_xfer_partial): Likewise.
3297 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3298 instead of plongest.
3299 (gdbsim_xfer_partial): Likewise.
3300 * remote.c (remote_xfer_partial): Likewise.
3301 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3302 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3304 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3305 (rs6000_xfer_shared_libraries): Likewise.
3306 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3307 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3308 (sparc_xfer_partial): Likewise.
3309 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3310 (spu_xfer_partial): Likewise.
3311 * spu-multiarch.c (spu_xfer_partial): Likewise.
3312 * target.c (target_read_live_memory): Likewise.
3313 (memory_xfer_live_readonly_partial): Likewise.
3314 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3315 (target_xfer_partial, default_xfer_partial): Likewise.
3316 (current_xfer_partial): Likewise.
3317 * tracepoint.c (tfile_xfer_partial): Likewise.
3318 * windows-nat.c (windows_xfer_memory): Likewise. Call
3319 pulongest instead of plongest.
3320 (windows_xfer_partial): Likewise.
3321 (windows_xfer_shared_libraries): Likewise.
3323 2014-01-14 Yao Qi <yao@codesourcery.com>
3325 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3326 target_xfer_partial_ftype.
3328 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3332 * valops.c (value_struct_elt_bitpos): New function
3333 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3334 object to 'None' if the field name is an empty string ("").
3335 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3336 attribute to look for a field when 'name' is 'None'.
3337 (get_field_type): New function
3339 2014-01-13 Doug Evans <dje@google.com>
3342 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3343 (try_open_dwop_file): Ditto.
3344 * gdb_bfd.c: #include "vec.h".
3345 (bfdp): New typedef.
3346 (struct gdb_bfd_data): New member included_bfds.
3347 (gdb_bfd_unref): Unref all included bfds.
3348 (gdb_bfd_record_inclusion): New function.
3349 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3351 2014-01-13 Tom Tromey <tromey@redhat.com>
3353 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3355 2014-01-13 Tom Tromey <tromey@redhat.com>
3357 * defs.h (use_windows): Remove.
3358 * gdb.c (main): Update.
3359 * main.c (captured_main, gdb_main): Update.
3360 * main.h (struct captured_main_args) <use_windows>: Remove.
3361 * top.c (use_windows): Remove.
3363 2014-01-13 Tom Tromey <tromey@redhat.com>
3365 * defs.h (deprecated_flush_hook): Remove.
3367 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3370 * linux-thread-db.c (try_thread_db_load): Add parameter
3371 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3372 (try_thread_db_load_from_pdir_1): Move it there from here.
3373 (try_thread_db_load_from_sdir): Update caller.
3374 (try_thread_db_load_from_dir): Move it there from here.
3376 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3378 * regformats/regdat.sh: Always rewrite the register file.
3380 2014-01-13 Pedro Alves <palves@redhat.com>
3382 * Makefile.in (CHECK_HEADERS): New variable.
3383 (check-headers:): New rule.
3385 2014-01-13 Tom Tromey <tromey@redhat.com>
3387 * cli/cli-setshow.c (do_set_command): Update.
3388 * defs.h (deprecated_set_hook): Remove.
3389 * top.c (deprecated_set_hook): Remove.
3391 2014-01-13 Pedro Alves <palves@redhat.com>
3393 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3394 the tracepoint if the PC is a pseudo-register.
3396 2014-01-13 Tom Tromey <tromey@redhat.com>
3398 * defs.h (XCALLOC): Remove.
3399 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3400 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3401 * dwarf2loc.c (allocate_piece_closure): Likewise.
3402 * elfread.c (elf_symfile_segments): Likewise.
3403 (elf_symfile_segments): Likewise.
3404 * gdbtypes.c (copy_type_recursive): Likewise.
3405 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3406 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3407 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3409 * mt-tdep.c (mt_gdbarch_init): Likewise.
3410 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3412 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3413 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3414 * registry.c (registry_alloc_data): Likewise.
3415 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3416 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3417 * serial.c (serial_fdopen_ops): Likewise.
3418 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3420 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3421 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3424 2014-01-13 Tom Tromey <tromey@redhat.com>
3426 * defs.h (XMALLOC): Remove.
3427 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3428 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3429 * cli-out.c (struct ui_out *): Likewise.
3430 * cli/cli-dump.c (add_dump_command): Likewise.
3431 (add_dump_command): Likewise.
3432 * complaints.c (get_complaints): Likewise.
3433 (find_complaint): Likewise.
3434 * dwarf2-frame.c (execute_cfa_program): Likewise.
3435 * dwarf2read.c (abbrev_table_read_table): Likewise.
3436 * gdbarch.sh: Likewise.
3437 * gdbarch.c: Rebuild.
3438 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3439 * interps.c (interp_new): Likewise.
3440 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3441 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3442 * mi/mi-console.c (mi_console_file_new): Likewise.
3443 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3444 * mi/mi-out.c (mi_out_new): Likewise.
3445 * mi/mi-parse.c (mi_parse): Likewise.
3446 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3447 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3448 * observer.c (xalloc_observer_list_node): Likewise.
3449 * regcache.c (regcache_xmalloc_1): Likewise.
3450 * reggroups.c (reggroup_new): Likewise.
3451 (_initialize_reggroup): Likewise.
3452 * registry.c (register_data_with_cleanup): Likewise.
3453 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3454 * ser-base.c (serial_ttystate): Likewise.
3455 * ser-mingw.c (make_pipe_state): Likewise.
3456 * ser-pipe.c (pipe_open): Likewise.
3457 * serial.c (serial_open): Likewise.
3458 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3459 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3460 (tui_alloc_win_info): Likewise.
3461 (tui_add_content_elements): Likewise.
3462 * tui/tui-file.c (tui_file_new): Likewise.
3463 * tui/tui-out.c (tui_out_new): Likewise.
3464 * ui-file.c (mem_file_new): Likewise.
3465 * ui-out.c (push_level): Likewise.
3466 (make_cleanup_ui_out_end): Likewise.
3467 (append_header_to_list): Likewise.
3468 (ui_out_new): Likewise.
3469 * user-regs.c (user_reg_add_builtin): Likewise.
3471 2014-01-13 Tom Tromey <tromey@redhat.com>
3473 * defs.h (XZALLOC): Remove.
3474 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3475 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3476 (get_ada_tasks_inferior_data): Likewise.
3477 * auto-load.c (get_auto_load_pspace_data): Likewise.
3478 * auxv.c (get_auxv_inferior_data): Likewise.
3479 * bfd-target.c (target_bfd_reopen): Likewise.
3480 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3481 (deprecated_insert_raw_breakpoint): Likewise.
3482 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3483 * corelow.c (core_open): Likewise.
3484 * darwin-nat.c (darwin_check_new_threads): Likewise.
3485 (darwin_attach_pid): Likewise.
3486 * dummy-frame.c (dummy_frame_push): Likewise.
3487 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3488 * dwarf2loc.c (allocate_piece_closure): Likewise.
3489 * elfread.c (elf_symfile_segments): Likewise.
3490 * eval.c (ptrmath_type_p): Likewise.
3491 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3492 * gdbtypes.c (alloc_type_arch): Likewise.
3493 (alloc_type_instance): Likewise.
3494 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3495 * inf-child.c (inf_child_can_use_agent): Likewise.
3496 * inflow.c (get_inflow_inferior_data): Likewise.
3497 * infrun.c (save_infcall_suspend_state): Likewise.
3498 * jit.c (jit_reader_load): Likewise.
3499 (get_jit_objfile_data): Likewise.
3500 (get_jit_program_space_data): Likewise.
3501 (jit_object_open_impl): Likewise.
3502 (jit_symtab_open_impl): Likewise.
3503 (jit_block_open_impl): Likewise.
3504 (jit_frame_sniffer): Likewise.
3505 * linux-fork.c (add_fork): Likewise.
3506 * maint.c (make_command_stats_cleanup): Likewise.
3507 * objfiles.c (get_objfile_pspace_data): Likewise.
3508 * opencl-lang.c (struct lval_closure): Likewise.
3509 * osdata.c (osdata_start_osdata): Likewise.
3510 * progspace.c (new_address_space): Likewise.
3511 (add_program_space): Likewise.
3512 * remote-sim.c (get_sim_inferior_data): Likewise.
3513 * sh-tdep.c (sh_gdbarch_init): Likewise.
3514 * skip.c (Ignore): Likewise.
3515 (skip_delete_command): Likewise.
3516 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3517 (library_list_start_library): Likewise.
3518 (solib_aix_current_sos): Likewise.
3519 * solib-darwin.c (get_darwin_info): Likewise.
3520 (darwin_current_sos): Likewise.
3521 * solib-dsbt.c (get_dsbt_info): Likewise.
3522 * solib-ia64-hpux.c (new_so_list): Likewise.
3523 (ia64_hpux_get_solib_linkage_addr): Likewise.
3524 * solib-spu.c (append_ocl_sos): Likewise.
3525 (spu_current_sos): Likewise.
3526 * solib-svr4.c (get_svr4_info): Likewise.
3527 (svr4_keep_data_in_core): Likewise.
3528 (library_list_start_library): Likewise.
3529 (svr4_default_sos): Likewise.
3530 (svr4_read_so_list): Likewise.
3531 * solib-target.c (library_list_start_library): Likewise.
3532 (solib_target_current_sos): Likewise.
3533 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3534 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3535 * symfile.c (default_symfile_segments): Likewise.
3536 * target-descriptions.c (tdesc_data_init): Likewise.
3537 (tdesc_create_reg): Likewise.
3538 (struct tdesc_type *): Likewise.
3539 (tdesc_create_vector): Likewise.
3540 (tdesc_set_struct_size): Likewise.
3541 (struct tdesc_type *): Likewise.
3542 (tdesc_free_feature): Likewise.
3543 (tdesc_create_feature): Likewise.
3544 * windows-nat.c (windows_add_thread): Likewise.
3545 (windows_make_so): Likewise.
3546 * xml-support.c (gdb_xml_body_text): Likewise.
3547 (gdb_xml_create_parser_and_cleanup): Likewise.
3548 (xml_process_xincludes): Likewise.
3549 * xml-syscall.c (allocate_syscalls_info): Likewise.
3550 (syscall_create_syscall_desc): Likewise.
3552 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3554 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3555 function, with code from i386_stap_parse_special_token.
3556 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3557 (i386_stap_parse_special_token): Move code to the two functions
3560 2014-01-09 Pedro Alves <palves@redhat.com>
3561 Hui Zhu <hui@codesourcery.com>
3564 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3565 bp_err_string. Don't mark the location shlib_disabled if the
3566 error thrown wasn't a generic or memory error. Catch errors
3567 thrown while inserting breakpoints in overlayed code. Output
3568 error message of software breakpoints.
3569 * remote.c (remote_insert_breakpoint): If this breakpoint has
3570 target-side commands but this stub doesn't support Z0 packets,
3571 throw NOT_SUPPORTED_ERROR error.
3572 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3573 * target.h (target_insert_breakpoint): Extend comment.
3574 (target_insert_hw_breakpoint): Add comment.
3576 2014-01-08 Pedro Alves <palves@redhat.com>
3578 * remote.c (remote_add_thread): Add threads silently if starting
3580 (remote_notice_new_inferior): If in all-stop, and starting up,
3581 don't call notice_new_inferior.
3582 (get_current_thread): New function, factored out from ...
3583 (add_current_inferior_and_thread): ... this. Adjust.
3584 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3585 found any thread, then select the remote's current thread as GDB's
3588 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3590 * NEWS: Create a new section for the next release branch.
3591 Rename the section of the current branch, now that it has
3594 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3596 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3597 * version.in: Bump version to 7.7.50.DATE-cvs.
3599 2014-01-08 Yao Qi <yao@codesourcery.com>
3601 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3602 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3603 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3605 2014-01-08 Yao Qi <yao@codesourcery.com>
3607 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3608 return value of bfd_get_filename to symbol_file_add_from_bfd.
3610 2014-01-08 Pierre Muller <muller@sourceware.org>
3613 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3614 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3615 to prim_record_mininal_symbol_and_info.
3616 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3617 in call to prim_record_minimal_symbol_and_info.
3618 (read_pe_exported_syms): Set index field of section_data.
3620 2014-01-07 Andrew Pinski <apinski@cavium.com>
3622 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3623 * features/aarch64.c: Regenerate.
3625 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3627 * target.c (return_null): Define.
3628 (update_current_target): Use it instead of return_zero for
3629 functions that return a pointer.
3631 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3633 * source.c (add_path): Fix check for duplicated paths in the previously
3636 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3638 * ada-lang.c: Remove duplicated include statements.
3639 * alphabsd-nat.c: Ditto.
3640 * amd64-darwin-tdep.c: Ditto.
3641 * amd64fbsd-nat.c: Ditto.
3642 * auto-load.c: Ditto.
3644 * breakpoint.c: Ditto.
3646 * fork-child.c: Ditto.
3647 * gdb_usleep.c: Ditto.
3648 * i386-darwin-tdep.c: Ditto.
3649 * i386fbsd-nat.c: Ditto.
3651 * inferior.c: Ditto.
3653 * linux-nat.c: Ditto.
3654 * linux-tdep.c: Ditto.
3655 * m68kbsd-nat.c: Ditto.
3656 * m68klinux-nat.c: Ditto.
3657 * microblaze-tdep.c: Ditto.
3658 * mips-linux-tdep.c: Ditto.
3659 * mn10300-tdep.c: Ditto.
3660 * nto-tdep.c: Ditto.
3661 * opencl-lang.c: Ditto.
3663 * printcmd.c: Ditto.
3664 * regcache.c: Ditto.
3665 * remote-m32r-sdi.c: Ditto.
3669 * tilegx-linux-nat.c: Ditto.
3670 * tilegx-tdep.c: Ditto.
3671 * tracepoint.c: Ditto.
3673 * vaxbsd-nat.c: Ditto.
3674 * windows-nat.c: Ditto.
3675 * xtensa-tdep.c: Ditto.
3677 2014-01-07 Yao Qi <yao@codesourcery.com>
3679 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3681 2014-01-07 Yao Qi <yao@codesourcery.com>
3682 Joel Brobecker <brobecker@adacore.com>
3684 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3685 (pdc_write_regs): Likewise.
3686 (fetch_regs_kernel_thread): Likewise.
3687 (store_regs_kernel_thread): Likewise.
3689 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3691 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3692 tagged type objects to their actual type.
3694 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3696 * ada-valprint.c (print_field_values): Add "language" parameter.
3697 Update calls to print_field_values and print_variant_part.
3698 Pass new parameter "language" in call to val_print instead
3699 of "current_language". Replace call to ada_val_print by call
3701 (print_variant_part): Add "language" parameter.
3702 (ada_val_print_struct_union): Update call to print_field_values.
3704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3706 * ada-valprint.c (ui_memcpy): Delete.
3707 (ada_print_floating): Update documentation. Add empty line
3708 between between function documentation and implementation.
3709 Delete variable "buffer". Use ui_file_xstrdup in place of
3710 ui_file_put. Minor adjustments following this change.
3712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3714 * ada-valprint.c (ada_val_print_string): New function,
3715 extracted from ada_val_print_array.
3716 (ada_val_print_array): Replace extracted code by call
3717 to ada_val_print_string followed by a return. Move
3718 "else" branch to the function's top block.
3720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3722 * ada-valprint.c (ada_val_print_array): Move implementation
3723 down. Rename parameter "offset" and "val" into "offset_aligned"
3724 and "original_value" respectively. Add parameter "offset".
3726 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3728 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3729 re-organizing the code. Change the "???" message printed
3730 when target type is a TYPE_CODE_UNDEF into
3731 "<ref to undefined type>".
3733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3735 * ada-valprint.c (print_record): Delete, implementation inlined...
3736 (ada_val_print_struct_union): ... here. Remove call to
3737 ada_check_typedef in inlined implementation.
3739 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3741 * ada-valprint.c (ada_val_print_gnat_array): New function,
3742 extracted from ada_val_print_1;
3743 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3744 (ada_val_print_flt, ada_val_print_struct_union)
3745 (ada_val_print_ref): Likewise.
3746 (ada_val_print_1): Delete variables i and elttype.
3747 Replace extracted-out code by call to corresponding
3750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3752 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3756 * ada-valprint.c (ada_val_print_1): Replace calls to
3757 ada_val_print_1 by calls to val_print.
3759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3761 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3762 Update calls to self accordingly. Replace calls to c_val_print
3763 by calls to val_print.
3765 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3767 * ada-valprint.c (print_record): Delete declaration.
3768 (adjust_type_signedness, ada_val_print_1): Likewise.
3769 (ada_val_print): Move function implementation down.
3770 (print_variant_part, print_field_values, print_record):
3771 Move function implementation up.
3773 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3775 * python/py-type.c (typy_get_name): New function.
3776 (type_object_getset): Add entry for attribute "name".
3777 * NEWS: Add entry mentioning this new attribute.
3779 2014-01-07 Yao Qi <yao@codesourcery.com>
3781 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3784 2014-01-07 Yao Qi <yao@codesourcery.com>
3786 * gnu-nat.c (info_port_rights): Add qualifier const to
3789 2014-01-07 Yao Qi <yao@codesourcery.com>
3791 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3793 2014-01-07 Yao Qi <yao@codesourcery.com>
3795 * gnu-nat.c (make_inf) Update declaration.
3796 (make_inf): Make it static.
3797 (inf_set_traced): Likewise.
3798 (inf_port_to_thread, inf_task_died_status): Likewise.
3800 2014-01-07 Yao Qi <yao@codesourcery.com>
3802 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3804 2014-01-07 Yao Qi <yao@codesourcery.com>
3806 * gnu-nat.c (_initialize_gnu_nat): Declare.
3808 2014-01-07 Yao Qi <yao@codesourcery.com>
3810 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3812 (struct gdbarch_info) <byte_order>: Change type to
3814 <byte_order_for_code>: Likewise.
3815 * gdbarch.c, gdbarch.h: Regenerated.
3817 2014-01-06 Sasha Smundak <asmundak@google.com>
3819 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3821 2014-01-06 Tom Tromey <tromey@redhat.com>
3823 * doublest.c (convert_doublest_to_floatformat): Use const, not
3825 * somread.c (som_symtab_read): Likewise.
3827 2014-01-07 Hui Zhu <hui@codesourcery.com>
3829 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3830 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3831 (gdb_bfd_fopen): Ditto.
3832 (gdb_bfd_openr): Ditto.
3833 (gdb_bfd_openw): Ditto.
3834 (gdb_bfd_openr_iovec): Ditto.
3835 (gdb_bfd_fdopenr): Ditto.
3836 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3837 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3839 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3841 * symfile-mem.c (symbol_file_add_from_memory): Removed
3842 gdb_bfd_stash_filename.
3844 2014-01-03 Doug Evans <dje@google.com>
3846 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3849 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3851 Update year range in copyright notice of all files.
3853 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3855 * top.c (print_gdb_version): Set copyright year to 2014.
3857 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3859 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3861 For older changes see ChangeLog-2013.
3867 version-control: never