1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target-delegates.c: Rebuild.
4 * target.c (update_current_target): Don't inherit or default
6 * target.h (struct target_ops) <to_insert_watchpoint>: 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
13 to_remove_hw_breakpoint.
14 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
15 TARGET_DEFAULT_RETURN.
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
21 to_insert_hw_breakpoint.
22 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
23 TARGET_DEFAULT_RETURN.
25 2014-02-19 Tom Tromey <tromey@redhat.com>
27 * target-delegates.c: Rebuild.
28 * target.c (update_current_target): Don't inherit or default
29 to_can_use_hw_breakpoint.
30 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
31 TARGET_DEFAULT_RETURN.
33 2014-02-19 Tom Tromey <tromey@redhat.com>
35 * target-delegates.c: Rebuild.
36 * target.c (update_current_target): Don't inherit or default
38 * target.h (struct target_ops) <to_files_info>: Use
39 TARGET_DEFAULT_IGNORE.
41 2014-02-19 Tom Tromey <tromey@redhat.com>
43 * target-delegates.c: Rebuild.
44 * target.c (update_current_target): Don't inherit or default
46 * target.h (struct target_ops) <to_store>: Use
47 TARGET_DEFAULT_NORETURN.
49 2014-02-19 Tom Tromey <tromey@redhat.com>
51 * target-delegates.c: Rebuild.
52 * target.c (update_current_target): Don't inherit or default
54 * target.h (struct target_ops) <to_post_attach>: Use
55 TARGET_DEFAULT_IGNORE.
57 2014-02-19 Tom Tromey <tromey@redhat.com>
59 * target-delegates.c: Rebuild.
60 * target.c (update_current_target): Don't inherit or default
62 (default_rcmd): New function.
63 (do_monitor_command): Unconditionally delegate.
64 * target.h (struct target_ops) <to_rmcd>: Use
67 2014-02-19 Tom Tromey <tromey@redhat.com>
69 * target-delegates.c: Rebuild.
70 * target.c (init_dummy_target): Don't initialize to_attach.
71 (target_attach): Unconditionally delegate.
72 * target.h (struct target_ops) <to_attach>: Use
75 2014-02-19 Tom Tromey <tromey@redhat.com>
77 * target-delegates.c: Rebuild.
78 * target.c (target_detach): Unconditionally delegate.
79 (init_dummy_target): Don't initialize to_detach.
80 * target.h (struct target_ops) <to_detach>: Use
81 TARGET_DEFAULT_IGNORE.
83 2014-02-19 Tom Tromey <tromey@redhat.com>
85 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
87 (target_augmented_libraries_svr4_read): Add argument.
88 * target.c (update_current_target): Update.
89 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
92 2014-02-19 Tom Tromey <tromey@redhat.com>
94 * target.h (struct target_ops) <to_call_history_range>: Add
96 * target.c (target_call_history_range): Add argument.
97 * record-btrace.c (record_btrace_call_history_range): Add 'self'
99 (record_btrace_call_history_from): Update.
101 2014-02-19 Tom Tromey <tromey@redhat.com>
103 * target.h (struct target_ops) <to_call_history_from>: Add
105 * target.c (target_call_history_from): Add argument.
106 * record-btrace.c (record_btrace_call_history_from): Add 'self'
109 2014-02-19 Tom Tromey <tromey@redhat.com>
111 * target.h (struct target_ops) <to_call_history>: Add argument.
112 * target.c (target_call_history): Add argument.
113 * record-btrace.c (record_btrace_call_history): Add 'self'
116 2014-02-19 Tom Tromey <tromey@redhat.com>
118 * target.h (struct target_ops) <to_insn_history_range>: Add
120 * target.c (target_insn_history_range): Add argument.
121 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
123 (record_btrace_insn_history_from): Update.
125 2014-02-19 Tom Tromey <tromey@redhat.com>
127 * target.h (struct target_ops) <to_insn_history_from>: Add
129 * target.c (target_insn_history_from): Add argument.
130 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
133 2014-02-19 Tom Tromey <tromey@redhat.com>
135 * target.h (struct target_ops) <to_insn_history>: Add argument.
136 * target.c (target_insn_history): Add argument.
137 * record-btrace.c (record_btrace_insn_history): Add 'self'
140 2014-02-19 Tom Tromey <tromey@redhat.com>
142 * target.h (struct target_ops) <to_goto_record>: Add argument.
143 * target.c (target_goto_record): Add argument.
144 * record-full.c (record_full_goto): Add 'self' argument.
145 * record-btrace.c (record_btrace_goto): Add 'self' argument.
147 2014-02-19 Tom Tromey <tromey@redhat.com>
149 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
150 * target.c (target_goto_record_end): Add argument.
151 * record-full.c (record_full_goto_end): Add 'self' argument.
152 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
154 2014-02-19 Tom Tromey <tromey@redhat.com>
156 * target.h (struct target_ops) <to_goto_record_begin>: Add
158 * target.c (target_goto_record_begin): Add argument.
159 * record-full.c (record_full_goto_begin): Add 'self' argument.
160 * record-btrace.c (record_btrace_goto_begin): Add 'self'
163 2014-02-19 Tom Tromey <tromey@redhat.com>
165 * target.h (struct target_ops) <to_record_is_replaying>: Add
167 * target.c (target_record_is_replaying): Add argument.
168 * record-full.c (record_full_is_replaying): Add 'self' argument.
169 * record-btrace.c (record_btrace_is_replaying): Add 'self'
171 (record_btrace_xfer_partial, record_btrace_store_registers)
172 (record_btrace_prepare_to_store, record_btrace_resume)
173 (record_btrace_wait, record_btrace_decr_pc_after_break)
174 (record_btrace_find_new_threads, record_btrace_thread_alive):
177 2014-02-19 Tom Tromey <tromey@redhat.com>
179 * target.h (struct target_ops) <to_delete_record>: Add argument.
180 * target.c (target_delete_record): Add argument.
181 * record-full.c (record_full_delete): Add 'self' argument.
183 2014-02-19 Tom Tromey <tromey@redhat.com>
185 * target.h (struct target_ops) <to_save_record>: Add argument.
186 * target.c (target_save_record): Add argument.
187 * record-full.c (record_full_save): Add 'self' argument.
188 (record_full_save): Add 'self' argument.
190 2014-02-19 Tom Tromey <tromey@redhat.com>
192 * target.h (struct target_ops) <to_info_record>: Add argument.
193 * target.c (target_info_record): Add argument.
194 * record.c (info_record_command): Add argument.
195 * record-full.c (record_full_info): Add 'self' argument.
196 * record-btrace.c (record_btrace_info): Add 'self' argument.
198 2014-02-19 Tom Tromey <tromey@redhat.com>
200 * target.h (struct target_ops) <to_stop_recording>: Add argument.
201 * target.c (target_stop_recording): Add argument.
202 * record.c (record_stop): Add argument.
203 * record-btrace.c (record_btrace_stop_recording): Add 'self'
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (struct target_ops) <to_read_btrace>: Add argument.
209 * target.c (struct target_ops) <to_read_btrace>: Add argument.
210 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
212 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
213 (_initialize_amd64_linux_nat): Use it.
214 * i386-linux-nat.c (i386_linux_read_btrace): New function.
215 (_initialize_i386_linux_nat): Use it.
217 2014-02-19 Tom Tromey <tromey@redhat.com>
219 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
220 * target.c (target_teardown_btrace): Add argument.
221 * remote.c (remote_teardown_btrace): Add 'self' argument.
222 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
224 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
227 2014-02-19 Tom Tromey <tromey@redhat.com>
229 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
230 * target.c (target_disable_btrace): Add argument.
231 * remote.c (remote_disable_btrace): Add 'self' argument.
232 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
234 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
237 2014-02-19 Tom Tromey <tromey@redhat.com>
239 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
240 * target.c (target_enable_btrace): Add argument.
241 * remote.c (remote_enable_btrace): Add 'self' argument.
242 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
244 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
247 2014-02-19 Tom Tromey <tromey@redhat.com>
249 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
250 (target_can_use_agent): Add argument.
251 * target.c (update_current_target): Update.
252 * remote.c (remote_can_use_agent): Add 'self' argument.
253 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
255 2014-02-19 Tom Tromey <tromey@redhat.com>
257 * target.h (struct target_ops) <to_use_agent>: Add argument.
258 (target_use_agent): Add argument.
259 * target.c (update_current_target): Update.
260 * remote.c (remote_use_agent): Add 'self' argument.
261 * inf-child.c (inf_child_use_agent): Add 'self' argument.
263 2014-02-19 Tom Tromey <tromey@redhat.com>
265 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
266 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
267 (target_traceframe_info): Add argument.
268 * target.c (update_current_target): Update.
269 * remote.c (remote_traceframe_info): Add 'self' argument.
270 * ctf.c (ctf_traceframe_info): Add 'self' argument.
272 2014-02-19 Tom Tromey <tromey@redhat.com>
274 * target.h (target_static_tracepoint_markers_by_strid): Add
276 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
278 * target.c (update_current_target): Update.
279 * remote.c (struct target_ops)
280 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
281 * linux-nat.c (struct target_ops)
282 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
284 2014-02-19 Tom Tromey <tromey@redhat.com>
286 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
288 (target_static_tracepoint_marker_at): Add argument.
289 * target.c (update_current_target): Update.
290 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
293 2014-02-19 Tom Tromey <tromey@redhat.com>
295 * target.h (struct target_ops) <to_set_permissions>: Add argument.
296 (target_set_permissions): Add argument.
297 * target.c (update_current_target): Update.
298 * remote.c (remote_set_permissions): Add 'self' argument.
299 (remote_start_remote): Update.
301 2014-02-19 Tom Tromey <tromey@redhat.com>
303 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
304 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
305 (target_get_tib_address): Add argument.
306 * target.c (update_current_target): Update.
307 * remote.c (remote_get_tib_address): Add 'self' argument.
309 2014-02-19 Tom Tromey <tromey@redhat.com>
311 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
312 (target_set_trace_notes): Add argument.
313 * target.c (update_current_target): Update.
314 * remote.c (remote_set_trace_notes): Add 'self' argument.
316 2014-02-19 Tom Tromey <tromey@redhat.com>
318 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
320 (target_set_trace_buffer_size): Add argument.
321 * target.c (update_current_target): Update.
322 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
324 2014-02-19 Tom Tromey <tromey@redhat.com>
326 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
328 (target_set_circular_trace_buffer): Add argument.
329 * target.c (update_current_target): Update.
330 * remote.c (remote_set_circular_trace_buffer): Add 'self'
333 2014-02-19 Tom Tromey <tromey@redhat.com>
335 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
337 (target_set_disconnected_tracing): Add argument.
338 * target.c (update_current_target): Update.
339 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
341 2014-02-19 Tom Tromey <tromey@redhat.com>
343 * target.h (struct target_ops)
344 <to_get_min_fast_tracepoint_insn_len>: Add argument.
345 (target_get_min_fast_tracepoint_insn_len): Add argument.
346 * target.c (update_current_target): Update.
347 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
350 2014-02-19 Tom Tromey <tromey@redhat.com>
352 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
354 (target_get_raw_trace_data): Add argument.
355 * target.c (update_current_target): Update.
356 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
358 2014-02-19 Tom Tromey <tromey@redhat.com>
360 * target.h (struct target_ops) <to_upload_trace_state_variables>:
362 (target_upload_trace_state_variables): Add argument.
363 * target.c (update_current_target): Update.
364 * remote.c (remote_upload_trace_state_variables): Add 'self'
366 (remote_start_remote): Update.
368 2014-02-19 Tom Tromey <tromey@redhat.com>
370 * target.h (struct target_ops) <to_upload_tracepoints>: Add
372 (target_upload_tracepoints): Add argument.
373 * target.c (update_current_target): Update.
374 * remote.c (remote_upload_tracepoints): Add 'self' argument.
375 (remote_start_remote): Update.
377 2014-02-19 Tom Tromey <tromey@redhat.com>
379 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
380 (target_save_trace_data): Add argument.
381 * target.c (update_current_target): Update.
382 * remote.c (remote_save_trace_data): Add 'self' argument.
384 2014-02-19 Tom Tromey <tromey@redhat.com>
386 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
388 * target.h (struct target_ops)
389 <to_get_trace_state_variable_value>: Add argument.
390 (target_get_trace_state_variable_value): Add argument.
391 * target.c (update_current_target): Update.
392 * remote.c (remote_get_trace_state_variable_value): Add 'self'
394 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
396 2014-02-19 Tom Tromey <tromey@redhat.com>
398 * tracepoint.c (tfile_trace_find): Add 'self' argument.
399 * target.h (struct target_ops) <to_trace_find>: Add argument.
400 (target_trace_find): Add argument.
401 * target.c (update_current_target): Update.
402 * remote.c (remote_trace_find): Add 'self' argument.
403 * ctf.c (ctf_trace_find): Add 'self' argument.
405 2014-02-19 Tom Tromey <tromey@redhat.com>
407 * target.h (struct target_ops) <to_trace_stop>: Add argument.
408 (target_trace_stop): Add argument.
409 * target.c (update_current_target): Update.
410 * remote.c (remote_trace_stop): Add 'self' argument.
412 2014-02-19 Tom Tromey <tromey@redhat.com>
414 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
415 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
417 (target_get_tracepoint_status): Add argument.
418 * target.c (update_current_target): Update.
419 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
421 2014-02-19 Tom Tromey <tromey@redhat.com>
423 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
424 * target.h (struct target_ops) <to_get_trace_status>: Add
426 (target_get_trace_status): Add argument.
427 * target.c (update_current_target): Update.
428 * remote.c (remote_get_trace_status): Add 'self' argument.
429 (remote_start_remote, remote_can_download_tracepoint): Update.
430 * ctf.c (ctf_get_trace_status): Add 'self' argument.
432 2014-02-19 Tom Tromey <tromey@redhat.com>
434 * target.h (struct target_ops) <to_trace_start>: Add argument.
435 (target_trace_start): Add argument.
436 * target.c (update_current_target): Update.
437 * remote.c (remote_trace_start): Add 'self' argument.
439 2014-02-19 Tom Tromey <tromey@redhat.com>
441 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
443 (target_trace_set_readonly_regions): Add argument.
444 * target.c (update_current_target): Update.
445 * remote.c (remote_trace_set_readonly_regions): Add 'self'
448 2014-02-19 Tom Tromey <tromey@redhat.com>
450 * target.h (struct target_ops) <to_disable_tracepoint>: Add
452 (target_disable_tracepoint): Add argument.
453 * target.c (update_current_target): Update.
454 * remote.c (remote_disable_tracepoint): Add 'self' argument.
456 2014-02-19 Tom Tromey <tromey@redhat.com>
458 * target.h (struct target_ops) <to_enable_tracepoint>: Add
460 (target_enable_tracepoint): Add argument.
461 * target.c (update_current_target): Update.
462 * remote.c (remote_enable_tracepoint): Add 'self' argument.
464 2014-02-19 Tom Tromey <tromey@redhat.com>
466 * target.h (struct target_ops) <to_download_trace_state_variable>:
468 (target_download_trace_state_variable): Add argument.
469 * target.c (update_current_target): Update.
470 * remote.c (remote_download_trace_state_variable): Add 'self'
473 2014-02-19 Tom Tromey <tromey@redhat.com>
475 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
477 (target_can_download_tracepoint): Add argument.
478 * target.c (update_current_target): Update.
479 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
481 2014-02-19 Tom Tromey <tromey@redhat.com>
483 * target.h (struct target_ops) <to_download_tracepoint>: Add
485 (target_download_tracepoint): Add argument.
486 * target.c (update_current_target): Update.
487 * remote.c (remote_download_tracepoint): Add 'self' argument.
489 2014-02-19 Tom Tromey <tromey@redhat.com>
491 * target.h (struct target_ops) <to_trace_init>: Add argument.
492 (target_trace_init): Add argument.
493 * target.c (update_current_target): Update.
494 * remote.c (remote_trace_init): Add 'self' argument.
496 2014-02-19 Tom Tromey <tromey@redhat.com>
498 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
499 * target.c (target_fileio_readlink): Add argument.
500 * remote.c (remote_hostio_readlink): Add 'self' argument.
501 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
503 2014-02-19 Tom Tromey <tromey@redhat.com>
505 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
506 * target.c (target_fileio_unlink): Add argument.
507 * remote.c (remote_hostio_unlink): Add 'self' argument.
508 (remote_file_delete): Update.
509 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
511 2014-02-19 Tom Tromey <tromey@redhat.com>
513 * target.h (struct target_ops) <to_fileio_close>: Add argument.
514 * target.c (target_fileio_close): Add argument.
515 * remote.c (remote_hostio_close): Add 'self' argument.
516 (remote_hostio_close_cleanup): Update.
517 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
519 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
521 2014-02-19 Tom Tromey <tromey@redhat.com>
523 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
524 * target.c (target_fileio_pread): Add argument.
525 * remote.c (remote_hostio_pread): Add 'self' argument.
526 (remote_bfd_iovec_pread, remote_file_get): Update.
527 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
529 2014-02-19 Tom Tromey <tromey@redhat.com>
531 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
532 * target.c (target_fileio_pwrite): Add argument.
533 * remote.c (remote_hostio_pwrite): Add 'self' argument.
534 (remote_file_put): Update.
535 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
537 2014-02-19 Tom Tromey <tromey@redhat.com>
539 * target.h (struct target_ops) <to_fileio_open>: Add argument.
540 * target.c (target_fileio_open): Add argument.
541 * remote.c (remote_hostio_open): Add 'self' argument.
542 (remote_bfd_iovec_open): Add 'self' argument.
543 (remote_file_put): Add 'self' argument.
544 (remote_file_get): Add 'self' argument.
545 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
547 2014-02-19 Tom Tromey <tromey@redhat.com>
549 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
551 (target_can_run_breakpoint_commands): Add argument.
552 * target.c (update_current_target): Update.
553 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
555 (remote_insert_breakpoint): Add 'self' argument.
556 (remote_insert_hw_breakpoint): Add 'self' argument.
557 (remote_can_run_breakpoint_commands): Add 'self' argument.
559 2014-02-19 Tom Tromey <tromey@redhat.com>
561 * target.h (struct target_ops)
562 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
563 (target_supports_evaluation_of_breakpoint_conditions): Add
565 * target.c (update_current_target): Update.
566 * remote.c (remote_supports_cond_breakpoints): Add 'self'
568 (remote_insert_breakpoint): Add 'self' argument.
569 (remote_insert_hw_breakpoint): Add 'self' argument.
570 (remote_supports_cond_breakpoints): Add 'self' argument.
572 2014-02-19 Tom Tromey <tromey@redhat.com>
574 * target.h (struct target_ops) <to_supports_string_tracing>: Add
576 (target_supports_string_tracing): Add argument.
577 * target.c (update_current_target): Update.
578 * remote.c (remote_supports_string_tracing): Add 'self' argument.
580 2014-02-19 Tom Tromey <tromey@redhat.com>
582 * target.h (struct target_ops)
583 <to_supports_disable_randomization>: Add argument.
584 * target.c (find_default_supports_disable_randomization): Add
586 (target_supports_disable_randomization): Add argument.
587 (find_default_supports_disable_randomization): Add 'self'
589 * remote.c (extended_remote_supports_disable_randomization): Add
591 (remote_supports_disable_randomization): Add 'self' argument.
592 (extended_remote_create_inferior): Update.
593 * linux-nat.c (linux_nat_supports_disable_randomization): Add
596 2014-02-19 Tom Tromey <tromey@redhat.com>
598 * target.h (struct target_ops)
599 <to_supports_enable_disable_tracepoint>: Add argument.
600 (target_supports_enable_disable_tracepoint): Add argument.
601 * target.c (update_current_target): Update.
602 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
605 2014-02-19 Tom Tromey <tromey@redhat.com>
607 * target.h (struct target_ops) <to_supports_multi_process>: Add
609 (target_supports_multi_process): Add argument.
610 * target.c (update_current_target): Update.
611 * remote.c (remote_supports_multi_process): Add 'self' argument.
612 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
614 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
617 2014-02-19 Tom Tromey <tromey@redhat.com>
619 * target.h (struct target_ops) <to_execution_direction>: Add
621 (target_execution_direction): Add argument.
622 * target.c (default_execution_direction): Add 'self' argument.
623 * record-full.c (record_full_execution_direction): Add 'self'
626 2014-02-19 Tom Tromey <tromey@redhat.com>
628 * target.h (struct target_ops) <to_can_execute_reverse>: Add
630 (target_can_execute_reverse): Add argument.
631 * remote.c (remote_can_execute_reverse): Add 'self' argument.
632 * record-full.c (record_full_can_execute_reverse): Add 'self'
634 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
637 2014-02-19 Tom Tromey <tromey@redhat.com>
639 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
640 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
642 (target_get_ada_task_ptid): Add argument.
643 * target.c (update_current_target): Update.
644 (default_get_ada_task_ptid): Add 'self' argument.
645 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
646 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
647 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
649 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
651 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
653 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
655 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
656 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
659 2014-02-19 Tom Tromey <tromey@redhat.com>
661 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
662 (target_goto_bookmark): Add argument.
663 * target.c (dummy_goto_bookmark): Add 'self' argument.
664 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
666 2014-02-19 Tom Tromey <tromey@redhat.com>
668 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
669 (target_get_bookmark): Add argument.
670 * target.c (dummy_get_bookmark): Add 'self' argument.
671 * record-full.c (record_full_get_bookmark): Add 'self' argument.
673 2014-02-19 Tom Tromey <tromey@redhat.com>
675 * target.h (struct target_ops) <to_make_corefile_notes>: Add
677 (target_make_corefile_notes): Add argument.
678 * target.c (dummy_make_corefile_notes): Add 'self' argument.
679 * procfs.c (procfs_make_note_section): Add 'self' argument.
680 (procfs_make_note_section): Add 'self' argument.
681 (procfs_make_note_section): Add 'self' argument.
682 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
684 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
685 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
686 * exec.c (exec_make_note_section): Add 'self' argument.
687 (exec_make_note_section): Add 'self' argument.
689 2014-02-19 Tom Tromey <tromey@redhat.com>
691 * target.h (struct target_ops) <to_find_memory_regions>: Add
693 (target_find_memory_regions): Add argument.
694 * target.c (dummy_find_memory_regions): Add 'self' argument.
695 * procfs.c (proc_find_memory_regions): Add 'self' argument.
696 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
697 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
698 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
699 * exec. (exec_do_find_memory_regions): New global.
700 (exec_set_find_memory_regions): Rewrite.
701 (exec_find_memory_regions): New function.
702 (init_exec_ops): Use exec_find_memory_regions.
704 2014-02-19 Tom Tromey <tromey@redhat.com>
706 * target.h (struct target_ops) <to_supports_non_stop>: Add
708 * target.c (find_default_supports_non_stop): Add argument.
709 (target_supports_non_stop): Add argument.
710 (find_default_supports_non_stop): Add 'self' argument.
711 * remote.c (remote_supports_non_stop): Add 'self' argument.
712 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
714 2014-02-19 Tom Tromey <tromey@redhat.com>
716 * target.h (struct target_ops) <to_log_command>: Add argument.
717 (target_log_command): Add argument.
718 * serial.h (serial_log_command): Add 'self' argument.
719 * serial.c (serial_log_command): Add 'self' argument.
721 2014-02-19 Tom Tromey <tromey@redhat.com>
723 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
724 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
726 (target_pid_to_exec_file): Add argument.
727 * target.c (debug_to_pid_to_exec_file): Add argument.
728 (update_current_target): Update.
729 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
730 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
731 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
732 (linux_handle_extended_wait): Update.
733 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
734 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
735 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
736 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
738 2014-02-19 Tom Tromey <tromey@redhat.com>
740 * target.h (struct target_ops) <to_rcmd>: Add argument.
741 (target_rcmd): Add argument.
742 * target.c (debug_to_rcmd): Add argument.
743 (update_current_target, do_monitor_command): Update.
744 * remote.c (remote_rcmd): Add 'self' argument.
745 * monitor.c (monitor_rcmd): Add 'self' argument.
747 2014-02-19 Tom Tromey <tromey@redhat.com>
749 * windows-nat.c (windows_stop): Add 'self' argument.
750 * target.h (struct target_ops) <to_stop>: Add argument.
751 * target.c (target_stop): Add argument.
752 (debug_to_stop): Add argument.
753 (update_current_target): Update.
754 * remote.c (remote_stop): Add 'self' argument.
755 * remote-sim.c (gdbsim_stop): Add 'self' argument.
756 (gdbsim_cntrl_c): Update.
757 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
758 * procfs.c (procfs_stop): Add 'self' argument.
759 * nto-procfs.c (procfs_stop): Add 'self' argument.
760 * monitor.c (monitor_stop): Add 'self' argument.
761 (monitor_open): Update.
762 * linux-nat.c (linux_nat_stop): Add argument.
763 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
764 * gnu-nat.c (gnu_stop): Add 'self' argument.
765 * darwin-nat.c (darwin_stop): Add 'self' argument.
767 2014-02-19 Tom Tromey <tromey@redhat.com>
769 * target.h (struct target_ops) <to_thread_name>: Add argument.
770 * target.c (target_thread_name): Add argument.
771 (update_current_target): Update.
772 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
774 2014-02-19 Tom Tromey <tromey@redhat.com>
776 * target.h (struct target_ops) <to_extra_thread_info>: Add
778 (target_extra_thread_info): Add argument.
779 * target.c (update_current_target): Update.
780 * remote.c (remote_threads_extra_info): Add 'self' argument.
781 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
783 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
784 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
785 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
787 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
789 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
791 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
794 2014-02-19 Tom Tromey <tromey@redhat.com>
796 * target.h (struct target_ops) <to_program_signals>: Add argument.
797 * target.c (target_program_signals): Add argument.
798 * remote.c (remote_program_signals): Add 'self' argument.
800 2014-02-19 Tom Tromey <tromey@redhat.com>
802 * target.h (struct target_ops) <to_pass_signals>: Add argument.
803 * target.c (target_pass_signals): Add argument.
804 * remote.c (remote_pass_signals): Add 'self' argument.
805 (remote_start_remote): Update.
806 * procfs.c (procfs_pass_signals): Add 'self' argument.
807 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
808 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
809 (linux_nat_create_inferior, linux_nat_attach): Update.
811 2014-02-19 Tom Tromey <tromey@redhat.com>
813 * windows-nat.c (windows_can_run): Add 'self' argument.
814 * target.h (struct target_ops) <to_can_run>: Add argument.
815 (target_can_run): Add argument.
816 * target.c (debug_to_can_run): Add argument.
817 (update_current_target): Update.
818 * nto-procfs.c (procfs_can_run): Add 'self' argument.
819 * inf-child.c (inf_child_can_run): Add 'self' argument.
820 * go32-nat.c (go32_can_run): Add 'self' argument.
822 2014-02-19 Tom Tromey <tromey@redhat.com>
824 * target.h (struct target_ops) <to_has_exited>: Add argument.
825 (target_has_exited): Add argument.
826 * target.c (debug_to_has_exited): Add argument.
827 (update_current_target): Update.
829 2014-02-19 Tom Tromey <tromey@redhat.com>
831 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
833 (target_set_syscall_catchpoint): Add argument.
834 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
836 * target.c (update_current_target): Update.
838 2014-02-19 Tom Tromey <tromey@redhat.com>
840 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
842 (target_remove_exec_catchpoint): Add argument.
843 * target.c (debug_to_remove_exec_catchpoint): Add argument.
844 (update_current_target): Update.
845 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
848 2014-02-19 Tom Tromey <tromey@redhat.com>
850 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
852 (target_insert_exec_catchpoint): Add argument.
853 * target.c (debug_to_insert_exec_catchpoint): Add argument.
854 (update_current_target): Update.
855 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
858 2014-02-19 Tom Tromey <tromey@redhat.com>
860 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
862 (target_remove_vfork_catchpoint): Add argument.
863 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
864 (update_current_target): Update.
865 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
868 2014-02-19 Tom Tromey <tromey@redhat.com>
870 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
872 (target_insert_vfork_catchpoint): Add argument.
873 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
874 (update_current_target): Update.
875 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
878 2014-02-19 Tom Tromey <tromey@redhat.com>
880 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
882 (target_remove_fork_catchpoint): Add argument.
883 * target.c (debug_to_remove_fork_catchpoint): Add argument.
884 (update_current_target): Update.
885 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
888 2014-02-19 Tom Tromey <tromey@redhat.com>
890 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
892 (target_insert_fork_catchpoint): Add argument.
893 * target.c (debug_to_insert_fork_catchpoint): Add argument.
894 (update_current_target): Update.
895 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
898 2014-02-19 Tom Tromey <tromey@redhat.com>
900 * target.h (struct target_ops) <to_post_startup_inferior>: Add
902 (target_post_startup_inferior): Add argument.
903 * target.c (debug_to_post_startup_inferior): Add argument.
904 (update_current_target): Update.
905 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
907 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
909 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
911 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
913 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
915 (super_post_startup_inferior): Likewise.
916 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
918 (super_post_startup_inferior): Likewise.
919 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
921 (super_post_startup_inferior): Likewise.
923 2014-02-19 Tom Tromey <tromey@redhat.com>
925 * target.h (struct target_ops) <to_load>: Add argument.
926 * target.c (target_load): Add argument.
927 (debug_to_load): Add argument.
928 (update_current_target): Update.
929 * remote.c (remote_load): Add 'self' argument.
930 * remote-sim.c (gdbsim_load): Add 'self' argument.
931 * remote-mips.c (mips_load): Add 'self' argument.
932 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
933 * monitor.c (monitor_load): Add 'self' argument.
934 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
936 2014-02-19 Tom Tromey <tromey@redhat.com>
938 * target.h (struct target_ops) <to_terminal_info>: Add argument.
939 (target_terminal_info): Add argument.
940 * target.c (debug_to_terminal_info): Add argument.
941 (default_terminal_info): Likewise.
942 * inflow.c (child_terminal_info): Add 'self' argument.
943 * inferior.h (child_terminal_info): Add 'self' argument.
944 * go32-nat.c (go32_terminal_info): Add 'self' argument.
946 2014-02-19 Tom Tromey <tromey@redhat.com>
948 * target.h (struct target_ops) <to_terminal_save_ours>: Add
950 (target_terminal_save_ours): Add argument.
951 * target.c (debug_to_terminal_save_ours): Add argument.
952 (update_current_target): Update.
953 * inflow.c (terminal_save_ours): Add 'self' argument.
954 * inferior.h (terminal_save_ours): Add 'self' argument.
956 2014-02-19 Tom Tromey <tromey@redhat.com>
958 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
959 (target_terminal_ours): Add argument.
960 * target.c (debug_to_terminal_ours): Add argument.
961 (update_current_target): Update.
962 * remote.c (remote_terminal_ours): Add 'self' argument.
963 (remote_close): Update.
964 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
965 * inflow.c (terminal_ours): Add 'self' argument.
966 * inferior.h (terminal_ours): Add 'self' argument.
967 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
969 2014-02-19 Pedro Alves <palves@redhat.com>
970 Tom Tromey <tromey@redhat.com>
972 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
974 (target_terminal_ours_for_output): Add argument.
975 * target.c (debug_to_terminal_ours_for_output): Add argument.
976 (update_current_target): Update.
977 * inflow.c (terminal_ours_for_output): Add 'self' argument.
978 * inferior.h (terminal_ours_for_output): Add 'self' argument.
979 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
981 2014-02-19 Tom Tromey <tromey@redhat.com>
983 * target.h (struct target_ops) <to_terminal_inferior>: Add
985 * target.c (target_terminal_inferior): Add argument.
986 (update_current_target): Update.
987 * remote.c (remote_terminal_inferior): Add 'self' argument.
988 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
989 * inflow.c (terminal_inferior): Add 'self' argument.
990 * inferior.h (terminal_inferior): Add 'self' argument.
991 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
992 (go32_terminal_inferior): Add 'self' argument.
994 2014-02-19 Tom Tromey <tromey@redhat.com>
996 * target.h (struct target_ops) <to_terminal_init>: Add argument.
997 (target_terminal_init): Add argument.
998 * target.c (debug_to_terminal_init): Add argument.
999 (update_current_target): Update.
1000 * inflow.c (terminal_init_inferior): Add 'self' argument.
1001 * inferior.h (terminal_init_inferior): Add 'self' argument.
1002 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1003 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1005 2014-02-19 Tom Tromey <tromey@redhat.com>
1007 * target.h (struct target_ops)
1008 <to_can_accel_watchpoint_condition>: Add argument.
1009 (target_can_accel_watchpoint_condition): Add argument.
1010 * target.c (debug_to_can_accel_watchpoint_condition): Add
1012 (update_current_target): Update.
1013 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1016 2014-02-19 Tom Tromey <tromey@redhat.com>
1018 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1020 (target_region_ok_for_hw_watchpoint): Add argument.
1021 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1022 (default_region_ok_for_hw_watchpoint): Add argument.
1023 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1024 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1026 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1028 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1030 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1032 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1034 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1036 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1037 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1039 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1040 Add 'self' argument.
1042 2014-02-19 Tom Tromey <tromey@redhat.com>
1044 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1046 (target_insert_watchpoint): Add argument.
1047 * target.c (debug_to_insert_watchpoint): Add argument.
1048 (update_current_target): Update.
1049 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1050 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1051 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1052 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1053 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1054 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1056 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1057 (procfs_insert_hw_watchpoint): Add 'self' argument.
1058 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1060 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1062 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1064 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1065 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1067 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1070 2014-02-19 Tom Tromey <tromey@redhat.com>
1072 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1074 (target_remove_watchpoint): Add argument.
1075 * target.c (debug_to_remove_watchpoint): Add argument.
1076 (update_current_target): Update.
1077 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1078 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1079 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1080 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1081 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1082 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1084 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1085 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1087 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1089 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1091 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1092 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1094 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1097 2014-02-19 Tom Tromey <tromey@redhat.com>
1099 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1101 (target_remove_hw_breakpoint): Add argument.
1102 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1103 (update_current_target): Update.
1104 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1105 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1107 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1108 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1110 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1113 2014-02-19 Tom Tromey <tromey@redhat.com>
1115 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1117 (target_insert_hw_breakpoint): Add argument.
1118 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1119 (update_current_target): Update.
1120 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1121 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1123 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1124 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1125 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1127 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1130 2014-02-19 Tom Tromey <tromey@redhat.com>
1132 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1134 (target_can_use_hardware_watchpoint): Add argument.
1135 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1136 (update_current_target): Update.
1137 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1139 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1141 * remote.c (remote_check_watch_resources): Add 'self' argument.
1142 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1143 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1145 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1146 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1148 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1150 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1152 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1154 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1156 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1158 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1159 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1161 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1164 2014-02-19 Tom Tromey <tromey@redhat.com>
1166 * target.h (struct target_ops) <to_post_attach>: Add argument.
1167 (target_post_attach): Add argument.
1168 * target.c (debug_to_post_attach): Add argument.
1169 (update_current_target): Update.
1170 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1171 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1172 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1173 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1174 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1176 2014-02-19 Tom Tromey <tromey@redhat.com>
1178 * windows-nat.c (windows_close): Add 'self' argument.
1179 * tracepoint.c (tfile_close): Add 'self' argument.
1180 * target.h (struct target_ops) <to_close>: Add argument.
1181 * target.c (target_close): Add argument.
1182 (update_current_target): Update.
1183 * remote.c (remote_close): Add 'self' argument.
1184 * remote-sim.c (gdbsim_close): Add 'self' argument.
1185 * remote-mips.c (mips_close): Add 'self' argument.
1186 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1187 * record-full.c (record_full_close): Add 'self' argument.
1188 * record-btrace.c (record_btrace_close): Add 'self' argument.
1189 * monitor.h (monitor_close): Add 'self' argument.
1190 * monitor.c (monitor_close): Add 'self' argument.
1191 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1192 * linux-nat.c (linux_nat_close): Add argument.
1193 * go32-nat.c (go32_close): Add 'self' argument.
1194 * exec.c (exec_close_1): Add 'self' argument.
1195 * ctf.c (ctf_close): Add 'self' argument.
1196 * corelow.c (core_close): Add 'self' argument.
1197 (core_close_cleanup): Update.
1198 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1199 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1201 2014-02-19 Tom Tromey <tromey@redhat.com>
1203 * remote.c (remote_load): New function.
1204 (init_remote_ops): Use it.
1206 2014-02-19 Tom Tromey <tromey@redhat.com>
1208 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1210 * common/linux-btrace.h (linux_supports_btrace): Update.
1211 * remote.c (remote_supports_btrace): Add "self" argument.
1212 * target-delegates.c: Rebuild.
1213 * target.c (target_supports_btrace): Remove.
1214 * target.h (struct target_ops) <to_supports_btrace>: Add
1215 target_ops argument.
1216 (target_supports_btrace): New define.
1218 2014-02-19 Tom Tromey <tromey@redhat.com>
1220 * record-full.c (record_full_beneath_to_resume_ops)
1221 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1222 (record_full_beneath_to_wait)
1223 (record_full_beneath_to_store_registers_ops)
1224 (record_full_beneath_to_store_registers)
1225 (record_full_beneath_to_xfer_partial_ops)
1226 (record_full_beneath_to_xfer_partial)
1227 (record_full_beneath_to_insert_breakpoint_ops)
1228 (record_full_beneath_to_insert_breakpoint)
1229 (record_full_beneath_to_remove_breakpoint_ops)
1230 (record_full_beneath_to_remove_breakpoint)
1231 (record_full_beneath_to_stopped_by_watchpoint)
1232 (record_full_beneath_to_stopped_data_address)
1233 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1234 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1235 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1236 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1237 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1238 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1239 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1240 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1241 (record_full_resume, record_full_wait_1)
1242 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1243 (record_full_store_registers, record_full_xfer_partial)
1244 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1245 (record_full_async, record_full_core_xfer_partial): Use target
1247 * target-delegates.c: Rebuild.
1248 * target.c (current_xfer_partial): Remove.
1249 (update_current_target): Do not INHERIT or de_fault
1250 to_insert_breakpoint, to_remove_breakpoint,
1251 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1252 to_is_async_p, to_async. Do not set to_xfer_partial field.
1253 (default_xfer_partial): Simplify.
1254 (current_xfer_partial): Remove.
1255 (target_wait, target_resume): Simplify.
1256 (find_default_can_async_p, find_default_is_async_p): Update.
1257 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1258 to_xfer_partial, to_stopped_by_watchpoint,
1259 to_stopped_data_address.
1260 (target_store_registers): Simplify.
1261 (forward_target_remove_breakpoint)
1262 (forward_target_insert_breakpoint): Remove.
1263 (target_remove_breakpoint, target_insert_breakpoint)
1264 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1265 * target.h (struct target_ops) <to_resume, to_wait,
1266 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1267 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1268 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1270 (forward_target_remove_breakpoint)
1271 (forward_target_insert_breakpoint): Remove.
1272 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1274 (record_btrace_insert_breakpoint): Delegate directly.
1276 2014-02-19 Tom Tromey <tromey@redhat.com>
1279 * target-delegates.c: New file.
1280 * target.c: Include target-delegates.c.
1281 (init_dummy_target): Call install_dummy_methods.
1282 (complete_target_initialization): Call install_delegators.
1283 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1284 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1285 * make-target-delegates: New file.
1287 2014-02-19 Tom Tromey <tromey@redhat.com>
1289 * record.c (find_record_target): Use find_target_at.
1290 * target.c (find_target_at): New function.
1291 * target.h (find_target_at): Declare.
1293 2014-02-19 Tom Tromey <tromey@redhat.com>
1295 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1297 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1299 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1300 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1302 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1304 * linux-nat.c (save_sigtrap): Update.
1305 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1306 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1307 (linux_nat_close): Update.
1308 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1310 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1312 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1313 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1314 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1315 (tmp_to_async): Add 'ops' argument.
1316 (record_full_stopped_by_watchpoint, record_full_async)
1317 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1319 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1320 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1321 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1322 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1323 (remote_is_async_p, remote_async): Add 'ops' argument.
1324 (remote_stopped_data_address): Update.
1325 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1326 * target.c (update_current_target)
1327 (find_default_can_async_p, find_default_is_async_p): Update.
1328 (init_dummy_target): Update.
1329 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1330 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1331 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1332 (target_can_async_p, target_is_async_p, target_async)
1333 (target_stopped_by_watchpoint): Update.
1335 2014-02-19 Yao Qi <yao@codesourcery.com>
1338 * gdbarch.sh: Remove startup_gdbarch.
1339 * gdbarch.c: Regenerated.
1340 * gdbarch.h: Likewise.
1342 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1344 * rl78-tdep.c (rl78_g10_register_name): New function.
1345 (rl78_return_value): Add g10 support.
1346 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1349 2014-02-17 Doug Evans <xdje42@gmail.com>
1351 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1352 (SUBDIR_GUILE_SRCS): Ditto.
1353 (scm-gsmob.o): Ditto.
1355 2014-02-17 Yao Qi <yao@codesourcery.com>
1357 * gnu-nat.c (ILL_RPC): Declare defined function.
1359 2014-02-17 Yao Qi <yao@codesourcery.com>
1361 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1362 mach_msg_type_number_t.
1363 (gnu_write_inferior): Likewise.
1365 2014-02-17 Yao Qi <yao@codesourcery.com>
1367 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1369 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1370 (inf_validate_procs, inf_signal): Likewise.
1371 (S_exception_raise_request): Likewise.
1372 (do_mach_notify_dead_name): Likewise.
1373 (steal_exc_port): Likewise.
1374 (gnu_read_inferior): Change 'copy_count''s type to
1375 mach_msg_type_number_t.
1376 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1379 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1381 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1382 flag. Adjust all users; in particular...
1383 (gnu_wait): ..., don't decrement its value in here...
1384 (gnu_create_inferior): ..., and instead set the flag in here,
1385 around the startup_inferior call, and call that one with
1386 START_INFERIOR_TRAPS_EXPECTED.
1388 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1389 (ILL_RPC): ... new macro.
1390 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1391 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1392 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1393 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1394 functions with ILL_RPC macro.
1395 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1396 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1397 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1398 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1399 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1400 (S_proc_getlogin_reply, S_proc_getsid_reply)
1401 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1402 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1403 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1404 (S_proc_getnports_reply, S_proc_is_important_reply)
1405 (S_proc_get_code_reply): New stub functions, generated with
1408 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1409 collected the type check structures.
1411 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1413 2014-02-14 Doug Evans <dje@google.com>
1415 * target.c (target_write_partial): Fix result type.
1417 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1419 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1420 the proper offsets to access fpregset_t.
1422 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1424 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1425 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1426 * h8300-tdep.c (setmachinelist): Remove global.
1427 * hppa-tdep.c (hppa_sigtramp): Remove global.
1428 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1429 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1430 * ravenscar-thread.c (update_target_observer): Remove global.
1431 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1433 2014-02-12 Tom Tromey <tromey@redhat.com>
1435 * common/rsp-low.c: Update comments.
1436 * common/rsp-low.h: Update comments.
1438 2014-02-12 Tom Tromey <tromey@redhat.com>
1440 * common/rsp-low.c (convert_ascii_to_int): Remove.
1441 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1443 2014-02-12 Tom Tromey <tromey@redhat.com>
1445 * common/rsp-low.h (unhexify): Don't declare.
1446 * common/rsp-low.c (unhexify): Remove.
1448 2014-02-12 Tom Tromey <tromey@redhat.com>
1450 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1451 * common/rsp-low.c (convert_int_to_ascii): Remove.
1453 2014-02-12 Tom Tromey <tromey@redhat.com>
1455 * common/rsp-low.h (hexify): Don't declare.
1456 * common/rsp-low.c (hexify): Remove.
1458 2014-02-12 Tom Tromey <tromey@redhat.com>
1460 * common/rsp-low.c (hexify): Never take strlen of argument.
1462 2014-02-12 Tom Tromey <tromey@redhat.com>
1464 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1465 * remote.c (extended_remote_run, remote_rcmd)
1466 (remote_download_trace_state_variable, remote_save_trace_data)
1467 (remote_set_trace_notes): Update.
1468 * tracepoint.c (encode_source_string, tfile_write_status)
1469 (tfile_write_uploaded_tsv): Update.
1471 2014-02-12 Tom Tromey <tromey@redhat.com>
1473 * tracepoint.c: Include rsp-low.h.
1474 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1475 * remote.c: Include rsp-low.h.
1476 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1477 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1478 (remote_unescape_input): Move to common/rsp-low.c.
1479 * common/rsp-low.h: New file.
1480 * common/rsp-low.c: New file.
1481 * Makefile.in (SFILES): Add common/rsp-low.c.
1482 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1483 (COMMON_OBS): Add rsp-low.o.
1484 (rsp-low.o): New target.
1486 2014-02-12 Tom Tromey <tromey@redhat.com>
1488 * utils.h: Include print-utils.h.
1489 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1490 (int_string, core_addr_to_string, core_addr_to_string_nz)
1491 (hex_string, hex_string_custom): Don't declare.
1492 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1493 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1494 (hex_string_custom, int_string, core_addr_to_string)
1495 (core_addr_to_string_nz, host_address_to_string): Move to
1496 common/print-utils.c.
1497 * common/print-utils.h: New file.
1498 * common/print-utils.c: New file
1499 * Makefile.in (SFILES): Add common/print-utils.c.
1500 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1501 (COMMON_OBS): Add print-utils.o.
1502 (print-utils.o): New target.
1504 2014-02-12 Tom Tromey <tromey@redhat.com>
1506 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1508 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1510 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1512 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1514 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1515 if a PT_IO ptrace request returns sucessfully but indicates that 0
1516 bytes were transferred.
1518 2014-02-12 Pedro Alves <palves@redhat.com>
1519 Kevin Buettner <kevinb@redhat.com>
1521 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1522 TYPE_INSTANCE_FLAG_CODE_SPACE.
1524 2014-02-12 Pedro Alves <palves@redhat.com>
1526 * h8300-tdep.c (pseudo_from_raw_register)
1527 (raw_from_pseudo_register): New functions.
1528 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1531 2014-02-12 Pedro Alves <palves@redhat.com>
1533 * h8300-tdep.c (h8300_register_sim_regno): New function.
1534 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1535 gdbarch_register_sim_regno hook.
1537 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1539 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1541 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1543 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1545 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1547 * obsd-tdep.h (obsd_init_abi): New prototype.
1548 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1549 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1550 (obsd_init_abi): New functions.
1551 * i386obsd-tdep.c: Include "obsd-tdep.h".
1552 (i386obsd_init_abi): Call obsd_init_abi.
1553 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1554 (amd64obsd_init_abi): Call obsd_init_abi.
1555 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1556 obsd-tdep.c to gdb_target_obs.
1558 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1560 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1561 double float arguments to 16-byte in the argument slots.
1563 2014-02-11 Doug Evans <xdje42@gmail.com>
1565 * configure.ac: Don't crash if pkg-config is not found and guile
1566 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1568 * configure: Regenerate.
1570 2014-02-11 Yao Qi <yao@codesourcery.com>
1572 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1573 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1574 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1575 * gnu-nat.c (gnu_xfer_memory): Likewise.
1576 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1577 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1578 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1579 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1581 2014-02-11 Yao Qi <yao@codesourcery.com>
1583 * target.h (enum target_xfer_error): Rename to ...
1584 (enum target_xfer_status): ... it. New. All users updated.
1585 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1587 (TARGET_XFER_STATUS_ERROR_P): New macro.
1588 (target_xfer_error_to_string): Remove declaration.
1589 (target_xfer_status_to_string): Declare.
1590 (target_xfer_partial_ftype): Adjust it.
1591 (struct target_ops) <to_xfer_partial>: Return
1592 target_xfer_status. Add argument xfered_len. Update
1594 * target.c (target_xfer_error_to_string): Rename to ...
1595 (target_xfer_status_to_string): ... it. New. All callers
1597 (target_read_live_memory): Likewise. Call target_xfer_partial
1598 instead of target_read.
1599 (memory_xfer_live_readonly_partial): Return
1600 target_xfer_status. Add argument xfered_len.
1601 (raw_memory_xfer_partial): Likewise.
1602 (memory_xfer_partial_1): Likewise.
1603 (memory_xfer_partial): Likewise.
1604 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1605 properly. Update debug message.
1606 (default_xfer_partial, current_xfer_partial): Likewise.
1607 (target_write_partial): Likewise.
1608 (target_read_partial): Likewise. All callers updated.
1609 (read_whatever_is_readable): Likewise.
1610 (target_write_with_progress): Likewise.
1611 (target_read_alloc_1): Likewise.
1613 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1614 * auxv.c (procfs_xfer_auxv): Likewise.
1615 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1616 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1617 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1618 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1619 * corefile.c (read_memory): Adjust.
1620 * corelow.c (core_xfer_partial): Likewise.
1621 * ctf.c (ctf_xfer_partial): Likewise.
1622 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1624 (darwin_xfer_partial): Likewise.
1625 * exec.c (section_table_xfer_memory_partial): Likewise. All
1627 (exec_xfer_partial): Likewise.
1628 * exec.h (section_table_xfer_memory_partial): Update
1630 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1632 (gnu_xfer_partial): Likewise.
1633 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1634 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1635 (ia64_hpux_xfer_solib_got): Likewise.
1636 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1637 type of 'partial_len' to ULONGEST.
1638 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1639 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1640 (linux_nat_xfer_partial): Likewise.
1641 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1642 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1643 * monitor.c (monitor_xfer_memory): Likewise.
1644 (monitor_xfer_partial): Likewise.
1645 * procfs.c (procfs_xfer_partial): Likewise.
1646 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1647 * record-full.c (record_full_xfer_partial): Likewise.
1648 (record_full_core_xfer_partial): Likewise.
1649 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1650 (gdbsim_xfer_partial): Likewise.
1651 * remote.c (remote_write_bytes_aux): Likewise. All callers
1653 (remote_write_bytes, remote_read_bytes): Likewise. All
1655 (remote_flash_erase): Likewise. All callers updated.
1656 (remote_write_qxfer): Likewise. All callers updated.
1657 (remote_read_qxfer): Likewise. All callers updated.
1658 (remote_xfer_partial): Likewise.
1659 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1660 (rs6000_xfer_shared_libraries): Likewise.
1661 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1662 (sol_thread_xfer_partial): Likewise.
1663 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1664 (sparc_xfer_partial): Likewise.
1665 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1667 (spu_xfer_partial): Likewise.
1668 * spu-multiarch.c (spu_xfer_partial): Likewise.
1669 * tracepoint.c (tfile_xfer_partial): Likewise.
1670 * windows-nat.c (windows_xfer_memory): Likewise.
1671 (windows_xfer_shared_libraries): Likewise.
1672 (windows_xfer_partial): Likewise.
1673 * valprint.c: Replace 'target_xfer_error' with
1674 'target_xfer_status' in comments.
1676 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1678 Checked in by Joel Brobecker <brobecker@adacore.com>.
1679 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1681 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1683 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1684 function parameters.
1686 2014-02-10 Will Newton <will.newton@linaro.org>
1688 * elfread.c (elf_rel_plt_read): Look for a .got section if
1689 looking up .got.plt fails.
1690 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1691 on address passed to elf_gnu_ifunc_record_cache.
1692 (elf_gnu_ifunc_resolve_addr): Likewise.
1693 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1695 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1697 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1698 (X_RETTURN): New macro.
1699 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1701 * sparc64-tdep.c (sparc64_init_abi): Hook
1702 sparc_in_function_epilogue_p.
1704 2014-02-10 Gary Benson <gbenson@redhat.com>
1706 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1707 Rename name_matcher to symbol_matcher.
1709 2014-02-10 Gary Benson <gbenson@redhat.com>
1711 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1712 Use expand_symtabs_file_matcher_ftype and
1713 expand_symtabs_symbol_matcher_ftype.
1715 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1717 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1718 (struct ada_symbol_cache): New.
1719 (ada_free_symbol_cache): Forward declare.
1720 (struct ada_pspace_data): New.
1721 (ada_pspace_data_handle): New static global.
1722 (get_ada_pspace_data, ada_pspace_data_cleanup)
1723 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1724 (cache_space, cache): Delete, now folded inside struct
1726 (ada_get_symbol_cache): New function.
1727 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1729 (_initialize_ada_language): Remove initialization of cache_space.
1730 Move call to observer_attach_inferior_exit up, grouping it
1731 with the other observer registrations inside this function.
1732 Rename command to be more general. Add call to
1733 register_program_space_data_with_cleanup.
1735 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1737 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1738 ada_new_objfile_observer.
1739 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1740 (_initialize_tasks): Update uses of ada_new_objfile_observer
1741 and ada_tasks_normal_stop_observer.
1743 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1745 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1746 returned by the 'Length attribute to integer.
1748 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1750 * ada-lang.c (_initialize_ada_language): Initialize
1751 cache_space obstack.
1753 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1755 * ada-lang.c (HASH_SIZE): New macro.
1756 (struct cache_entry): New type.
1757 (cache_space, cache): New static globals.
1758 (ada_clear_symbol_cache, find_entry): New functions.
1759 (lookup_cached_symbol, cache_symbol): Implement.
1760 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1761 (_initialize_ada_language): Attach ada_new_objfile_observer
1762 and ada_free_objfile_observer.
1764 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1766 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1767 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1768 struct block * parameter.
1769 (ada_lookup_symbol_list_worker): Constify local variable "block".
1770 Remove cast which is no longer necessary.
1772 2014-02-10 Doug Evans <xdje42@gmail.com>
1774 Add Guile as an extension language.
1775 * NEWS: Mention Guile scripting.
1776 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1777 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1778 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1779 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1780 (CLIBS): Add GUILE_LIBS.
1781 (install-guile): New rule.
1782 (guile.o): New rule.
1783 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1784 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1785 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1786 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1787 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1788 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1789 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1790 * configure.ac: New option --with-guile.
1791 * configure: Regenerate.
1792 * config.in: Regenerate.
1793 * auto-load.c: Remove #include "python/python.h". Add #include
1794 "gdb/section-scripts.h".
1795 (source_section_scripts): Handle Guile scripts.
1796 (_initialize_auto_load): Add name of Guile objfile script to
1797 scripts-directory help text.
1798 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1799 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1800 (struct breakpoint): New member scm_bp_object.
1801 * defs.h (enum command_control_type): New value guile_control.
1802 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1804 (show_user): Update comment.
1805 (_initialize_cli_cmds): Update help text for "show user". Update help
1806 text for max-user-call-depth.
1807 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1809 (multi_line_command_p): Add guile_control.
1810 (print_command_lines): Handle guile_control.
1811 (execute_control_command, recurse_read_control_structure): Ditto.
1812 (process_next_line): Recognize "guile" commands.
1813 * disasm.c (gdb_disassemble_info): Make non-static.
1814 * disasm.h: #include "dis-asm.h".
1815 (struct gdbarch): Add forward decl.
1816 (gdb_disassemble_info): Declare.
1817 * extension.c: #include "guile/guile.h".
1818 (extension_languages): Add guile.
1819 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1820 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1821 * gdbtypes.c (get_unsigned_type_max): New function.
1822 (get_signed_type_minmax): New function.
1823 * gdbtypes.h (get_unsigned_type_max): Declare.
1824 (get_signed_type_minmax): Declare.
1825 * guile/README: New file.
1826 * guile/guile-internal.h: New file.
1827 * guile/guile.c: New file.
1828 * guile/guile.h: New file.
1829 * guile/scm-arch.c: New file.
1830 * guile/scm-auto-load.c: New file.
1831 * guile/scm-block.c: New file.
1832 * guile/scm-breakpoint.c: New file.
1833 * guile/scm-disasm.c: New file.
1834 * guile/scm-exception.c: New file.
1835 * guile/scm-frame.c: New file.
1836 * guile/scm-gsmob.c: New file.
1837 * guile/scm-iterator.c: New file.
1838 * guile/scm-lazy-string.c: New file.
1839 * guile/scm-math.c: New file.
1840 * guile/scm-objfile.c: New file.
1841 * guile/scm-ports.c: New file.
1842 * guile/scm-pretty-print.c: New file.
1843 * guile/scm-safe-call.c: New file.
1844 * guile/scm-string.c: New file.
1845 * guile/scm-symbol.c: New file.
1846 * guile/scm-symtab.c: New file.
1847 * guile/scm-type.c: New file.
1848 * guile/scm-utils.c: New file.
1849 * guile/scm-value.c: New file.
1850 * guile/lib/gdb.scm: New file.
1851 * guile/lib/gdb/boot.scm: New file.
1852 * guile/lib/gdb/experimental.scm: New file.
1853 * guile/lib/gdb/init.scm: New file.
1854 * guile/lib/gdb/iterator.scm: New file.
1855 * guile/lib/gdb/printing.scm: New file.
1856 * guile/lib/gdb/types.scm: New file.
1857 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1858 (VPATH): Add $(GUILE_SRCDIR).
1859 (GUILE_DIR): New variable.
1860 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1861 (all): Add stamp-guile dependency.
1862 (stamp-guile): New rule.
1863 (clean-guile, install-guile, uninstall-guile): New rules.
1864 (install-only): Add install-guile dependency.
1865 (uninstall): Add uninstall-guile dependency.
1866 (clean): Add clean-guile dependency.
1868 2014-02-09 Doug Evans <xdje42@gmail.com>
1870 Revert this patch (which I approved, mea culpa).
1872 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1874 * Makefile.in (all-lib): Remove.
1875 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1877 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1879 Fix Python stack corruption.
1880 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1883 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1885 * Makefile.in (all-lib): Remove.
1886 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1888 2014-02-07 Doug Evans <dje@google.com>
1890 * extension-priv.h (extension_language_script_ops): Add comment.
1891 (extension_language_ops): Add comment.
1892 (active_ext_lang_state): Fix typo in comment.
1894 2014-02-07 Pedro Alves <palves@redhat.com>
1896 * infrun.c (handle_signal_stop) <signal arrives while stepping
1897 over a breakpoint>: Switch back to the stepping thread.
1899 2014-02-07 Yao Qi <yao@codesourcery.com>
1901 * target.c (target_xfer_partial): Return zero if LEN is zero.
1903 2014-02-07 Yao Qi <yao@codesourcery.com>
1905 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1906 (ld_so_xfer_auxv): Likewise.
1907 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1908 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1909 * corelow.c (core_xfer_partial): Likewise.
1910 * ctf.c (ctf_xfer_partial): Likewise.
1911 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1912 (darwin_xfer_partial): Likewise.
1913 * exec.c (exec_xfer_partial): Likewise.
1914 * gnu-nat.c (gnu_xfer_partial): Likewise.
1915 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1916 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1917 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1918 * linux-nat.c (linux_xfer_siginfo): Likewise.
1919 (linux_proc_xfer_spu): Likewise.
1920 * procfs.c (procfs_xfer_partial): Likewise.
1921 * record-full.c (record_full_xfer_partial): Likewise.
1922 (record_full_core_xfer_partial): Likewise.
1923 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1924 * remote.c (remote_write_qxfer): Likewise.
1925 (remote_write_qxfer, remote_read_qxfer): Likewise.
1926 (remote_xfer_partial): Likewise.
1927 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1928 (rs6000_xfer_shared_libraries): Likewise.
1929 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1930 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1931 (spu_xfer_partial): Likewise.
1932 * target.c (memory_xfer_partial_1): Likewise.
1933 * tracepoint.c (tfile_xfer_partial): Likewise.
1934 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1935 (windows_xfer_partial): Likewise.
1937 2014-02-07 Yao Qi <yao@codesourcery.com>
1939 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1941 (core_xfer_shared_libraries_aix): Likewise.
1942 * gdbarch.c, gdbarch.h: Regenerated.
1943 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1944 ULONGEST. Change 'len_avail' type to ULONGEST.
1945 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1946 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1948 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1950 2014-02-07 Yao Qi <yao@codesourcery.com>
1952 * corefile.c (memory_error): Get 'exception' from ERR and pass
1953 'exception' to throw_error.
1955 2014-02-06 Doug Evans <xdje42@gmail.com>
1957 * configure.ac (libpython checking): Remove all but python.o from
1958 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1959 * configure: Regenerate.
1961 * Makefile.in (SFILES): Add extension.c.
1962 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1963 (COMMON_OBS): Add extension.o.
1964 * extension.h: New file.
1965 * extension-priv.h: New file.
1966 * extension.c: New file.
1968 * python/python-internal.h: #include "extension.h".
1969 (gdbpy_auto_load_enabled): Declare.
1970 (gdbpy_apply_val_pretty_printer): Declare.
1971 (gdbpy_apply_frame_filter): Declare.
1972 (gdbpy_preserve_values): Declare.
1973 (gdbpy_breakpoint_cond_says_stop): Declare.
1974 (gdbpy_breakpoint_has_cond): Declare.
1975 (void source_python_script_for_objfile): Delete.
1976 * python/python.c: #include "extension-priv.h".
1977 Delete inclusion of "observer.h".
1978 (extension_language_python): Moved here and renamed from
1979 script_language_python in py-auto-load.c.
1980 Redefined to be of type extension_language_defn.
1981 (python_extension_script_ops): New global.
1982 (python_extension_ops): New global.
1983 (struct python_env): New member previous_active.
1984 (restore_python_env): Call restore_active_ext_lang.
1985 (ensure_python_env): Call set_active_ext_lang.
1986 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1988 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1990 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1992 (gdbpy_eval_from_control_command): Renamed from
1993 eval_python_from_control_command, made static. New arg extlang.
1994 (gdbpy_source_script) Renamed from source_python_script, made static.
1996 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1997 result to int. New arg extlang.
1998 (gdbpy_source_objfile_script): Renamed from
1999 source_python_script_for_objfile, made static. New arg extlang.
2000 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2001 static. New args extlang, extlang_printers. Change result type to
2003 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2004 static. New arg extlang. Rename arg printers to extlang_printers
2005 and change type to ext_lang_type_printers *.
2006 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2007 static. Replace argument arg with extlang, extlang_printers.
2008 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2009 (!HAVE_PYTHON, source_python_script): Delete.
2010 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2011 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2012 (!HAVE_PYTHON, start_type_printers): Delete.
2013 (!HAVE_PYTHON, apply_type_printers): Delete.
2014 (!HAVE_PYTHON, free_type_printers): Delete.
2015 (_initialize_python): Delete call to observer_attach_before_prompt.
2016 (finalize_python): Set/restore active extension language.
2017 (gdbpy_finish_initialization) Renamed from
2018 finish_python_initialization, made static. New arg extlang.
2019 (gdbpy_initialized): New function.
2020 * python/python.h: #include "extension.h". Delete #include
2021 "value.h", "mi/mi-cmds.h".
2022 (extension_language_python): Declare.
2023 (GDBPY_AUTO_FILE_NAME): Delete.
2024 (enum py_bt_status): Moved to extension.h and renamed to
2026 (enum frame_filter_flags): Moved to extension.h.
2027 (enum py_frame_args): Moved to extension.h and renamed to
2028 ext_lang_frame_args.
2029 (finish_python_initialization): Delete.
2030 (eval_python_from_control_command): Delete.
2031 (source_python_script): Delete.
2032 (apply_val_pretty_printer): Delete.
2033 (apply_frame_filter): Delete.
2034 (preserve_python_values): Delete.
2035 (gdbpy_script_language_defn): Delete.
2036 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2037 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2039 * auto-load.c: #include "extension.h".
2040 (GDB_AUTO_FILE_NAME): Delete.
2041 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2042 (script_language_gdb): Delete, moved to extension.c and renamed to
2043 extension_language_gdb.
2044 (source_gdb_script_for_objfile): Delete.
2045 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2046 (loaded_script): Change type of language member to
2047 struct extension_language_defn *.
2048 (init_loaded_scripts_info): Initialize
2049 unsupported_script_warning_printed.
2050 (maybe_add_script): Make static. Change type of language arg to
2051 struct extension_language_defn *.
2052 (clear_section_scripts): Reset unsupported_script_warning_printed.
2053 (auto_load_objfile_script_1): Rewrite to use extension language API.
2054 (auto_load_objfile_script): Make public. Remove support-compiled-in
2055 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2056 (source_section_scripts): Rewrite to use extension language API.
2057 (load_auto_scripts_for_objfile): Rewrite to use
2058 auto_load_scripts_for_objfile.
2059 (collect_matching_scripts_data): Change type of language member to
2060 struct extension_language_defn *.
2061 (auto_load_info_scripts): Change type of language arg to
2062 struct extension_language_defn *.
2063 (unsupported_script_warning_print): New function.
2064 (script_not_found_warning_print): Make static.
2065 (_initialize_auto_load): Rewrite construction of scripts-directory
2067 * auto-load.h (struct objfile): Add forward decl.
2068 (struct script_language): Delete.
2069 (struct auto_load_pspace_info): Add forward decl.
2070 (struct extension_language_defn): Add forward decl.
2071 (maybe_add_script): Delete.
2072 (auto_load_objfile_script): Declare.
2073 (script_not_found_warning_print): Delete.
2074 (auto_load_info_scripts): Update prototype.
2075 (auto_load_gdb_scripts_enabled): Declare.
2076 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2077 auto_load_python_scripts_enabled and made public.
2078 (script_language_python): Delete, moved to python.c.
2079 (gdbpy_script_language_defn): Delete.
2080 (info_auto_load_python_scripts): Update to use
2081 extension_language_python.
2083 * breakpoint.c (condition_command): Replace call to
2084 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2085 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2086 with call to breakpoint_ext_lang_cond_says_stop.
2087 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2088 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2089 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2090 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2092 (local_setattro): Print name of extension language with existing
2095 * valprint.c (val_print, value_print): Update to call
2096 apply_ext_lang_val_pretty_printer.
2097 * cp-valprint.c (cp_print_value): Update call to
2098 apply_ext_lang_val_pretty_printer.
2099 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2100 (gdbpy_apply_val_pretty_printer): Renamed from
2101 apply_val_pretty_printer. New arg extlang.
2102 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2104 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2105 extension language API.
2106 * cli/cli-script.c (execute_control_command): Update to call
2107 eval_ext_lang_from_control_command.
2109 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2110 enum ext_lang_bt_status values. Update call to
2111 apply_ext_lang_frame_filter.
2112 (mi_cmd_stack_list_locals): Ditto.
2113 (mi_cmd_stack_list_args): Ditto.
2114 (mi_cmd_stack_list_variables): Ditto.
2115 * mi/mi-main.c: Delete #include "python/python-internal.h".
2116 Add #include "extension.h".
2117 (mi_cmd_list_features): Replace reference to python internal variable
2118 gdb_python_initialized with call to ext_lang_initialized_p.
2120 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2121 Update to use enum ext_lang_frame_args. Update to call
2122 apply_ext_lang_frame_filter.
2123 * python/py-framefilter.c (extract_sym): Update to use enum
2125 (extract_value, py_print_type, py_print_value): Ditto.
2126 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2127 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2128 (py_print_frame): Ditto.
2129 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2130 New arg extlang. Update to use enum ext_lang_bt_status.
2132 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2133 finish_python_initialization. Replace with call to
2134 finish_ext_lang_initialization.
2136 * typeprint.c (do_free_global_table): Update to call
2137 free_ext_lang_type_printers.
2138 (create_global_typedef_table): Update to call
2139 start_ext_lang_type_printers.
2140 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2141 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2142 (type_print_options): Change type of global_printers from "void *"
2143 to "struct ext_lang_type_printers *".
2145 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2146 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2147 (gdbpy_preserve_values): Renamed from preserve_python_values.
2149 (!HAVE_PYTHON, preserve_python_values): Delete.
2151 * utils.c (quit_flag): Delete, moved to extension.c.
2152 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2155 * eval.c: Delete #include "python/python.h".
2156 * main.c: Delete #include "python/python.h".
2158 * defs.h: Update comment.
2160 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2164 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2166 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2169 2014-02-05 Yao Qi <yao@codesourcery.com>
2171 * remote.c (remote_pass_signals): Remove local 'buf' and use
2173 (remote_program_signals): Likewise.
2175 2014-02-05 Yao Qi <yao@codesourcery.com>
2177 * ctf.c: Include "inferior.h" and "gdbthread.h".
2178 (CTF_PID): A new macro.
2179 (ctf_open): Call inferior_appeared and add_thread_silent.
2180 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2181 (ctf_thread_alive): New function.
2182 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2184 2014-02-05 Yao Qi <yao@codesourcery.com>
2188 2013-05-24 Yao Qi <yao@codesourcery.com>
2190 * tracepoint.c (TFILE_PID): Remove.
2191 (tfile_open): Don't add thread and inferior.
2192 (tfile_close): Don't set 'inferior_ptid'. Don't call
2193 exit_inferior_silent.
2194 (tfile_thread_alive): Remove.
2195 (init_tfile_ops): Don't set field 'to_thread_alive' of
2198 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2200 * remote.c (remote_start_remote): Call remote_check_symbols even
2201 if only symbol-file (not file) has been given.
2203 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2205 * gdbarch.sh (skip_entrypoint): New callback.
2206 * gdbarch.c, gdbarch.h: Regenerate.
2207 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2208 * infrun.c (fill_in_stop_func): Likewise.
2209 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2210 (ppc_elfv2_elf_make_msymbol_special): New function.
2211 (ppc_elfv2_skip_entrypoint): Likewise.
2212 (ppc_linux_init_abi): Install them for ELFv2.
2214 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2216 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2217 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2218 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2219 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2220 structures returned in GPRs.
2222 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2224 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2225 offset to the stack parameter list for the ELFv2 ABI.
2227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2229 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2230 set_gdbarch_convert_from_func_ptr_addr and
2231 set_gdbarch_elf_make_msymbol_special for ELFv1.
2232 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2233 function descriptors on ELFv1.
2234 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2235 set up r12 at function entry.
2237 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2239 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2240 (struct gdbarch_tdep): New member elf_abi.
2242 * rs6000-tdep.c: Include "elf/ppc64.h".
2243 (rs6000_gdbarch_init): Detect ELF ABI version.
2245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2247 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2248 within a register pair holding a DFP 128-bit value on little-endian.
2249 (ppc64_sysv_abi_return_value_base): Likewise.
2250 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2251 (dfp_pseudo_register_write): Likewise.
2253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2255 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2256 offset on little-endian when passing _Decimal32.
2257 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2259 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2261 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2262 of the overlapped FP register within the VSX register on little-
2264 (efpr_pseudo_register_write): Likewise.
2266 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2269 offset on little-endian when passing small structures.
2271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2273 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2274 (struct ppc64_sysv_argpos): New data structure.
2275 (ppc64_sysv_abi_push_float): Remove.
2276 (ppc64_sysv_abi_push_val): New function.
2277 (ppc64_sysv_abi_push_integer): Likewise.
2278 (ppc64_sysv_abi_push_freg): Likewise.
2279 (ppc64_sysv_abi_push_vreg): Likewise.
2280 (ppc64_sysv_abi_push_param): Likewise.
2281 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2282 (ppc64_sysv_abi_return_value_base): New function.
2283 (ppc64_sysv_abi_return_value): Refactor to use it.
2285 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2287 * NEWS: Document new target powerpc64le-*-linux*.
2289 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2291 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2292 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2294 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2295 register set used in ELF core dumps. Add floating-point register set.
2297 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2299 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2300 dwarf2_to_gdb[] table using symbolic constants. Adjust
2301 penultimate entry from number representing the PC register
2302 to symbolic constant representing the MDR register. Add
2303 constant for the PC register to the end of the table.
2305 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2307 * bsd-kvm.c: Include <sys/param.h>
2309 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2311 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2313 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2315 * ada-lang.h (clear_ada_sym_cache): Delete.
2317 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2319 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2321 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2323 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2324 the sigreturn register save area only if the syscall is
2327 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2329 * valops.c (value_slice): Minor reformatting.
2331 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2333 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2335 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2337 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2339 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2340 (ada_ignore_descriptive_types_p): New static global.
2341 (find_parallel_type_by_descriptive_type): Return immediately
2342 if ada_ignore_descriptive_types_p is set.
2343 (_initialize_ada_language): Register new commands "maintenance
2344 set ada", "maintenance show ada", "maintenance set ada
2345 ignore-descriptive-types" and "maintenance show ada
2346 ignore-descriptive-types".
2347 * NEWS: Add entry for new "maint ada set/show
2348 ignore-descriptive-types" commands.
2350 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2352 * record-btrace.c (record_btrace_close): Call btrace_teardown
2355 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2357 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2360 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2362 * ada-typeprint (type_is_full_subrange_of_target_type):
2364 (print_range): Add parameter bounds_prefered_p. If not set,
2365 try printing range types using the name of their base type.
2366 (print_range_type): Add parameter bounds_prefered_p.
2367 Use it in call to print_range.
2368 (print_array_type, ada_print_type): Update calls to print_range
2369 and print_range_type.
2371 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2373 * ada-typeprint.c (print_array_type, print_choices, print_range)
2374 (print_range_bound, print_dynamic_range_bound, print_range_type):
2377 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2379 * ada-typeprint.c (print_range): Add missing empty line
2380 after local declaration.
2382 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2384 * ada-valprint.c (print_optional_low_bound): Get index_type's
2385 target type for as long as it is a TYPE_CODE_RANGE.
2387 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2389 * procfs.c (procfs_make_note_section): Remove assertion and
2392 2014-01-24 Yao Qi <yao@codesourcery.com>
2394 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2395 * corelow.c (get_core_siginfo): Likewise.
2397 2014-01-24 Yao Qi <yao@codesourcery.com>
2399 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2400 ULONGEST. Don't check 'len' is negative.
2401 (remote_write_bytes): Change type of 'len' to ULONGEST.
2403 2014-01-23 Tom Tromey <tromey@redhat.com>
2406 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2407 Handle exception from frame.block.
2408 (FrameVars.fetch_frame_locals): Likewise.
2410 2014-01-23 Tom Tromey <tromey@redhat.com>
2413 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2414 on a NULL pointer. Move "goto error" to correct place.
2416 2014-01-23 Tom Tromey <tromey@redhat.com>
2419 * python/py-framefilter.c (apply_frame_filter): Call
2420 ensure_python_env after computing gdbarch.
2422 2014-01-23 Yao Qi <yao@codesourcery.com>
2424 * target.c (raw_memory_xfer_partial): Change argument type
2425 from void * to gdb_byte *.
2426 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2428 2014-01-22 Doug Evans <dje@google.com>
2430 New gdbserver option --debug-format=timestamp.
2433 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2435 * syscalls/s390x-linux.xml: New file.
2436 * syscalls/s390-linux.xml: New file.
2437 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2438 (XML_SYSCALL_FILENAME_S390X): Likewise.
2439 (op_svc): New enum value for SVC opcode.
2440 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2441 (s390_linux_get_syscall_number): New function.
2442 (s390_gdbarch_init): Register '*get_syscall_number' and the
2443 syscall xml file name.
2444 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2445 "s390-linux.xml" and "s390x-linux.xml".
2446 * NEWS: Announce new feature.
2448 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2450 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2452 2014-01-22 Pedro Alves <palves@redhat.com>
2454 * xtensa-config.c: Include defs.h.
2456 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2458 * common/common-utils.h: Add "ARI:" comment beside __func__
2461 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2463 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2464 documentation a bit.
2466 2014-01-21 Roland McGrath <mcgrathr@google.com>
2468 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2469 * configure: Regenerate.
2470 * aclocal.m4: Regenerate.
2471 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2472 New substituted variables.
2473 (install-strip): New target.
2474 (INSTALL_SCRIPT): New substituted variable.
2475 (FLAGS_TO_PASS): Add it.
2476 (install-only): Use $(INSTALL_SCRIPT) rather than
2477 $(INSTALL_PROGRAM) for gcore.
2479 2014-01-20 Tom Tromey <tromey@redhat.com>
2481 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2484 2014-01-20 Tom Tromey <tromey@redhat.com>
2486 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2487 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2488 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2489 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2490 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2491 (struct cmd_list_element) <flags>: Remove.
2492 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2493 doc_allocated>: New fields.
2494 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2496 * maint.c (maintenance_do_deprecate): Update.
2497 * top.c (execute_command): Update.
2499 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2501 * xtensa-linux-nat.c: Include asm/ptrace.h.
2503 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2505 * Makefile.in (SFILES): Add d-support.c.
2506 (COMMON_OBS): Add d-support.o.
2507 * d-lang.h (d_parse_symbol): Add comment, now defined in
2509 * d-lang.c (parse_call_convention)
2510 (parse_attributes, parse_function_types)
2511 (parse_function_args, parse_type, parse_identifier)
2512 (call_convention_p, d_parse_symbol): Move functions to ...
2513 * d-support.c: ... New file.
2515 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2517 * d-lang.h (d_parse_symbol): Add declaration.
2518 * d-lang.c (extract_identifiers)
2519 (extract_type_info): Remove functions.
2520 (parse_call_convention, parse_attributes)
2521 (parse_function_types, parse_function_args)
2522 (parse_type, parse_identifier, call_convention_p)
2523 (d_parse_symbol): New functions.
2524 (d_demangle): Use d_parse_symbol to demangle D symbols.
2526 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2528 * d-lang.h (struct builtin_d_type): New data type.
2529 (builtin_d_type): Add declaration.
2530 * d-lang.c (d_language_arch_info, build_d_types)
2531 (builtin_d_type): New functions.
2532 (enum d_primitive_types): New data type.
2533 (d_language_defn): Change c_language_arch_info to
2534 d_language_arch_info.
2535 (d_type_data): New static variable.
2536 (_initialize_d_language): Initialize d_type_data.
2538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2540 * d-lang.h (d_main_name): Add declaration.
2541 * d-lang.c (d_main_name): New function.
2542 * symtab.c (find_main_name): Add call to d_main_name.
2544 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2546 * d-lang.c (d_language_defn): Change macro_expansion_c to
2549 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2551 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2553 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2555 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2556 gdb_exception" declaration.
2557 * remote.c (getpkt_or_notif_sane): Likewise.
2559 2014-01-17 Doug Evans <dje@google.com>
2561 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2562 function, contents of dirnames_to_char_ptr_vec_append moved here.
2563 (delim_string_to_char_ptr_vec): New function.
2564 (dirnames_to_char_ptr_vec_append): Rewrite.
2565 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2567 2014-01-17 Doug Evans <dje@google.com>
2569 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2571 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2572 #include "common-utils.h".
2573 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2574 * common/vec.h (VEC_ASSERT_PASS): Update.
2575 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2576 (MACH_CHECK_ERROR): Update.
2578 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2580 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2582 * gdbarch.h: Regenerate.
2584 2014-01-16 Tom Tromey <tromey@redhat.com>
2586 * value.c (struct value) <regnum>: Move earlier.
2588 2014-01-16 Tom Tromey <tromey@redhat.com>
2590 * remote.c (extended_remote_create_inferior): Rename from
2591 extended_remote_create_inferior_1. Add "ops" argument. Remove
2594 2014-01-16 Pedro Alves <palves@redhat.com>
2596 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2597 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2600 2014-01-16 Doug Evans <dje@google.com>
2602 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2604 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2606 * btrace.h (btrace_thread_flag): New.
2607 (struct btrace_thread_info) <flags>: New.
2608 * record-btrace.c (record_btrace_resume_thread)
2609 (record_btrace_find_thread_to_move, btrace_step_no_history)
2610 (btrace_step_stopped, record_btrace_start_replaying)
2611 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2612 (record_btrace_find_resume_thread): New.
2613 (record_btrace_resume, record_btrace_wait): Extend.
2614 (record_btrace_can_execute_reverse): New.
2615 (record_btrace_open): Fail in non-stop mode.
2616 (record_btrace_set_replay): Split into this, ...
2617 (record_btrace_stop_replaying): ... this, ...
2618 (record_btrace_clear_histories): ... and this.
2619 (init_record_btrace_ops): Init to_can_execute_reverse.
2620 * NEWS: Announce it.
2622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2624 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2625 (forward_target_decr_pc_after_break)
2626 (target_decr_pc_after_break): New.
2627 * target.c (forward_target_decr_pc_after_break)
2628 (target_decr_pc_after_break): New.
2629 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2630 instead of gdbarch_decr_pc_after_break.
2631 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2632 instead of gdbarch_decr_pc_after_break.
2633 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2634 instead of gdbarch_decr_pc_after_break.
2635 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2636 instead of gdbarch_decr_pc_after_break.
2637 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2638 instead of gdbarch_decr_pc_after_break.
2639 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2640 instead of gdbarch_decr_pc_after_break.
2642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2644 * btrace.c: Include regcache.h.
2645 (btrace_add_pc): New.
2646 (btrace_enable): Call btrace_add_pc.
2647 (btrace_is_empty): New.
2648 * btrace.h (btrace_is_empty): New.
2649 * record-btrace.c (require_btrace, record_btrace_info): Call
2652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2654 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2655 Support delta reads.
2656 (linux_disable_btrace): Change return type.
2657 * common/linux-btrace.h (linux_read_btrace): Change parameters
2658 and return type to allow error reporting. Update users.
2659 (linux_disable_btrace): Change return type. Update users.
2660 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2662 (btrace_error): New.
2663 (btrace_block) <begin>: Comment on BEGIN == 0.
2664 * btrace.c (btrace_compute_ftrace): Start from the end of
2666 (btrace_stitch_trace, btrace_clear_history): New.
2667 (btrace_fetch): Read delta trace, return if replaying.
2668 (btrace_clear): Move clear history code to btrace_clear_history.
2669 (parse_xml_btrace): Throw an error if parsing failed.
2670 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2671 and return type to allow error reporting.
2672 (target_read_btrace): Change parameters and return type to allow
2674 * target.c (target_read_btrace): Update.
2675 * remote.c (remote_read_btrace): Support delta reads. Pass
2677 * NEWS: Announce it.
2679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2681 * record.h (record_btrace_frame_unwind)
2682 (record_btrace_tailcall_frame_unwind): New declarations.
2683 * dwarf2-frame: Include record.h
2684 (dwarf2_frame_cfa): Throw an error for btrace frames.
2685 * record-btrace.c: Include hashtab.h.
2686 (btrace_get_bfun_name): New.
2687 (btrace_call_history): Call btrace_get_bfun_name.
2688 (struct btrace_frame_cache): New.
2690 (bfcache_hash, bfcache_eq, bfcache_new): New.
2691 (btrace_get_frame_function): New.
2692 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2693 (record_btrace_frame_this_id): Compute own id.
2694 (record_btrace_frame_prev_register): Provide PC, throw_error
2695 for all other registers.
2696 (record_btrace_frame_sniffer): Detect btrace frames.
2697 (record_btrace_tailcall_frame_sniffer): New.
2698 (record_btrace_frame_dealloc_cache): New.
2699 (record_btrace_frame_unwind): Add new functions.
2700 (record_btrace_tailcall_frame_unwind): New.
2701 (_initialize_record_btrace): Allocate cache.
2702 * btrace.c (btrace_clear): Call reinit_frame_cache.
2703 * NEWS: Announce it.
2705 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2707 * record-btrace.c (record_btrace_set_replay)
2708 (record_btrace_goto_begin, record_btrace_goto_end)
2709 (record_btrace_goto): New.
2710 (init_record_btrace_ops): Initialize them.
2711 * NEWS: Announce it.
2713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2715 * record-btrace.c (record_btrace_find_new_threads)
2716 (record_btrace_thread_alive): New.
2717 (init_record_btrace_ops): Initialize to_find_new_threads and
2720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2722 * record-btrace.c (record_btrace_resume): New.
2723 (record_btrace_wait): New.
2724 (init_record_btrace_ops): Initialize to_wait and to_resume.
2726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2728 * record-btrace.c (record_btrace_xfer_partial)
2729 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2730 (record_btrace_allow_memory_access): New.
2731 (init_record_btrace_ops): Initialize new methods.
2732 * target.c (raw_memory_xfer_partial): Bail out if target reports
2733 that this memory is not available.
2735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2737 * target.h (target_ops) <to_insert_breakpoint>
2738 <to_remove_breakpoint>: Add target_ops parameter.
2739 (forward_target_insert_breakpoint): New.
2740 (forward_target_remove_breakpoint): New.
2741 (memory_remove_breakpoint, memory_insert_breakpoint):
2742 Add target_ops parameter.
2743 * target.c (target_insert_breakpoint): Split into this and ...
2744 (forward_target_insert_breakpoint): ... this.
2745 (target_remove_breakpoint): Split into this and ...
2746 (forward_target_remove_breakpoint): ... this.
2747 (debug_to_insert_breakpoint): Add target_ops parameter.
2748 Call forward_target_insert_breakpoint.
2749 (debug_to_remove_breakpoint): Add target_ops parameter.
2750 Call forward_target_remove_breakpoint.
2751 (update_current_target): Do not inherit or default to_insert_breakpoint
2752 and to_remove_breakpoint.
2753 * corelow.c (ignore): Add target_ops parameter.
2754 * exec.c (ignore): Add target_ops parameter.
2755 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2756 Add target_ops parameter.
2757 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2758 Add target_ops parameter.
2759 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2760 Add target_ops parameter.
2761 * record-full.c (record_full_beneath_to_insert_breakpoint)
2762 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2763 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2764 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2765 (record_full_core_remove_breakpoint): Add target_ops parameter.
2767 (record_full_beneath_to_insert_breakpoint_ops)
2768 (record_full_beneath_to_remove_breakpoint_ops)
2769 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2770 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2771 tmp_to_remove_breakpoint_ops,
2772 record_full_beneath_to_insert_breakpoint_ops, and
2773 record_full_beneath_to_remove_breakpoint_ops.
2774 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2775 (m32r_remove_breakpoint): Add target_ops parameter.
2776 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2777 Add target_ops parameter.
2778 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2779 Add target_ops parameter.
2781 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 Markus Metzger <markus.t.metzger@intel.com>
2784 * record-btrace.c: Include frame-unwind.h.
2785 (record_btrace_frame_unwind_stop_reason)
2786 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2787 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2789 (init_record_btrace_ops): Install it.
2791 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2793 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2796 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2798 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2801 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2803 * frame-unwind.c: Include target.h.
2804 (frame_unwind_try_unwinder): New function with code from ...
2805 (frame_unwind_find_by_frame): ... here. New variable
2806 unwinder_from_target, call also target_get_unwinder)
2807 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2808 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2809 * target.h (struct target_ops): New fields to_get_unwinder and
2810 to_get_tailcall_unwinder.
2811 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2813 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2815 * record-btrace.c (record_btrace_fetch_registers)
2816 (record_btrace_store_registers)
2817 (record_btrace_to_prepare_to_store): New.
2818 (init_record_btrace_ops): Add the above.
2820 2014-01-16 Tom Tromey <tromey@redhat.com>
2822 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2823 * target.h (struct target_ops) <to_prepare_to_store>: Add
2825 (target_prepare_to_store): Add argument.
2826 * target.c (debug_to_prepare_to_store): Add argument.
2827 (update_current_target): Update.
2828 * remote.c (remote_prepare_to_store): Add 'self' argument.
2829 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2830 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2831 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2832 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2834 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2835 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2836 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2837 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2838 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2842 * btrace.h (replay) <replay>: New.
2843 (btrace_is_replaying): New.
2844 * btrace.c (btrace_clear): Free replay iterator.
2845 (btrace_is_replaying): New.
2846 * record-btrace.c (record_btrace_is_replaying): New.
2847 (record_btrace_info): Print insn number if replaying.
2848 (record_btrace_insn_history): Start at replay position.
2849 (record_btrace_call_history): Start at replay position.
2850 (init_record_btrace_ops): Init to_record_is_replaying.
2852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2854 * record-btrace.c (record_btrace_insn_history_range): Include
2856 (record_btrace_insn_history_from): Adjust range.
2857 (record_btrace_call_history_range): Include
2859 (record_btrace_call_history_from): Adjust range.
2860 * NEWS: Announce changes.
2862 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2864 * record.h (enum record_print_flag)
2865 <record_print_indent_calls>: New.
2866 * record.c (get_call_history_modifiers): Recognize /c modifier.
2867 (_initialize_record): Document /c modifier.
2868 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2869 Reorder fields. Optionally indent the function name. Update
2871 * NEWS: Announce changes.
2873 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2875 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2879 * btrace.c (ftrace_new_function): Start counting at one.
2880 * record-btrace.c (record_btrace_info): Adjust number of calls
2882 * NEWS: Announce it.
2884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2886 * record-btrace.c (btrace_call_history_insn_range): Print
2887 insn range as [begin, end].
2889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2891 * btrace.h (struct btrace_func_link): New.
2892 (enum btrace_function_flag): New.
2893 (struct btrace_inst): Rename to ...
2894 (struct btrace_insn): ...this. Update all users.
2895 (struct btrace_func) <ibegin, iend>: Remove.
2896 (struct btrace_func_link): New.
2897 (struct btrace_func): Rename to ...
2898 (struct btrace_function): ...this. Update all users.
2899 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2900 (number, level, flags>: New.
2901 (struct btrace_insn_iterator): Rename to ...
2902 (struct btrace_insn_history): ...this.
2904 (struct btrace_insn_iterator, btrace_call_iterator): New.
2905 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2906 (struct btrace_target_info) <begin, end, level>
2907 <insn_history, call_history>: New.
2908 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2909 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2910 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2911 (btrace_call_number, btrace_call_begin, btrace_call_end)
2912 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2913 (btrace_find_function_by_number, btrace_set_insn_history)
2914 (btrace_set_call_history): New.
2915 * btrace.c (btrace_init_insn_iterator)
2916 (btrace_init_func_iterator, compute_itrace): Remove.
2917 (ftrace_print_function_name, ftrace_print_filename)
2918 (ftrace_skip_file): Change
2920 (ftrace_init_func): Remove.
2921 (ftrace_debug): Use new btrace_function fields.
2922 (ftrace_function_switched): Also consider gaining and
2923 losing symbol information).
2924 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2925 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2926 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2928 (ftrace_new_function): Move. Remove debug print.
2929 (ftrace_update_lines, ftrace_update_insns): New.
2930 (ftrace_update_function): Check for call, ret, and jump.
2931 (compute_ftrace): Renamed to ...
2932 (btrace_compute_ftrace): ...this. Rewritten to compute call
2934 (btrace_fetch, btrace_clear): Updated.
2935 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2936 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2937 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2938 (btrace_call_number, btrace_call_begin, btrace_call_end)
2939 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2940 (btrace_find_function_by_number, btrace_set_insn_history)
2941 (btrace_set_call_history): New.
2942 * record-btrace.c (require_btrace): Use new btrace thread
2944 (record_btrace_info, btrace_insn_history)
2945 (record_btrace_insn_history, record_btrace_insn_history_range):
2946 Use new btrace thread info fields and new iterator.
2947 (btrace_func_history_src_line): Rename to ...
2948 (btrace_call_history_src_line): ...this. Use new btrace
2950 (btrace_func_history): Rename to ...
2951 (btrace_call_history): ...this. Use new btrace thread info
2952 fields and new iterator.
2953 (record_btrace_call_history, record_btrace_call_history_range):
2954 Use new btrace thread info fields and new iterator.
2956 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2958 * frame.h (frame_id_build_unavailable_stack_special): New.
2959 * frame.c (frame_id_build_unavailable_stack_special): New.
2961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2963 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2964 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2965 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2967 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2968 (i386_insn_is_jump, i386_jmp_p): New.
2969 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2970 insn_is_jump to gdbarch.
2971 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2972 * gdbarch.h: Regenerated.
2973 * gdbarch.c: Regenerated.
2974 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2975 (default_insn_is_jump): New.
2976 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2977 (default_insn_is_jump): New.
2979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2981 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2983 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2984 (btrace_read_type) <btrace_read_new>: Change to ...
2985 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2989 * common/linux-btrace.c (linux_read_btrace): Free trace from
2992 2014-01-15 Doug Evans <dje@google.com>
2994 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2997 2014-01-15 Tom Tromey <tromey@redhat.com>
2999 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3000 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3001 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3002 (set_objfile_main_name): New function.
3003 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3004 language_of_main>: New fields.
3005 (set_objfile_main_name): Declare.
3006 * symtab.c (find_main_name): Loop over objfiles to find the main
3008 (set_main_name): Now static.
3009 (get_main_info): Add comment.
3010 * symtab.h (set_main_name): Don't declare.
3012 2014-01-15 Tom Tromey <tromey@redhat.com>
3014 * symtab.c (main_progspace_key): New global.
3015 (struct main_info): New.
3016 (name_of_main, language_of_main): Remove.
3017 (get_main_info, main_info_cleanup): New function.
3018 (set_main_name, main_name, main_language): Use get_main_info.
3019 (_initialize_symtab): Initialize main_progspace_key.
3021 2014-01-15 Tom Tromey <tromey@redhat.com>
3023 * dbxread.c (process_one_symbol): Update.
3024 * dwarf2read.c (read_partial_die): Update.
3025 * symfile.c (set_initial_language): Call main_language.
3026 * symtab.c (language_of_main): Now static.
3027 (set_main_name): Add 'lang' parameter.
3028 (find_main_name): Update.
3029 (main_language): New function.
3030 (symtab_observer_executable_changed): Update.
3031 * symtab.h (set_main_name): Update.
3032 (language_of_main): Remove.
3033 (main_language): Declare.
3035 2014-01-15 Tom Tromey <tromey@redhat.com>
3037 * symfile.c (init_entry_point_info): Use new "initialized" field.
3039 * objfiles.h (struct entry_point) <initialized>: New field.
3040 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3041 (struct objfile) <ei>: ...here. Remove.
3042 * objfiles.c (entry_point_address_query): Update.
3044 2014-01-15 Tom Tromey <tromey@redhat.com>
3046 * objfiles.c (entry_point_address_query): Relocate entry point
3048 (objfile_relocate1): Do not relocate entry point address.
3049 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3050 <the_bfd_section_index>: New field.
3051 * symfile.c (init_entry_point_info): Find the entry point's
3054 2014-01-15 Tom Tromey <tromey@redhat.com>
3056 * solib-frv.c (enable_break): Use entry_point_address_query.
3058 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3060 * NEWS: Add note on improved process record-replay on
3061 arm*-linux* targets.
3063 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3065 * arm-tdep.c (enum arm_record_result): New enum.
3066 (arm_record_unsupported_insn): New function.
3067 (arm_record_coproc_data_proc): Removed.
3068 (thumb2_record_ld_st_multiple): New function.
3069 (thumb2_record_ld_st_dual_ex_tbb): New function.
3070 (thumb2_record_data_proc_sreg_mimm): New function.
3071 (thumb2_record_ps_dest_generic): New function.
3072 (thumb2_record_branch_misc_cntrl): New function.
3073 (thumb2_record_str_single_data): New function.
3074 (thumb2_record_ld_mem_hints): New function.
3075 (thumb2_record_ld_word): New function.
3076 (thumb2_record_lmul_lmla_div): New function.
3077 (thumb2_record_decode_insn_handler): New function.
3078 (decode_insn): Add thumb32 instruction handlers.
3080 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3082 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3083 (struct arm_linux_record_tdep): Declare.
3084 (arm_canonicalize_syscall): New function.
3085 (arm_all_but_pc_registers_record): New function.
3086 (arm_linux_syscall_record): New function.
3087 (arm_linux_init_abi): Add syscall recording constructs.
3088 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3089 decoding. (arm_record_coproc_data_proc): Update arm syscall
3091 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3092 <arm_syscall_record>: New field.
3093 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3096 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3098 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3099 register for push instruction recording.
3101 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3103 * arm-tdep.c (thumb_record_misc): Update to correct logical
3104 error while recording ldm, ldmia and pop instructions.
3106 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3108 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3110 2014-01-15 Pedro Alves <palves@redhat.com>
3112 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3113 (go32_resume, go32_fetch_registers, store_register)
3114 (go32_store_registers, go32_prepare_to_store)
3115 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3116 (go32_create_inferior, go32_can_run, go32_terminal_init)
3117 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3120 2014-01-15 Tom Tromey <tromey@redhat.com>
3122 * target.h (async_callback_ftype): New typedef.
3123 (struct target_ops) <to_async>: Use it.
3125 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3127 * python/py-value.c (get_field_type): Remove unnecessary curly
3128 braces for single-statement if block.
3130 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3132 * python/py-type.c (convert_field): Add missing empty line
3135 2014-01-14 Doug Evans <dje@google.com>
3137 * symfile.h (expand_symtabs_matching): Renamed from
3138 expand_partial_symbol_names. Update prototype.
3139 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3140 * symfile.c (expand_symtabs_matching): Renamed from
3141 expand_partial_symbol_names. New args file_matcher, kind.
3142 Rename arg fun to symbol_matcher.
3143 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3144 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3145 ada_expand_partial_symbol_name.
3146 (ada_make_symbol_completion_list): Update to call
3147 expand_symtabs_matching.
3148 (ada_add_global_exceptions): Call expand_symtabs_matching.
3149 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3150 call map_symbol_filenames.
3151 * symtab.c (sources_info): Update to call map_symbol_filenames.
3152 (search_symbols): Call expand_symtabs_matching.
3153 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3154 (default_make_symbol_completion_list_break_on): Update to call
3155 expand_symtabs_matching.
3156 (make_source_files_completion_list): Update to call
3157 map_symbol_filenames.
3159 2014-01-14 Doug Evans <dje@google.com>
3161 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3162 (expand_symtabs_symbol_matcher_ftype): New typedef.
3163 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3164 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3165 * symfile.c (expand_partial_symbol_names): Update to use
3166 expand_symtabs_symbol_matcher_ftype.
3167 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3168 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3169 Arg name_matcher renamed to symbol_matcher.
3170 * psymtab.c (recursively_search_psymtabs): Update to use
3171 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3173 (expand_symtabs_matching_via_partial): Update to use
3174 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3175 Arg name_matcher renamed to symbol_matcher.
3177 2014-01-14 Doug Evans <dje@google.com>
3179 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3180 (map_partial_symbol_filenames): Ditto.
3181 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3182 (map_partial_symbol_filenames): Ditto.
3183 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3184 (map_partial_symbol_filenames): Ditto.
3185 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3186 (map_partial_symbol_filenames): Ditto.
3187 * symtab.c: Delete #include "psymtab.h".
3189 2014-01-14 Pedro Alves <palves@redhat.com>
3190 Tom Tromey <tromey@redhat.com>
3192 * infrun.c (use_displaced_stepping): Use find_record_target
3193 instead of RECORD_IS_USED.
3194 (adjust_pc_after_break): Use record_full_is_used instead of
3196 * record-btrace.c (record_btrace_open): Call record_preopen
3197 instead of checking RECORD_IS_USED.
3198 * record-full.c (record_full_shortname)
3199 (record_full_core_shortname): New globals.
3200 (record_full_is_used): New function.
3201 (find_full_open): Call record_preopen instead of checking
3203 (init_record_full_ops): Set the target's shortname to
3204 record_full_shortname.
3205 (init_record_full_core_ops): Set the target's shortname to
3206 record_full_core_shortname.
3207 * record-full.h (record_full_is_used): Declare.
3208 * record.c (find_record_target): Make extern.
3209 (record_preopen): New function.
3210 * record.h (RECORD_IS_USED): Delete macro.
3211 (find_record_target, record_preopen): Declare functions.
3213 2014-01-14 Yao Qi <yao@codesourcery.com>
3215 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3216 'len''s type to ULONGEST.
3217 (core_xfer_shared_libraries_aix): Likewise.
3218 * gdbarch.c, gdbarch.h: Regenerated.
3219 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3220 Change type of 'len' to ULONGEST.
3221 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3222 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3224 2014-01-14 Yao Qi <yao@codesourcery.com>
3226 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3227 type of 'len' to ULONGEST.
3228 (linux_xfer_osdata_processgroups): Likewise.
3229 (linux_xfer_osdata_threads): Likewise.
3230 (linux_xfer_osdata_fds): Likewise.
3231 (linux_xfer_osdata_isockets): Likewise.
3232 (linux_xfer_osdata_shm): Likewise.
3233 (linux_xfer_osdata_sem): Likewise.
3234 (linux_xfer_osdata_msg): Likewise.
3235 (linux_common_xfer_osdata): Likewise.
3236 (struct osdata_type) <getter>: Likewise.
3237 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3240 2014-01-14 Yao Qi <yao@codesourcery.com>
3242 * target.h (target_xfer_partial_ftype): Update.
3243 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3245 * aix-thread.c (aix_thread_xfer_partial): Change type of
3246 argument 'len' to ULONGEST.
3247 * auxv.c (procfs_xfer_auxv): Likewise.
3248 (ld_so_xfer_auxv): Likewise.
3249 (memory_xfer_auxv): Likewise.
3250 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3251 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3252 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3253 * corelow.c (core_xfer_partial): Likewise.
3254 * ctf.c (ctf_xfer_partial): Likewise.
3255 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3257 (darwin_read_dyld_info): Likewise.
3258 (darwin_xfer_partial): Likewise.
3259 * exec.c (section_table_xfer_memory_partial): Likewise.
3260 (exec_xfer_partial): Likewise.
3261 * exec.h (section_table_xfer_memory_partial): Update
3263 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3264 instead of plongest.
3265 (gnu_xfer_partial): Likewise.
3266 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3267 (ia64_hpux_xfer_solib_got): Likewise.
3268 (ia64_hpux_xfer_partial): Likewise.
3269 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3270 * inf-ptrace.c (inf_ptrace_xfer_partial):
3271 * inf-ttrace.c (inf_ttrace_xfer_partial):
3272 * linux-nat.c (linux_xfer_siginfo): Likewise.
3273 (linux_nat_xfer_partial): Likewise.
3274 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3275 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3276 * monitor.c (monitor_xfer_memory): Likewise.
3277 (monitor_xfer_partial): Likewise.
3278 * procfs.c (procfs_xfer_partial): Likewise.
3279 * record-full.c (record_full_xfer_partial): Likewise.
3280 (record_full_core_xfer_partial): Likewise.
3281 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3282 instead of plongest.
3283 (gdbsim_xfer_partial): Likewise.
3284 * remote.c (remote_xfer_partial): Likewise.
3285 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3286 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3288 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3289 (rs6000_xfer_shared_libraries): Likewise.
3290 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3291 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3292 (sparc_xfer_partial): Likewise.
3293 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3294 (spu_xfer_partial): Likewise.
3295 * spu-multiarch.c (spu_xfer_partial): Likewise.
3296 * target.c (target_read_live_memory): Likewise.
3297 (memory_xfer_live_readonly_partial): Likewise.
3298 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3299 (target_xfer_partial, default_xfer_partial): Likewise.
3300 (current_xfer_partial): Likewise.
3301 * tracepoint.c (tfile_xfer_partial): Likewise.
3302 * windows-nat.c (windows_xfer_memory): Likewise. Call
3303 pulongest instead of plongest.
3304 (windows_xfer_partial): Likewise.
3305 (windows_xfer_shared_libraries): Likewise.
3307 2014-01-14 Yao Qi <yao@codesourcery.com>
3309 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3310 target_xfer_partial_ftype.
3312 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3316 * valops.c (value_struct_elt_bitpos): New function
3317 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3318 object to 'None' if the field name is an empty string ("").
3319 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3320 attribute to look for a field when 'name' is 'None'.
3321 (get_field_type): New function
3323 2014-01-13 Doug Evans <dje@google.com>
3326 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3327 (try_open_dwop_file): Ditto.
3328 * gdb_bfd.c: #include "vec.h".
3329 (bfdp): New typedef.
3330 (struct gdb_bfd_data): New member included_bfds.
3331 (gdb_bfd_unref): Unref all included bfds.
3332 (gdb_bfd_record_inclusion): New function.
3333 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3335 2014-01-13 Tom Tromey <tromey@redhat.com>
3337 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3339 2014-01-13 Tom Tromey <tromey@redhat.com>
3341 * defs.h (use_windows): Remove.
3342 * gdb.c (main): Update.
3343 * main.c (captured_main, gdb_main): Update.
3344 * main.h (struct captured_main_args) <use_windows>: Remove.
3345 * top.c (use_windows): Remove.
3347 2014-01-13 Tom Tromey <tromey@redhat.com>
3349 * defs.h (deprecated_flush_hook): Remove.
3351 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3354 * linux-thread-db.c (try_thread_db_load): Add parameter
3355 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3356 (try_thread_db_load_from_pdir_1): Move it there from here.
3357 (try_thread_db_load_from_sdir): Update caller.
3358 (try_thread_db_load_from_dir): Move it there from here.
3360 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3362 * regformats/regdat.sh: Always rewrite the register file.
3364 2014-01-13 Pedro Alves <palves@redhat.com>
3366 * Makefile.in (CHECK_HEADERS): New variable.
3367 (check-headers:): New rule.
3369 2014-01-13 Tom Tromey <tromey@redhat.com>
3371 * cli/cli-setshow.c (do_set_command): Update.
3372 * defs.h (deprecated_set_hook): Remove.
3373 * top.c (deprecated_set_hook): Remove.
3375 2014-01-13 Pedro Alves <palves@redhat.com>
3377 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3378 the tracepoint if the PC is a pseudo-register.
3380 2014-01-13 Tom Tromey <tromey@redhat.com>
3382 * defs.h (XCALLOC): Remove.
3383 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3384 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3385 * dwarf2loc.c (allocate_piece_closure): Likewise.
3386 * elfread.c (elf_symfile_segments): Likewise.
3387 (elf_symfile_segments): Likewise.
3388 * gdbtypes.c (copy_type_recursive): Likewise.
3389 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3390 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3391 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3393 * mt-tdep.c (mt_gdbarch_init): Likewise.
3394 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3396 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3397 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3398 * registry.c (registry_alloc_data): Likewise.
3399 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3400 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3401 * serial.c (serial_fdopen_ops): Likewise.
3402 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3404 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3405 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3408 2014-01-13 Tom Tromey <tromey@redhat.com>
3410 * defs.h (XMALLOC): Remove.
3411 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3412 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3413 * cli-out.c (struct ui_out *): Likewise.
3414 * cli/cli-dump.c (add_dump_command): Likewise.
3415 (add_dump_command): Likewise.
3416 * complaints.c (get_complaints): Likewise.
3417 (find_complaint): Likewise.
3418 * dwarf2-frame.c (execute_cfa_program): Likewise.
3419 * dwarf2read.c (abbrev_table_read_table): Likewise.
3420 * gdbarch.sh: Likewise.
3421 * gdbarch.c: Rebuild.
3422 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3423 * interps.c (interp_new): Likewise.
3424 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3425 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3426 * mi/mi-console.c (mi_console_file_new): Likewise.
3427 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3428 * mi/mi-out.c (mi_out_new): Likewise.
3429 * mi/mi-parse.c (mi_parse): Likewise.
3430 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3431 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3432 * observer.c (xalloc_observer_list_node): Likewise.
3433 * regcache.c (regcache_xmalloc_1): Likewise.
3434 * reggroups.c (reggroup_new): Likewise.
3435 (_initialize_reggroup): Likewise.
3436 * registry.c (register_data_with_cleanup): Likewise.
3437 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3438 * ser-base.c (serial_ttystate): Likewise.
3439 * ser-mingw.c (make_pipe_state): Likewise.
3440 * ser-pipe.c (pipe_open): Likewise.
3441 * serial.c (serial_open): Likewise.
3442 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3443 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3444 (tui_alloc_win_info): Likewise.
3445 (tui_add_content_elements): Likewise.
3446 * tui/tui-file.c (tui_file_new): Likewise.
3447 * tui/tui-out.c (tui_out_new): Likewise.
3448 * ui-file.c (mem_file_new): Likewise.
3449 * ui-out.c (push_level): Likewise.
3450 (make_cleanup_ui_out_end): Likewise.
3451 (append_header_to_list): Likewise.
3452 (ui_out_new): Likewise.
3453 * user-regs.c (user_reg_add_builtin): Likewise.
3455 2014-01-13 Tom Tromey <tromey@redhat.com>
3457 * defs.h (XZALLOC): Remove.
3458 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3459 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3460 (get_ada_tasks_inferior_data): Likewise.
3461 * auto-load.c (get_auto_load_pspace_data): Likewise.
3462 * auxv.c (get_auxv_inferior_data): Likewise.
3463 * bfd-target.c (target_bfd_reopen): Likewise.
3464 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3465 (deprecated_insert_raw_breakpoint): Likewise.
3466 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3467 * corelow.c (core_open): Likewise.
3468 * darwin-nat.c (darwin_check_new_threads): Likewise.
3469 (darwin_attach_pid): Likewise.
3470 * dummy-frame.c (dummy_frame_push): Likewise.
3471 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3472 * dwarf2loc.c (allocate_piece_closure): Likewise.
3473 * elfread.c (elf_symfile_segments): Likewise.
3474 * eval.c (ptrmath_type_p): Likewise.
3475 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3476 * gdbtypes.c (alloc_type_arch): Likewise.
3477 (alloc_type_instance): Likewise.
3478 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3479 * inf-child.c (inf_child_can_use_agent): Likewise.
3480 * inflow.c (get_inflow_inferior_data): Likewise.
3481 * infrun.c (save_infcall_suspend_state): Likewise.
3482 * jit.c (jit_reader_load): Likewise.
3483 (get_jit_objfile_data): Likewise.
3484 (get_jit_program_space_data): Likewise.
3485 (jit_object_open_impl): Likewise.
3486 (jit_symtab_open_impl): Likewise.
3487 (jit_block_open_impl): Likewise.
3488 (jit_frame_sniffer): Likewise.
3489 * linux-fork.c (add_fork): Likewise.
3490 * maint.c (make_command_stats_cleanup): Likewise.
3491 * objfiles.c (get_objfile_pspace_data): Likewise.
3492 * opencl-lang.c (struct lval_closure): Likewise.
3493 * osdata.c (osdata_start_osdata): Likewise.
3494 * progspace.c (new_address_space): Likewise.
3495 (add_program_space): Likewise.
3496 * remote-sim.c (get_sim_inferior_data): Likewise.
3497 * sh-tdep.c (sh_gdbarch_init): Likewise.
3498 * skip.c (Ignore): Likewise.
3499 (skip_delete_command): Likewise.
3500 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3501 (library_list_start_library): Likewise.
3502 (solib_aix_current_sos): Likewise.
3503 * solib-darwin.c (get_darwin_info): Likewise.
3504 (darwin_current_sos): Likewise.
3505 * solib-dsbt.c (get_dsbt_info): Likewise.
3506 * solib-ia64-hpux.c (new_so_list): Likewise.
3507 (ia64_hpux_get_solib_linkage_addr): Likewise.
3508 * solib-spu.c (append_ocl_sos): Likewise.
3509 (spu_current_sos): Likewise.
3510 * solib-svr4.c (get_svr4_info): Likewise.
3511 (svr4_keep_data_in_core): Likewise.
3512 (library_list_start_library): Likewise.
3513 (svr4_default_sos): Likewise.
3514 (svr4_read_so_list): Likewise.
3515 * solib-target.c (library_list_start_library): Likewise.
3516 (solib_target_current_sos): Likewise.
3517 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3518 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3519 * symfile.c (default_symfile_segments): Likewise.
3520 * target-descriptions.c (tdesc_data_init): Likewise.
3521 (tdesc_create_reg): Likewise.
3522 (struct tdesc_type *): Likewise.
3523 (tdesc_create_vector): Likewise.
3524 (tdesc_set_struct_size): Likewise.
3525 (struct tdesc_type *): Likewise.
3526 (tdesc_free_feature): Likewise.
3527 (tdesc_create_feature): Likewise.
3528 * windows-nat.c (windows_add_thread): Likewise.
3529 (windows_make_so): Likewise.
3530 * xml-support.c (gdb_xml_body_text): Likewise.
3531 (gdb_xml_create_parser_and_cleanup): Likewise.
3532 (xml_process_xincludes): Likewise.
3533 * xml-syscall.c (allocate_syscalls_info): Likewise.
3534 (syscall_create_syscall_desc): Likewise.
3536 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3538 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3539 function, with code from i386_stap_parse_special_token.
3540 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3541 (i386_stap_parse_special_token): Move code to the two functions
3544 2014-01-09 Pedro Alves <palves@redhat.com>
3545 Hui Zhu <hui@codesourcery.com>
3548 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3549 bp_err_string. Don't mark the location shlib_disabled if the
3550 error thrown wasn't a generic or memory error. Catch errors
3551 thrown while inserting breakpoints in overlayed code. Output
3552 error message of software breakpoints.
3553 * remote.c (remote_insert_breakpoint): If this breakpoint has
3554 target-side commands but this stub doesn't support Z0 packets,
3555 throw NOT_SUPPORTED_ERROR error.
3556 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3557 * target.h (target_insert_breakpoint): Extend comment.
3558 (target_insert_hw_breakpoint): Add comment.
3560 2014-01-08 Pedro Alves <palves@redhat.com>
3562 * remote.c (remote_add_thread): Add threads silently if starting
3564 (remote_notice_new_inferior): If in all-stop, and starting up,
3565 don't call notice_new_inferior.
3566 (get_current_thread): New function, factored out from ...
3567 (add_current_inferior_and_thread): ... this. Adjust.
3568 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3569 found any thread, then select the remote's current thread as GDB's
3572 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3574 * NEWS: Create a new section for the next release branch.
3575 Rename the section of the current branch, now that it has
3578 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3580 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3581 * version.in: Bump version to 7.7.50.DATE-cvs.
3583 2014-01-08 Yao Qi <yao@codesourcery.com>
3585 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3586 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3587 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3589 2014-01-08 Yao Qi <yao@codesourcery.com>
3591 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3592 return value of bfd_get_filename to symbol_file_add_from_bfd.
3594 2014-01-08 Pierre Muller <muller@sourceware.org>
3597 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3598 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3599 to prim_record_mininal_symbol_and_info.
3600 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3601 in call to prim_record_minimal_symbol_and_info.
3602 (read_pe_exported_syms): Set index field of section_data.
3604 2014-01-07 Andrew Pinski <apinski@cavium.com>
3606 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3607 * features/aarch64.c: Regenerate.
3609 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3611 * target.c (return_null): Define.
3612 (update_current_target): Use it instead of return_zero for
3613 functions that return a pointer.
3615 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3617 * source.c (add_path): Fix check for duplicated paths in the previously
3620 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3622 * ada-lang.c: Remove duplicated include statements.
3623 * alphabsd-nat.c: Ditto.
3624 * amd64-darwin-tdep.c: Ditto.
3625 * amd64fbsd-nat.c: Ditto.
3626 * auto-load.c: Ditto.
3628 * breakpoint.c: Ditto.
3630 * fork-child.c: Ditto.
3631 * gdb_usleep.c: Ditto.
3632 * i386-darwin-tdep.c: Ditto.
3633 * i386fbsd-nat.c: Ditto.
3635 * inferior.c: Ditto.
3637 * linux-nat.c: Ditto.
3638 * linux-tdep.c: Ditto.
3639 * m68kbsd-nat.c: Ditto.
3640 * m68klinux-nat.c: Ditto.
3641 * microblaze-tdep.c: Ditto.
3642 * mips-linux-tdep.c: Ditto.
3643 * mn10300-tdep.c: Ditto.
3644 * nto-tdep.c: Ditto.
3645 * opencl-lang.c: Ditto.
3647 * printcmd.c: Ditto.
3648 * regcache.c: Ditto.
3649 * remote-m32r-sdi.c: Ditto.
3653 * tilegx-linux-nat.c: Ditto.
3654 * tilegx-tdep.c: Ditto.
3655 * tracepoint.c: Ditto.
3657 * vaxbsd-nat.c: Ditto.
3658 * windows-nat.c: Ditto.
3659 * xtensa-tdep.c: Ditto.
3661 2014-01-07 Yao Qi <yao@codesourcery.com>
3663 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3665 2014-01-07 Yao Qi <yao@codesourcery.com>
3666 Joel Brobecker <brobecker@adacore.com>
3668 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3669 (pdc_write_regs): Likewise.
3670 (fetch_regs_kernel_thread): Likewise.
3671 (store_regs_kernel_thread): Likewise.
3673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3675 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3676 tagged type objects to their actual type.
3678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3680 * ada-valprint.c (print_field_values): Add "language" parameter.
3681 Update calls to print_field_values and print_variant_part.
3682 Pass new parameter "language" in call to val_print instead
3683 of "current_language". Replace call to ada_val_print by call
3685 (print_variant_part): Add "language" parameter.
3686 (ada_val_print_struct_union): Update call to print_field_values.
3688 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3690 * ada-valprint.c (ui_memcpy): Delete.
3691 (ada_print_floating): Update documentation. Add empty line
3692 between between function documentation and implementation.
3693 Delete variable "buffer". Use ui_file_xstrdup in place of
3694 ui_file_put. Minor adjustments following this change.
3696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3698 * ada-valprint.c (ada_val_print_string): New function,
3699 extracted from ada_val_print_array.
3700 (ada_val_print_array): Replace extracted code by call
3701 to ada_val_print_string followed by a return. Move
3702 "else" branch to the function's top block.
3704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3706 * ada-valprint.c (ada_val_print_array): Move implementation
3707 down. Rename parameter "offset" and "val" into "offset_aligned"
3708 and "original_value" respectively. Add parameter "offset".
3710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3712 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3713 re-organizing the code. Change the "???" message printed
3714 when target type is a TYPE_CODE_UNDEF into
3715 "<ref to undefined type>".
3717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3719 * ada-valprint.c (print_record): Delete, implementation inlined...
3720 (ada_val_print_struct_union): ... here. Remove call to
3721 ada_check_typedef in inlined implementation.
3723 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3725 * ada-valprint.c (ada_val_print_gnat_array): New function,
3726 extracted from ada_val_print_1;
3727 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3728 (ada_val_print_flt, ada_val_print_struct_union)
3729 (ada_val_print_ref): Likewise.
3730 (ada_val_print_1): Delete variables i and elttype.
3731 Replace extracted-out code by call to corresponding
3734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3736 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3740 * ada-valprint.c (ada_val_print_1): Replace calls to
3741 ada_val_print_1 by calls to val_print.
3743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3745 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3746 Update calls to self accordingly. Replace calls to c_val_print
3747 by calls to val_print.
3749 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3751 * ada-valprint.c (print_record): Delete declaration.
3752 (adjust_type_signedness, ada_val_print_1): Likewise.
3753 (ada_val_print): Move function implementation down.
3754 (print_variant_part, print_field_values, print_record):
3755 Move function implementation up.
3757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3759 * python/py-type.c (typy_get_name): New function.
3760 (type_object_getset): Add entry for attribute "name".
3761 * NEWS: Add entry mentioning this new attribute.
3763 2014-01-07 Yao Qi <yao@codesourcery.com>
3765 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3768 2014-01-07 Yao Qi <yao@codesourcery.com>
3770 * gnu-nat.c (info_port_rights): Add qualifier const to
3773 2014-01-07 Yao Qi <yao@codesourcery.com>
3775 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3777 2014-01-07 Yao Qi <yao@codesourcery.com>
3779 * gnu-nat.c (make_inf) Update declaration.
3780 (make_inf): Make it static.
3781 (inf_set_traced): Likewise.
3782 (inf_port_to_thread, inf_task_died_status): Likewise.
3784 2014-01-07 Yao Qi <yao@codesourcery.com>
3786 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3788 2014-01-07 Yao Qi <yao@codesourcery.com>
3790 * gnu-nat.c (_initialize_gnu_nat): Declare.
3792 2014-01-07 Yao Qi <yao@codesourcery.com>
3794 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3796 (struct gdbarch_info) <byte_order>: Change type to
3798 <byte_order_for_code>: Likewise.
3799 * gdbarch.c, gdbarch.h: Regenerated.
3801 2014-01-06 Sasha Smundak <asmundak@google.com>
3803 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3805 2014-01-06 Tom Tromey <tromey@redhat.com>
3807 * doublest.c (convert_doublest_to_floatformat): Use const, not
3809 * somread.c (som_symtab_read): Likewise.
3811 2014-01-07 Hui Zhu <hui@codesourcery.com>
3813 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3814 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3815 (gdb_bfd_fopen): Ditto.
3816 (gdb_bfd_openr): Ditto.
3817 (gdb_bfd_openw): Ditto.
3818 (gdb_bfd_openr_iovec): Ditto.
3819 (gdb_bfd_fdopenr): Ditto.
3820 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3821 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3823 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3825 * symfile-mem.c (symbol_file_add_from_memory): Removed
3826 gdb_bfd_stash_filename.
3828 2014-01-03 Doug Evans <dje@google.com>
3830 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3833 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3835 Update year range in copyright notice of all files.
3837 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3839 * top.c (print_gdb_version): Set copyright year to 2014.
3841 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3843 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3845 For older changes see ChangeLog-2013.
3851 version-control: never