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_can_use_hw_breakpoint.
6 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
14 * target.h (struct target_ops) <to_files_info>: Use
15 TARGET_DEFAULT_IGNORE.
17 2014-02-19 Tom Tromey <tromey@redhat.com>
19 * target-delegates.c: Rebuild.
20 * target.c (update_current_target): Don't inherit or default
22 * target.h (struct target_ops) <to_store>: Use
23 TARGET_DEFAULT_NORETURN.
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
30 * target.h (struct target_ops) <to_post_attach>: Use
31 TARGET_DEFAULT_IGNORE.
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
38 (default_rcmd): New function.
39 (do_monitor_command): Unconditionally delegate.
40 * target.h (struct target_ops) <to_rmcd>: Use
43 2014-02-19 Tom Tromey <tromey@redhat.com>
45 * target-delegates.c: Rebuild.
46 * target.c (init_dummy_target): Don't initialize to_attach.
47 (target_attach): Unconditionally delegate.
48 * target.h (struct target_ops) <to_attach>: Use
51 2014-02-19 Tom Tromey <tromey@redhat.com>
53 * target-delegates.c: Rebuild.
54 * target.c (target_detach): Unconditionally delegate.
55 (init_dummy_target): Don't initialize to_detach.
56 * target.h (struct target_ops) <to_detach>: Use
57 TARGET_DEFAULT_IGNORE.
59 2014-02-19 Tom Tromey <tromey@redhat.com>
61 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
63 (target_augmented_libraries_svr4_read): Add argument.
64 * target.c (update_current_target): Update.
65 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
68 2014-02-19 Tom Tromey <tromey@redhat.com>
70 * target.h (struct target_ops) <to_call_history_range>: Add
72 * target.c (target_call_history_range): Add argument.
73 * record-btrace.c (record_btrace_call_history_range): Add 'self'
75 (record_btrace_call_history_from): Update.
77 2014-02-19 Tom Tromey <tromey@redhat.com>
79 * target.h (struct target_ops) <to_call_history_from>: Add
81 * target.c (target_call_history_from): Add argument.
82 * record-btrace.c (record_btrace_call_history_from): Add 'self'
85 2014-02-19 Tom Tromey <tromey@redhat.com>
87 * target.h (struct target_ops) <to_call_history>: Add argument.
88 * target.c (target_call_history): Add argument.
89 * record-btrace.c (record_btrace_call_history): Add 'self'
92 2014-02-19 Tom Tromey <tromey@redhat.com>
94 * target.h (struct target_ops) <to_insn_history_range>: Add
96 * target.c (target_insn_history_range): Add argument.
97 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
99 (record_btrace_insn_history_from): Update.
101 2014-02-19 Tom Tromey <tromey@redhat.com>
103 * target.h (struct target_ops) <to_insn_history_from>: Add
105 * target.c (target_insn_history_from): Add argument.
106 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
109 2014-02-19 Tom Tromey <tromey@redhat.com>
111 * target.h (struct target_ops) <to_insn_history>: Add argument.
112 * target.c (target_insn_history): Add argument.
113 * record-btrace.c (record_btrace_insn_history): Add 'self'
116 2014-02-19 Tom Tromey <tromey@redhat.com>
118 * target.h (struct target_ops) <to_goto_record>: Add argument.
119 * target.c (target_goto_record): Add argument.
120 * record-full.c (record_full_goto): Add 'self' argument.
121 * record-btrace.c (record_btrace_goto): Add 'self' argument.
123 2014-02-19 Tom Tromey <tromey@redhat.com>
125 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
126 * target.c (target_goto_record_end): Add argument.
127 * record-full.c (record_full_goto_end): Add 'self' argument.
128 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
130 2014-02-19 Tom Tromey <tromey@redhat.com>
132 * target.h (struct target_ops) <to_goto_record_begin>: Add
134 * target.c (target_goto_record_begin): Add argument.
135 * record-full.c (record_full_goto_begin): Add 'self' argument.
136 * record-btrace.c (record_btrace_goto_begin): Add 'self'
139 2014-02-19 Tom Tromey <tromey@redhat.com>
141 * target.h (struct target_ops) <to_record_is_replaying>: Add
143 * target.c (target_record_is_replaying): Add argument.
144 * record-full.c (record_full_is_replaying): Add 'self' argument.
145 * record-btrace.c (record_btrace_is_replaying): Add 'self'
147 (record_btrace_xfer_partial, record_btrace_store_registers)
148 (record_btrace_prepare_to_store, record_btrace_resume)
149 (record_btrace_wait, record_btrace_decr_pc_after_break)
150 (record_btrace_find_new_threads, record_btrace_thread_alive):
153 2014-02-19 Tom Tromey <tromey@redhat.com>
155 * target.h (struct target_ops) <to_delete_record>: Add argument.
156 * target.c (target_delete_record): Add argument.
157 * record-full.c (record_full_delete): Add 'self' argument.
159 2014-02-19 Tom Tromey <tromey@redhat.com>
161 * target.h (struct target_ops) <to_save_record>: Add argument.
162 * target.c (target_save_record): Add argument.
163 * record-full.c (record_full_save): Add 'self' argument.
164 (record_full_save): Add 'self' argument.
166 2014-02-19 Tom Tromey <tromey@redhat.com>
168 * target.h (struct target_ops) <to_info_record>: Add argument.
169 * target.c (target_info_record): Add argument.
170 * record.c (info_record_command): Add argument.
171 * record-full.c (record_full_info): Add 'self' argument.
172 * record-btrace.c (record_btrace_info): Add 'self' argument.
174 2014-02-19 Tom Tromey <tromey@redhat.com>
176 * target.h (struct target_ops) <to_stop_recording>: Add argument.
177 * target.c (target_stop_recording): Add argument.
178 * record.c (record_stop): Add argument.
179 * record-btrace.c (record_btrace_stop_recording): Add 'self'
182 2014-02-19 Tom Tromey <tromey@redhat.com>
184 * target.h (struct target_ops) <to_read_btrace>: Add argument.
185 * target.c (struct target_ops) <to_read_btrace>: Add argument.
186 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
188 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
189 (_initialize_amd64_linux_nat): Use it.
190 * i386-linux-nat.c (i386_linux_read_btrace): New function.
191 (_initialize_i386_linux_nat): Use it.
193 2014-02-19 Tom Tromey <tromey@redhat.com>
195 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
196 * target.c (target_teardown_btrace): Add argument.
197 * remote.c (remote_teardown_btrace): Add 'self' argument.
198 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
200 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
203 2014-02-19 Tom Tromey <tromey@redhat.com>
205 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
206 * target.c (target_disable_btrace): Add argument.
207 * remote.c (remote_disable_btrace): Add 'self' argument.
208 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
210 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
213 2014-02-19 Tom Tromey <tromey@redhat.com>
215 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
216 * target.c (target_enable_btrace): Add argument.
217 * remote.c (remote_enable_btrace): Add 'self' argument.
218 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
220 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
223 2014-02-19 Tom Tromey <tromey@redhat.com>
225 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
226 (target_can_use_agent): Add argument.
227 * target.c (update_current_target): Update.
228 * remote.c (remote_can_use_agent): Add 'self' argument.
229 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
231 2014-02-19 Tom Tromey <tromey@redhat.com>
233 * target.h (struct target_ops) <to_use_agent>: Add argument.
234 (target_use_agent): Add argument.
235 * target.c (update_current_target): Update.
236 * remote.c (remote_use_agent): Add 'self' argument.
237 * inf-child.c (inf_child_use_agent): Add 'self' argument.
239 2014-02-19 Tom Tromey <tromey@redhat.com>
241 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
242 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
243 (target_traceframe_info): Add argument.
244 * target.c (update_current_target): Update.
245 * remote.c (remote_traceframe_info): Add 'self' argument.
246 * ctf.c (ctf_traceframe_info): Add 'self' argument.
248 2014-02-19 Tom Tromey <tromey@redhat.com>
250 * target.h (target_static_tracepoint_markers_by_strid): Add
252 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
254 * target.c (update_current_target): Update.
255 * remote.c (struct target_ops)
256 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
257 * linux-nat.c (struct target_ops)
258 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
260 2014-02-19 Tom Tromey <tromey@redhat.com>
262 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
264 (target_static_tracepoint_marker_at): Add argument.
265 * target.c (update_current_target): Update.
266 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
269 2014-02-19 Tom Tromey <tromey@redhat.com>
271 * target.h (struct target_ops) <to_set_permissions>: Add argument.
272 (target_set_permissions): Add argument.
273 * target.c (update_current_target): Update.
274 * remote.c (remote_set_permissions): Add 'self' argument.
275 (remote_start_remote): Update.
277 2014-02-19 Tom Tromey <tromey@redhat.com>
279 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
280 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
281 (target_get_tib_address): Add argument.
282 * target.c (update_current_target): Update.
283 * remote.c (remote_get_tib_address): Add 'self' argument.
285 2014-02-19 Tom Tromey <tromey@redhat.com>
287 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
288 (target_set_trace_notes): Add argument.
289 * target.c (update_current_target): Update.
290 * remote.c (remote_set_trace_notes): Add 'self' argument.
292 2014-02-19 Tom Tromey <tromey@redhat.com>
294 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
296 (target_set_trace_buffer_size): Add argument.
297 * target.c (update_current_target): Update.
298 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
300 2014-02-19 Tom Tromey <tromey@redhat.com>
302 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
304 (target_set_circular_trace_buffer): Add argument.
305 * target.c (update_current_target): Update.
306 * remote.c (remote_set_circular_trace_buffer): Add 'self'
309 2014-02-19 Tom Tromey <tromey@redhat.com>
311 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
313 (target_set_disconnected_tracing): Add argument.
314 * target.c (update_current_target): Update.
315 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
317 2014-02-19 Tom Tromey <tromey@redhat.com>
319 * target.h (struct target_ops)
320 <to_get_min_fast_tracepoint_insn_len>: Add argument.
321 (target_get_min_fast_tracepoint_insn_len): Add argument.
322 * target.c (update_current_target): Update.
323 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
326 2014-02-19 Tom Tromey <tromey@redhat.com>
328 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
330 (target_get_raw_trace_data): Add argument.
331 * target.c (update_current_target): Update.
332 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
334 2014-02-19 Tom Tromey <tromey@redhat.com>
336 * target.h (struct target_ops) <to_upload_trace_state_variables>:
338 (target_upload_trace_state_variables): Add argument.
339 * target.c (update_current_target): Update.
340 * remote.c (remote_upload_trace_state_variables): Add 'self'
342 (remote_start_remote): Update.
344 2014-02-19 Tom Tromey <tromey@redhat.com>
346 * target.h (struct target_ops) <to_upload_tracepoints>: Add
348 (target_upload_tracepoints): Add argument.
349 * target.c (update_current_target): Update.
350 * remote.c (remote_upload_tracepoints): Add 'self' argument.
351 (remote_start_remote): Update.
353 2014-02-19 Tom Tromey <tromey@redhat.com>
355 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
356 (target_save_trace_data): Add argument.
357 * target.c (update_current_target): Update.
358 * remote.c (remote_save_trace_data): Add 'self' argument.
360 2014-02-19 Tom Tromey <tromey@redhat.com>
362 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
364 * target.h (struct target_ops)
365 <to_get_trace_state_variable_value>: Add argument.
366 (target_get_trace_state_variable_value): Add argument.
367 * target.c (update_current_target): Update.
368 * remote.c (remote_get_trace_state_variable_value): Add 'self'
370 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
372 2014-02-19 Tom Tromey <tromey@redhat.com>
374 * tracepoint.c (tfile_trace_find): Add 'self' argument.
375 * target.h (struct target_ops) <to_trace_find>: Add argument.
376 (target_trace_find): Add argument.
377 * target.c (update_current_target): Update.
378 * remote.c (remote_trace_find): Add 'self' argument.
379 * ctf.c (ctf_trace_find): Add 'self' argument.
381 2014-02-19 Tom Tromey <tromey@redhat.com>
383 * target.h (struct target_ops) <to_trace_stop>: Add argument.
384 (target_trace_stop): Add argument.
385 * target.c (update_current_target): Update.
386 * remote.c (remote_trace_stop): Add 'self' argument.
388 2014-02-19 Tom Tromey <tromey@redhat.com>
390 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
391 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
393 (target_get_tracepoint_status): Add argument.
394 * target.c (update_current_target): Update.
395 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
397 2014-02-19 Tom Tromey <tromey@redhat.com>
399 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
400 * target.h (struct target_ops) <to_get_trace_status>: Add
402 (target_get_trace_status): Add argument.
403 * target.c (update_current_target): Update.
404 * remote.c (remote_get_trace_status): Add 'self' argument.
405 (remote_start_remote, remote_can_download_tracepoint): Update.
406 * ctf.c (ctf_get_trace_status): Add 'self' argument.
408 2014-02-19 Tom Tromey <tromey@redhat.com>
410 * target.h (struct target_ops) <to_trace_start>: Add argument.
411 (target_trace_start): Add argument.
412 * target.c (update_current_target): Update.
413 * remote.c (remote_trace_start): Add 'self' argument.
415 2014-02-19 Tom Tromey <tromey@redhat.com>
417 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
419 (target_trace_set_readonly_regions): Add argument.
420 * target.c (update_current_target): Update.
421 * remote.c (remote_trace_set_readonly_regions): Add 'self'
424 2014-02-19 Tom Tromey <tromey@redhat.com>
426 * target.h (struct target_ops) <to_disable_tracepoint>: Add
428 (target_disable_tracepoint): Add argument.
429 * target.c (update_current_target): Update.
430 * remote.c (remote_disable_tracepoint): Add 'self' argument.
432 2014-02-19 Tom Tromey <tromey@redhat.com>
434 * target.h (struct target_ops) <to_enable_tracepoint>: Add
436 (target_enable_tracepoint): Add argument.
437 * target.c (update_current_target): Update.
438 * remote.c (remote_enable_tracepoint): Add 'self' argument.
440 2014-02-19 Tom Tromey <tromey@redhat.com>
442 * target.h (struct target_ops) <to_download_trace_state_variable>:
444 (target_download_trace_state_variable): Add argument.
445 * target.c (update_current_target): Update.
446 * remote.c (remote_download_trace_state_variable): Add 'self'
449 2014-02-19 Tom Tromey <tromey@redhat.com>
451 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
453 (target_can_download_tracepoint): Add argument.
454 * target.c (update_current_target): Update.
455 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
457 2014-02-19 Tom Tromey <tromey@redhat.com>
459 * target.h (struct target_ops) <to_download_tracepoint>: Add
461 (target_download_tracepoint): Add argument.
462 * target.c (update_current_target): Update.
463 * remote.c (remote_download_tracepoint): Add 'self' argument.
465 2014-02-19 Tom Tromey <tromey@redhat.com>
467 * target.h (struct target_ops) <to_trace_init>: Add argument.
468 (target_trace_init): Add argument.
469 * target.c (update_current_target): Update.
470 * remote.c (remote_trace_init): Add 'self' argument.
472 2014-02-19 Tom Tromey <tromey@redhat.com>
474 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
475 * target.c (target_fileio_readlink): Add argument.
476 * remote.c (remote_hostio_readlink): Add 'self' argument.
477 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
479 2014-02-19 Tom Tromey <tromey@redhat.com>
481 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
482 * target.c (target_fileio_unlink): Add argument.
483 * remote.c (remote_hostio_unlink): Add 'self' argument.
484 (remote_file_delete): Update.
485 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
487 2014-02-19 Tom Tromey <tromey@redhat.com>
489 * target.h (struct target_ops) <to_fileio_close>: Add argument.
490 * target.c (target_fileio_close): Add argument.
491 * remote.c (remote_hostio_close): Add 'self' argument.
492 (remote_hostio_close_cleanup): Update.
493 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
495 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
497 2014-02-19 Tom Tromey <tromey@redhat.com>
499 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
500 * target.c (target_fileio_pread): Add argument.
501 * remote.c (remote_hostio_pread): Add 'self' argument.
502 (remote_bfd_iovec_pread, remote_file_get): Update.
503 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
505 2014-02-19 Tom Tromey <tromey@redhat.com>
507 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
508 * target.c (target_fileio_pwrite): Add argument.
509 * remote.c (remote_hostio_pwrite): Add 'self' argument.
510 (remote_file_put): Update.
511 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
513 2014-02-19 Tom Tromey <tromey@redhat.com>
515 * target.h (struct target_ops) <to_fileio_open>: Add argument.
516 * target.c (target_fileio_open): Add argument.
517 * remote.c (remote_hostio_open): Add 'self' argument.
518 (remote_bfd_iovec_open): Add 'self' argument.
519 (remote_file_put): Add 'self' argument.
520 (remote_file_get): Add 'self' argument.
521 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
523 2014-02-19 Tom Tromey <tromey@redhat.com>
525 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
527 (target_can_run_breakpoint_commands): Add argument.
528 * target.c (update_current_target): Update.
529 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
531 (remote_insert_breakpoint): Add 'self' argument.
532 (remote_insert_hw_breakpoint): Add 'self' argument.
533 (remote_can_run_breakpoint_commands): Add 'self' argument.
535 2014-02-19 Tom Tromey <tromey@redhat.com>
537 * target.h (struct target_ops)
538 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
539 (target_supports_evaluation_of_breakpoint_conditions): Add
541 * target.c (update_current_target): Update.
542 * remote.c (remote_supports_cond_breakpoints): Add 'self'
544 (remote_insert_breakpoint): Add 'self' argument.
545 (remote_insert_hw_breakpoint): Add 'self' argument.
546 (remote_supports_cond_breakpoints): Add 'self' argument.
548 2014-02-19 Tom Tromey <tromey@redhat.com>
550 * target.h (struct target_ops) <to_supports_string_tracing>: Add
552 (target_supports_string_tracing): Add argument.
553 * target.c (update_current_target): Update.
554 * remote.c (remote_supports_string_tracing): Add 'self' argument.
556 2014-02-19 Tom Tromey <tromey@redhat.com>
558 * target.h (struct target_ops)
559 <to_supports_disable_randomization>: Add argument.
560 * target.c (find_default_supports_disable_randomization): Add
562 (target_supports_disable_randomization): Add argument.
563 (find_default_supports_disable_randomization): Add 'self'
565 * remote.c (extended_remote_supports_disable_randomization): Add
567 (remote_supports_disable_randomization): Add 'self' argument.
568 (extended_remote_create_inferior): Update.
569 * linux-nat.c (linux_nat_supports_disable_randomization): Add
572 2014-02-19 Tom Tromey <tromey@redhat.com>
574 * target.h (struct target_ops)
575 <to_supports_enable_disable_tracepoint>: Add argument.
576 (target_supports_enable_disable_tracepoint): Add argument.
577 * target.c (update_current_target): Update.
578 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
581 2014-02-19 Tom Tromey <tromey@redhat.com>
583 * target.h (struct target_ops) <to_supports_multi_process>: Add
585 (target_supports_multi_process): Add argument.
586 * target.c (update_current_target): Update.
587 * remote.c (remote_supports_multi_process): Add 'self' argument.
588 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
590 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
593 2014-02-19 Tom Tromey <tromey@redhat.com>
595 * target.h (struct target_ops) <to_execution_direction>: Add
597 (target_execution_direction): Add argument.
598 * target.c (default_execution_direction): Add 'self' argument.
599 * record-full.c (record_full_execution_direction): Add 'self'
602 2014-02-19 Tom Tromey <tromey@redhat.com>
604 * target.h (struct target_ops) <to_can_execute_reverse>: Add
606 (target_can_execute_reverse): Add argument.
607 * remote.c (remote_can_execute_reverse): Add 'self' argument.
608 * record-full.c (record_full_can_execute_reverse): Add 'self'
610 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
613 2014-02-19 Tom Tromey <tromey@redhat.com>
615 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
616 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
618 (target_get_ada_task_ptid): Add argument.
619 * target.c (update_current_target): Update.
620 (default_get_ada_task_ptid): Add 'self' argument.
621 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
622 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
623 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
625 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
627 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
629 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
631 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
632 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
635 2014-02-19 Tom Tromey <tromey@redhat.com>
637 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
638 (target_goto_bookmark): Add argument.
639 * target.c (dummy_goto_bookmark): Add 'self' argument.
640 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
642 2014-02-19 Tom Tromey <tromey@redhat.com>
644 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
645 (target_get_bookmark): Add argument.
646 * target.c (dummy_get_bookmark): Add 'self' argument.
647 * record-full.c (record_full_get_bookmark): Add 'self' argument.
649 2014-02-19 Tom Tromey <tromey@redhat.com>
651 * target.h (struct target_ops) <to_make_corefile_notes>: Add
653 (target_make_corefile_notes): Add argument.
654 * target.c (dummy_make_corefile_notes): Add 'self' argument.
655 * procfs.c (procfs_make_note_section): Add 'self' argument.
656 (procfs_make_note_section): Add 'self' argument.
657 (procfs_make_note_section): Add 'self' argument.
658 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
660 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
661 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
662 * exec.c (exec_make_note_section): Add 'self' argument.
663 (exec_make_note_section): Add 'self' argument.
665 2014-02-19 Tom Tromey <tromey@redhat.com>
667 * target.h (struct target_ops) <to_find_memory_regions>: Add
669 (target_find_memory_regions): Add argument.
670 * target.c (dummy_find_memory_regions): Add 'self' argument.
671 * procfs.c (proc_find_memory_regions): Add 'self' argument.
672 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
673 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
674 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
675 * exec. (exec_do_find_memory_regions): New global.
676 (exec_set_find_memory_regions): Rewrite.
677 (exec_find_memory_regions): New function.
678 (init_exec_ops): Use exec_find_memory_regions.
680 2014-02-19 Tom Tromey <tromey@redhat.com>
682 * target.h (struct target_ops) <to_supports_non_stop>: Add
684 * target.c (find_default_supports_non_stop): Add argument.
685 (target_supports_non_stop): Add argument.
686 (find_default_supports_non_stop): Add 'self' argument.
687 * remote.c (remote_supports_non_stop): Add 'self' argument.
688 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
690 2014-02-19 Tom Tromey <tromey@redhat.com>
692 * target.h (struct target_ops) <to_log_command>: Add argument.
693 (target_log_command): Add argument.
694 * serial.h (serial_log_command): Add 'self' argument.
695 * serial.c (serial_log_command): Add 'self' argument.
697 2014-02-19 Tom Tromey <tromey@redhat.com>
699 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
700 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
702 (target_pid_to_exec_file): Add argument.
703 * target.c (debug_to_pid_to_exec_file): Add argument.
704 (update_current_target): Update.
705 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
706 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
707 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
708 (linux_handle_extended_wait): Update.
709 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
710 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
711 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
712 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
714 2014-02-19 Tom Tromey <tromey@redhat.com>
716 * target.h (struct target_ops) <to_rcmd>: Add argument.
717 (target_rcmd): Add argument.
718 * target.c (debug_to_rcmd): Add argument.
719 (update_current_target, do_monitor_command): Update.
720 * remote.c (remote_rcmd): Add 'self' argument.
721 * monitor.c (monitor_rcmd): Add 'self' argument.
723 2014-02-19 Tom Tromey <tromey@redhat.com>
725 * windows-nat.c (windows_stop): Add 'self' argument.
726 * target.h (struct target_ops) <to_stop>: Add argument.
727 * target.c (target_stop): Add argument.
728 (debug_to_stop): Add argument.
729 (update_current_target): Update.
730 * remote.c (remote_stop): Add 'self' argument.
731 * remote-sim.c (gdbsim_stop): Add 'self' argument.
732 (gdbsim_cntrl_c): Update.
733 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
734 * procfs.c (procfs_stop): Add 'self' argument.
735 * nto-procfs.c (procfs_stop): Add 'self' argument.
736 * monitor.c (monitor_stop): Add 'self' argument.
737 (monitor_open): Update.
738 * linux-nat.c (linux_nat_stop): Add argument.
739 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
740 * gnu-nat.c (gnu_stop): Add 'self' argument.
741 * darwin-nat.c (darwin_stop): Add 'self' argument.
743 2014-02-19 Tom Tromey <tromey@redhat.com>
745 * target.h (struct target_ops) <to_thread_name>: Add argument.
746 * target.c (target_thread_name): Add argument.
747 (update_current_target): Update.
748 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
750 2014-02-19 Tom Tromey <tromey@redhat.com>
752 * target.h (struct target_ops) <to_extra_thread_info>: Add
754 (target_extra_thread_info): Add argument.
755 * target.c (update_current_target): Update.
756 * remote.c (remote_threads_extra_info): Add 'self' argument.
757 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
759 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
760 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
761 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
763 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
765 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
767 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
770 2014-02-19 Tom Tromey <tromey@redhat.com>
772 * target.h (struct target_ops) <to_program_signals>: Add argument.
773 * target.c (target_program_signals): Add argument.
774 * remote.c (remote_program_signals): Add 'self' argument.
776 2014-02-19 Tom Tromey <tromey@redhat.com>
778 * target.h (struct target_ops) <to_pass_signals>: Add argument.
779 * target.c (target_pass_signals): Add argument.
780 * remote.c (remote_pass_signals): Add 'self' argument.
781 (remote_start_remote): Update.
782 * procfs.c (procfs_pass_signals): Add 'self' argument.
783 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
784 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
785 (linux_nat_create_inferior, linux_nat_attach): Update.
787 2014-02-19 Tom Tromey <tromey@redhat.com>
789 * windows-nat.c (windows_can_run): Add 'self' argument.
790 * target.h (struct target_ops) <to_can_run>: Add argument.
791 (target_can_run): Add argument.
792 * target.c (debug_to_can_run): Add argument.
793 (update_current_target): Update.
794 * nto-procfs.c (procfs_can_run): Add 'self' argument.
795 * inf-child.c (inf_child_can_run): Add 'self' argument.
796 * go32-nat.c (go32_can_run): Add 'self' argument.
798 2014-02-19 Tom Tromey <tromey@redhat.com>
800 * target.h (struct target_ops) <to_has_exited>: Add argument.
801 (target_has_exited): Add argument.
802 * target.c (debug_to_has_exited): Add argument.
803 (update_current_target): Update.
805 2014-02-19 Tom Tromey <tromey@redhat.com>
807 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
809 (target_set_syscall_catchpoint): Add argument.
810 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
812 * target.c (update_current_target): Update.
814 2014-02-19 Tom Tromey <tromey@redhat.com>
816 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
818 (target_remove_exec_catchpoint): Add argument.
819 * target.c (debug_to_remove_exec_catchpoint): Add argument.
820 (update_current_target): Update.
821 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
824 2014-02-19 Tom Tromey <tromey@redhat.com>
826 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
828 (target_insert_exec_catchpoint): Add argument.
829 * target.c (debug_to_insert_exec_catchpoint): Add argument.
830 (update_current_target): Update.
831 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
834 2014-02-19 Tom Tromey <tromey@redhat.com>
836 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
838 (target_remove_vfork_catchpoint): Add argument.
839 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
840 (update_current_target): Update.
841 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
844 2014-02-19 Tom Tromey <tromey@redhat.com>
846 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
848 (target_insert_vfork_catchpoint): Add argument.
849 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
850 (update_current_target): Update.
851 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
854 2014-02-19 Tom Tromey <tromey@redhat.com>
856 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
858 (target_remove_fork_catchpoint): Add argument.
859 * target.c (debug_to_remove_fork_catchpoint): Add argument.
860 (update_current_target): Update.
861 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
864 2014-02-19 Tom Tromey <tromey@redhat.com>
866 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
868 (target_insert_fork_catchpoint): Add argument.
869 * target.c (debug_to_insert_fork_catchpoint): Add argument.
870 (update_current_target): Update.
871 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
874 2014-02-19 Tom Tromey <tromey@redhat.com>
876 * target.h (struct target_ops) <to_post_startup_inferior>: Add
878 (target_post_startup_inferior): Add argument.
879 * target.c (debug_to_post_startup_inferior): Add argument.
880 (update_current_target): Update.
881 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
883 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
885 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
887 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
889 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
891 (super_post_startup_inferior): Likewise.
892 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
894 (super_post_startup_inferior): Likewise.
895 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
897 (super_post_startup_inferior): Likewise.
899 2014-02-19 Tom Tromey <tromey@redhat.com>
901 * target.h (struct target_ops) <to_load>: Add argument.
902 * target.c (target_load): Add argument.
903 (debug_to_load): Add argument.
904 (update_current_target): Update.
905 * remote.c (remote_load): Add 'self' argument.
906 * remote-sim.c (gdbsim_load): Add 'self' argument.
907 * remote-mips.c (mips_load): Add 'self' argument.
908 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
909 * monitor.c (monitor_load): Add 'self' argument.
910 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
912 2014-02-19 Tom Tromey <tromey@redhat.com>
914 * target.h (struct target_ops) <to_terminal_info>: Add argument.
915 (target_terminal_info): Add argument.
916 * target.c (debug_to_terminal_info): Add argument.
917 (default_terminal_info): Likewise.
918 * inflow.c (child_terminal_info): Add 'self' argument.
919 * inferior.h (child_terminal_info): Add 'self' argument.
920 * go32-nat.c (go32_terminal_info): Add 'self' argument.
922 2014-02-19 Tom Tromey <tromey@redhat.com>
924 * target.h (struct target_ops) <to_terminal_save_ours>: Add
926 (target_terminal_save_ours): Add argument.
927 * target.c (debug_to_terminal_save_ours): Add argument.
928 (update_current_target): Update.
929 * inflow.c (terminal_save_ours): Add 'self' argument.
930 * inferior.h (terminal_save_ours): Add 'self' argument.
932 2014-02-19 Tom Tromey <tromey@redhat.com>
934 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
935 (target_terminal_ours): Add argument.
936 * target.c (debug_to_terminal_ours): Add argument.
937 (update_current_target): Update.
938 * remote.c (remote_terminal_ours): Add 'self' argument.
939 (remote_close): Update.
940 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
941 * inflow.c (terminal_ours): Add 'self' argument.
942 * inferior.h (terminal_ours): Add 'self' argument.
943 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
945 2014-02-19 Pedro Alves <palves@redhat.com>
946 Tom Tromey <tromey@redhat.com>
948 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
950 (target_terminal_ours_for_output): Add argument.
951 * target.c (debug_to_terminal_ours_for_output): Add argument.
952 (update_current_target): Update.
953 * inflow.c (terminal_ours_for_output): Add 'self' argument.
954 * inferior.h (terminal_ours_for_output): Add 'self' argument.
955 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
957 2014-02-19 Tom Tromey <tromey@redhat.com>
959 * target.h (struct target_ops) <to_terminal_inferior>: Add
961 * target.c (target_terminal_inferior): Add argument.
962 (update_current_target): Update.
963 * remote.c (remote_terminal_inferior): Add 'self' argument.
964 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
965 * inflow.c (terminal_inferior): Add 'self' argument.
966 * inferior.h (terminal_inferior): Add 'self' argument.
967 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
968 (go32_terminal_inferior): Add 'self' argument.
970 2014-02-19 Tom Tromey <tromey@redhat.com>
972 * target.h (struct target_ops) <to_terminal_init>: Add argument.
973 (target_terminal_init): Add argument.
974 * target.c (debug_to_terminal_init): Add argument.
975 (update_current_target): Update.
976 * inflow.c (terminal_init_inferior): Add 'self' argument.
977 * inferior.h (terminal_init_inferior): Add 'self' argument.
978 * go32-nat.c (go32_terminal_init): Add 'self' argument.
979 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
981 2014-02-19 Tom Tromey <tromey@redhat.com>
983 * target.h (struct target_ops)
984 <to_can_accel_watchpoint_condition>: Add argument.
985 (target_can_accel_watchpoint_condition): Add argument.
986 * target.c (debug_to_can_accel_watchpoint_condition): Add
988 (update_current_target): Update.
989 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
992 2014-02-19 Tom Tromey <tromey@redhat.com>
994 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
996 (target_region_ok_for_hw_watchpoint): Add argument.
997 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
998 (default_region_ok_for_hw_watchpoint): Add argument.
999 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1000 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1002 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1004 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1006 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1008 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1010 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1012 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1013 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1015 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1016 Add 'self' argument.
1018 2014-02-19 Tom Tromey <tromey@redhat.com>
1020 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1022 (target_insert_watchpoint): Add argument.
1023 * target.c (debug_to_insert_watchpoint): Add argument.
1024 (update_current_target): Update.
1025 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1026 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1027 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1028 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1029 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1030 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1032 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1033 (procfs_insert_hw_watchpoint): Add 'self' argument.
1034 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1036 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1038 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1040 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1041 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1043 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1046 2014-02-19 Tom Tromey <tromey@redhat.com>
1048 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1050 (target_remove_watchpoint): Add argument.
1051 * target.c (debug_to_remove_watchpoint): Add argument.
1052 (update_current_target): Update.
1053 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1054 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1055 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1056 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1057 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1058 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1060 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1061 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1063 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1065 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1067 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1068 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1070 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1073 2014-02-19 Tom Tromey <tromey@redhat.com>
1075 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1077 (target_remove_hw_breakpoint): Add argument.
1078 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1079 (update_current_target): Update.
1080 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1081 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1083 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1084 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1086 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1089 2014-02-19 Tom Tromey <tromey@redhat.com>
1091 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1093 (target_insert_hw_breakpoint): Add argument.
1094 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1095 (update_current_target): Update.
1096 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1097 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1099 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1100 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1101 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1103 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1106 2014-02-19 Tom Tromey <tromey@redhat.com>
1108 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1110 (target_can_use_hardware_watchpoint): Add argument.
1111 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1112 (update_current_target): Update.
1113 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1115 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1117 * remote.c (remote_check_watch_resources): Add 'self' argument.
1118 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1119 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1121 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1122 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1124 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1126 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1128 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1130 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1132 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1134 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1135 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1137 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1140 2014-02-19 Tom Tromey <tromey@redhat.com>
1142 * target.h (struct target_ops) <to_post_attach>: Add argument.
1143 (target_post_attach): Add argument.
1144 * target.c (debug_to_post_attach): Add argument.
1145 (update_current_target): Update.
1146 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1147 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1148 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1149 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1150 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1152 2014-02-19 Tom Tromey <tromey@redhat.com>
1154 * windows-nat.c (windows_close): Add 'self' argument.
1155 * tracepoint.c (tfile_close): Add 'self' argument.
1156 * target.h (struct target_ops) <to_close>: Add argument.
1157 * target.c (target_close): Add argument.
1158 (update_current_target): Update.
1159 * remote.c (remote_close): Add 'self' argument.
1160 * remote-sim.c (gdbsim_close): Add 'self' argument.
1161 * remote-mips.c (mips_close): Add 'self' argument.
1162 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1163 * record-full.c (record_full_close): Add 'self' argument.
1164 * record-btrace.c (record_btrace_close): Add 'self' argument.
1165 * monitor.h (monitor_close): Add 'self' argument.
1166 * monitor.c (monitor_close): Add 'self' argument.
1167 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1168 * linux-nat.c (linux_nat_close): Add argument.
1169 * go32-nat.c (go32_close): Add 'self' argument.
1170 * exec.c (exec_close_1): Add 'self' argument.
1171 * ctf.c (ctf_close): Add 'self' argument.
1172 * corelow.c (core_close): Add 'self' argument.
1173 (core_close_cleanup): Update.
1174 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1175 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1177 2014-02-19 Tom Tromey <tromey@redhat.com>
1179 * remote.c (remote_load): New function.
1180 (init_remote_ops): Use it.
1182 2014-02-19 Tom Tromey <tromey@redhat.com>
1184 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1186 * common/linux-btrace.h (linux_supports_btrace): Update.
1187 * remote.c (remote_supports_btrace): Add "self" argument.
1188 * target-delegates.c: Rebuild.
1189 * target.c (target_supports_btrace): Remove.
1190 * target.h (struct target_ops) <to_supports_btrace>: Add
1191 target_ops argument.
1192 (target_supports_btrace): New define.
1194 2014-02-19 Tom Tromey <tromey@redhat.com>
1196 * record-full.c (record_full_beneath_to_resume_ops)
1197 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1198 (record_full_beneath_to_wait)
1199 (record_full_beneath_to_store_registers_ops)
1200 (record_full_beneath_to_store_registers)
1201 (record_full_beneath_to_xfer_partial_ops)
1202 (record_full_beneath_to_xfer_partial)
1203 (record_full_beneath_to_insert_breakpoint_ops)
1204 (record_full_beneath_to_insert_breakpoint)
1205 (record_full_beneath_to_remove_breakpoint_ops)
1206 (record_full_beneath_to_remove_breakpoint)
1207 (record_full_beneath_to_stopped_by_watchpoint)
1208 (record_full_beneath_to_stopped_data_address)
1209 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1210 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1211 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1212 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1213 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1214 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1215 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1216 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1217 (record_full_resume, record_full_wait_1)
1218 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1219 (record_full_store_registers, record_full_xfer_partial)
1220 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1221 (record_full_async, record_full_core_xfer_partial): Use target
1223 * target-delegates.c: Rebuild.
1224 * target.c (current_xfer_partial): Remove.
1225 (update_current_target): Do not INHERIT or de_fault
1226 to_insert_breakpoint, to_remove_breakpoint,
1227 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1228 to_is_async_p, to_async. Do not set to_xfer_partial field.
1229 (default_xfer_partial): Simplify.
1230 (current_xfer_partial): Remove.
1231 (target_wait, target_resume): Simplify.
1232 (find_default_can_async_p, find_default_is_async_p): Update.
1233 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1234 to_xfer_partial, to_stopped_by_watchpoint,
1235 to_stopped_data_address.
1236 (target_store_registers): Simplify.
1237 (forward_target_remove_breakpoint)
1238 (forward_target_insert_breakpoint): Remove.
1239 (target_remove_breakpoint, target_insert_breakpoint)
1240 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1241 * target.h (struct target_ops) <to_resume, to_wait,
1242 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1243 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1244 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1246 (forward_target_remove_breakpoint)
1247 (forward_target_insert_breakpoint): Remove.
1248 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1250 (record_btrace_insert_breakpoint): Delegate directly.
1252 2014-02-19 Tom Tromey <tromey@redhat.com>
1255 * target-delegates.c: New file.
1256 * target.c: Include target-delegates.c.
1257 (init_dummy_target): Call install_dummy_methods.
1258 (complete_target_initialization): Call install_delegators.
1259 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1260 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1261 * make-target-delegates: New file.
1263 2014-02-19 Tom Tromey <tromey@redhat.com>
1265 * record.c (find_record_target): Use find_target_at.
1266 * target.c (find_target_at): New function.
1267 * target.h (find_target_at): Declare.
1269 2014-02-19 Tom Tromey <tromey@redhat.com>
1271 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1273 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1275 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1276 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1278 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1280 * linux-nat.c (save_sigtrap): Update.
1281 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1282 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1283 (linux_nat_close): Update.
1284 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1286 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1288 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1289 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1290 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1291 (tmp_to_async): Add 'ops' argument.
1292 (record_full_stopped_by_watchpoint, record_full_async)
1293 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1295 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1296 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1297 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1298 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1299 (remote_is_async_p, remote_async): Add 'ops' argument.
1300 (remote_stopped_data_address): Update.
1301 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1302 * target.c (update_current_target)
1303 (find_default_can_async_p, find_default_is_async_p): Update.
1304 (init_dummy_target): Update.
1305 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1306 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1307 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1308 (target_can_async_p, target_is_async_p, target_async)
1309 (target_stopped_by_watchpoint): Update.
1311 2014-02-19 Yao Qi <yao@codesourcery.com>
1314 * gdbarch.sh: Remove startup_gdbarch.
1315 * gdbarch.c: Regenerated.
1316 * gdbarch.h: Likewise.
1318 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1320 * rl78-tdep.c (rl78_g10_register_name): New function.
1321 (rl78_return_value): Add g10 support.
1322 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1325 2014-02-17 Doug Evans <xdje42@gmail.com>
1327 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1328 (SUBDIR_GUILE_SRCS): Ditto.
1329 (scm-gsmob.o): Ditto.
1331 2014-02-17 Yao Qi <yao@codesourcery.com>
1333 * gnu-nat.c (ILL_RPC): Declare defined function.
1335 2014-02-17 Yao Qi <yao@codesourcery.com>
1337 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1338 mach_msg_type_number_t.
1339 (gnu_write_inferior): Likewise.
1341 2014-02-17 Yao Qi <yao@codesourcery.com>
1343 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1345 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1346 (inf_validate_procs, inf_signal): Likewise.
1347 (S_exception_raise_request): Likewise.
1348 (do_mach_notify_dead_name): Likewise.
1349 (steal_exc_port): Likewise.
1350 (gnu_read_inferior): Change 'copy_count''s type to
1351 mach_msg_type_number_t.
1352 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1355 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1357 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1358 flag. Adjust all users; in particular...
1359 (gnu_wait): ..., don't decrement its value in here...
1360 (gnu_create_inferior): ..., and instead set the flag in here,
1361 around the startup_inferior call, and call that one with
1362 START_INFERIOR_TRAPS_EXPECTED.
1364 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1365 (ILL_RPC): ... new macro.
1366 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1367 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1368 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1369 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1370 functions with ILL_RPC macro.
1371 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1372 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1373 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1374 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1375 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1376 (S_proc_getlogin_reply, S_proc_getsid_reply)
1377 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1378 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1379 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1380 (S_proc_getnports_reply, S_proc_is_important_reply)
1381 (S_proc_get_code_reply): New stub functions, generated with
1384 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1385 collected the type check structures.
1387 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1389 2014-02-14 Doug Evans <dje@google.com>
1391 * target.c (target_write_partial): Fix result type.
1393 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1395 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1396 the proper offsets to access fpregset_t.
1398 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1400 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1401 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1402 * h8300-tdep.c (setmachinelist): Remove global.
1403 * hppa-tdep.c (hppa_sigtramp): Remove global.
1404 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1405 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1406 * ravenscar-thread.c (update_target_observer): Remove global.
1407 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1409 2014-02-12 Tom Tromey <tromey@redhat.com>
1411 * common/rsp-low.c: Update comments.
1412 * common/rsp-low.h: Update comments.
1414 2014-02-12 Tom Tromey <tromey@redhat.com>
1416 * common/rsp-low.c (convert_ascii_to_int): Remove.
1417 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1419 2014-02-12 Tom Tromey <tromey@redhat.com>
1421 * common/rsp-low.h (unhexify): Don't declare.
1422 * common/rsp-low.c (unhexify): Remove.
1424 2014-02-12 Tom Tromey <tromey@redhat.com>
1426 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1427 * common/rsp-low.c (convert_int_to_ascii): Remove.
1429 2014-02-12 Tom Tromey <tromey@redhat.com>
1431 * common/rsp-low.h (hexify): Don't declare.
1432 * common/rsp-low.c (hexify): Remove.
1434 2014-02-12 Tom Tromey <tromey@redhat.com>
1436 * common/rsp-low.c (hexify): Never take strlen of argument.
1438 2014-02-12 Tom Tromey <tromey@redhat.com>
1440 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1441 * remote.c (extended_remote_run, remote_rcmd)
1442 (remote_download_trace_state_variable, remote_save_trace_data)
1443 (remote_set_trace_notes): Update.
1444 * tracepoint.c (encode_source_string, tfile_write_status)
1445 (tfile_write_uploaded_tsv): Update.
1447 2014-02-12 Tom Tromey <tromey@redhat.com>
1449 * tracepoint.c: Include rsp-low.h.
1450 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1451 * remote.c: Include rsp-low.h.
1452 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1453 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1454 (remote_unescape_input): Move to common/rsp-low.c.
1455 * common/rsp-low.h: New file.
1456 * common/rsp-low.c: New file.
1457 * Makefile.in (SFILES): Add common/rsp-low.c.
1458 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1459 (COMMON_OBS): Add rsp-low.o.
1460 (rsp-low.o): New target.
1462 2014-02-12 Tom Tromey <tromey@redhat.com>
1464 * utils.h: Include print-utils.h.
1465 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1466 (int_string, core_addr_to_string, core_addr_to_string_nz)
1467 (hex_string, hex_string_custom): Don't declare.
1468 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1469 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1470 (hex_string_custom, int_string, core_addr_to_string)
1471 (core_addr_to_string_nz, host_address_to_string): Move to
1472 common/print-utils.c.
1473 * common/print-utils.h: New file.
1474 * common/print-utils.c: New file
1475 * Makefile.in (SFILES): Add common/print-utils.c.
1476 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1477 (COMMON_OBS): Add print-utils.o.
1478 (print-utils.o): New target.
1480 2014-02-12 Tom Tromey <tromey@redhat.com>
1482 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1484 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1486 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1488 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1490 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1491 if a PT_IO ptrace request returns sucessfully but indicates that 0
1492 bytes were transferred.
1494 2014-02-12 Pedro Alves <palves@redhat.com>
1495 Kevin Buettner <kevinb@redhat.com>
1497 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1498 TYPE_INSTANCE_FLAG_CODE_SPACE.
1500 2014-02-12 Pedro Alves <palves@redhat.com>
1502 * h8300-tdep.c (pseudo_from_raw_register)
1503 (raw_from_pseudo_register): New functions.
1504 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1507 2014-02-12 Pedro Alves <palves@redhat.com>
1509 * h8300-tdep.c (h8300_register_sim_regno): New function.
1510 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1511 gdbarch_register_sim_regno hook.
1513 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1515 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1517 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1519 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1521 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1523 * obsd-tdep.h (obsd_init_abi): New prototype.
1524 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1525 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1526 (obsd_init_abi): New functions.
1527 * i386obsd-tdep.c: Include "obsd-tdep.h".
1528 (i386obsd_init_abi): Call obsd_init_abi.
1529 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1530 (amd64obsd_init_abi): Call obsd_init_abi.
1531 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1532 obsd-tdep.c to gdb_target_obs.
1534 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1536 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1537 double float arguments to 16-byte in the argument slots.
1539 2014-02-11 Doug Evans <xdje42@gmail.com>
1541 * configure.ac: Don't crash if pkg-config is not found and guile
1542 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1544 * configure: Regenerate.
1546 2014-02-11 Yao Qi <yao@codesourcery.com>
1548 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1549 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1550 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1551 * gnu-nat.c (gnu_xfer_memory): Likewise.
1552 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1553 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1554 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1555 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1557 2014-02-11 Yao Qi <yao@codesourcery.com>
1559 * target.h (enum target_xfer_error): Rename to ...
1560 (enum target_xfer_status): ... it. New. All users updated.
1561 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1563 (TARGET_XFER_STATUS_ERROR_P): New macro.
1564 (target_xfer_error_to_string): Remove declaration.
1565 (target_xfer_status_to_string): Declare.
1566 (target_xfer_partial_ftype): Adjust it.
1567 (struct target_ops) <to_xfer_partial>: Return
1568 target_xfer_status. Add argument xfered_len. Update
1570 * target.c (target_xfer_error_to_string): Rename to ...
1571 (target_xfer_status_to_string): ... it. New. All callers
1573 (target_read_live_memory): Likewise. Call target_xfer_partial
1574 instead of target_read.
1575 (memory_xfer_live_readonly_partial): Return
1576 target_xfer_status. Add argument xfered_len.
1577 (raw_memory_xfer_partial): Likewise.
1578 (memory_xfer_partial_1): Likewise.
1579 (memory_xfer_partial): Likewise.
1580 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1581 properly. Update debug message.
1582 (default_xfer_partial, current_xfer_partial): Likewise.
1583 (target_write_partial): Likewise.
1584 (target_read_partial): Likewise. All callers updated.
1585 (read_whatever_is_readable): Likewise.
1586 (target_write_with_progress): Likewise.
1587 (target_read_alloc_1): Likewise.
1589 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1590 * auxv.c (procfs_xfer_auxv): Likewise.
1591 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1592 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1593 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1594 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1595 * corefile.c (read_memory): Adjust.
1596 * corelow.c (core_xfer_partial): Likewise.
1597 * ctf.c (ctf_xfer_partial): Likewise.
1598 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1600 (darwin_xfer_partial): Likewise.
1601 * exec.c (section_table_xfer_memory_partial): Likewise. All
1603 (exec_xfer_partial): Likewise.
1604 * exec.h (section_table_xfer_memory_partial): Update
1606 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1608 (gnu_xfer_partial): Likewise.
1609 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1610 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1611 (ia64_hpux_xfer_solib_got): Likewise.
1612 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1613 type of 'partial_len' to ULONGEST.
1614 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1615 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1616 (linux_nat_xfer_partial): Likewise.
1617 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1618 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1619 * monitor.c (monitor_xfer_memory): Likewise.
1620 (monitor_xfer_partial): Likewise.
1621 * procfs.c (procfs_xfer_partial): Likewise.
1622 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1623 * record-full.c (record_full_xfer_partial): Likewise.
1624 (record_full_core_xfer_partial): Likewise.
1625 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1626 (gdbsim_xfer_partial): Likewise.
1627 * remote.c (remote_write_bytes_aux): Likewise. All callers
1629 (remote_write_bytes, remote_read_bytes): Likewise. All
1631 (remote_flash_erase): Likewise. All callers updated.
1632 (remote_write_qxfer): Likewise. All callers updated.
1633 (remote_read_qxfer): Likewise. All callers updated.
1634 (remote_xfer_partial): Likewise.
1635 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1636 (rs6000_xfer_shared_libraries): Likewise.
1637 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1638 (sol_thread_xfer_partial): Likewise.
1639 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1640 (sparc_xfer_partial): Likewise.
1641 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1643 (spu_xfer_partial): Likewise.
1644 * spu-multiarch.c (spu_xfer_partial): Likewise.
1645 * tracepoint.c (tfile_xfer_partial): Likewise.
1646 * windows-nat.c (windows_xfer_memory): Likewise.
1647 (windows_xfer_shared_libraries): Likewise.
1648 (windows_xfer_partial): Likewise.
1649 * valprint.c: Replace 'target_xfer_error' with
1650 'target_xfer_status' in comments.
1652 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1654 Checked in by Joel Brobecker <brobecker@adacore.com>.
1655 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1657 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1659 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1660 function parameters.
1662 2014-02-10 Will Newton <will.newton@linaro.org>
1664 * elfread.c (elf_rel_plt_read): Look for a .got section if
1665 looking up .got.plt fails.
1666 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1667 on address passed to elf_gnu_ifunc_record_cache.
1668 (elf_gnu_ifunc_resolve_addr): Likewise.
1669 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1671 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1673 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1674 (X_RETTURN): New macro.
1675 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1677 * sparc64-tdep.c (sparc64_init_abi): Hook
1678 sparc_in_function_epilogue_p.
1680 2014-02-10 Gary Benson <gbenson@redhat.com>
1682 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1683 Rename name_matcher to symbol_matcher.
1685 2014-02-10 Gary Benson <gbenson@redhat.com>
1687 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1688 Use expand_symtabs_file_matcher_ftype and
1689 expand_symtabs_symbol_matcher_ftype.
1691 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1693 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1694 (struct ada_symbol_cache): New.
1695 (ada_free_symbol_cache): Forward declare.
1696 (struct ada_pspace_data): New.
1697 (ada_pspace_data_handle): New static global.
1698 (get_ada_pspace_data, ada_pspace_data_cleanup)
1699 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1700 (cache_space, cache): Delete, now folded inside struct
1702 (ada_get_symbol_cache): New function.
1703 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1705 (_initialize_ada_language): Remove initialization of cache_space.
1706 Move call to observer_attach_inferior_exit up, grouping it
1707 with the other observer registrations inside this function.
1708 Rename command to be more general. Add call to
1709 register_program_space_data_with_cleanup.
1711 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1713 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1714 ada_new_objfile_observer.
1715 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1716 (_initialize_tasks): Update uses of ada_new_objfile_observer
1717 and ada_tasks_normal_stop_observer.
1719 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1721 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1722 returned by the 'Length attribute to integer.
1724 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1726 * ada-lang.c (_initialize_ada_language): Initialize
1727 cache_space obstack.
1729 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1731 * ada-lang.c (HASH_SIZE): New macro.
1732 (struct cache_entry): New type.
1733 (cache_space, cache): New static globals.
1734 (ada_clear_symbol_cache, find_entry): New functions.
1735 (lookup_cached_symbol, cache_symbol): Implement.
1736 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1737 (_initialize_ada_language): Attach ada_new_objfile_observer
1738 and ada_free_objfile_observer.
1740 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1742 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1743 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1744 struct block * parameter.
1745 (ada_lookup_symbol_list_worker): Constify local variable "block".
1746 Remove cast which is no longer necessary.
1748 2014-02-10 Doug Evans <xdje42@gmail.com>
1750 Add Guile as an extension language.
1751 * NEWS: Mention Guile scripting.
1752 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1753 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1754 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1755 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1756 (CLIBS): Add GUILE_LIBS.
1757 (install-guile): New rule.
1758 (guile.o): New rule.
1759 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1760 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1761 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1762 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1763 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1764 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1765 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1766 * configure.ac: New option --with-guile.
1767 * configure: Regenerate.
1768 * config.in: Regenerate.
1769 * auto-load.c: Remove #include "python/python.h". Add #include
1770 "gdb/section-scripts.h".
1771 (source_section_scripts): Handle Guile scripts.
1772 (_initialize_auto_load): Add name of Guile objfile script to
1773 scripts-directory help text.
1774 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1775 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1776 (struct breakpoint): New member scm_bp_object.
1777 * defs.h (enum command_control_type): New value guile_control.
1778 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1780 (show_user): Update comment.
1781 (_initialize_cli_cmds): Update help text for "show user". Update help
1782 text for max-user-call-depth.
1783 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1785 (multi_line_command_p): Add guile_control.
1786 (print_command_lines): Handle guile_control.
1787 (execute_control_command, recurse_read_control_structure): Ditto.
1788 (process_next_line): Recognize "guile" commands.
1789 * disasm.c (gdb_disassemble_info): Make non-static.
1790 * disasm.h: #include "dis-asm.h".
1791 (struct gdbarch): Add forward decl.
1792 (gdb_disassemble_info): Declare.
1793 * extension.c: #include "guile/guile.h".
1794 (extension_languages): Add guile.
1795 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1796 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1797 * gdbtypes.c (get_unsigned_type_max): New function.
1798 (get_signed_type_minmax): New function.
1799 * gdbtypes.h (get_unsigned_type_max): Declare.
1800 (get_signed_type_minmax): Declare.
1801 * guile/README: New file.
1802 * guile/guile-internal.h: New file.
1803 * guile/guile.c: New file.
1804 * guile/guile.h: New file.
1805 * guile/scm-arch.c: New file.
1806 * guile/scm-auto-load.c: New file.
1807 * guile/scm-block.c: New file.
1808 * guile/scm-breakpoint.c: New file.
1809 * guile/scm-disasm.c: New file.
1810 * guile/scm-exception.c: New file.
1811 * guile/scm-frame.c: New file.
1812 * guile/scm-gsmob.c: New file.
1813 * guile/scm-iterator.c: New file.
1814 * guile/scm-lazy-string.c: New file.
1815 * guile/scm-math.c: New file.
1816 * guile/scm-objfile.c: New file.
1817 * guile/scm-ports.c: New file.
1818 * guile/scm-pretty-print.c: New file.
1819 * guile/scm-safe-call.c: New file.
1820 * guile/scm-string.c: New file.
1821 * guile/scm-symbol.c: New file.
1822 * guile/scm-symtab.c: New file.
1823 * guile/scm-type.c: New file.
1824 * guile/scm-utils.c: New file.
1825 * guile/scm-value.c: New file.
1826 * guile/lib/gdb.scm: New file.
1827 * guile/lib/gdb/boot.scm: New file.
1828 * guile/lib/gdb/experimental.scm: New file.
1829 * guile/lib/gdb/init.scm: New file.
1830 * guile/lib/gdb/iterator.scm: New file.
1831 * guile/lib/gdb/printing.scm: New file.
1832 * guile/lib/gdb/types.scm: New file.
1833 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1834 (VPATH): Add $(GUILE_SRCDIR).
1835 (GUILE_DIR): New variable.
1836 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1837 (all): Add stamp-guile dependency.
1838 (stamp-guile): New rule.
1839 (clean-guile, install-guile, uninstall-guile): New rules.
1840 (install-only): Add install-guile dependency.
1841 (uninstall): Add uninstall-guile dependency.
1842 (clean): Add clean-guile dependency.
1844 2014-02-09 Doug Evans <xdje42@gmail.com>
1846 Revert this patch (which I approved, mea culpa).
1848 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1850 * Makefile.in (all-lib): Remove.
1851 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1853 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1855 Fix Python stack corruption.
1856 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1859 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1861 * Makefile.in (all-lib): Remove.
1862 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1864 2014-02-07 Doug Evans <dje@google.com>
1866 * extension-priv.h (extension_language_script_ops): Add comment.
1867 (extension_language_ops): Add comment.
1868 (active_ext_lang_state): Fix typo in comment.
1870 2014-02-07 Pedro Alves <palves@redhat.com>
1872 * infrun.c (handle_signal_stop) <signal arrives while stepping
1873 over a breakpoint>: Switch back to the stepping thread.
1875 2014-02-07 Yao Qi <yao@codesourcery.com>
1877 * target.c (target_xfer_partial): Return zero if LEN is zero.
1879 2014-02-07 Yao Qi <yao@codesourcery.com>
1881 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1882 (ld_so_xfer_auxv): Likewise.
1883 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1884 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1885 * corelow.c (core_xfer_partial): Likewise.
1886 * ctf.c (ctf_xfer_partial): Likewise.
1887 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1888 (darwin_xfer_partial): Likewise.
1889 * exec.c (exec_xfer_partial): Likewise.
1890 * gnu-nat.c (gnu_xfer_partial): Likewise.
1891 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1892 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1893 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1894 * linux-nat.c (linux_xfer_siginfo): Likewise.
1895 (linux_proc_xfer_spu): Likewise.
1896 * procfs.c (procfs_xfer_partial): Likewise.
1897 * record-full.c (record_full_xfer_partial): Likewise.
1898 (record_full_core_xfer_partial): Likewise.
1899 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1900 * remote.c (remote_write_qxfer): Likewise.
1901 (remote_write_qxfer, remote_read_qxfer): Likewise.
1902 (remote_xfer_partial): Likewise.
1903 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1904 (rs6000_xfer_shared_libraries): Likewise.
1905 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1906 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1907 (spu_xfer_partial): Likewise.
1908 * target.c (memory_xfer_partial_1): Likewise.
1909 * tracepoint.c (tfile_xfer_partial): Likewise.
1910 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1911 (windows_xfer_partial): Likewise.
1913 2014-02-07 Yao Qi <yao@codesourcery.com>
1915 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1917 (core_xfer_shared_libraries_aix): Likewise.
1918 * gdbarch.c, gdbarch.h: Regenerated.
1919 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1920 ULONGEST. Change 'len_avail' type to ULONGEST.
1921 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1922 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1924 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1926 2014-02-07 Yao Qi <yao@codesourcery.com>
1928 * corefile.c (memory_error): Get 'exception' from ERR and pass
1929 'exception' to throw_error.
1931 2014-02-06 Doug Evans <xdje42@gmail.com>
1933 * configure.ac (libpython checking): Remove all but python.o from
1934 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1935 * configure: Regenerate.
1937 * Makefile.in (SFILES): Add extension.c.
1938 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1939 (COMMON_OBS): Add extension.o.
1940 * extension.h: New file.
1941 * extension-priv.h: New file.
1942 * extension.c: New file.
1944 * python/python-internal.h: #include "extension.h".
1945 (gdbpy_auto_load_enabled): Declare.
1946 (gdbpy_apply_val_pretty_printer): Declare.
1947 (gdbpy_apply_frame_filter): Declare.
1948 (gdbpy_preserve_values): Declare.
1949 (gdbpy_breakpoint_cond_says_stop): Declare.
1950 (gdbpy_breakpoint_has_cond): Declare.
1951 (void source_python_script_for_objfile): Delete.
1952 * python/python.c: #include "extension-priv.h".
1953 Delete inclusion of "observer.h".
1954 (extension_language_python): Moved here and renamed from
1955 script_language_python in py-auto-load.c.
1956 Redefined to be of type extension_language_defn.
1957 (python_extension_script_ops): New global.
1958 (python_extension_ops): New global.
1959 (struct python_env): New member previous_active.
1960 (restore_python_env): Call restore_active_ext_lang.
1961 (ensure_python_env): Call set_active_ext_lang.
1962 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1964 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1966 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1968 (gdbpy_eval_from_control_command): Renamed from
1969 eval_python_from_control_command, made static. New arg extlang.
1970 (gdbpy_source_script) Renamed from source_python_script, made static.
1972 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1973 result to int. New arg extlang.
1974 (gdbpy_source_objfile_script): Renamed from
1975 source_python_script_for_objfile, made static. New arg extlang.
1976 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1977 static. New args extlang, extlang_printers. Change result type to
1979 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1980 static. New arg extlang. Rename arg printers to extlang_printers
1981 and change type to ext_lang_type_printers *.
1982 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1983 static. Replace argument arg with extlang, extlang_printers.
1984 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1985 (!HAVE_PYTHON, source_python_script): Delete.
1986 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1987 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1988 (!HAVE_PYTHON, start_type_printers): Delete.
1989 (!HAVE_PYTHON, apply_type_printers): Delete.
1990 (!HAVE_PYTHON, free_type_printers): Delete.
1991 (_initialize_python): Delete call to observer_attach_before_prompt.
1992 (finalize_python): Set/restore active extension language.
1993 (gdbpy_finish_initialization) Renamed from
1994 finish_python_initialization, made static. New arg extlang.
1995 (gdbpy_initialized): New function.
1996 * python/python.h: #include "extension.h". Delete #include
1997 "value.h", "mi/mi-cmds.h".
1998 (extension_language_python): Declare.
1999 (GDBPY_AUTO_FILE_NAME): Delete.
2000 (enum py_bt_status): Moved to extension.h and renamed to
2002 (enum frame_filter_flags): Moved to extension.h.
2003 (enum py_frame_args): Moved to extension.h and renamed to
2004 ext_lang_frame_args.
2005 (finish_python_initialization): Delete.
2006 (eval_python_from_control_command): Delete.
2007 (source_python_script): Delete.
2008 (apply_val_pretty_printer): Delete.
2009 (apply_frame_filter): Delete.
2010 (preserve_python_values): Delete.
2011 (gdbpy_script_language_defn): Delete.
2012 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2013 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2015 * auto-load.c: #include "extension.h".
2016 (GDB_AUTO_FILE_NAME): Delete.
2017 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2018 (script_language_gdb): Delete, moved to extension.c and renamed to
2019 extension_language_gdb.
2020 (source_gdb_script_for_objfile): Delete.
2021 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2022 (loaded_script): Change type of language member to
2023 struct extension_language_defn *.
2024 (init_loaded_scripts_info): Initialize
2025 unsupported_script_warning_printed.
2026 (maybe_add_script): Make static. Change type of language arg to
2027 struct extension_language_defn *.
2028 (clear_section_scripts): Reset unsupported_script_warning_printed.
2029 (auto_load_objfile_script_1): Rewrite to use extension language API.
2030 (auto_load_objfile_script): Make public. Remove support-compiled-in
2031 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2032 (source_section_scripts): Rewrite to use extension language API.
2033 (load_auto_scripts_for_objfile): Rewrite to use
2034 auto_load_scripts_for_objfile.
2035 (collect_matching_scripts_data): Change type of language member to
2036 struct extension_language_defn *.
2037 (auto_load_info_scripts): Change type of language arg to
2038 struct extension_language_defn *.
2039 (unsupported_script_warning_print): New function.
2040 (script_not_found_warning_print): Make static.
2041 (_initialize_auto_load): Rewrite construction of scripts-directory
2043 * auto-load.h (struct objfile): Add forward decl.
2044 (struct script_language): Delete.
2045 (struct auto_load_pspace_info): Add forward decl.
2046 (struct extension_language_defn): Add forward decl.
2047 (maybe_add_script): Delete.
2048 (auto_load_objfile_script): Declare.
2049 (script_not_found_warning_print): Delete.
2050 (auto_load_info_scripts): Update prototype.
2051 (auto_load_gdb_scripts_enabled): Declare.
2052 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2053 auto_load_python_scripts_enabled and made public.
2054 (script_language_python): Delete, moved to python.c.
2055 (gdbpy_script_language_defn): Delete.
2056 (info_auto_load_python_scripts): Update to use
2057 extension_language_python.
2059 * breakpoint.c (condition_command): Replace call to
2060 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2061 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2062 with call to breakpoint_ext_lang_cond_says_stop.
2063 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2064 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2065 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2066 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2068 (local_setattro): Print name of extension language with existing
2071 * valprint.c (val_print, value_print): Update to call
2072 apply_ext_lang_val_pretty_printer.
2073 * cp-valprint.c (cp_print_value): Update call to
2074 apply_ext_lang_val_pretty_printer.
2075 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2076 (gdbpy_apply_val_pretty_printer): Renamed from
2077 apply_val_pretty_printer. New arg extlang.
2078 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2080 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2081 extension language API.
2082 * cli/cli-script.c (execute_control_command): Update to call
2083 eval_ext_lang_from_control_command.
2085 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2086 enum ext_lang_bt_status values. Update call to
2087 apply_ext_lang_frame_filter.
2088 (mi_cmd_stack_list_locals): Ditto.
2089 (mi_cmd_stack_list_args): Ditto.
2090 (mi_cmd_stack_list_variables): Ditto.
2091 * mi/mi-main.c: Delete #include "python/python-internal.h".
2092 Add #include "extension.h".
2093 (mi_cmd_list_features): Replace reference to python internal variable
2094 gdb_python_initialized with call to ext_lang_initialized_p.
2096 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2097 Update to use enum ext_lang_frame_args. Update to call
2098 apply_ext_lang_frame_filter.
2099 * python/py-framefilter.c (extract_sym): Update to use enum
2101 (extract_value, py_print_type, py_print_value): Ditto.
2102 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2103 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2104 (py_print_frame): Ditto.
2105 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2106 New arg extlang. Update to use enum ext_lang_bt_status.
2108 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2109 finish_python_initialization. Replace with call to
2110 finish_ext_lang_initialization.
2112 * typeprint.c (do_free_global_table): Update to call
2113 free_ext_lang_type_printers.
2114 (create_global_typedef_table): Update to call
2115 start_ext_lang_type_printers.
2116 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2117 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2118 (type_print_options): Change type of global_printers from "void *"
2119 to "struct ext_lang_type_printers *".
2121 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2122 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2123 (gdbpy_preserve_values): Renamed from preserve_python_values.
2125 (!HAVE_PYTHON, preserve_python_values): Delete.
2127 * utils.c (quit_flag): Delete, moved to extension.c.
2128 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2131 * eval.c: Delete #include "python/python.h".
2132 * main.c: Delete #include "python/python.h".
2134 * defs.h: Update comment.
2136 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2140 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2142 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2145 2014-02-05 Yao Qi <yao@codesourcery.com>
2147 * remote.c (remote_pass_signals): Remove local 'buf' and use
2149 (remote_program_signals): Likewise.
2151 2014-02-05 Yao Qi <yao@codesourcery.com>
2153 * ctf.c: Include "inferior.h" and "gdbthread.h".
2154 (CTF_PID): A new macro.
2155 (ctf_open): Call inferior_appeared and add_thread_silent.
2156 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2157 (ctf_thread_alive): New function.
2158 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2160 2014-02-05 Yao Qi <yao@codesourcery.com>
2164 2013-05-24 Yao Qi <yao@codesourcery.com>
2166 * tracepoint.c (TFILE_PID): Remove.
2167 (tfile_open): Don't add thread and inferior.
2168 (tfile_close): Don't set 'inferior_ptid'. Don't call
2169 exit_inferior_silent.
2170 (tfile_thread_alive): Remove.
2171 (init_tfile_ops): Don't set field 'to_thread_alive' of
2174 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2176 * remote.c (remote_start_remote): Call remote_check_symbols even
2177 if only symbol-file (not file) has been given.
2179 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2181 * gdbarch.sh (skip_entrypoint): New callback.
2182 * gdbarch.c, gdbarch.h: Regenerate.
2183 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2184 * infrun.c (fill_in_stop_func): Likewise.
2185 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2186 (ppc_elfv2_elf_make_msymbol_special): New function.
2187 (ppc_elfv2_skip_entrypoint): Likewise.
2188 (ppc_linux_init_abi): Install them for ELFv2.
2190 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2192 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2193 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2194 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2195 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2196 structures returned in GPRs.
2198 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2200 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2201 offset to the stack parameter list for the ELFv2 ABI.
2203 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2205 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2206 set_gdbarch_convert_from_func_ptr_addr and
2207 set_gdbarch_elf_make_msymbol_special for ELFv1.
2208 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2209 function descriptors on ELFv1.
2210 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2211 set up r12 at function entry.
2213 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2215 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2216 (struct gdbarch_tdep): New member elf_abi.
2218 * rs6000-tdep.c: Include "elf/ppc64.h".
2219 (rs6000_gdbarch_init): Detect ELF ABI version.
2221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2223 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2224 within a register pair holding a DFP 128-bit value on little-endian.
2225 (ppc64_sysv_abi_return_value_base): Likewise.
2226 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2227 (dfp_pseudo_register_write): Likewise.
2229 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2231 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2232 offset on little-endian when passing _Decimal32.
2233 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2235 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2237 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2238 of the overlapped FP register within the VSX register on little-
2240 (efpr_pseudo_register_write): Likewise.
2242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2245 offset on little-endian when passing small structures.
2247 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2249 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2250 (struct ppc64_sysv_argpos): New data structure.
2251 (ppc64_sysv_abi_push_float): Remove.
2252 (ppc64_sysv_abi_push_val): New function.
2253 (ppc64_sysv_abi_push_integer): Likewise.
2254 (ppc64_sysv_abi_push_freg): Likewise.
2255 (ppc64_sysv_abi_push_vreg): Likewise.
2256 (ppc64_sysv_abi_push_param): Likewise.
2257 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2258 (ppc64_sysv_abi_return_value_base): New function.
2259 (ppc64_sysv_abi_return_value): Refactor to use it.
2261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2263 * NEWS: Document new target powerpc64le-*-linux*.
2265 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2267 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2268 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2270 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2271 register set used in ELF core dumps. Add floating-point register set.
2273 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2275 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2276 dwarf2_to_gdb[] table using symbolic constants. Adjust
2277 penultimate entry from number representing the PC register
2278 to symbolic constant representing the MDR register. Add
2279 constant for the PC register to the end of the table.
2281 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2283 * bsd-kvm.c: Include <sys/param.h>
2285 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2287 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2289 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2291 * ada-lang.h (clear_ada_sym_cache): Delete.
2293 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2295 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2297 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2299 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2300 the sigreturn register save area only if the syscall is
2303 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2305 * valops.c (value_slice): Minor reformatting.
2307 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2309 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2311 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2313 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2315 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2316 (ada_ignore_descriptive_types_p): New static global.
2317 (find_parallel_type_by_descriptive_type): Return immediately
2318 if ada_ignore_descriptive_types_p is set.
2319 (_initialize_ada_language): Register new commands "maintenance
2320 set ada", "maintenance show ada", "maintenance set ada
2321 ignore-descriptive-types" and "maintenance show ada
2322 ignore-descriptive-types".
2323 * NEWS: Add entry for new "maint ada set/show
2324 ignore-descriptive-types" commands.
2326 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2328 * record-btrace.c (record_btrace_close): Call btrace_teardown
2331 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2333 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2336 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2338 * ada-typeprint (type_is_full_subrange_of_target_type):
2340 (print_range): Add parameter bounds_prefered_p. If not set,
2341 try printing range types using the name of their base type.
2342 (print_range_type): Add parameter bounds_prefered_p.
2343 Use it in call to print_range.
2344 (print_array_type, ada_print_type): Update calls to print_range
2345 and print_range_type.
2347 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2349 * ada-typeprint.c (print_array_type, print_choices, print_range)
2350 (print_range_bound, print_dynamic_range_bound, print_range_type):
2353 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2355 * ada-typeprint.c (print_range): Add missing empty line
2356 after local declaration.
2358 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2360 * ada-valprint.c (print_optional_low_bound): Get index_type's
2361 target type for as long as it is a TYPE_CODE_RANGE.
2363 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2365 * procfs.c (procfs_make_note_section): Remove assertion and
2368 2014-01-24 Yao Qi <yao@codesourcery.com>
2370 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2371 * corelow.c (get_core_siginfo): Likewise.
2373 2014-01-24 Yao Qi <yao@codesourcery.com>
2375 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2376 ULONGEST. Don't check 'len' is negative.
2377 (remote_write_bytes): Change type of 'len' to ULONGEST.
2379 2014-01-23 Tom Tromey <tromey@redhat.com>
2382 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2383 Handle exception from frame.block.
2384 (FrameVars.fetch_frame_locals): Likewise.
2386 2014-01-23 Tom Tromey <tromey@redhat.com>
2389 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2390 on a NULL pointer. Move "goto error" to correct place.
2392 2014-01-23 Tom Tromey <tromey@redhat.com>
2395 * python/py-framefilter.c (apply_frame_filter): Call
2396 ensure_python_env after computing gdbarch.
2398 2014-01-23 Yao Qi <yao@codesourcery.com>
2400 * target.c (raw_memory_xfer_partial): Change argument type
2401 from void * to gdb_byte *.
2402 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2404 2014-01-22 Doug Evans <dje@google.com>
2406 New gdbserver option --debug-format=timestamp.
2409 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2411 * syscalls/s390x-linux.xml: New file.
2412 * syscalls/s390-linux.xml: New file.
2413 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2414 (XML_SYSCALL_FILENAME_S390X): Likewise.
2415 (op_svc): New enum value for SVC opcode.
2416 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2417 (s390_linux_get_syscall_number): New function.
2418 (s390_gdbarch_init): Register '*get_syscall_number' and the
2419 syscall xml file name.
2420 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2421 "s390-linux.xml" and "s390x-linux.xml".
2422 * NEWS: Announce new feature.
2424 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2426 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2428 2014-01-22 Pedro Alves <palves@redhat.com>
2430 * xtensa-config.c: Include defs.h.
2432 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2434 * common/common-utils.h: Add "ARI:" comment beside __func__
2437 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2439 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2440 documentation a bit.
2442 2014-01-21 Roland McGrath <mcgrathr@google.com>
2444 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2445 * configure: Regenerate.
2446 * aclocal.m4: Regenerate.
2447 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2448 New substituted variables.
2449 (install-strip): New target.
2450 (INSTALL_SCRIPT): New substituted variable.
2451 (FLAGS_TO_PASS): Add it.
2452 (install-only): Use $(INSTALL_SCRIPT) rather than
2453 $(INSTALL_PROGRAM) for gcore.
2455 2014-01-20 Tom Tromey <tromey@redhat.com>
2457 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2460 2014-01-20 Tom Tromey <tromey@redhat.com>
2462 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2463 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2464 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2465 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2466 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2467 (struct cmd_list_element) <flags>: Remove.
2468 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2469 doc_allocated>: New fields.
2470 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2472 * maint.c (maintenance_do_deprecate): Update.
2473 * top.c (execute_command): Update.
2475 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2477 * xtensa-linux-nat.c: Include asm/ptrace.h.
2479 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2481 * Makefile.in (SFILES): Add d-support.c.
2482 (COMMON_OBS): Add d-support.o.
2483 * d-lang.h (d_parse_symbol): Add comment, now defined in
2485 * d-lang.c (parse_call_convention)
2486 (parse_attributes, parse_function_types)
2487 (parse_function_args, parse_type, parse_identifier)
2488 (call_convention_p, d_parse_symbol): Move functions to ...
2489 * d-support.c: ... New file.
2491 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2493 * d-lang.h (d_parse_symbol): Add declaration.
2494 * d-lang.c (extract_identifiers)
2495 (extract_type_info): Remove functions.
2496 (parse_call_convention, parse_attributes)
2497 (parse_function_types, parse_function_args)
2498 (parse_type, parse_identifier, call_convention_p)
2499 (d_parse_symbol): New functions.
2500 (d_demangle): Use d_parse_symbol to demangle D symbols.
2502 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2504 * d-lang.h (struct builtin_d_type): New data type.
2505 (builtin_d_type): Add declaration.
2506 * d-lang.c (d_language_arch_info, build_d_types)
2507 (builtin_d_type): New functions.
2508 (enum d_primitive_types): New data type.
2509 (d_language_defn): Change c_language_arch_info to
2510 d_language_arch_info.
2511 (d_type_data): New static variable.
2512 (_initialize_d_language): Initialize d_type_data.
2514 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2516 * d-lang.h (d_main_name): Add declaration.
2517 * d-lang.c (d_main_name): New function.
2518 * symtab.c (find_main_name): Add call to d_main_name.
2520 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2522 * d-lang.c (d_language_defn): Change macro_expansion_c to
2525 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2527 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2529 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2531 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2532 gdb_exception" declaration.
2533 * remote.c (getpkt_or_notif_sane): Likewise.
2535 2014-01-17 Doug Evans <dje@google.com>
2537 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2538 function, contents of dirnames_to_char_ptr_vec_append moved here.
2539 (delim_string_to_char_ptr_vec): New function.
2540 (dirnames_to_char_ptr_vec_append): Rewrite.
2541 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2543 2014-01-17 Doug Evans <dje@google.com>
2545 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2547 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2548 #include "common-utils.h".
2549 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2550 * common/vec.h (VEC_ASSERT_PASS): Update.
2551 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2552 (MACH_CHECK_ERROR): Update.
2554 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2556 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2558 * gdbarch.h: Regenerate.
2560 2014-01-16 Tom Tromey <tromey@redhat.com>
2562 * value.c (struct value) <regnum>: Move earlier.
2564 2014-01-16 Tom Tromey <tromey@redhat.com>
2566 * remote.c (extended_remote_create_inferior): Rename from
2567 extended_remote_create_inferior_1. Add "ops" argument. Remove
2570 2014-01-16 Pedro Alves <palves@redhat.com>
2572 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2573 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2576 2014-01-16 Doug Evans <dje@google.com>
2578 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2580 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2582 * btrace.h (btrace_thread_flag): New.
2583 (struct btrace_thread_info) <flags>: New.
2584 * record-btrace.c (record_btrace_resume_thread)
2585 (record_btrace_find_thread_to_move, btrace_step_no_history)
2586 (btrace_step_stopped, record_btrace_start_replaying)
2587 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2588 (record_btrace_find_resume_thread): New.
2589 (record_btrace_resume, record_btrace_wait): Extend.
2590 (record_btrace_can_execute_reverse): New.
2591 (record_btrace_open): Fail in non-stop mode.
2592 (record_btrace_set_replay): Split into this, ...
2593 (record_btrace_stop_replaying): ... this, ...
2594 (record_btrace_clear_histories): ... and this.
2595 (init_record_btrace_ops): Init to_can_execute_reverse.
2596 * NEWS: Announce it.
2598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2600 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2601 (forward_target_decr_pc_after_break)
2602 (target_decr_pc_after_break): New.
2603 * target.c (forward_target_decr_pc_after_break)
2604 (target_decr_pc_after_break): New.
2605 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2606 instead of gdbarch_decr_pc_after_break.
2607 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2608 instead of gdbarch_decr_pc_after_break.
2609 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2610 instead of gdbarch_decr_pc_after_break.
2611 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2612 instead of gdbarch_decr_pc_after_break.
2613 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2614 instead of gdbarch_decr_pc_after_break.
2615 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2616 instead of gdbarch_decr_pc_after_break.
2618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2620 * btrace.c: Include regcache.h.
2621 (btrace_add_pc): New.
2622 (btrace_enable): Call btrace_add_pc.
2623 (btrace_is_empty): New.
2624 * btrace.h (btrace_is_empty): New.
2625 * record-btrace.c (require_btrace, record_btrace_info): Call
2628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2630 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2631 Support delta reads.
2632 (linux_disable_btrace): Change return type.
2633 * common/linux-btrace.h (linux_read_btrace): Change parameters
2634 and return type to allow error reporting. Update users.
2635 (linux_disable_btrace): Change return type. Update users.
2636 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2638 (btrace_error): New.
2639 (btrace_block) <begin>: Comment on BEGIN == 0.
2640 * btrace.c (btrace_compute_ftrace): Start from the end of
2642 (btrace_stitch_trace, btrace_clear_history): New.
2643 (btrace_fetch): Read delta trace, return if replaying.
2644 (btrace_clear): Move clear history code to btrace_clear_history.
2645 (parse_xml_btrace): Throw an error if parsing failed.
2646 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2647 and return type to allow error reporting.
2648 (target_read_btrace): Change parameters and return type to allow
2650 * target.c (target_read_btrace): Update.
2651 * remote.c (remote_read_btrace): Support delta reads. Pass
2653 * NEWS: Announce it.
2655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2657 * record.h (record_btrace_frame_unwind)
2658 (record_btrace_tailcall_frame_unwind): New declarations.
2659 * dwarf2-frame: Include record.h
2660 (dwarf2_frame_cfa): Throw an error for btrace frames.
2661 * record-btrace.c: Include hashtab.h.
2662 (btrace_get_bfun_name): New.
2663 (btrace_call_history): Call btrace_get_bfun_name.
2664 (struct btrace_frame_cache): New.
2666 (bfcache_hash, bfcache_eq, bfcache_new): New.
2667 (btrace_get_frame_function): New.
2668 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2669 (record_btrace_frame_this_id): Compute own id.
2670 (record_btrace_frame_prev_register): Provide PC, throw_error
2671 for all other registers.
2672 (record_btrace_frame_sniffer): Detect btrace frames.
2673 (record_btrace_tailcall_frame_sniffer): New.
2674 (record_btrace_frame_dealloc_cache): New.
2675 (record_btrace_frame_unwind): Add new functions.
2676 (record_btrace_tailcall_frame_unwind): New.
2677 (_initialize_record_btrace): Allocate cache.
2678 * btrace.c (btrace_clear): Call reinit_frame_cache.
2679 * NEWS: Announce it.
2681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2683 * record-btrace.c (record_btrace_set_replay)
2684 (record_btrace_goto_begin, record_btrace_goto_end)
2685 (record_btrace_goto): New.
2686 (init_record_btrace_ops): Initialize them.
2687 * NEWS: Announce it.
2689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2691 * record-btrace.c (record_btrace_find_new_threads)
2692 (record_btrace_thread_alive): New.
2693 (init_record_btrace_ops): Initialize to_find_new_threads and
2696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2698 * record-btrace.c (record_btrace_resume): New.
2699 (record_btrace_wait): New.
2700 (init_record_btrace_ops): Initialize to_wait and to_resume.
2702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2704 * record-btrace.c (record_btrace_xfer_partial)
2705 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2706 (record_btrace_allow_memory_access): New.
2707 (init_record_btrace_ops): Initialize new methods.
2708 * target.c (raw_memory_xfer_partial): Bail out if target reports
2709 that this memory is not available.
2711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2713 * target.h (target_ops) <to_insert_breakpoint>
2714 <to_remove_breakpoint>: Add target_ops parameter.
2715 (forward_target_insert_breakpoint): New.
2716 (forward_target_remove_breakpoint): New.
2717 (memory_remove_breakpoint, memory_insert_breakpoint):
2718 Add target_ops parameter.
2719 * target.c (target_insert_breakpoint): Split into this and ...
2720 (forward_target_insert_breakpoint): ... this.
2721 (target_remove_breakpoint): Split into this and ...
2722 (forward_target_remove_breakpoint): ... this.
2723 (debug_to_insert_breakpoint): Add target_ops parameter.
2724 Call forward_target_insert_breakpoint.
2725 (debug_to_remove_breakpoint): Add target_ops parameter.
2726 Call forward_target_remove_breakpoint.
2727 (update_current_target): Do not inherit or default to_insert_breakpoint
2728 and to_remove_breakpoint.
2729 * corelow.c (ignore): Add target_ops parameter.
2730 * exec.c (ignore): Add target_ops parameter.
2731 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2732 Add target_ops parameter.
2733 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2734 Add target_ops parameter.
2735 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2736 Add target_ops parameter.
2737 * record-full.c (record_full_beneath_to_insert_breakpoint)
2738 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2739 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2740 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2741 (record_full_core_remove_breakpoint): Add target_ops parameter.
2743 (record_full_beneath_to_insert_breakpoint_ops)
2744 (record_full_beneath_to_remove_breakpoint_ops)
2745 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2746 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2747 tmp_to_remove_breakpoint_ops,
2748 record_full_beneath_to_insert_breakpoint_ops, and
2749 record_full_beneath_to_remove_breakpoint_ops.
2750 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2751 (m32r_remove_breakpoint): Add target_ops parameter.
2752 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2753 Add target_ops parameter.
2754 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2755 Add target_ops parameter.
2757 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2758 Markus Metzger <markus.t.metzger@intel.com>
2760 * record-btrace.c: Include frame-unwind.h.
2761 (record_btrace_frame_unwind_stop_reason)
2762 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2763 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2765 (init_record_btrace_ops): Install it.
2767 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2769 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2772 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2774 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2777 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2779 * frame-unwind.c: Include target.h.
2780 (frame_unwind_try_unwinder): New function with code from ...
2781 (frame_unwind_find_by_frame): ... here. New variable
2782 unwinder_from_target, call also target_get_unwinder)
2783 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2784 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2785 * target.h (struct target_ops): New fields to_get_unwinder and
2786 to_get_tailcall_unwinder.
2787 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2791 * record-btrace.c (record_btrace_fetch_registers)
2792 (record_btrace_store_registers)
2793 (record_btrace_to_prepare_to_store): New.
2794 (init_record_btrace_ops): Add the above.
2796 2014-01-16 Tom Tromey <tromey@redhat.com>
2798 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2799 * target.h (struct target_ops) <to_prepare_to_store>: Add
2801 (target_prepare_to_store): Add argument.
2802 * target.c (debug_to_prepare_to_store): Add argument.
2803 (update_current_target): Update.
2804 * remote.c (remote_prepare_to_store): Add 'self' argument.
2805 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2806 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2807 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2808 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2810 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2811 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2812 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2813 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2814 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2818 * btrace.h (replay) <replay>: New.
2819 (btrace_is_replaying): New.
2820 * btrace.c (btrace_clear): Free replay iterator.
2821 (btrace_is_replaying): New.
2822 * record-btrace.c (record_btrace_is_replaying): New.
2823 (record_btrace_info): Print insn number if replaying.
2824 (record_btrace_insn_history): Start at replay position.
2825 (record_btrace_call_history): Start at replay position.
2826 (init_record_btrace_ops): Init to_record_is_replaying.
2828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2830 * record-btrace.c (record_btrace_insn_history_range): Include
2832 (record_btrace_insn_history_from): Adjust range.
2833 (record_btrace_call_history_range): Include
2835 (record_btrace_call_history_from): Adjust range.
2836 * NEWS: Announce changes.
2838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2840 * record.h (enum record_print_flag)
2841 <record_print_indent_calls>: New.
2842 * record.c (get_call_history_modifiers): Recognize /c modifier.
2843 (_initialize_record): Document /c modifier.
2844 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2845 Reorder fields. Optionally indent the function name. Update
2847 * NEWS: Announce changes.
2849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2851 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2855 * btrace.c (ftrace_new_function): Start counting at one.
2856 * record-btrace.c (record_btrace_info): Adjust number of calls
2858 * NEWS: Announce it.
2860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2862 * record-btrace.c (btrace_call_history_insn_range): Print
2863 insn range as [begin, end].
2865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2867 * btrace.h (struct btrace_func_link): New.
2868 (enum btrace_function_flag): New.
2869 (struct btrace_inst): Rename to ...
2870 (struct btrace_insn): ...this. Update all users.
2871 (struct btrace_func) <ibegin, iend>: Remove.
2872 (struct btrace_func_link): New.
2873 (struct btrace_func): Rename to ...
2874 (struct btrace_function): ...this. Update all users.
2875 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2876 (number, level, flags>: New.
2877 (struct btrace_insn_iterator): Rename to ...
2878 (struct btrace_insn_history): ...this.
2880 (struct btrace_insn_iterator, btrace_call_iterator): New.
2881 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2882 (struct btrace_target_info) <begin, end, level>
2883 <insn_history, call_history>: New.
2884 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2885 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2886 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2887 (btrace_call_number, btrace_call_begin, btrace_call_end)
2888 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2889 (btrace_find_function_by_number, btrace_set_insn_history)
2890 (btrace_set_call_history): New.
2891 * btrace.c (btrace_init_insn_iterator)
2892 (btrace_init_func_iterator, compute_itrace): Remove.
2893 (ftrace_print_function_name, ftrace_print_filename)
2894 (ftrace_skip_file): Change
2896 (ftrace_init_func): Remove.
2897 (ftrace_debug): Use new btrace_function fields.
2898 (ftrace_function_switched): Also consider gaining and
2899 losing symbol information).
2900 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2901 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2902 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2904 (ftrace_new_function): Move. Remove debug print.
2905 (ftrace_update_lines, ftrace_update_insns): New.
2906 (ftrace_update_function): Check for call, ret, and jump.
2907 (compute_ftrace): Renamed to ...
2908 (btrace_compute_ftrace): ...this. Rewritten to compute call
2910 (btrace_fetch, btrace_clear): Updated.
2911 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2912 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2913 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2914 (btrace_call_number, btrace_call_begin, btrace_call_end)
2915 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2916 (btrace_find_function_by_number, btrace_set_insn_history)
2917 (btrace_set_call_history): New.
2918 * record-btrace.c (require_btrace): Use new btrace thread
2920 (record_btrace_info, btrace_insn_history)
2921 (record_btrace_insn_history, record_btrace_insn_history_range):
2922 Use new btrace thread info fields and new iterator.
2923 (btrace_func_history_src_line): Rename to ...
2924 (btrace_call_history_src_line): ...this. Use new btrace
2926 (btrace_func_history): Rename to ...
2927 (btrace_call_history): ...this. Use new btrace thread info
2928 fields and new iterator.
2929 (record_btrace_call_history, record_btrace_call_history_range):
2930 Use new btrace thread info fields and new iterator.
2932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2934 * frame.h (frame_id_build_unavailable_stack_special): New.
2935 * frame.c (frame_id_build_unavailable_stack_special): New.
2937 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2939 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2940 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2941 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2943 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2944 (i386_insn_is_jump, i386_jmp_p): New.
2945 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2946 insn_is_jump to gdbarch.
2947 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2948 * gdbarch.h: Regenerated.
2949 * gdbarch.c: Regenerated.
2950 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2951 (default_insn_is_jump): New.
2952 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2953 (default_insn_is_jump): New.
2955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2957 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2959 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2960 (btrace_read_type) <btrace_read_new>: Change to ...
2961 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2965 * common/linux-btrace.c (linux_read_btrace): Free trace from
2968 2014-01-15 Doug Evans <dje@google.com>
2970 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2973 2014-01-15 Tom Tromey <tromey@redhat.com>
2975 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2976 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2977 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2978 (set_objfile_main_name): New function.
2979 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2980 language_of_main>: New fields.
2981 (set_objfile_main_name): Declare.
2982 * symtab.c (find_main_name): Loop over objfiles to find the main
2984 (set_main_name): Now static.
2985 (get_main_info): Add comment.
2986 * symtab.h (set_main_name): Don't declare.
2988 2014-01-15 Tom Tromey <tromey@redhat.com>
2990 * symtab.c (main_progspace_key): New global.
2991 (struct main_info): New.
2992 (name_of_main, language_of_main): Remove.
2993 (get_main_info, main_info_cleanup): New function.
2994 (set_main_name, main_name, main_language): Use get_main_info.
2995 (_initialize_symtab): Initialize main_progspace_key.
2997 2014-01-15 Tom Tromey <tromey@redhat.com>
2999 * dbxread.c (process_one_symbol): Update.
3000 * dwarf2read.c (read_partial_die): Update.
3001 * symfile.c (set_initial_language): Call main_language.
3002 * symtab.c (language_of_main): Now static.
3003 (set_main_name): Add 'lang' parameter.
3004 (find_main_name): Update.
3005 (main_language): New function.
3006 (symtab_observer_executable_changed): Update.
3007 * symtab.h (set_main_name): Update.
3008 (language_of_main): Remove.
3009 (main_language): Declare.
3011 2014-01-15 Tom Tromey <tromey@redhat.com>
3013 * symfile.c (init_entry_point_info): Use new "initialized" field.
3015 * objfiles.h (struct entry_point) <initialized>: New field.
3016 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3017 (struct objfile) <ei>: ...here. Remove.
3018 * objfiles.c (entry_point_address_query): Update.
3020 2014-01-15 Tom Tromey <tromey@redhat.com>
3022 * objfiles.c (entry_point_address_query): Relocate entry point
3024 (objfile_relocate1): Do not relocate entry point address.
3025 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3026 <the_bfd_section_index>: New field.
3027 * symfile.c (init_entry_point_info): Find the entry point's
3030 2014-01-15 Tom Tromey <tromey@redhat.com>
3032 * solib-frv.c (enable_break): Use entry_point_address_query.
3034 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3036 * NEWS: Add note on improved process record-replay on
3037 arm*-linux* targets.
3039 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3041 * arm-tdep.c (enum arm_record_result): New enum.
3042 (arm_record_unsupported_insn): New function.
3043 (arm_record_coproc_data_proc): Removed.
3044 (thumb2_record_ld_st_multiple): New function.
3045 (thumb2_record_ld_st_dual_ex_tbb): New function.
3046 (thumb2_record_data_proc_sreg_mimm): New function.
3047 (thumb2_record_ps_dest_generic): New function.
3048 (thumb2_record_branch_misc_cntrl): New function.
3049 (thumb2_record_str_single_data): New function.
3050 (thumb2_record_ld_mem_hints): New function.
3051 (thumb2_record_ld_word): New function.
3052 (thumb2_record_lmul_lmla_div): New function.
3053 (thumb2_record_decode_insn_handler): New function.
3054 (decode_insn): Add thumb32 instruction handlers.
3056 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3058 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3059 (struct arm_linux_record_tdep): Declare.
3060 (arm_canonicalize_syscall): New function.
3061 (arm_all_but_pc_registers_record): New function.
3062 (arm_linux_syscall_record): New function.
3063 (arm_linux_init_abi): Add syscall recording constructs.
3064 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3065 decoding. (arm_record_coproc_data_proc): Update arm syscall
3067 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3068 <arm_syscall_record>: New field.
3069 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3072 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3074 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3075 register for push instruction recording.
3077 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3079 * arm-tdep.c (thumb_record_misc): Update to correct logical
3080 error while recording ldm, ldmia and pop instructions.
3082 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3084 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3086 2014-01-15 Pedro Alves <palves@redhat.com>
3088 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3089 (go32_resume, go32_fetch_registers, store_register)
3090 (go32_store_registers, go32_prepare_to_store)
3091 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3092 (go32_create_inferior, go32_can_run, go32_terminal_init)
3093 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3096 2014-01-15 Tom Tromey <tromey@redhat.com>
3098 * target.h (async_callback_ftype): New typedef.
3099 (struct target_ops) <to_async>: Use it.
3101 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3103 * python/py-value.c (get_field_type): Remove unnecessary curly
3104 braces for single-statement if block.
3106 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3108 * python/py-type.c (convert_field): Add missing empty line
3111 2014-01-14 Doug Evans <dje@google.com>
3113 * symfile.h (expand_symtabs_matching): Renamed from
3114 expand_partial_symbol_names. Update prototype.
3115 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3116 * symfile.c (expand_symtabs_matching): Renamed from
3117 expand_partial_symbol_names. New args file_matcher, kind.
3118 Rename arg fun to symbol_matcher.
3119 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3120 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3121 ada_expand_partial_symbol_name.
3122 (ada_make_symbol_completion_list): Update to call
3123 expand_symtabs_matching.
3124 (ada_add_global_exceptions): Call expand_symtabs_matching.
3125 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3126 call map_symbol_filenames.
3127 * symtab.c (sources_info): Update to call map_symbol_filenames.
3128 (search_symbols): Call expand_symtabs_matching.
3129 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3130 (default_make_symbol_completion_list_break_on): Update to call
3131 expand_symtabs_matching.
3132 (make_source_files_completion_list): Update to call
3133 map_symbol_filenames.
3135 2014-01-14 Doug Evans <dje@google.com>
3137 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3138 (expand_symtabs_symbol_matcher_ftype): New typedef.
3139 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3140 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3141 * symfile.c (expand_partial_symbol_names): Update to use
3142 expand_symtabs_symbol_matcher_ftype.
3143 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3144 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3145 Arg name_matcher renamed to symbol_matcher.
3146 * psymtab.c (recursively_search_psymtabs): Update to use
3147 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3149 (expand_symtabs_matching_via_partial): Update to use
3150 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3151 Arg name_matcher renamed to symbol_matcher.
3153 2014-01-14 Doug Evans <dje@google.com>
3155 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3156 (map_partial_symbol_filenames): Ditto.
3157 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3158 (map_partial_symbol_filenames): Ditto.
3159 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3160 (map_partial_symbol_filenames): Ditto.
3161 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3162 (map_partial_symbol_filenames): Ditto.
3163 * symtab.c: Delete #include "psymtab.h".
3165 2014-01-14 Pedro Alves <palves@redhat.com>
3166 Tom Tromey <tromey@redhat.com>
3168 * infrun.c (use_displaced_stepping): Use find_record_target
3169 instead of RECORD_IS_USED.
3170 (adjust_pc_after_break): Use record_full_is_used instead of
3172 * record-btrace.c (record_btrace_open): Call record_preopen
3173 instead of checking RECORD_IS_USED.
3174 * record-full.c (record_full_shortname)
3175 (record_full_core_shortname): New globals.
3176 (record_full_is_used): New function.
3177 (find_full_open): Call record_preopen instead of checking
3179 (init_record_full_ops): Set the target's shortname to
3180 record_full_shortname.
3181 (init_record_full_core_ops): Set the target's shortname to
3182 record_full_core_shortname.
3183 * record-full.h (record_full_is_used): Declare.
3184 * record.c (find_record_target): Make extern.
3185 (record_preopen): New function.
3186 * record.h (RECORD_IS_USED): Delete macro.
3187 (find_record_target, record_preopen): Declare functions.
3189 2014-01-14 Yao Qi <yao@codesourcery.com>
3191 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3192 'len''s type to ULONGEST.
3193 (core_xfer_shared_libraries_aix): Likewise.
3194 * gdbarch.c, gdbarch.h: Regenerated.
3195 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3196 Change type of 'len' to ULONGEST.
3197 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3198 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3200 2014-01-14 Yao Qi <yao@codesourcery.com>
3202 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3203 type of 'len' to ULONGEST.
3204 (linux_xfer_osdata_processgroups): Likewise.
3205 (linux_xfer_osdata_threads): Likewise.
3206 (linux_xfer_osdata_fds): Likewise.
3207 (linux_xfer_osdata_isockets): Likewise.
3208 (linux_xfer_osdata_shm): Likewise.
3209 (linux_xfer_osdata_sem): Likewise.
3210 (linux_xfer_osdata_msg): Likewise.
3211 (linux_common_xfer_osdata): Likewise.
3212 (struct osdata_type) <getter>: Likewise.
3213 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3216 2014-01-14 Yao Qi <yao@codesourcery.com>
3218 * target.h (target_xfer_partial_ftype): Update.
3219 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3221 * aix-thread.c (aix_thread_xfer_partial): Change type of
3222 argument 'len' to ULONGEST.
3223 * auxv.c (procfs_xfer_auxv): Likewise.
3224 (ld_so_xfer_auxv): Likewise.
3225 (memory_xfer_auxv): Likewise.
3226 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3227 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3228 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3229 * corelow.c (core_xfer_partial): Likewise.
3230 * ctf.c (ctf_xfer_partial): Likewise.
3231 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3233 (darwin_read_dyld_info): Likewise.
3234 (darwin_xfer_partial): Likewise.
3235 * exec.c (section_table_xfer_memory_partial): Likewise.
3236 (exec_xfer_partial): Likewise.
3237 * exec.h (section_table_xfer_memory_partial): Update
3239 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3240 instead of plongest.
3241 (gnu_xfer_partial): Likewise.
3242 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3243 (ia64_hpux_xfer_solib_got): Likewise.
3244 (ia64_hpux_xfer_partial): Likewise.
3245 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3246 * inf-ptrace.c (inf_ptrace_xfer_partial):
3247 * inf-ttrace.c (inf_ttrace_xfer_partial):
3248 * linux-nat.c (linux_xfer_siginfo): Likewise.
3249 (linux_nat_xfer_partial): Likewise.
3250 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3251 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3252 * monitor.c (monitor_xfer_memory): Likewise.
3253 (monitor_xfer_partial): Likewise.
3254 * procfs.c (procfs_xfer_partial): Likewise.
3255 * record-full.c (record_full_xfer_partial): Likewise.
3256 (record_full_core_xfer_partial): Likewise.
3257 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3258 instead of plongest.
3259 (gdbsim_xfer_partial): Likewise.
3260 * remote.c (remote_xfer_partial): Likewise.
3261 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3262 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3264 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3265 (rs6000_xfer_shared_libraries): Likewise.
3266 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3267 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3268 (sparc_xfer_partial): Likewise.
3269 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3270 (spu_xfer_partial): Likewise.
3271 * spu-multiarch.c (spu_xfer_partial): Likewise.
3272 * target.c (target_read_live_memory): Likewise.
3273 (memory_xfer_live_readonly_partial): Likewise.
3274 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3275 (target_xfer_partial, default_xfer_partial): Likewise.
3276 (current_xfer_partial): Likewise.
3277 * tracepoint.c (tfile_xfer_partial): Likewise.
3278 * windows-nat.c (windows_xfer_memory): Likewise. Call
3279 pulongest instead of plongest.
3280 (windows_xfer_partial): Likewise.
3281 (windows_xfer_shared_libraries): Likewise.
3283 2014-01-14 Yao Qi <yao@codesourcery.com>
3285 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3286 target_xfer_partial_ftype.
3288 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3292 * valops.c (value_struct_elt_bitpos): New function
3293 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3294 object to 'None' if the field name is an empty string ("").
3295 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3296 attribute to look for a field when 'name' is 'None'.
3297 (get_field_type): New function
3299 2014-01-13 Doug Evans <dje@google.com>
3302 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3303 (try_open_dwop_file): Ditto.
3304 * gdb_bfd.c: #include "vec.h".
3305 (bfdp): New typedef.
3306 (struct gdb_bfd_data): New member included_bfds.
3307 (gdb_bfd_unref): Unref all included bfds.
3308 (gdb_bfd_record_inclusion): New function.
3309 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3311 2014-01-13 Tom Tromey <tromey@redhat.com>
3313 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3315 2014-01-13 Tom Tromey <tromey@redhat.com>
3317 * defs.h (use_windows): Remove.
3318 * gdb.c (main): Update.
3319 * main.c (captured_main, gdb_main): Update.
3320 * main.h (struct captured_main_args) <use_windows>: Remove.
3321 * top.c (use_windows): Remove.
3323 2014-01-13 Tom Tromey <tromey@redhat.com>
3325 * defs.h (deprecated_flush_hook): Remove.
3327 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3330 * linux-thread-db.c (try_thread_db_load): Add parameter
3331 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3332 (try_thread_db_load_from_pdir_1): Move it there from here.
3333 (try_thread_db_load_from_sdir): Update caller.
3334 (try_thread_db_load_from_dir): Move it there from here.
3336 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3338 * regformats/regdat.sh: Always rewrite the register file.
3340 2014-01-13 Pedro Alves <palves@redhat.com>
3342 * Makefile.in (CHECK_HEADERS): New variable.
3343 (check-headers:): New rule.
3345 2014-01-13 Tom Tromey <tromey@redhat.com>
3347 * cli/cli-setshow.c (do_set_command): Update.
3348 * defs.h (deprecated_set_hook): Remove.
3349 * top.c (deprecated_set_hook): Remove.
3351 2014-01-13 Pedro Alves <palves@redhat.com>
3353 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3354 the tracepoint if the PC is a pseudo-register.
3356 2014-01-13 Tom Tromey <tromey@redhat.com>
3358 * defs.h (XCALLOC): Remove.
3359 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3360 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3361 * dwarf2loc.c (allocate_piece_closure): Likewise.
3362 * elfread.c (elf_symfile_segments): Likewise.
3363 (elf_symfile_segments): Likewise.
3364 * gdbtypes.c (copy_type_recursive): Likewise.
3365 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3366 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3367 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3369 * mt-tdep.c (mt_gdbarch_init): Likewise.
3370 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3372 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3373 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3374 * registry.c (registry_alloc_data): Likewise.
3375 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3376 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3377 * serial.c (serial_fdopen_ops): Likewise.
3378 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3380 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3381 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3384 2014-01-13 Tom Tromey <tromey@redhat.com>
3386 * defs.h (XMALLOC): Remove.
3387 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3388 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3389 * cli-out.c (struct ui_out *): Likewise.
3390 * cli/cli-dump.c (add_dump_command): Likewise.
3391 (add_dump_command): Likewise.
3392 * complaints.c (get_complaints): Likewise.
3393 (find_complaint): Likewise.
3394 * dwarf2-frame.c (execute_cfa_program): Likewise.
3395 * dwarf2read.c (abbrev_table_read_table): Likewise.
3396 * gdbarch.sh: Likewise.
3397 * gdbarch.c: Rebuild.
3398 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3399 * interps.c (interp_new): Likewise.
3400 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3401 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3402 * mi/mi-console.c (mi_console_file_new): Likewise.
3403 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3404 * mi/mi-out.c (mi_out_new): Likewise.
3405 * mi/mi-parse.c (mi_parse): Likewise.
3406 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3407 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3408 * observer.c (xalloc_observer_list_node): Likewise.
3409 * regcache.c (regcache_xmalloc_1): Likewise.
3410 * reggroups.c (reggroup_new): Likewise.
3411 (_initialize_reggroup): Likewise.
3412 * registry.c (register_data_with_cleanup): Likewise.
3413 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3414 * ser-base.c (serial_ttystate): Likewise.
3415 * ser-mingw.c (make_pipe_state): Likewise.
3416 * ser-pipe.c (pipe_open): Likewise.
3417 * serial.c (serial_open): Likewise.
3418 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3419 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3420 (tui_alloc_win_info): Likewise.
3421 (tui_add_content_elements): Likewise.
3422 * tui/tui-file.c (tui_file_new): Likewise.
3423 * tui/tui-out.c (tui_out_new): Likewise.
3424 * ui-file.c (mem_file_new): Likewise.
3425 * ui-out.c (push_level): Likewise.
3426 (make_cleanup_ui_out_end): Likewise.
3427 (append_header_to_list): Likewise.
3428 (ui_out_new): Likewise.
3429 * user-regs.c (user_reg_add_builtin): Likewise.
3431 2014-01-13 Tom Tromey <tromey@redhat.com>
3433 * defs.h (XZALLOC): Remove.
3434 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3435 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3436 (get_ada_tasks_inferior_data): Likewise.
3437 * auto-load.c (get_auto_load_pspace_data): Likewise.
3438 * auxv.c (get_auxv_inferior_data): Likewise.
3439 * bfd-target.c (target_bfd_reopen): Likewise.
3440 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3441 (deprecated_insert_raw_breakpoint): Likewise.
3442 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3443 * corelow.c (core_open): Likewise.
3444 * darwin-nat.c (darwin_check_new_threads): Likewise.
3445 (darwin_attach_pid): Likewise.
3446 * dummy-frame.c (dummy_frame_push): Likewise.
3447 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3448 * dwarf2loc.c (allocate_piece_closure): Likewise.
3449 * elfread.c (elf_symfile_segments): Likewise.
3450 * eval.c (ptrmath_type_p): Likewise.
3451 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3452 * gdbtypes.c (alloc_type_arch): Likewise.
3453 (alloc_type_instance): Likewise.
3454 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3455 * inf-child.c (inf_child_can_use_agent): Likewise.
3456 * inflow.c (get_inflow_inferior_data): Likewise.
3457 * infrun.c (save_infcall_suspend_state): Likewise.
3458 * jit.c (jit_reader_load): Likewise.
3459 (get_jit_objfile_data): Likewise.
3460 (get_jit_program_space_data): Likewise.
3461 (jit_object_open_impl): Likewise.
3462 (jit_symtab_open_impl): Likewise.
3463 (jit_block_open_impl): Likewise.
3464 (jit_frame_sniffer): Likewise.
3465 * linux-fork.c (add_fork): Likewise.
3466 * maint.c (make_command_stats_cleanup): Likewise.
3467 * objfiles.c (get_objfile_pspace_data): Likewise.
3468 * opencl-lang.c (struct lval_closure): Likewise.
3469 * osdata.c (osdata_start_osdata): Likewise.
3470 * progspace.c (new_address_space): Likewise.
3471 (add_program_space): Likewise.
3472 * remote-sim.c (get_sim_inferior_data): Likewise.
3473 * sh-tdep.c (sh_gdbarch_init): Likewise.
3474 * skip.c (Ignore): Likewise.
3475 (skip_delete_command): Likewise.
3476 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3477 (library_list_start_library): Likewise.
3478 (solib_aix_current_sos): Likewise.
3479 * solib-darwin.c (get_darwin_info): Likewise.
3480 (darwin_current_sos): Likewise.
3481 * solib-dsbt.c (get_dsbt_info): Likewise.
3482 * solib-ia64-hpux.c (new_so_list): Likewise.
3483 (ia64_hpux_get_solib_linkage_addr): Likewise.
3484 * solib-spu.c (append_ocl_sos): Likewise.
3485 (spu_current_sos): Likewise.
3486 * solib-svr4.c (get_svr4_info): Likewise.
3487 (svr4_keep_data_in_core): Likewise.
3488 (library_list_start_library): Likewise.
3489 (svr4_default_sos): Likewise.
3490 (svr4_read_so_list): Likewise.
3491 * solib-target.c (library_list_start_library): Likewise.
3492 (solib_target_current_sos): Likewise.
3493 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3494 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3495 * symfile.c (default_symfile_segments): Likewise.
3496 * target-descriptions.c (tdesc_data_init): Likewise.
3497 (tdesc_create_reg): Likewise.
3498 (struct tdesc_type *): Likewise.
3499 (tdesc_create_vector): Likewise.
3500 (tdesc_set_struct_size): Likewise.
3501 (struct tdesc_type *): Likewise.
3502 (tdesc_free_feature): Likewise.
3503 (tdesc_create_feature): Likewise.
3504 * windows-nat.c (windows_add_thread): Likewise.
3505 (windows_make_so): Likewise.
3506 * xml-support.c (gdb_xml_body_text): Likewise.
3507 (gdb_xml_create_parser_and_cleanup): Likewise.
3508 (xml_process_xincludes): Likewise.
3509 * xml-syscall.c (allocate_syscalls_info): Likewise.
3510 (syscall_create_syscall_desc): Likewise.
3512 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3514 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3515 function, with code from i386_stap_parse_special_token.
3516 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3517 (i386_stap_parse_special_token): Move code to the two functions
3520 2014-01-09 Pedro Alves <palves@redhat.com>
3521 Hui Zhu <hui@codesourcery.com>
3524 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3525 bp_err_string. Don't mark the location shlib_disabled if the
3526 error thrown wasn't a generic or memory error. Catch errors
3527 thrown while inserting breakpoints in overlayed code. Output
3528 error message of software breakpoints.
3529 * remote.c (remote_insert_breakpoint): If this breakpoint has
3530 target-side commands but this stub doesn't support Z0 packets,
3531 throw NOT_SUPPORTED_ERROR error.
3532 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3533 * target.h (target_insert_breakpoint): Extend comment.
3534 (target_insert_hw_breakpoint): Add comment.
3536 2014-01-08 Pedro Alves <palves@redhat.com>
3538 * remote.c (remote_add_thread): Add threads silently if starting
3540 (remote_notice_new_inferior): If in all-stop, and starting up,
3541 don't call notice_new_inferior.
3542 (get_current_thread): New function, factored out from ...
3543 (add_current_inferior_and_thread): ... this. Adjust.
3544 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3545 found any thread, then select the remote's current thread as GDB's
3548 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3550 * NEWS: Create a new section for the next release branch.
3551 Rename the section of the current branch, now that it has
3554 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3556 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3557 * version.in: Bump version to 7.7.50.DATE-cvs.
3559 2014-01-08 Yao Qi <yao@codesourcery.com>
3561 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3562 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3563 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3565 2014-01-08 Yao Qi <yao@codesourcery.com>
3567 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3568 return value of bfd_get_filename to symbol_file_add_from_bfd.
3570 2014-01-08 Pierre Muller <muller@sourceware.org>
3573 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3574 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3575 to prim_record_mininal_symbol_and_info.
3576 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3577 in call to prim_record_minimal_symbol_and_info.
3578 (read_pe_exported_syms): Set index field of section_data.
3580 2014-01-07 Andrew Pinski <apinski@cavium.com>
3582 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3583 * features/aarch64.c: Regenerate.
3585 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3587 * target.c (return_null): Define.
3588 (update_current_target): Use it instead of return_zero for
3589 functions that return a pointer.
3591 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3593 * source.c (add_path): Fix check for duplicated paths in the previously
3596 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3598 * ada-lang.c: Remove duplicated include statements.
3599 * alphabsd-nat.c: Ditto.
3600 * amd64-darwin-tdep.c: Ditto.
3601 * amd64fbsd-nat.c: Ditto.
3602 * auto-load.c: Ditto.
3604 * breakpoint.c: Ditto.
3606 * fork-child.c: Ditto.
3607 * gdb_usleep.c: Ditto.
3608 * i386-darwin-tdep.c: Ditto.
3609 * i386fbsd-nat.c: Ditto.
3611 * inferior.c: Ditto.
3613 * linux-nat.c: Ditto.
3614 * linux-tdep.c: Ditto.
3615 * m68kbsd-nat.c: Ditto.
3616 * m68klinux-nat.c: Ditto.
3617 * microblaze-tdep.c: Ditto.
3618 * mips-linux-tdep.c: Ditto.
3619 * mn10300-tdep.c: Ditto.
3620 * nto-tdep.c: Ditto.
3621 * opencl-lang.c: Ditto.
3623 * printcmd.c: Ditto.
3624 * regcache.c: Ditto.
3625 * remote-m32r-sdi.c: Ditto.
3629 * tilegx-linux-nat.c: Ditto.
3630 * tilegx-tdep.c: Ditto.
3631 * tracepoint.c: Ditto.
3633 * vaxbsd-nat.c: Ditto.
3634 * windows-nat.c: Ditto.
3635 * xtensa-tdep.c: Ditto.
3637 2014-01-07 Yao Qi <yao@codesourcery.com>
3639 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3641 2014-01-07 Yao Qi <yao@codesourcery.com>
3642 Joel Brobecker <brobecker@adacore.com>
3644 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3645 (pdc_write_regs): Likewise.
3646 (fetch_regs_kernel_thread): Likewise.
3647 (store_regs_kernel_thread): Likewise.
3649 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3651 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3652 tagged type objects to their actual type.
3654 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3656 * ada-valprint.c (print_field_values): Add "language" parameter.
3657 Update calls to print_field_values and print_variant_part.
3658 Pass new parameter "language" in call to val_print instead
3659 of "current_language". Replace call to ada_val_print by call
3661 (print_variant_part): Add "language" parameter.
3662 (ada_val_print_struct_union): Update call to print_field_values.
3664 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3666 * ada-valprint.c (ui_memcpy): Delete.
3667 (ada_print_floating): Update documentation. Add empty line
3668 between between function documentation and implementation.
3669 Delete variable "buffer". Use ui_file_xstrdup in place of
3670 ui_file_put. Minor adjustments following this change.
3672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3674 * ada-valprint.c (ada_val_print_string): New function,
3675 extracted from ada_val_print_array.
3676 (ada_val_print_array): Replace extracted code by call
3677 to ada_val_print_string followed by a return. Move
3678 "else" branch to the function's top block.
3680 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3682 * ada-valprint.c (ada_val_print_array): Move implementation
3683 down. Rename parameter "offset" and "val" into "offset_aligned"
3684 and "original_value" respectively. Add parameter "offset".
3686 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3688 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3689 re-organizing the code. Change the "???" message printed
3690 when target type is a TYPE_CODE_UNDEF into
3691 "<ref to undefined type>".
3693 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3695 * ada-valprint.c (print_record): Delete, implementation inlined...
3696 (ada_val_print_struct_union): ... here. Remove call to
3697 ada_check_typedef in inlined implementation.
3699 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3701 * ada-valprint.c (ada_val_print_gnat_array): New function,
3702 extracted from ada_val_print_1;
3703 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3704 (ada_val_print_flt, ada_val_print_struct_union)
3705 (ada_val_print_ref): Likewise.
3706 (ada_val_print_1): Delete variables i and elttype.
3707 Replace extracted-out code by call to corresponding
3710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3712 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3716 * ada-valprint.c (ada_val_print_1): Replace calls to
3717 ada_val_print_1 by calls to val_print.
3719 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3721 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3722 Update calls to self accordingly. Replace calls to c_val_print
3723 by calls to val_print.
3725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3727 * ada-valprint.c (print_record): Delete declaration.
3728 (adjust_type_signedness, ada_val_print_1): Likewise.
3729 (ada_val_print): Move function implementation down.
3730 (print_variant_part, print_field_values, print_record):
3731 Move function implementation up.
3733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3735 * python/py-type.c (typy_get_name): New function.
3736 (type_object_getset): Add entry for attribute "name".
3737 * NEWS: Add entry mentioning this new attribute.
3739 2014-01-07 Yao Qi <yao@codesourcery.com>
3741 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3744 2014-01-07 Yao Qi <yao@codesourcery.com>
3746 * gnu-nat.c (info_port_rights): Add qualifier const to
3749 2014-01-07 Yao Qi <yao@codesourcery.com>
3751 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3753 2014-01-07 Yao Qi <yao@codesourcery.com>
3755 * gnu-nat.c (make_inf) Update declaration.
3756 (make_inf): Make it static.
3757 (inf_set_traced): Likewise.
3758 (inf_port_to_thread, inf_task_died_status): Likewise.
3760 2014-01-07 Yao Qi <yao@codesourcery.com>
3762 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3764 2014-01-07 Yao Qi <yao@codesourcery.com>
3766 * gnu-nat.c (_initialize_gnu_nat): Declare.
3768 2014-01-07 Yao Qi <yao@codesourcery.com>
3770 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3772 (struct gdbarch_info) <byte_order>: Change type to
3774 <byte_order_for_code>: Likewise.
3775 * gdbarch.c, gdbarch.h: Regenerated.
3777 2014-01-06 Sasha Smundak <asmundak@google.com>
3779 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3781 2014-01-06 Tom Tromey <tromey@redhat.com>
3783 * doublest.c (convert_doublest_to_floatformat): Use const, not
3785 * somread.c (som_symtab_read): Likewise.
3787 2014-01-07 Hui Zhu <hui@codesourcery.com>
3789 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3790 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3791 (gdb_bfd_fopen): Ditto.
3792 (gdb_bfd_openr): Ditto.
3793 (gdb_bfd_openw): Ditto.
3794 (gdb_bfd_openr_iovec): Ditto.
3795 (gdb_bfd_fdopenr): Ditto.
3796 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3797 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3799 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3801 * symfile-mem.c (symbol_file_add_from_memory): Removed
3802 gdb_bfd_stash_filename.
3804 2014-01-03 Doug Evans <dje@google.com>
3806 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3809 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3811 Update year range in copyright notice of all files.
3813 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3815 * top.c (print_gdb_version): Set copyright year to 2014.
3817 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3819 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3821 For older changes see ChangeLog-2013.
3827 version-control: never