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_remove_watchpoint>: Use
7 TARGET_DEFAULT_NORETURN.
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
14 * target.h (struct target_ops) <to_insert_watchpoint>: 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_remove_hw_breakpoint.
22 * target.h (struct target_ops) <to_remove_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_insert_hw_breakpoint.
30 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
31 TARGET_DEFAULT_RETURN.
33 2014-02-19 Tom Tromey <tromey@redhat.com>
35 * target-delegates.c: Rebuild.
36 * target.c (update_current_target): Don't inherit or default
37 to_can_use_hw_breakpoint.
38 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
39 TARGET_DEFAULT_RETURN.
41 2014-02-19 Tom Tromey <tromey@redhat.com>
43 * target-delegates.c: Rebuild.
44 * target.c (update_current_target): Don't inherit or default
46 * target.h (struct target_ops) <to_files_info>: Use
47 TARGET_DEFAULT_IGNORE.
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_store>: Use
55 TARGET_DEFAULT_NORETURN.
57 2014-02-19 Tom Tromey <tromey@redhat.com>
59 * target-delegates.c: Rebuild.
60 * target.c (update_current_target): Don't inherit or default
62 * target.h (struct target_ops) <to_post_attach>: Use
63 TARGET_DEFAULT_IGNORE.
65 2014-02-19 Tom Tromey <tromey@redhat.com>
67 * target-delegates.c: Rebuild.
68 * target.c (update_current_target): Don't inherit or default
70 (default_rcmd): New function.
71 (do_monitor_command): Unconditionally delegate.
72 * target.h (struct target_ops) <to_rmcd>: Use
75 2014-02-19 Tom Tromey <tromey@redhat.com>
77 * target-delegates.c: Rebuild.
78 * target.c (init_dummy_target): Don't initialize to_attach.
79 (target_attach): Unconditionally delegate.
80 * target.h (struct target_ops) <to_attach>: Use
83 2014-02-19 Tom Tromey <tromey@redhat.com>
85 * target-delegates.c: Rebuild.
86 * target.c (target_detach): Unconditionally delegate.
87 (init_dummy_target): Don't initialize to_detach.
88 * target.h (struct target_ops) <to_detach>: Use
89 TARGET_DEFAULT_IGNORE.
91 2014-02-19 Tom Tromey <tromey@redhat.com>
93 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
95 (target_augmented_libraries_svr4_read): Add argument.
96 * target.c (update_current_target): Update.
97 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
100 2014-02-19 Tom Tromey <tromey@redhat.com>
102 * target.h (struct target_ops) <to_call_history_range>: Add
104 * target.c (target_call_history_range): Add argument.
105 * record-btrace.c (record_btrace_call_history_range): Add 'self'
107 (record_btrace_call_history_from): Update.
109 2014-02-19 Tom Tromey <tromey@redhat.com>
111 * target.h (struct target_ops) <to_call_history_from>: Add
113 * target.c (target_call_history_from): Add argument.
114 * record-btrace.c (record_btrace_call_history_from): Add 'self'
117 2014-02-19 Tom Tromey <tromey@redhat.com>
119 * target.h (struct target_ops) <to_call_history>: Add argument.
120 * target.c (target_call_history): Add argument.
121 * record-btrace.c (record_btrace_call_history): Add 'self'
124 2014-02-19 Tom Tromey <tromey@redhat.com>
126 * target.h (struct target_ops) <to_insn_history_range>: Add
128 * target.c (target_insn_history_range): Add argument.
129 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
131 (record_btrace_insn_history_from): Update.
133 2014-02-19 Tom Tromey <tromey@redhat.com>
135 * target.h (struct target_ops) <to_insn_history_from>: Add
137 * target.c (target_insn_history_from): Add argument.
138 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
141 2014-02-19 Tom Tromey <tromey@redhat.com>
143 * target.h (struct target_ops) <to_insn_history>: Add argument.
144 * target.c (target_insn_history): Add argument.
145 * record-btrace.c (record_btrace_insn_history): Add 'self'
148 2014-02-19 Tom Tromey <tromey@redhat.com>
150 * target.h (struct target_ops) <to_goto_record>: Add argument.
151 * target.c (target_goto_record): Add argument.
152 * record-full.c (record_full_goto): Add 'self' argument.
153 * record-btrace.c (record_btrace_goto): Add 'self' argument.
155 2014-02-19 Tom Tromey <tromey@redhat.com>
157 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
158 * target.c (target_goto_record_end): Add argument.
159 * record-full.c (record_full_goto_end): Add 'self' argument.
160 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
162 2014-02-19 Tom Tromey <tromey@redhat.com>
164 * target.h (struct target_ops) <to_goto_record_begin>: Add
166 * target.c (target_goto_record_begin): Add argument.
167 * record-full.c (record_full_goto_begin): Add 'self' argument.
168 * record-btrace.c (record_btrace_goto_begin): Add 'self'
171 2014-02-19 Tom Tromey <tromey@redhat.com>
173 * target.h (struct target_ops) <to_record_is_replaying>: Add
175 * target.c (target_record_is_replaying): Add argument.
176 * record-full.c (record_full_is_replaying): Add 'self' argument.
177 * record-btrace.c (record_btrace_is_replaying): Add 'self'
179 (record_btrace_xfer_partial, record_btrace_store_registers)
180 (record_btrace_prepare_to_store, record_btrace_resume)
181 (record_btrace_wait, record_btrace_decr_pc_after_break)
182 (record_btrace_find_new_threads, record_btrace_thread_alive):
185 2014-02-19 Tom Tromey <tromey@redhat.com>
187 * target.h (struct target_ops) <to_delete_record>: Add argument.
188 * target.c (target_delete_record): Add argument.
189 * record-full.c (record_full_delete): Add 'self' argument.
191 2014-02-19 Tom Tromey <tromey@redhat.com>
193 * target.h (struct target_ops) <to_save_record>: Add argument.
194 * target.c (target_save_record): Add argument.
195 * record-full.c (record_full_save): Add 'self' argument.
196 (record_full_save): Add 'self' argument.
198 2014-02-19 Tom Tromey <tromey@redhat.com>
200 * target.h (struct target_ops) <to_info_record>: Add argument.
201 * target.c (target_info_record): Add argument.
202 * record.c (info_record_command): Add argument.
203 * record-full.c (record_full_info): Add 'self' argument.
204 * record-btrace.c (record_btrace_info): Add 'self' argument.
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (struct target_ops) <to_stop_recording>: Add argument.
209 * target.c (target_stop_recording): Add argument.
210 * record.c (record_stop): Add argument.
211 * record-btrace.c (record_btrace_stop_recording): Add 'self'
214 2014-02-19 Tom Tromey <tromey@redhat.com>
216 * target.h (struct target_ops) <to_read_btrace>: Add argument.
217 * target.c (struct target_ops) <to_read_btrace>: Add argument.
218 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
220 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
221 (_initialize_amd64_linux_nat): Use it.
222 * i386-linux-nat.c (i386_linux_read_btrace): New function.
223 (_initialize_i386_linux_nat): Use it.
225 2014-02-19 Tom Tromey <tromey@redhat.com>
227 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
228 * target.c (target_teardown_btrace): Add argument.
229 * remote.c (remote_teardown_btrace): Add 'self' argument.
230 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
232 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
235 2014-02-19 Tom Tromey <tromey@redhat.com>
237 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
238 * target.c (target_disable_btrace): Add argument.
239 * remote.c (remote_disable_btrace): Add 'self' argument.
240 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
242 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
245 2014-02-19 Tom Tromey <tromey@redhat.com>
247 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
248 * target.c (target_enable_btrace): Add argument.
249 * remote.c (remote_enable_btrace): Add 'self' argument.
250 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
252 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
255 2014-02-19 Tom Tromey <tromey@redhat.com>
257 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
258 (target_can_use_agent): Add argument.
259 * target.c (update_current_target): Update.
260 * remote.c (remote_can_use_agent): Add 'self' argument.
261 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
263 2014-02-19 Tom Tromey <tromey@redhat.com>
265 * target.h (struct target_ops) <to_use_agent>: Add argument.
266 (target_use_agent): Add argument.
267 * target.c (update_current_target): Update.
268 * remote.c (remote_use_agent): Add 'self' argument.
269 * inf-child.c (inf_child_use_agent): Add 'self' argument.
271 2014-02-19 Tom Tromey <tromey@redhat.com>
273 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
274 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
275 (target_traceframe_info): Add argument.
276 * target.c (update_current_target): Update.
277 * remote.c (remote_traceframe_info): Add 'self' argument.
278 * ctf.c (ctf_traceframe_info): Add 'self' argument.
280 2014-02-19 Tom Tromey <tromey@redhat.com>
282 * target.h (target_static_tracepoint_markers_by_strid): Add
284 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
286 * target.c (update_current_target): Update.
287 * remote.c (struct target_ops)
288 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
289 * linux-nat.c (struct target_ops)
290 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
292 2014-02-19 Tom Tromey <tromey@redhat.com>
294 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
296 (target_static_tracepoint_marker_at): Add argument.
297 * target.c (update_current_target): Update.
298 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
301 2014-02-19 Tom Tromey <tromey@redhat.com>
303 * target.h (struct target_ops) <to_set_permissions>: Add argument.
304 (target_set_permissions): Add argument.
305 * target.c (update_current_target): Update.
306 * remote.c (remote_set_permissions): Add 'self' argument.
307 (remote_start_remote): Update.
309 2014-02-19 Tom Tromey <tromey@redhat.com>
311 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
312 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
313 (target_get_tib_address): Add argument.
314 * target.c (update_current_target): Update.
315 * remote.c (remote_get_tib_address): Add 'self' argument.
317 2014-02-19 Tom Tromey <tromey@redhat.com>
319 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
320 (target_set_trace_notes): Add argument.
321 * target.c (update_current_target): Update.
322 * remote.c (remote_set_trace_notes): Add 'self' argument.
324 2014-02-19 Tom Tromey <tromey@redhat.com>
326 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
328 (target_set_trace_buffer_size): Add argument.
329 * target.c (update_current_target): Update.
330 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
332 2014-02-19 Tom Tromey <tromey@redhat.com>
334 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
336 (target_set_circular_trace_buffer): Add argument.
337 * target.c (update_current_target): Update.
338 * remote.c (remote_set_circular_trace_buffer): Add 'self'
341 2014-02-19 Tom Tromey <tromey@redhat.com>
343 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
345 (target_set_disconnected_tracing): Add argument.
346 * target.c (update_current_target): Update.
347 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
349 2014-02-19 Tom Tromey <tromey@redhat.com>
351 * target.h (struct target_ops)
352 <to_get_min_fast_tracepoint_insn_len>: Add argument.
353 (target_get_min_fast_tracepoint_insn_len): Add argument.
354 * target.c (update_current_target): Update.
355 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
358 2014-02-19 Tom Tromey <tromey@redhat.com>
360 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
362 (target_get_raw_trace_data): Add argument.
363 * target.c (update_current_target): Update.
364 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_upload_trace_state_variables>:
370 (target_upload_trace_state_variables): Add argument.
371 * target.c (update_current_target): Update.
372 * remote.c (remote_upload_trace_state_variables): Add 'self'
374 (remote_start_remote): Update.
376 2014-02-19 Tom Tromey <tromey@redhat.com>
378 * target.h (struct target_ops) <to_upload_tracepoints>: Add
380 (target_upload_tracepoints): Add argument.
381 * target.c (update_current_target): Update.
382 * remote.c (remote_upload_tracepoints): Add 'self' argument.
383 (remote_start_remote): Update.
385 2014-02-19 Tom Tromey <tromey@redhat.com>
387 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
388 (target_save_trace_data): Add argument.
389 * target.c (update_current_target): Update.
390 * remote.c (remote_save_trace_data): Add 'self' argument.
392 2014-02-19 Tom Tromey <tromey@redhat.com>
394 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
396 * target.h (struct target_ops)
397 <to_get_trace_state_variable_value>: Add argument.
398 (target_get_trace_state_variable_value): Add argument.
399 * target.c (update_current_target): Update.
400 * remote.c (remote_get_trace_state_variable_value): Add 'self'
402 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
404 2014-02-19 Tom Tromey <tromey@redhat.com>
406 * tracepoint.c (tfile_trace_find): Add 'self' argument.
407 * target.h (struct target_ops) <to_trace_find>: Add argument.
408 (target_trace_find): Add argument.
409 * target.c (update_current_target): Update.
410 * remote.c (remote_trace_find): Add 'self' argument.
411 * ctf.c (ctf_trace_find): Add 'self' argument.
413 2014-02-19 Tom Tromey <tromey@redhat.com>
415 * target.h (struct target_ops) <to_trace_stop>: Add argument.
416 (target_trace_stop): Add argument.
417 * target.c (update_current_target): Update.
418 * remote.c (remote_trace_stop): Add 'self' argument.
420 2014-02-19 Tom Tromey <tromey@redhat.com>
422 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
423 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
425 (target_get_tracepoint_status): Add argument.
426 * target.c (update_current_target): Update.
427 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
429 2014-02-19 Tom Tromey <tromey@redhat.com>
431 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
432 * target.h (struct target_ops) <to_get_trace_status>: Add
434 (target_get_trace_status): Add argument.
435 * target.c (update_current_target): Update.
436 * remote.c (remote_get_trace_status): Add 'self' argument.
437 (remote_start_remote, remote_can_download_tracepoint): Update.
438 * ctf.c (ctf_get_trace_status): Add 'self' argument.
440 2014-02-19 Tom Tromey <tromey@redhat.com>
442 * target.h (struct target_ops) <to_trace_start>: Add argument.
443 (target_trace_start): Add argument.
444 * target.c (update_current_target): Update.
445 * remote.c (remote_trace_start): Add 'self' argument.
447 2014-02-19 Tom Tromey <tromey@redhat.com>
449 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
451 (target_trace_set_readonly_regions): Add argument.
452 * target.c (update_current_target): Update.
453 * remote.c (remote_trace_set_readonly_regions): Add 'self'
456 2014-02-19 Tom Tromey <tromey@redhat.com>
458 * target.h (struct target_ops) <to_disable_tracepoint>: Add
460 (target_disable_tracepoint): Add argument.
461 * target.c (update_current_target): Update.
462 * remote.c (remote_disable_tracepoint): Add 'self' argument.
464 2014-02-19 Tom Tromey <tromey@redhat.com>
466 * target.h (struct target_ops) <to_enable_tracepoint>: Add
468 (target_enable_tracepoint): Add argument.
469 * target.c (update_current_target): Update.
470 * remote.c (remote_enable_tracepoint): Add 'self' argument.
472 2014-02-19 Tom Tromey <tromey@redhat.com>
474 * target.h (struct target_ops) <to_download_trace_state_variable>:
476 (target_download_trace_state_variable): Add argument.
477 * target.c (update_current_target): Update.
478 * remote.c (remote_download_trace_state_variable): Add 'self'
481 2014-02-19 Tom Tromey <tromey@redhat.com>
483 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
485 (target_can_download_tracepoint): Add argument.
486 * target.c (update_current_target): Update.
487 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
489 2014-02-19 Tom Tromey <tromey@redhat.com>
491 * target.h (struct target_ops) <to_download_tracepoint>: Add
493 (target_download_tracepoint): Add argument.
494 * target.c (update_current_target): Update.
495 * remote.c (remote_download_tracepoint): Add 'self' argument.
497 2014-02-19 Tom Tromey <tromey@redhat.com>
499 * target.h (struct target_ops) <to_trace_init>: Add argument.
500 (target_trace_init): Add argument.
501 * target.c (update_current_target): Update.
502 * remote.c (remote_trace_init): Add 'self' argument.
504 2014-02-19 Tom Tromey <tromey@redhat.com>
506 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
507 * target.c (target_fileio_readlink): Add argument.
508 * remote.c (remote_hostio_readlink): Add 'self' argument.
509 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
511 2014-02-19 Tom Tromey <tromey@redhat.com>
513 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
514 * target.c (target_fileio_unlink): Add argument.
515 * remote.c (remote_hostio_unlink): Add 'self' argument.
516 (remote_file_delete): Update.
517 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
519 2014-02-19 Tom Tromey <tromey@redhat.com>
521 * target.h (struct target_ops) <to_fileio_close>: Add argument.
522 * target.c (target_fileio_close): Add argument.
523 * remote.c (remote_hostio_close): Add 'self' argument.
524 (remote_hostio_close_cleanup): Update.
525 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
527 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
529 2014-02-19 Tom Tromey <tromey@redhat.com>
531 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
532 * target.c (target_fileio_pread): Add argument.
533 * remote.c (remote_hostio_pread): Add 'self' argument.
534 (remote_bfd_iovec_pread, remote_file_get): Update.
535 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
537 2014-02-19 Tom Tromey <tromey@redhat.com>
539 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
540 * target.c (target_fileio_pwrite): Add argument.
541 * remote.c (remote_hostio_pwrite): Add 'self' argument.
542 (remote_file_put): Update.
543 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
545 2014-02-19 Tom Tromey <tromey@redhat.com>
547 * target.h (struct target_ops) <to_fileio_open>: Add argument.
548 * target.c (target_fileio_open): Add argument.
549 * remote.c (remote_hostio_open): Add 'self' argument.
550 (remote_bfd_iovec_open): Add 'self' argument.
551 (remote_file_put): Add 'self' argument.
552 (remote_file_get): Add 'self' argument.
553 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
555 2014-02-19 Tom Tromey <tromey@redhat.com>
557 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
559 (target_can_run_breakpoint_commands): Add argument.
560 * target.c (update_current_target): Update.
561 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
563 (remote_insert_breakpoint): Add 'self' argument.
564 (remote_insert_hw_breakpoint): Add 'self' argument.
565 (remote_can_run_breakpoint_commands): Add 'self' argument.
567 2014-02-19 Tom Tromey <tromey@redhat.com>
569 * target.h (struct target_ops)
570 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
571 (target_supports_evaluation_of_breakpoint_conditions): Add
573 * target.c (update_current_target): Update.
574 * remote.c (remote_supports_cond_breakpoints): Add 'self'
576 (remote_insert_breakpoint): Add 'self' argument.
577 (remote_insert_hw_breakpoint): Add 'self' argument.
578 (remote_supports_cond_breakpoints): Add 'self' argument.
580 2014-02-19 Tom Tromey <tromey@redhat.com>
582 * target.h (struct target_ops) <to_supports_string_tracing>: Add
584 (target_supports_string_tracing): Add argument.
585 * target.c (update_current_target): Update.
586 * remote.c (remote_supports_string_tracing): Add 'self' argument.
588 2014-02-19 Tom Tromey <tromey@redhat.com>
590 * target.h (struct target_ops)
591 <to_supports_disable_randomization>: Add argument.
592 * target.c (find_default_supports_disable_randomization): Add
594 (target_supports_disable_randomization): Add argument.
595 (find_default_supports_disable_randomization): Add 'self'
597 * remote.c (extended_remote_supports_disable_randomization): Add
599 (remote_supports_disable_randomization): Add 'self' argument.
600 (extended_remote_create_inferior): Update.
601 * linux-nat.c (linux_nat_supports_disable_randomization): Add
604 2014-02-19 Tom Tromey <tromey@redhat.com>
606 * target.h (struct target_ops)
607 <to_supports_enable_disable_tracepoint>: Add argument.
608 (target_supports_enable_disable_tracepoint): Add argument.
609 * target.c (update_current_target): Update.
610 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
613 2014-02-19 Tom Tromey <tromey@redhat.com>
615 * target.h (struct target_ops) <to_supports_multi_process>: Add
617 (target_supports_multi_process): Add argument.
618 * target.c (update_current_target): Update.
619 * remote.c (remote_supports_multi_process): Add 'self' argument.
620 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
622 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
625 2014-02-19 Tom Tromey <tromey@redhat.com>
627 * target.h (struct target_ops) <to_execution_direction>: Add
629 (target_execution_direction): Add argument.
630 * target.c (default_execution_direction): Add 'self' argument.
631 * record-full.c (record_full_execution_direction): Add 'self'
634 2014-02-19 Tom Tromey <tromey@redhat.com>
636 * target.h (struct target_ops) <to_can_execute_reverse>: Add
638 (target_can_execute_reverse): Add argument.
639 * remote.c (remote_can_execute_reverse): Add 'self' argument.
640 * record-full.c (record_full_can_execute_reverse): Add 'self'
642 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
645 2014-02-19 Tom Tromey <tromey@redhat.com>
647 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
648 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
650 (target_get_ada_task_ptid): Add argument.
651 * target.c (update_current_target): Update.
652 (default_get_ada_task_ptid): Add 'self' argument.
653 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
654 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
655 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
657 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
659 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
661 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
663 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
664 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
667 2014-02-19 Tom Tromey <tromey@redhat.com>
669 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
670 (target_goto_bookmark): Add argument.
671 * target.c (dummy_goto_bookmark): Add 'self' argument.
672 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
674 2014-02-19 Tom Tromey <tromey@redhat.com>
676 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
677 (target_get_bookmark): Add argument.
678 * target.c (dummy_get_bookmark): Add 'self' argument.
679 * record-full.c (record_full_get_bookmark): Add 'self' argument.
681 2014-02-19 Tom Tromey <tromey@redhat.com>
683 * target.h (struct target_ops) <to_make_corefile_notes>: Add
685 (target_make_corefile_notes): Add argument.
686 * target.c (dummy_make_corefile_notes): Add 'self' argument.
687 * procfs.c (procfs_make_note_section): Add 'self' argument.
688 (procfs_make_note_section): Add 'self' argument.
689 (procfs_make_note_section): Add 'self' argument.
690 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
692 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
693 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
694 * exec.c (exec_make_note_section): Add 'self' argument.
695 (exec_make_note_section): Add 'self' argument.
697 2014-02-19 Tom Tromey <tromey@redhat.com>
699 * target.h (struct target_ops) <to_find_memory_regions>: Add
701 (target_find_memory_regions): Add argument.
702 * target.c (dummy_find_memory_regions): Add 'self' argument.
703 * procfs.c (proc_find_memory_regions): Add 'self' argument.
704 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
705 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
706 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
707 * exec. (exec_do_find_memory_regions): New global.
708 (exec_set_find_memory_regions): Rewrite.
709 (exec_find_memory_regions): New function.
710 (init_exec_ops): Use exec_find_memory_regions.
712 2014-02-19 Tom Tromey <tromey@redhat.com>
714 * target.h (struct target_ops) <to_supports_non_stop>: Add
716 * target.c (find_default_supports_non_stop): Add argument.
717 (target_supports_non_stop): Add argument.
718 (find_default_supports_non_stop): Add 'self' argument.
719 * remote.c (remote_supports_non_stop): Add 'self' argument.
720 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
722 2014-02-19 Tom Tromey <tromey@redhat.com>
724 * target.h (struct target_ops) <to_log_command>: Add argument.
725 (target_log_command): Add argument.
726 * serial.h (serial_log_command): Add 'self' argument.
727 * serial.c (serial_log_command): Add 'self' argument.
729 2014-02-19 Tom Tromey <tromey@redhat.com>
731 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
732 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
734 (target_pid_to_exec_file): Add argument.
735 * target.c (debug_to_pid_to_exec_file): Add argument.
736 (update_current_target): Update.
737 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
738 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
739 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
740 (linux_handle_extended_wait): Update.
741 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
742 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
743 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
744 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
746 2014-02-19 Tom Tromey <tromey@redhat.com>
748 * target.h (struct target_ops) <to_rcmd>: Add argument.
749 (target_rcmd): Add argument.
750 * target.c (debug_to_rcmd): Add argument.
751 (update_current_target, do_monitor_command): Update.
752 * remote.c (remote_rcmd): Add 'self' argument.
753 * monitor.c (monitor_rcmd): Add 'self' argument.
755 2014-02-19 Tom Tromey <tromey@redhat.com>
757 * windows-nat.c (windows_stop): Add 'self' argument.
758 * target.h (struct target_ops) <to_stop>: Add argument.
759 * target.c (target_stop): Add argument.
760 (debug_to_stop): Add argument.
761 (update_current_target): Update.
762 * remote.c (remote_stop): Add 'self' argument.
763 * remote-sim.c (gdbsim_stop): Add 'self' argument.
764 (gdbsim_cntrl_c): Update.
765 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
766 * procfs.c (procfs_stop): Add 'self' argument.
767 * nto-procfs.c (procfs_stop): Add 'self' argument.
768 * monitor.c (monitor_stop): Add 'self' argument.
769 (monitor_open): Update.
770 * linux-nat.c (linux_nat_stop): Add argument.
771 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
772 * gnu-nat.c (gnu_stop): Add 'self' argument.
773 * darwin-nat.c (darwin_stop): Add 'self' argument.
775 2014-02-19 Tom Tromey <tromey@redhat.com>
777 * target.h (struct target_ops) <to_thread_name>: Add argument.
778 * target.c (target_thread_name): Add argument.
779 (update_current_target): Update.
780 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
782 2014-02-19 Tom Tromey <tromey@redhat.com>
784 * target.h (struct target_ops) <to_extra_thread_info>: Add
786 (target_extra_thread_info): Add argument.
787 * target.c (update_current_target): Update.
788 * remote.c (remote_threads_extra_info): Add 'self' argument.
789 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
791 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
792 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
793 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
795 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
797 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
799 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
802 2014-02-19 Tom Tromey <tromey@redhat.com>
804 * target.h (struct target_ops) <to_program_signals>: Add argument.
805 * target.c (target_program_signals): Add argument.
806 * remote.c (remote_program_signals): Add 'self' argument.
808 2014-02-19 Tom Tromey <tromey@redhat.com>
810 * target.h (struct target_ops) <to_pass_signals>: Add argument.
811 * target.c (target_pass_signals): Add argument.
812 * remote.c (remote_pass_signals): Add 'self' argument.
813 (remote_start_remote): Update.
814 * procfs.c (procfs_pass_signals): Add 'self' argument.
815 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
816 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
817 (linux_nat_create_inferior, linux_nat_attach): Update.
819 2014-02-19 Tom Tromey <tromey@redhat.com>
821 * windows-nat.c (windows_can_run): Add 'self' argument.
822 * target.h (struct target_ops) <to_can_run>: Add argument.
823 (target_can_run): Add argument.
824 * target.c (debug_to_can_run): Add argument.
825 (update_current_target): Update.
826 * nto-procfs.c (procfs_can_run): Add 'self' argument.
827 * inf-child.c (inf_child_can_run): Add 'self' argument.
828 * go32-nat.c (go32_can_run): Add 'self' argument.
830 2014-02-19 Tom Tromey <tromey@redhat.com>
832 * target.h (struct target_ops) <to_has_exited>: Add argument.
833 (target_has_exited): Add argument.
834 * target.c (debug_to_has_exited): Add argument.
835 (update_current_target): Update.
837 2014-02-19 Tom Tromey <tromey@redhat.com>
839 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
841 (target_set_syscall_catchpoint): Add argument.
842 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
844 * target.c (update_current_target): Update.
846 2014-02-19 Tom Tromey <tromey@redhat.com>
848 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
850 (target_remove_exec_catchpoint): Add argument.
851 * target.c (debug_to_remove_exec_catchpoint): Add argument.
852 (update_current_target): Update.
853 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
856 2014-02-19 Tom Tromey <tromey@redhat.com>
858 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
860 (target_insert_exec_catchpoint): Add argument.
861 * target.c (debug_to_insert_exec_catchpoint): Add argument.
862 (update_current_target): Update.
863 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
866 2014-02-19 Tom Tromey <tromey@redhat.com>
868 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
870 (target_remove_vfork_catchpoint): Add argument.
871 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
872 (update_current_target): Update.
873 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
876 2014-02-19 Tom Tromey <tromey@redhat.com>
878 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
880 (target_insert_vfork_catchpoint): Add argument.
881 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
882 (update_current_target): Update.
883 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
886 2014-02-19 Tom Tromey <tromey@redhat.com>
888 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
890 (target_remove_fork_catchpoint): Add argument.
891 * target.c (debug_to_remove_fork_catchpoint): Add argument.
892 (update_current_target): Update.
893 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
896 2014-02-19 Tom Tromey <tromey@redhat.com>
898 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
900 (target_insert_fork_catchpoint): Add argument.
901 * target.c (debug_to_insert_fork_catchpoint): Add argument.
902 (update_current_target): Update.
903 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
906 2014-02-19 Tom Tromey <tromey@redhat.com>
908 * target.h (struct target_ops) <to_post_startup_inferior>: Add
910 (target_post_startup_inferior): Add argument.
911 * target.c (debug_to_post_startup_inferior): Add argument.
912 (update_current_target): Update.
913 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
915 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
917 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
919 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
921 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
923 (super_post_startup_inferior): Likewise.
924 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
926 (super_post_startup_inferior): Likewise.
927 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
929 (super_post_startup_inferior): Likewise.
931 2014-02-19 Tom Tromey <tromey@redhat.com>
933 * target.h (struct target_ops) <to_load>: Add argument.
934 * target.c (target_load): Add argument.
935 (debug_to_load): Add argument.
936 (update_current_target): Update.
937 * remote.c (remote_load): Add 'self' argument.
938 * remote-sim.c (gdbsim_load): Add 'self' argument.
939 * remote-mips.c (mips_load): Add 'self' argument.
940 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
941 * monitor.c (monitor_load): Add 'self' argument.
942 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
944 2014-02-19 Tom Tromey <tromey@redhat.com>
946 * target.h (struct target_ops) <to_terminal_info>: Add argument.
947 (target_terminal_info): Add argument.
948 * target.c (debug_to_terminal_info): Add argument.
949 (default_terminal_info): Likewise.
950 * inflow.c (child_terminal_info): Add 'self' argument.
951 * inferior.h (child_terminal_info): Add 'self' argument.
952 * go32-nat.c (go32_terminal_info): Add 'self' argument.
954 2014-02-19 Tom Tromey <tromey@redhat.com>
956 * target.h (struct target_ops) <to_terminal_save_ours>: Add
958 (target_terminal_save_ours): Add argument.
959 * target.c (debug_to_terminal_save_ours): Add argument.
960 (update_current_target): Update.
961 * inflow.c (terminal_save_ours): Add 'self' argument.
962 * inferior.h (terminal_save_ours): Add 'self' argument.
964 2014-02-19 Tom Tromey <tromey@redhat.com>
966 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
967 (target_terminal_ours): Add argument.
968 * target.c (debug_to_terminal_ours): Add argument.
969 (update_current_target): Update.
970 * remote.c (remote_terminal_ours): Add 'self' argument.
971 (remote_close): Update.
972 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
973 * inflow.c (terminal_ours): Add 'self' argument.
974 * inferior.h (terminal_ours): Add 'self' argument.
975 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
977 2014-02-19 Pedro Alves <palves@redhat.com>
978 Tom Tromey <tromey@redhat.com>
980 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
982 (target_terminal_ours_for_output): Add argument.
983 * target.c (debug_to_terminal_ours_for_output): Add argument.
984 (update_current_target): Update.
985 * inflow.c (terminal_ours_for_output): Add 'self' argument.
986 * inferior.h (terminal_ours_for_output): Add 'self' argument.
987 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
989 2014-02-19 Tom Tromey <tromey@redhat.com>
991 * target.h (struct target_ops) <to_terminal_inferior>: Add
993 * target.c (target_terminal_inferior): Add argument.
994 (update_current_target): Update.
995 * remote.c (remote_terminal_inferior): Add 'self' argument.
996 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
997 * inflow.c (terminal_inferior): Add 'self' argument.
998 * inferior.h (terminal_inferior): Add 'self' argument.
999 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1000 (go32_terminal_inferior): Add 'self' argument.
1002 2014-02-19 Tom Tromey <tromey@redhat.com>
1004 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1005 (target_terminal_init): Add argument.
1006 * target.c (debug_to_terminal_init): Add argument.
1007 (update_current_target): Update.
1008 * inflow.c (terminal_init_inferior): Add 'self' argument.
1009 * inferior.h (terminal_init_inferior): Add 'self' argument.
1010 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1011 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1013 2014-02-19 Tom Tromey <tromey@redhat.com>
1015 * target.h (struct target_ops)
1016 <to_can_accel_watchpoint_condition>: Add argument.
1017 (target_can_accel_watchpoint_condition): Add argument.
1018 * target.c (debug_to_can_accel_watchpoint_condition): Add
1020 (update_current_target): Update.
1021 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1024 2014-02-19 Tom Tromey <tromey@redhat.com>
1026 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1028 (target_region_ok_for_hw_watchpoint): Add argument.
1029 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1030 (default_region_ok_for_hw_watchpoint): Add argument.
1031 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1032 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1034 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1036 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1038 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1040 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1042 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1044 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1045 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1047 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1048 Add 'self' argument.
1050 2014-02-19 Tom Tromey <tromey@redhat.com>
1052 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1054 (target_insert_watchpoint): Add argument.
1055 * target.c (debug_to_insert_watchpoint): Add argument.
1056 (update_current_target): Update.
1057 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1058 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1059 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1060 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1061 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1062 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1064 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1065 (procfs_insert_hw_watchpoint): Add 'self' argument.
1066 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1068 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1070 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1072 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1073 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1075 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1078 2014-02-19 Tom Tromey <tromey@redhat.com>
1080 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1082 (target_remove_watchpoint): Add argument.
1083 * target.c (debug_to_remove_watchpoint): Add argument.
1084 (update_current_target): Update.
1085 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1086 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1087 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1088 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1089 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1090 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1092 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1093 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1095 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1097 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1099 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1100 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1102 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1105 2014-02-19 Tom Tromey <tromey@redhat.com>
1107 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1109 (target_remove_hw_breakpoint): Add argument.
1110 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1111 (update_current_target): Update.
1112 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1113 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1115 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1116 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1118 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1121 2014-02-19 Tom Tromey <tromey@redhat.com>
1123 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1125 (target_insert_hw_breakpoint): Add argument.
1126 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1127 (update_current_target): Update.
1128 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1129 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1131 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1132 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1133 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1135 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1138 2014-02-19 Tom Tromey <tromey@redhat.com>
1140 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1142 (target_can_use_hardware_watchpoint): Add argument.
1143 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1144 (update_current_target): Update.
1145 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1147 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1149 * remote.c (remote_check_watch_resources): Add 'self' argument.
1150 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1151 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1153 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1154 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1156 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1158 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1160 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1162 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1164 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1166 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1167 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1169 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1172 2014-02-19 Tom Tromey <tromey@redhat.com>
1174 * target.h (struct target_ops) <to_post_attach>: Add argument.
1175 (target_post_attach): Add argument.
1176 * target.c (debug_to_post_attach): Add argument.
1177 (update_current_target): Update.
1178 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1179 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1180 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1181 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1182 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1184 2014-02-19 Tom Tromey <tromey@redhat.com>
1186 * windows-nat.c (windows_close): Add 'self' argument.
1187 * tracepoint.c (tfile_close): Add 'self' argument.
1188 * target.h (struct target_ops) <to_close>: Add argument.
1189 * target.c (target_close): Add argument.
1190 (update_current_target): Update.
1191 * remote.c (remote_close): Add 'self' argument.
1192 * remote-sim.c (gdbsim_close): Add 'self' argument.
1193 * remote-mips.c (mips_close): Add 'self' argument.
1194 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1195 * record-full.c (record_full_close): Add 'self' argument.
1196 * record-btrace.c (record_btrace_close): Add 'self' argument.
1197 * monitor.h (monitor_close): Add 'self' argument.
1198 * monitor.c (monitor_close): Add 'self' argument.
1199 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1200 * linux-nat.c (linux_nat_close): Add argument.
1201 * go32-nat.c (go32_close): Add 'self' argument.
1202 * exec.c (exec_close_1): Add 'self' argument.
1203 * ctf.c (ctf_close): Add 'self' argument.
1204 * corelow.c (core_close): Add 'self' argument.
1205 (core_close_cleanup): Update.
1206 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1207 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1209 2014-02-19 Tom Tromey <tromey@redhat.com>
1211 * remote.c (remote_load): New function.
1212 (init_remote_ops): Use it.
1214 2014-02-19 Tom Tromey <tromey@redhat.com>
1216 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1218 * common/linux-btrace.h (linux_supports_btrace): Update.
1219 * remote.c (remote_supports_btrace): Add "self" argument.
1220 * target-delegates.c: Rebuild.
1221 * target.c (target_supports_btrace): Remove.
1222 * target.h (struct target_ops) <to_supports_btrace>: Add
1223 target_ops argument.
1224 (target_supports_btrace): New define.
1226 2014-02-19 Tom Tromey <tromey@redhat.com>
1228 * record-full.c (record_full_beneath_to_resume_ops)
1229 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1230 (record_full_beneath_to_wait)
1231 (record_full_beneath_to_store_registers_ops)
1232 (record_full_beneath_to_store_registers)
1233 (record_full_beneath_to_xfer_partial_ops)
1234 (record_full_beneath_to_xfer_partial)
1235 (record_full_beneath_to_insert_breakpoint_ops)
1236 (record_full_beneath_to_insert_breakpoint)
1237 (record_full_beneath_to_remove_breakpoint_ops)
1238 (record_full_beneath_to_remove_breakpoint)
1239 (record_full_beneath_to_stopped_by_watchpoint)
1240 (record_full_beneath_to_stopped_data_address)
1241 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1242 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1243 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1244 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1245 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1246 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1247 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1248 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1249 (record_full_resume, record_full_wait_1)
1250 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1251 (record_full_store_registers, record_full_xfer_partial)
1252 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1253 (record_full_async, record_full_core_xfer_partial): Use target
1255 * target-delegates.c: Rebuild.
1256 * target.c (current_xfer_partial): Remove.
1257 (update_current_target): Do not INHERIT or de_fault
1258 to_insert_breakpoint, to_remove_breakpoint,
1259 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1260 to_is_async_p, to_async. Do not set to_xfer_partial field.
1261 (default_xfer_partial): Simplify.
1262 (current_xfer_partial): Remove.
1263 (target_wait, target_resume): Simplify.
1264 (find_default_can_async_p, find_default_is_async_p): Update.
1265 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1266 to_xfer_partial, to_stopped_by_watchpoint,
1267 to_stopped_data_address.
1268 (target_store_registers): Simplify.
1269 (forward_target_remove_breakpoint)
1270 (forward_target_insert_breakpoint): Remove.
1271 (target_remove_breakpoint, target_insert_breakpoint)
1272 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1273 * target.h (struct target_ops) <to_resume, to_wait,
1274 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1275 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1276 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1278 (forward_target_remove_breakpoint)
1279 (forward_target_insert_breakpoint): Remove.
1280 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1282 (record_btrace_insert_breakpoint): Delegate directly.
1284 2014-02-19 Tom Tromey <tromey@redhat.com>
1287 * target-delegates.c: New file.
1288 * target.c: Include target-delegates.c.
1289 (init_dummy_target): Call install_dummy_methods.
1290 (complete_target_initialization): Call install_delegators.
1291 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1292 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1293 * make-target-delegates: New file.
1295 2014-02-19 Tom Tromey <tromey@redhat.com>
1297 * record.c (find_record_target): Use find_target_at.
1298 * target.c (find_target_at): New function.
1299 * target.h (find_target_at): Declare.
1301 2014-02-19 Tom Tromey <tromey@redhat.com>
1303 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1305 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1307 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1308 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1310 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1312 * linux-nat.c (save_sigtrap): Update.
1313 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1314 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1315 (linux_nat_close): Update.
1316 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1318 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1320 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1321 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1322 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1323 (tmp_to_async): Add 'ops' argument.
1324 (record_full_stopped_by_watchpoint, record_full_async)
1325 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1327 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1328 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1329 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1330 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1331 (remote_is_async_p, remote_async): Add 'ops' argument.
1332 (remote_stopped_data_address): Update.
1333 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1334 * target.c (update_current_target)
1335 (find_default_can_async_p, find_default_is_async_p): Update.
1336 (init_dummy_target): Update.
1337 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1338 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1339 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1340 (target_can_async_p, target_is_async_p, target_async)
1341 (target_stopped_by_watchpoint): Update.
1343 2014-02-19 Yao Qi <yao@codesourcery.com>
1346 * gdbarch.sh: Remove startup_gdbarch.
1347 * gdbarch.c: Regenerated.
1348 * gdbarch.h: Likewise.
1350 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1352 * rl78-tdep.c (rl78_g10_register_name): New function.
1353 (rl78_return_value): Add g10 support.
1354 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1357 2014-02-17 Doug Evans <xdje42@gmail.com>
1359 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1360 (SUBDIR_GUILE_SRCS): Ditto.
1361 (scm-gsmob.o): Ditto.
1363 2014-02-17 Yao Qi <yao@codesourcery.com>
1365 * gnu-nat.c (ILL_RPC): Declare defined function.
1367 2014-02-17 Yao Qi <yao@codesourcery.com>
1369 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1370 mach_msg_type_number_t.
1371 (gnu_write_inferior): Likewise.
1373 2014-02-17 Yao Qi <yao@codesourcery.com>
1375 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1377 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1378 (inf_validate_procs, inf_signal): Likewise.
1379 (S_exception_raise_request): Likewise.
1380 (do_mach_notify_dead_name): Likewise.
1381 (steal_exc_port): Likewise.
1382 (gnu_read_inferior): Change 'copy_count''s type to
1383 mach_msg_type_number_t.
1384 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1387 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1389 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1390 flag. Adjust all users; in particular...
1391 (gnu_wait): ..., don't decrement its value in here...
1392 (gnu_create_inferior): ..., and instead set the flag in here,
1393 around the startup_inferior call, and call that one with
1394 START_INFERIOR_TRAPS_EXPECTED.
1396 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1397 (ILL_RPC): ... new macro.
1398 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1399 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1400 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1401 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1402 functions with ILL_RPC macro.
1403 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1404 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1405 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1406 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1407 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1408 (S_proc_getlogin_reply, S_proc_getsid_reply)
1409 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1410 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1411 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1412 (S_proc_getnports_reply, S_proc_is_important_reply)
1413 (S_proc_get_code_reply): New stub functions, generated with
1416 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1417 collected the type check structures.
1419 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1421 2014-02-14 Doug Evans <dje@google.com>
1423 * target.c (target_write_partial): Fix result type.
1425 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1427 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1428 the proper offsets to access fpregset_t.
1430 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1432 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1433 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1434 * h8300-tdep.c (setmachinelist): Remove global.
1435 * hppa-tdep.c (hppa_sigtramp): Remove global.
1436 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1437 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1438 * ravenscar-thread.c (update_target_observer): Remove global.
1439 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1441 2014-02-12 Tom Tromey <tromey@redhat.com>
1443 * common/rsp-low.c: Update comments.
1444 * common/rsp-low.h: Update comments.
1446 2014-02-12 Tom Tromey <tromey@redhat.com>
1448 * common/rsp-low.c (convert_ascii_to_int): Remove.
1449 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1451 2014-02-12 Tom Tromey <tromey@redhat.com>
1453 * common/rsp-low.h (unhexify): Don't declare.
1454 * common/rsp-low.c (unhexify): Remove.
1456 2014-02-12 Tom Tromey <tromey@redhat.com>
1458 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1459 * common/rsp-low.c (convert_int_to_ascii): Remove.
1461 2014-02-12 Tom Tromey <tromey@redhat.com>
1463 * common/rsp-low.h (hexify): Don't declare.
1464 * common/rsp-low.c (hexify): Remove.
1466 2014-02-12 Tom Tromey <tromey@redhat.com>
1468 * common/rsp-low.c (hexify): Never take strlen of argument.
1470 2014-02-12 Tom Tromey <tromey@redhat.com>
1472 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1473 * remote.c (extended_remote_run, remote_rcmd)
1474 (remote_download_trace_state_variable, remote_save_trace_data)
1475 (remote_set_trace_notes): Update.
1476 * tracepoint.c (encode_source_string, tfile_write_status)
1477 (tfile_write_uploaded_tsv): Update.
1479 2014-02-12 Tom Tromey <tromey@redhat.com>
1481 * tracepoint.c: Include rsp-low.h.
1482 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1483 * remote.c: Include rsp-low.h.
1484 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1485 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1486 (remote_unescape_input): Move to common/rsp-low.c.
1487 * common/rsp-low.h: New file.
1488 * common/rsp-low.c: New file.
1489 * Makefile.in (SFILES): Add common/rsp-low.c.
1490 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1491 (COMMON_OBS): Add rsp-low.o.
1492 (rsp-low.o): New target.
1494 2014-02-12 Tom Tromey <tromey@redhat.com>
1496 * utils.h: Include print-utils.h.
1497 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1498 (int_string, core_addr_to_string, core_addr_to_string_nz)
1499 (hex_string, hex_string_custom): Don't declare.
1500 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1501 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1502 (hex_string_custom, int_string, core_addr_to_string)
1503 (core_addr_to_string_nz, host_address_to_string): Move to
1504 common/print-utils.c.
1505 * common/print-utils.h: New file.
1506 * common/print-utils.c: New file
1507 * Makefile.in (SFILES): Add common/print-utils.c.
1508 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1509 (COMMON_OBS): Add print-utils.o.
1510 (print-utils.o): New target.
1512 2014-02-12 Tom Tromey <tromey@redhat.com>
1514 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1516 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1518 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1520 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1522 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1523 if a PT_IO ptrace request returns sucessfully but indicates that 0
1524 bytes were transferred.
1526 2014-02-12 Pedro Alves <palves@redhat.com>
1527 Kevin Buettner <kevinb@redhat.com>
1529 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1530 TYPE_INSTANCE_FLAG_CODE_SPACE.
1532 2014-02-12 Pedro Alves <palves@redhat.com>
1534 * h8300-tdep.c (pseudo_from_raw_register)
1535 (raw_from_pseudo_register): New functions.
1536 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1539 2014-02-12 Pedro Alves <palves@redhat.com>
1541 * h8300-tdep.c (h8300_register_sim_regno): New function.
1542 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1543 gdbarch_register_sim_regno hook.
1545 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1547 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1549 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1551 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1553 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1555 * obsd-tdep.h (obsd_init_abi): New prototype.
1556 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1557 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1558 (obsd_init_abi): New functions.
1559 * i386obsd-tdep.c: Include "obsd-tdep.h".
1560 (i386obsd_init_abi): Call obsd_init_abi.
1561 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1562 (amd64obsd_init_abi): Call obsd_init_abi.
1563 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1564 obsd-tdep.c to gdb_target_obs.
1566 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1568 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1569 double float arguments to 16-byte in the argument slots.
1571 2014-02-11 Doug Evans <xdje42@gmail.com>
1573 * configure.ac: Don't crash if pkg-config is not found and guile
1574 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1576 * configure: Regenerate.
1578 2014-02-11 Yao Qi <yao@codesourcery.com>
1580 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1581 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1582 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1583 * gnu-nat.c (gnu_xfer_memory): Likewise.
1584 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1585 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1586 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1587 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1589 2014-02-11 Yao Qi <yao@codesourcery.com>
1591 * target.h (enum target_xfer_error): Rename to ...
1592 (enum target_xfer_status): ... it. New. All users updated.
1593 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1595 (TARGET_XFER_STATUS_ERROR_P): New macro.
1596 (target_xfer_error_to_string): Remove declaration.
1597 (target_xfer_status_to_string): Declare.
1598 (target_xfer_partial_ftype): Adjust it.
1599 (struct target_ops) <to_xfer_partial>: Return
1600 target_xfer_status. Add argument xfered_len. Update
1602 * target.c (target_xfer_error_to_string): Rename to ...
1603 (target_xfer_status_to_string): ... it. New. All callers
1605 (target_read_live_memory): Likewise. Call target_xfer_partial
1606 instead of target_read.
1607 (memory_xfer_live_readonly_partial): Return
1608 target_xfer_status. Add argument xfered_len.
1609 (raw_memory_xfer_partial): Likewise.
1610 (memory_xfer_partial_1): Likewise.
1611 (memory_xfer_partial): Likewise.
1612 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1613 properly. Update debug message.
1614 (default_xfer_partial, current_xfer_partial): Likewise.
1615 (target_write_partial): Likewise.
1616 (target_read_partial): Likewise. All callers updated.
1617 (read_whatever_is_readable): Likewise.
1618 (target_write_with_progress): Likewise.
1619 (target_read_alloc_1): Likewise.
1621 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1622 * auxv.c (procfs_xfer_auxv): Likewise.
1623 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1624 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1625 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1626 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1627 * corefile.c (read_memory): Adjust.
1628 * corelow.c (core_xfer_partial): Likewise.
1629 * ctf.c (ctf_xfer_partial): Likewise.
1630 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1632 (darwin_xfer_partial): Likewise.
1633 * exec.c (section_table_xfer_memory_partial): Likewise. All
1635 (exec_xfer_partial): Likewise.
1636 * exec.h (section_table_xfer_memory_partial): Update
1638 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1640 (gnu_xfer_partial): Likewise.
1641 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1642 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1643 (ia64_hpux_xfer_solib_got): Likewise.
1644 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1645 type of 'partial_len' to ULONGEST.
1646 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1647 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1648 (linux_nat_xfer_partial): Likewise.
1649 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1650 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1651 * monitor.c (monitor_xfer_memory): Likewise.
1652 (monitor_xfer_partial): Likewise.
1653 * procfs.c (procfs_xfer_partial): Likewise.
1654 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1655 * record-full.c (record_full_xfer_partial): Likewise.
1656 (record_full_core_xfer_partial): Likewise.
1657 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1658 (gdbsim_xfer_partial): Likewise.
1659 * remote.c (remote_write_bytes_aux): Likewise. All callers
1661 (remote_write_bytes, remote_read_bytes): Likewise. All
1663 (remote_flash_erase): Likewise. All callers updated.
1664 (remote_write_qxfer): Likewise. All callers updated.
1665 (remote_read_qxfer): Likewise. All callers updated.
1666 (remote_xfer_partial): Likewise.
1667 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1668 (rs6000_xfer_shared_libraries): Likewise.
1669 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1670 (sol_thread_xfer_partial): Likewise.
1671 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1672 (sparc_xfer_partial): Likewise.
1673 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1675 (spu_xfer_partial): Likewise.
1676 * spu-multiarch.c (spu_xfer_partial): Likewise.
1677 * tracepoint.c (tfile_xfer_partial): Likewise.
1678 * windows-nat.c (windows_xfer_memory): Likewise.
1679 (windows_xfer_shared_libraries): Likewise.
1680 (windows_xfer_partial): Likewise.
1681 * valprint.c: Replace 'target_xfer_error' with
1682 'target_xfer_status' in comments.
1684 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1686 Checked in by Joel Brobecker <brobecker@adacore.com>.
1687 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1689 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1691 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1692 function parameters.
1694 2014-02-10 Will Newton <will.newton@linaro.org>
1696 * elfread.c (elf_rel_plt_read): Look for a .got section if
1697 looking up .got.plt fails.
1698 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1699 on address passed to elf_gnu_ifunc_record_cache.
1700 (elf_gnu_ifunc_resolve_addr): Likewise.
1701 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1703 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1705 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1706 (X_RETTURN): New macro.
1707 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1709 * sparc64-tdep.c (sparc64_init_abi): Hook
1710 sparc_in_function_epilogue_p.
1712 2014-02-10 Gary Benson <gbenson@redhat.com>
1714 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1715 Rename name_matcher to symbol_matcher.
1717 2014-02-10 Gary Benson <gbenson@redhat.com>
1719 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1720 Use expand_symtabs_file_matcher_ftype and
1721 expand_symtabs_symbol_matcher_ftype.
1723 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1725 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1726 (struct ada_symbol_cache): New.
1727 (ada_free_symbol_cache): Forward declare.
1728 (struct ada_pspace_data): New.
1729 (ada_pspace_data_handle): New static global.
1730 (get_ada_pspace_data, ada_pspace_data_cleanup)
1731 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1732 (cache_space, cache): Delete, now folded inside struct
1734 (ada_get_symbol_cache): New function.
1735 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1737 (_initialize_ada_language): Remove initialization of cache_space.
1738 Move call to observer_attach_inferior_exit up, grouping it
1739 with the other observer registrations inside this function.
1740 Rename command to be more general. Add call to
1741 register_program_space_data_with_cleanup.
1743 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1745 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1746 ada_new_objfile_observer.
1747 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1748 (_initialize_tasks): Update uses of ada_new_objfile_observer
1749 and ada_tasks_normal_stop_observer.
1751 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1753 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1754 returned by the 'Length attribute to integer.
1756 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1758 * ada-lang.c (_initialize_ada_language): Initialize
1759 cache_space obstack.
1761 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1763 * ada-lang.c (HASH_SIZE): New macro.
1764 (struct cache_entry): New type.
1765 (cache_space, cache): New static globals.
1766 (ada_clear_symbol_cache, find_entry): New functions.
1767 (lookup_cached_symbol, cache_symbol): Implement.
1768 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1769 (_initialize_ada_language): Attach ada_new_objfile_observer
1770 and ada_free_objfile_observer.
1772 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1774 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1775 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1776 struct block * parameter.
1777 (ada_lookup_symbol_list_worker): Constify local variable "block".
1778 Remove cast which is no longer necessary.
1780 2014-02-10 Doug Evans <xdje42@gmail.com>
1782 Add Guile as an extension language.
1783 * NEWS: Mention Guile scripting.
1784 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1785 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1786 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1787 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1788 (CLIBS): Add GUILE_LIBS.
1789 (install-guile): New rule.
1790 (guile.o): New rule.
1791 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1792 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1793 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1794 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1795 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1796 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1797 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1798 * configure.ac: New option --with-guile.
1799 * configure: Regenerate.
1800 * config.in: Regenerate.
1801 * auto-load.c: Remove #include "python/python.h". Add #include
1802 "gdb/section-scripts.h".
1803 (source_section_scripts): Handle Guile scripts.
1804 (_initialize_auto_load): Add name of Guile objfile script to
1805 scripts-directory help text.
1806 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1807 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1808 (struct breakpoint): New member scm_bp_object.
1809 * defs.h (enum command_control_type): New value guile_control.
1810 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1812 (show_user): Update comment.
1813 (_initialize_cli_cmds): Update help text for "show user". Update help
1814 text for max-user-call-depth.
1815 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1817 (multi_line_command_p): Add guile_control.
1818 (print_command_lines): Handle guile_control.
1819 (execute_control_command, recurse_read_control_structure): Ditto.
1820 (process_next_line): Recognize "guile" commands.
1821 * disasm.c (gdb_disassemble_info): Make non-static.
1822 * disasm.h: #include "dis-asm.h".
1823 (struct gdbarch): Add forward decl.
1824 (gdb_disassemble_info): Declare.
1825 * extension.c: #include "guile/guile.h".
1826 (extension_languages): Add guile.
1827 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1828 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1829 * gdbtypes.c (get_unsigned_type_max): New function.
1830 (get_signed_type_minmax): New function.
1831 * gdbtypes.h (get_unsigned_type_max): Declare.
1832 (get_signed_type_minmax): Declare.
1833 * guile/README: New file.
1834 * guile/guile-internal.h: New file.
1835 * guile/guile.c: New file.
1836 * guile/guile.h: New file.
1837 * guile/scm-arch.c: New file.
1838 * guile/scm-auto-load.c: New file.
1839 * guile/scm-block.c: New file.
1840 * guile/scm-breakpoint.c: New file.
1841 * guile/scm-disasm.c: New file.
1842 * guile/scm-exception.c: New file.
1843 * guile/scm-frame.c: New file.
1844 * guile/scm-gsmob.c: New file.
1845 * guile/scm-iterator.c: New file.
1846 * guile/scm-lazy-string.c: New file.
1847 * guile/scm-math.c: New file.
1848 * guile/scm-objfile.c: New file.
1849 * guile/scm-ports.c: New file.
1850 * guile/scm-pretty-print.c: New file.
1851 * guile/scm-safe-call.c: New file.
1852 * guile/scm-string.c: New file.
1853 * guile/scm-symbol.c: New file.
1854 * guile/scm-symtab.c: New file.
1855 * guile/scm-type.c: New file.
1856 * guile/scm-utils.c: New file.
1857 * guile/scm-value.c: New file.
1858 * guile/lib/gdb.scm: New file.
1859 * guile/lib/gdb/boot.scm: New file.
1860 * guile/lib/gdb/experimental.scm: New file.
1861 * guile/lib/gdb/init.scm: New file.
1862 * guile/lib/gdb/iterator.scm: New file.
1863 * guile/lib/gdb/printing.scm: New file.
1864 * guile/lib/gdb/types.scm: New file.
1865 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1866 (VPATH): Add $(GUILE_SRCDIR).
1867 (GUILE_DIR): New variable.
1868 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1869 (all): Add stamp-guile dependency.
1870 (stamp-guile): New rule.
1871 (clean-guile, install-guile, uninstall-guile): New rules.
1872 (install-only): Add install-guile dependency.
1873 (uninstall): Add uninstall-guile dependency.
1874 (clean): Add clean-guile dependency.
1876 2014-02-09 Doug Evans <xdje42@gmail.com>
1878 Revert this patch (which I approved, mea culpa).
1880 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1882 * Makefile.in (all-lib): Remove.
1883 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1885 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 Fix Python stack corruption.
1888 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1891 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1893 * Makefile.in (all-lib): Remove.
1894 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1896 2014-02-07 Doug Evans <dje@google.com>
1898 * extension-priv.h (extension_language_script_ops): Add comment.
1899 (extension_language_ops): Add comment.
1900 (active_ext_lang_state): Fix typo in comment.
1902 2014-02-07 Pedro Alves <palves@redhat.com>
1904 * infrun.c (handle_signal_stop) <signal arrives while stepping
1905 over a breakpoint>: Switch back to the stepping thread.
1907 2014-02-07 Yao Qi <yao@codesourcery.com>
1909 * target.c (target_xfer_partial): Return zero if LEN is zero.
1911 2014-02-07 Yao Qi <yao@codesourcery.com>
1913 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1914 (ld_so_xfer_auxv): Likewise.
1915 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1916 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1917 * corelow.c (core_xfer_partial): Likewise.
1918 * ctf.c (ctf_xfer_partial): Likewise.
1919 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1920 (darwin_xfer_partial): Likewise.
1921 * exec.c (exec_xfer_partial): Likewise.
1922 * gnu-nat.c (gnu_xfer_partial): Likewise.
1923 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1924 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1925 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1926 * linux-nat.c (linux_xfer_siginfo): Likewise.
1927 (linux_proc_xfer_spu): Likewise.
1928 * procfs.c (procfs_xfer_partial): Likewise.
1929 * record-full.c (record_full_xfer_partial): Likewise.
1930 (record_full_core_xfer_partial): Likewise.
1931 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1932 * remote.c (remote_write_qxfer): Likewise.
1933 (remote_write_qxfer, remote_read_qxfer): Likewise.
1934 (remote_xfer_partial): Likewise.
1935 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1936 (rs6000_xfer_shared_libraries): Likewise.
1937 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1938 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1939 (spu_xfer_partial): Likewise.
1940 * target.c (memory_xfer_partial_1): Likewise.
1941 * tracepoint.c (tfile_xfer_partial): Likewise.
1942 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1943 (windows_xfer_partial): Likewise.
1945 2014-02-07 Yao Qi <yao@codesourcery.com>
1947 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1949 (core_xfer_shared_libraries_aix): Likewise.
1950 * gdbarch.c, gdbarch.h: Regenerated.
1951 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1952 ULONGEST. Change 'len_avail' type to ULONGEST.
1953 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1954 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1956 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1958 2014-02-07 Yao Qi <yao@codesourcery.com>
1960 * corefile.c (memory_error): Get 'exception' from ERR and pass
1961 'exception' to throw_error.
1963 2014-02-06 Doug Evans <xdje42@gmail.com>
1965 * configure.ac (libpython checking): Remove all but python.o from
1966 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1967 * configure: Regenerate.
1969 * Makefile.in (SFILES): Add extension.c.
1970 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1971 (COMMON_OBS): Add extension.o.
1972 * extension.h: New file.
1973 * extension-priv.h: New file.
1974 * extension.c: New file.
1976 * python/python-internal.h: #include "extension.h".
1977 (gdbpy_auto_load_enabled): Declare.
1978 (gdbpy_apply_val_pretty_printer): Declare.
1979 (gdbpy_apply_frame_filter): Declare.
1980 (gdbpy_preserve_values): Declare.
1981 (gdbpy_breakpoint_cond_says_stop): Declare.
1982 (gdbpy_breakpoint_has_cond): Declare.
1983 (void source_python_script_for_objfile): Delete.
1984 * python/python.c: #include "extension-priv.h".
1985 Delete inclusion of "observer.h".
1986 (extension_language_python): Moved here and renamed from
1987 script_language_python in py-auto-load.c.
1988 Redefined to be of type extension_language_defn.
1989 (python_extension_script_ops): New global.
1990 (python_extension_ops): New global.
1991 (struct python_env): New member previous_active.
1992 (restore_python_env): Call restore_active_ext_lang.
1993 (ensure_python_env): Call set_active_ext_lang.
1994 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1996 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1998 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2000 (gdbpy_eval_from_control_command): Renamed from
2001 eval_python_from_control_command, made static. New arg extlang.
2002 (gdbpy_source_script) Renamed from source_python_script, made static.
2004 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2005 result to int. New arg extlang.
2006 (gdbpy_source_objfile_script): Renamed from
2007 source_python_script_for_objfile, made static. New arg extlang.
2008 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2009 static. New args extlang, extlang_printers. Change result type to
2011 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2012 static. New arg extlang. Rename arg printers to extlang_printers
2013 and change type to ext_lang_type_printers *.
2014 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2015 static. Replace argument arg with extlang, extlang_printers.
2016 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2017 (!HAVE_PYTHON, source_python_script): Delete.
2018 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2019 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2020 (!HAVE_PYTHON, start_type_printers): Delete.
2021 (!HAVE_PYTHON, apply_type_printers): Delete.
2022 (!HAVE_PYTHON, free_type_printers): Delete.
2023 (_initialize_python): Delete call to observer_attach_before_prompt.
2024 (finalize_python): Set/restore active extension language.
2025 (gdbpy_finish_initialization) Renamed from
2026 finish_python_initialization, made static. New arg extlang.
2027 (gdbpy_initialized): New function.
2028 * python/python.h: #include "extension.h". Delete #include
2029 "value.h", "mi/mi-cmds.h".
2030 (extension_language_python): Declare.
2031 (GDBPY_AUTO_FILE_NAME): Delete.
2032 (enum py_bt_status): Moved to extension.h and renamed to
2034 (enum frame_filter_flags): Moved to extension.h.
2035 (enum py_frame_args): Moved to extension.h and renamed to
2036 ext_lang_frame_args.
2037 (finish_python_initialization): Delete.
2038 (eval_python_from_control_command): Delete.
2039 (source_python_script): Delete.
2040 (apply_val_pretty_printer): Delete.
2041 (apply_frame_filter): Delete.
2042 (preserve_python_values): Delete.
2043 (gdbpy_script_language_defn): Delete.
2044 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2045 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2047 * auto-load.c: #include "extension.h".
2048 (GDB_AUTO_FILE_NAME): Delete.
2049 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2050 (script_language_gdb): Delete, moved to extension.c and renamed to
2051 extension_language_gdb.
2052 (source_gdb_script_for_objfile): Delete.
2053 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2054 (loaded_script): Change type of language member to
2055 struct extension_language_defn *.
2056 (init_loaded_scripts_info): Initialize
2057 unsupported_script_warning_printed.
2058 (maybe_add_script): Make static. Change type of language arg to
2059 struct extension_language_defn *.
2060 (clear_section_scripts): Reset unsupported_script_warning_printed.
2061 (auto_load_objfile_script_1): Rewrite to use extension language API.
2062 (auto_load_objfile_script): Make public. Remove support-compiled-in
2063 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2064 (source_section_scripts): Rewrite to use extension language API.
2065 (load_auto_scripts_for_objfile): Rewrite to use
2066 auto_load_scripts_for_objfile.
2067 (collect_matching_scripts_data): Change type of language member to
2068 struct extension_language_defn *.
2069 (auto_load_info_scripts): Change type of language arg to
2070 struct extension_language_defn *.
2071 (unsupported_script_warning_print): New function.
2072 (script_not_found_warning_print): Make static.
2073 (_initialize_auto_load): Rewrite construction of scripts-directory
2075 * auto-load.h (struct objfile): Add forward decl.
2076 (struct script_language): Delete.
2077 (struct auto_load_pspace_info): Add forward decl.
2078 (struct extension_language_defn): Add forward decl.
2079 (maybe_add_script): Delete.
2080 (auto_load_objfile_script): Declare.
2081 (script_not_found_warning_print): Delete.
2082 (auto_load_info_scripts): Update prototype.
2083 (auto_load_gdb_scripts_enabled): Declare.
2084 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2085 auto_load_python_scripts_enabled and made public.
2086 (script_language_python): Delete, moved to python.c.
2087 (gdbpy_script_language_defn): Delete.
2088 (info_auto_load_python_scripts): Update to use
2089 extension_language_python.
2091 * breakpoint.c (condition_command): Replace call to
2092 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2093 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2094 with call to breakpoint_ext_lang_cond_says_stop.
2095 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2096 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2097 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2098 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2100 (local_setattro): Print name of extension language with existing
2103 * valprint.c (val_print, value_print): Update to call
2104 apply_ext_lang_val_pretty_printer.
2105 * cp-valprint.c (cp_print_value): Update call to
2106 apply_ext_lang_val_pretty_printer.
2107 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2108 (gdbpy_apply_val_pretty_printer): Renamed from
2109 apply_val_pretty_printer. New arg extlang.
2110 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2112 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2113 extension language API.
2114 * cli/cli-script.c (execute_control_command): Update to call
2115 eval_ext_lang_from_control_command.
2117 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2118 enum ext_lang_bt_status values. Update call to
2119 apply_ext_lang_frame_filter.
2120 (mi_cmd_stack_list_locals): Ditto.
2121 (mi_cmd_stack_list_args): Ditto.
2122 (mi_cmd_stack_list_variables): Ditto.
2123 * mi/mi-main.c: Delete #include "python/python-internal.h".
2124 Add #include "extension.h".
2125 (mi_cmd_list_features): Replace reference to python internal variable
2126 gdb_python_initialized with call to ext_lang_initialized_p.
2128 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2129 Update to use enum ext_lang_frame_args. Update to call
2130 apply_ext_lang_frame_filter.
2131 * python/py-framefilter.c (extract_sym): Update to use enum
2133 (extract_value, py_print_type, py_print_value): Ditto.
2134 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2135 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2136 (py_print_frame): Ditto.
2137 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2138 New arg extlang. Update to use enum ext_lang_bt_status.
2140 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2141 finish_python_initialization. Replace with call to
2142 finish_ext_lang_initialization.
2144 * typeprint.c (do_free_global_table): Update to call
2145 free_ext_lang_type_printers.
2146 (create_global_typedef_table): Update to call
2147 start_ext_lang_type_printers.
2148 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2149 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2150 (type_print_options): Change type of global_printers from "void *"
2151 to "struct ext_lang_type_printers *".
2153 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2154 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2155 (gdbpy_preserve_values): Renamed from preserve_python_values.
2157 (!HAVE_PYTHON, preserve_python_values): Delete.
2159 * utils.c (quit_flag): Delete, moved to extension.c.
2160 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2163 * eval.c: Delete #include "python/python.h".
2164 * main.c: Delete #include "python/python.h".
2166 * defs.h: Update comment.
2168 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2172 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2174 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2177 2014-02-05 Yao Qi <yao@codesourcery.com>
2179 * remote.c (remote_pass_signals): Remove local 'buf' and use
2181 (remote_program_signals): Likewise.
2183 2014-02-05 Yao Qi <yao@codesourcery.com>
2185 * ctf.c: Include "inferior.h" and "gdbthread.h".
2186 (CTF_PID): A new macro.
2187 (ctf_open): Call inferior_appeared and add_thread_silent.
2188 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2189 (ctf_thread_alive): New function.
2190 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2192 2014-02-05 Yao Qi <yao@codesourcery.com>
2196 2013-05-24 Yao Qi <yao@codesourcery.com>
2198 * tracepoint.c (TFILE_PID): Remove.
2199 (tfile_open): Don't add thread and inferior.
2200 (tfile_close): Don't set 'inferior_ptid'. Don't call
2201 exit_inferior_silent.
2202 (tfile_thread_alive): Remove.
2203 (init_tfile_ops): Don't set field 'to_thread_alive' of
2206 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2208 * remote.c (remote_start_remote): Call remote_check_symbols even
2209 if only symbol-file (not file) has been given.
2211 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2213 * gdbarch.sh (skip_entrypoint): New callback.
2214 * gdbarch.c, gdbarch.h: Regenerate.
2215 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2216 * infrun.c (fill_in_stop_func): Likewise.
2217 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2218 (ppc_elfv2_elf_make_msymbol_special): New function.
2219 (ppc_elfv2_skip_entrypoint): Likewise.
2220 (ppc_linux_init_abi): Install them for ELFv2.
2222 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2224 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2225 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2226 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2227 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2228 structures returned in GPRs.
2230 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2232 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2233 offset to the stack parameter list for the ELFv2 ABI.
2235 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2237 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2238 set_gdbarch_convert_from_func_ptr_addr and
2239 set_gdbarch_elf_make_msymbol_special for ELFv1.
2240 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2241 function descriptors on ELFv1.
2242 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2243 set up r12 at function entry.
2245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2247 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2248 (struct gdbarch_tdep): New member elf_abi.
2250 * rs6000-tdep.c: Include "elf/ppc64.h".
2251 (rs6000_gdbarch_init): Detect ELF ABI version.
2253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2255 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2256 within a register pair holding a DFP 128-bit value on little-endian.
2257 (ppc64_sysv_abi_return_value_base): Likewise.
2258 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2259 (dfp_pseudo_register_write): Likewise.
2261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2263 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2264 offset on little-endian when passing _Decimal32.
2265 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2267 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2269 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2270 of the overlapped FP register within the VSX register on little-
2272 (efpr_pseudo_register_write): Likewise.
2274 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2276 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2277 offset on little-endian when passing small structures.
2279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2281 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2282 (struct ppc64_sysv_argpos): New data structure.
2283 (ppc64_sysv_abi_push_float): Remove.
2284 (ppc64_sysv_abi_push_val): New function.
2285 (ppc64_sysv_abi_push_integer): Likewise.
2286 (ppc64_sysv_abi_push_freg): Likewise.
2287 (ppc64_sysv_abi_push_vreg): Likewise.
2288 (ppc64_sysv_abi_push_param): Likewise.
2289 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2290 (ppc64_sysv_abi_return_value_base): New function.
2291 (ppc64_sysv_abi_return_value): Refactor to use it.
2293 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2295 * NEWS: Document new target powerpc64le-*-linux*.
2297 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2299 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2300 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2302 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2303 register set used in ELF core dumps. Add floating-point register set.
2305 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2307 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2308 dwarf2_to_gdb[] table using symbolic constants. Adjust
2309 penultimate entry from number representing the PC register
2310 to symbolic constant representing the MDR register. Add
2311 constant for the PC register to the end of the table.
2313 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2315 * bsd-kvm.c: Include <sys/param.h>
2317 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2319 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2321 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2323 * ada-lang.h (clear_ada_sym_cache): Delete.
2325 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2327 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2329 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2331 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2332 the sigreturn register save area only if the syscall is
2335 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2337 * valops.c (value_slice): Minor reformatting.
2339 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2341 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2343 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2345 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2347 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2348 (ada_ignore_descriptive_types_p): New static global.
2349 (find_parallel_type_by_descriptive_type): Return immediately
2350 if ada_ignore_descriptive_types_p is set.
2351 (_initialize_ada_language): Register new commands "maintenance
2352 set ada", "maintenance show ada", "maintenance set ada
2353 ignore-descriptive-types" and "maintenance show ada
2354 ignore-descriptive-types".
2355 * NEWS: Add entry for new "maint ada set/show
2356 ignore-descriptive-types" commands.
2358 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2360 * record-btrace.c (record_btrace_close): Call btrace_teardown
2363 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2365 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2368 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2370 * ada-typeprint (type_is_full_subrange_of_target_type):
2372 (print_range): Add parameter bounds_prefered_p. If not set,
2373 try printing range types using the name of their base type.
2374 (print_range_type): Add parameter bounds_prefered_p.
2375 Use it in call to print_range.
2376 (print_array_type, ada_print_type): Update calls to print_range
2377 and print_range_type.
2379 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2381 * ada-typeprint.c (print_array_type, print_choices, print_range)
2382 (print_range_bound, print_dynamic_range_bound, print_range_type):
2385 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2387 * ada-typeprint.c (print_range): Add missing empty line
2388 after local declaration.
2390 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2392 * ada-valprint.c (print_optional_low_bound): Get index_type's
2393 target type for as long as it is a TYPE_CODE_RANGE.
2395 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2397 * procfs.c (procfs_make_note_section): Remove assertion and
2400 2014-01-24 Yao Qi <yao@codesourcery.com>
2402 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2403 * corelow.c (get_core_siginfo): Likewise.
2405 2014-01-24 Yao Qi <yao@codesourcery.com>
2407 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2408 ULONGEST. Don't check 'len' is negative.
2409 (remote_write_bytes): Change type of 'len' to ULONGEST.
2411 2014-01-23 Tom Tromey <tromey@redhat.com>
2414 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2415 Handle exception from frame.block.
2416 (FrameVars.fetch_frame_locals): Likewise.
2418 2014-01-23 Tom Tromey <tromey@redhat.com>
2421 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2422 on a NULL pointer. Move "goto error" to correct place.
2424 2014-01-23 Tom Tromey <tromey@redhat.com>
2427 * python/py-framefilter.c (apply_frame_filter): Call
2428 ensure_python_env after computing gdbarch.
2430 2014-01-23 Yao Qi <yao@codesourcery.com>
2432 * target.c (raw_memory_xfer_partial): Change argument type
2433 from void * to gdb_byte *.
2434 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2436 2014-01-22 Doug Evans <dje@google.com>
2438 New gdbserver option --debug-format=timestamp.
2441 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2443 * syscalls/s390x-linux.xml: New file.
2444 * syscalls/s390-linux.xml: New file.
2445 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2446 (XML_SYSCALL_FILENAME_S390X): Likewise.
2447 (op_svc): New enum value for SVC opcode.
2448 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2449 (s390_linux_get_syscall_number): New function.
2450 (s390_gdbarch_init): Register '*get_syscall_number' and the
2451 syscall xml file name.
2452 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2453 "s390-linux.xml" and "s390x-linux.xml".
2454 * NEWS: Announce new feature.
2456 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2458 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2460 2014-01-22 Pedro Alves <palves@redhat.com>
2462 * xtensa-config.c: Include defs.h.
2464 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2466 * common/common-utils.h: Add "ARI:" comment beside __func__
2469 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2471 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2472 documentation a bit.
2474 2014-01-21 Roland McGrath <mcgrathr@google.com>
2476 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2477 * configure: Regenerate.
2478 * aclocal.m4: Regenerate.
2479 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2480 New substituted variables.
2481 (install-strip): New target.
2482 (INSTALL_SCRIPT): New substituted variable.
2483 (FLAGS_TO_PASS): Add it.
2484 (install-only): Use $(INSTALL_SCRIPT) rather than
2485 $(INSTALL_PROGRAM) for gcore.
2487 2014-01-20 Tom Tromey <tromey@redhat.com>
2489 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2492 2014-01-20 Tom Tromey <tromey@redhat.com>
2494 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2495 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2496 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2497 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2498 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2499 (struct cmd_list_element) <flags>: Remove.
2500 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2501 doc_allocated>: New fields.
2502 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2504 * maint.c (maintenance_do_deprecate): Update.
2505 * top.c (execute_command): Update.
2507 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2509 * xtensa-linux-nat.c: Include asm/ptrace.h.
2511 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2513 * Makefile.in (SFILES): Add d-support.c.
2514 (COMMON_OBS): Add d-support.o.
2515 * d-lang.h (d_parse_symbol): Add comment, now defined in
2517 * d-lang.c (parse_call_convention)
2518 (parse_attributes, parse_function_types)
2519 (parse_function_args, parse_type, parse_identifier)
2520 (call_convention_p, d_parse_symbol): Move functions to ...
2521 * d-support.c: ... New file.
2523 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2525 * d-lang.h (d_parse_symbol): Add declaration.
2526 * d-lang.c (extract_identifiers)
2527 (extract_type_info): Remove functions.
2528 (parse_call_convention, parse_attributes)
2529 (parse_function_types, parse_function_args)
2530 (parse_type, parse_identifier, call_convention_p)
2531 (d_parse_symbol): New functions.
2532 (d_demangle): Use d_parse_symbol to demangle D symbols.
2534 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2536 * d-lang.h (struct builtin_d_type): New data type.
2537 (builtin_d_type): Add declaration.
2538 * d-lang.c (d_language_arch_info, build_d_types)
2539 (builtin_d_type): New functions.
2540 (enum d_primitive_types): New data type.
2541 (d_language_defn): Change c_language_arch_info to
2542 d_language_arch_info.
2543 (d_type_data): New static variable.
2544 (_initialize_d_language): Initialize d_type_data.
2546 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2548 * d-lang.h (d_main_name): Add declaration.
2549 * d-lang.c (d_main_name): New function.
2550 * symtab.c (find_main_name): Add call to d_main_name.
2552 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2554 * d-lang.c (d_language_defn): Change macro_expansion_c to
2557 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2559 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2561 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2563 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2564 gdb_exception" declaration.
2565 * remote.c (getpkt_or_notif_sane): Likewise.
2567 2014-01-17 Doug Evans <dje@google.com>
2569 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2570 function, contents of dirnames_to_char_ptr_vec_append moved here.
2571 (delim_string_to_char_ptr_vec): New function.
2572 (dirnames_to_char_ptr_vec_append): Rewrite.
2573 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2575 2014-01-17 Doug Evans <dje@google.com>
2577 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2579 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2580 #include "common-utils.h".
2581 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2582 * common/vec.h (VEC_ASSERT_PASS): Update.
2583 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2584 (MACH_CHECK_ERROR): Update.
2586 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2588 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2590 * gdbarch.h: Regenerate.
2592 2014-01-16 Tom Tromey <tromey@redhat.com>
2594 * value.c (struct value) <regnum>: Move earlier.
2596 2014-01-16 Tom Tromey <tromey@redhat.com>
2598 * remote.c (extended_remote_create_inferior): Rename from
2599 extended_remote_create_inferior_1. Add "ops" argument. Remove
2602 2014-01-16 Pedro Alves <palves@redhat.com>
2604 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2605 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2608 2014-01-16 Doug Evans <dje@google.com>
2610 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2614 * btrace.h (btrace_thread_flag): New.
2615 (struct btrace_thread_info) <flags>: New.
2616 * record-btrace.c (record_btrace_resume_thread)
2617 (record_btrace_find_thread_to_move, btrace_step_no_history)
2618 (btrace_step_stopped, record_btrace_start_replaying)
2619 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2620 (record_btrace_find_resume_thread): New.
2621 (record_btrace_resume, record_btrace_wait): Extend.
2622 (record_btrace_can_execute_reverse): New.
2623 (record_btrace_open): Fail in non-stop mode.
2624 (record_btrace_set_replay): Split into this, ...
2625 (record_btrace_stop_replaying): ... this, ...
2626 (record_btrace_clear_histories): ... and this.
2627 (init_record_btrace_ops): Init to_can_execute_reverse.
2628 * NEWS: Announce it.
2630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2632 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2633 (forward_target_decr_pc_after_break)
2634 (target_decr_pc_after_break): New.
2635 * target.c (forward_target_decr_pc_after_break)
2636 (target_decr_pc_after_break): New.
2637 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2638 instead of gdbarch_decr_pc_after_break.
2639 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2640 instead of gdbarch_decr_pc_after_break.
2641 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2642 instead of gdbarch_decr_pc_after_break.
2643 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2644 instead of gdbarch_decr_pc_after_break.
2645 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2646 instead of gdbarch_decr_pc_after_break.
2647 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2648 instead of gdbarch_decr_pc_after_break.
2650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2652 * btrace.c: Include regcache.h.
2653 (btrace_add_pc): New.
2654 (btrace_enable): Call btrace_add_pc.
2655 (btrace_is_empty): New.
2656 * btrace.h (btrace_is_empty): New.
2657 * record-btrace.c (require_btrace, record_btrace_info): Call
2660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2662 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2663 Support delta reads.
2664 (linux_disable_btrace): Change return type.
2665 * common/linux-btrace.h (linux_read_btrace): Change parameters
2666 and return type to allow error reporting. Update users.
2667 (linux_disable_btrace): Change return type. Update users.
2668 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2670 (btrace_error): New.
2671 (btrace_block) <begin>: Comment on BEGIN == 0.
2672 * btrace.c (btrace_compute_ftrace): Start from the end of
2674 (btrace_stitch_trace, btrace_clear_history): New.
2675 (btrace_fetch): Read delta trace, return if replaying.
2676 (btrace_clear): Move clear history code to btrace_clear_history.
2677 (parse_xml_btrace): Throw an error if parsing failed.
2678 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2679 and return type to allow error reporting.
2680 (target_read_btrace): Change parameters and return type to allow
2682 * target.c (target_read_btrace): Update.
2683 * remote.c (remote_read_btrace): Support delta reads. Pass
2685 * NEWS: Announce it.
2687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2689 * record.h (record_btrace_frame_unwind)
2690 (record_btrace_tailcall_frame_unwind): New declarations.
2691 * dwarf2-frame: Include record.h
2692 (dwarf2_frame_cfa): Throw an error for btrace frames.
2693 * record-btrace.c: Include hashtab.h.
2694 (btrace_get_bfun_name): New.
2695 (btrace_call_history): Call btrace_get_bfun_name.
2696 (struct btrace_frame_cache): New.
2698 (bfcache_hash, bfcache_eq, bfcache_new): New.
2699 (btrace_get_frame_function): New.
2700 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2701 (record_btrace_frame_this_id): Compute own id.
2702 (record_btrace_frame_prev_register): Provide PC, throw_error
2703 for all other registers.
2704 (record_btrace_frame_sniffer): Detect btrace frames.
2705 (record_btrace_tailcall_frame_sniffer): New.
2706 (record_btrace_frame_dealloc_cache): New.
2707 (record_btrace_frame_unwind): Add new functions.
2708 (record_btrace_tailcall_frame_unwind): New.
2709 (_initialize_record_btrace): Allocate cache.
2710 * btrace.c (btrace_clear): Call reinit_frame_cache.
2711 * NEWS: Announce it.
2713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2715 * record-btrace.c (record_btrace_set_replay)
2716 (record_btrace_goto_begin, record_btrace_goto_end)
2717 (record_btrace_goto): New.
2718 (init_record_btrace_ops): Initialize them.
2719 * NEWS: Announce it.
2721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2723 * record-btrace.c (record_btrace_find_new_threads)
2724 (record_btrace_thread_alive): New.
2725 (init_record_btrace_ops): Initialize to_find_new_threads and
2728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2730 * record-btrace.c (record_btrace_resume): New.
2731 (record_btrace_wait): New.
2732 (init_record_btrace_ops): Initialize to_wait and to_resume.
2734 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2736 * record-btrace.c (record_btrace_xfer_partial)
2737 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2738 (record_btrace_allow_memory_access): New.
2739 (init_record_btrace_ops): Initialize new methods.
2740 * target.c (raw_memory_xfer_partial): Bail out if target reports
2741 that this memory is not available.
2743 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2745 * target.h (target_ops) <to_insert_breakpoint>
2746 <to_remove_breakpoint>: Add target_ops parameter.
2747 (forward_target_insert_breakpoint): New.
2748 (forward_target_remove_breakpoint): New.
2749 (memory_remove_breakpoint, memory_insert_breakpoint):
2750 Add target_ops parameter.
2751 * target.c (target_insert_breakpoint): Split into this and ...
2752 (forward_target_insert_breakpoint): ... this.
2753 (target_remove_breakpoint): Split into this and ...
2754 (forward_target_remove_breakpoint): ... this.
2755 (debug_to_insert_breakpoint): Add target_ops parameter.
2756 Call forward_target_insert_breakpoint.
2757 (debug_to_remove_breakpoint): Add target_ops parameter.
2758 Call forward_target_remove_breakpoint.
2759 (update_current_target): Do not inherit or default to_insert_breakpoint
2760 and to_remove_breakpoint.
2761 * corelow.c (ignore): Add target_ops parameter.
2762 * exec.c (ignore): Add target_ops parameter.
2763 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2764 Add target_ops parameter.
2765 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2766 Add target_ops parameter.
2767 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2768 Add target_ops parameter.
2769 * record-full.c (record_full_beneath_to_insert_breakpoint)
2770 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2771 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2772 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2773 (record_full_core_remove_breakpoint): Add target_ops parameter.
2775 (record_full_beneath_to_insert_breakpoint_ops)
2776 (record_full_beneath_to_remove_breakpoint_ops)
2777 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2778 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2779 tmp_to_remove_breakpoint_ops,
2780 record_full_beneath_to_insert_breakpoint_ops, and
2781 record_full_beneath_to_remove_breakpoint_ops.
2782 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2783 (m32r_remove_breakpoint): Add target_ops parameter.
2784 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2785 Add target_ops parameter.
2786 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2787 Add target_ops parameter.
2789 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 Markus Metzger <markus.t.metzger@intel.com>
2792 * record-btrace.c: Include frame-unwind.h.
2793 (record_btrace_frame_unwind_stop_reason)
2794 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2795 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2797 (init_record_btrace_ops): Install it.
2799 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2804 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2806 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2809 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2811 * frame-unwind.c: Include target.h.
2812 (frame_unwind_try_unwinder): New function with code from ...
2813 (frame_unwind_find_by_frame): ... here. New variable
2814 unwinder_from_target, call also target_get_unwinder)
2815 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2816 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2817 * target.h (struct target_ops): New fields to_get_unwinder and
2818 to_get_tailcall_unwinder.
2819 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2821 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2823 * record-btrace.c (record_btrace_fetch_registers)
2824 (record_btrace_store_registers)
2825 (record_btrace_to_prepare_to_store): New.
2826 (init_record_btrace_ops): Add the above.
2828 2014-01-16 Tom Tromey <tromey@redhat.com>
2830 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2831 * target.h (struct target_ops) <to_prepare_to_store>: Add
2833 (target_prepare_to_store): Add argument.
2834 * target.c (debug_to_prepare_to_store): Add argument.
2835 (update_current_target): Update.
2836 * remote.c (remote_prepare_to_store): Add 'self' argument.
2837 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2838 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2839 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2840 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2842 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2843 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2844 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2845 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2846 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2850 * btrace.h (replay) <replay>: New.
2851 (btrace_is_replaying): New.
2852 * btrace.c (btrace_clear): Free replay iterator.
2853 (btrace_is_replaying): New.
2854 * record-btrace.c (record_btrace_is_replaying): New.
2855 (record_btrace_info): Print insn number if replaying.
2856 (record_btrace_insn_history): Start at replay position.
2857 (record_btrace_call_history): Start at replay position.
2858 (init_record_btrace_ops): Init to_record_is_replaying.
2860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2862 * record-btrace.c (record_btrace_insn_history_range): Include
2864 (record_btrace_insn_history_from): Adjust range.
2865 (record_btrace_call_history_range): Include
2867 (record_btrace_call_history_from): Adjust range.
2868 * NEWS: Announce changes.
2870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2872 * record.h (enum record_print_flag)
2873 <record_print_indent_calls>: New.
2874 * record.c (get_call_history_modifiers): Recognize /c modifier.
2875 (_initialize_record): Document /c modifier.
2876 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2877 Reorder fields. Optionally indent the function name. Update
2879 * NEWS: Announce changes.
2881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2883 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2887 * btrace.c (ftrace_new_function): Start counting at one.
2888 * record-btrace.c (record_btrace_info): Adjust number of calls
2890 * NEWS: Announce it.
2892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2894 * record-btrace.c (btrace_call_history_insn_range): Print
2895 insn range as [begin, end].
2897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2899 * btrace.h (struct btrace_func_link): New.
2900 (enum btrace_function_flag): New.
2901 (struct btrace_inst): Rename to ...
2902 (struct btrace_insn): ...this. Update all users.
2903 (struct btrace_func) <ibegin, iend>: Remove.
2904 (struct btrace_func_link): New.
2905 (struct btrace_func): Rename to ...
2906 (struct btrace_function): ...this. Update all users.
2907 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2908 (number, level, flags>: New.
2909 (struct btrace_insn_iterator): Rename to ...
2910 (struct btrace_insn_history): ...this.
2912 (struct btrace_insn_iterator, btrace_call_iterator): New.
2913 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2914 (struct btrace_target_info) <begin, end, level>
2915 <insn_history, call_history>: New.
2916 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2917 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2918 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2919 (btrace_call_number, btrace_call_begin, btrace_call_end)
2920 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2921 (btrace_find_function_by_number, btrace_set_insn_history)
2922 (btrace_set_call_history): New.
2923 * btrace.c (btrace_init_insn_iterator)
2924 (btrace_init_func_iterator, compute_itrace): Remove.
2925 (ftrace_print_function_name, ftrace_print_filename)
2926 (ftrace_skip_file): Change
2928 (ftrace_init_func): Remove.
2929 (ftrace_debug): Use new btrace_function fields.
2930 (ftrace_function_switched): Also consider gaining and
2931 losing symbol information).
2932 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2933 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2934 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2936 (ftrace_new_function): Move. Remove debug print.
2937 (ftrace_update_lines, ftrace_update_insns): New.
2938 (ftrace_update_function): Check for call, ret, and jump.
2939 (compute_ftrace): Renamed to ...
2940 (btrace_compute_ftrace): ...this. Rewritten to compute call
2942 (btrace_fetch, btrace_clear): Updated.
2943 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2944 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2945 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2946 (btrace_call_number, btrace_call_begin, btrace_call_end)
2947 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2948 (btrace_find_function_by_number, btrace_set_insn_history)
2949 (btrace_set_call_history): New.
2950 * record-btrace.c (require_btrace): Use new btrace thread
2952 (record_btrace_info, btrace_insn_history)
2953 (record_btrace_insn_history, record_btrace_insn_history_range):
2954 Use new btrace thread info fields and new iterator.
2955 (btrace_func_history_src_line): Rename to ...
2956 (btrace_call_history_src_line): ...this. Use new btrace
2958 (btrace_func_history): Rename to ...
2959 (btrace_call_history): ...this. Use new btrace thread info
2960 fields and new iterator.
2961 (record_btrace_call_history, record_btrace_call_history_range):
2962 Use new btrace thread info fields and new iterator.
2964 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2966 * frame.h (frame_id_build_unavailable_stack_special): New.
2967 * frame.c (frame_id_build_unavailable_stack_special): New.
2969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2971 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2972 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2973 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2975 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2976 (i386_insn_is_jump, i386_jmp_p): New.
2977 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2978 insn_is_jump to gdbarch.
2979 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2980 * gdbarch.h: Regenerated.
2981 * gdbarch.c: Regenerated.
2982 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2983 (default_insn_is_jump): New.
2984 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2985 (default_insn_is_jump): New.
2987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2989 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2991 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2992 (btrace_read_type) <btrace_read_new>: Change to ...
2993 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2995 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2997 * common/linux-btrace.c (linux_read_btrace): Free trace from
3000 2014-01-15 Doug Evans <dje@google.com>
3002 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3005 2014-01-15 Tom Tromey <tromey@redhat.com>
3007 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3008 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3009 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3010 (set_objfile_main_name): New function.
3011 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3012 language_of_main>: New fields.
3013 (set_objfile_main_name): Declare.
3014 * symtab.c (find_main_name): Loop over objfiles to find the main
3016 (set_main_name): Now static.
3017 (get_main_info): Add comment.
3018 * symtab.h (set_main_name): Don't declare.
3020 2014-01-15 Tom Tromey <tromey@redhat.com>
3022 * symtab.c (main_progspace_key): New global.
3023 (struct main_info): New.
3024 (name_of_main, language_of_main): Remove.
3025 (get_main_info, main_info_cleanup): New function.
3026 (set_main_name, main_name, main_language): Use get_main_info.
3027 (_initialize_symtab): Initialize main_progspace_key.
3029 2014-01-15 Tom Tromey <tromey@redhat.com>
3031 * dbxread.c (process_one_symbol): Update.
3032 * dwarf2read.c (read_partial_die): Update.
3033 * symfile.c (set_initial_language): Call main_language.
3034 * symtab.c (language_of_main): Now static.
3035 (set_main_name): Add 'lang' parameter.
3036 (find_main_name): Update.
3037 (main_language): New function.
3038 (symtab_observer_executable_changed): Update.
3039 * symtab.h (set_main_name): Update.
3040 (language_of_main): Remove.
3041 (main_language): Declare.
3043 2014-01-15 Tom Tromey <tromey@redhat.com>
3045 * symfile.c (init_entry_point_info): Use new "initialized" field.
3047 * objfiles.h (struct entry_point) <initialized>: New field.
3048 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3049 (struct objfile) <ei>: ...here. Remove.
3050 * objfiles.c (entry_point_address_query): Update.
3052 2014-01-15 Tom Tromey <tromey@redhat.com>
3054 * objfiles.c (entry_point_address_query): Relocate entry point
3056 (objfile_relocate1): Do not relocate entry point address.
3057 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3058 <the_bfd_section_index>: New field.
3059 * symfile.c (init_entry_point_info): Find the entry point's
3062 2014-01-15 Tom Tromey <tromey@redhat.com>
3064 * solib-frv.c (enable_break): Use entry_point_address_query.
3066 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3068 * NEWS: Add note on improved process record-replay on
3069 arm*-linux* targets.
3071 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3073 * arm-tdep.c (enum arm_record_result): New enum.
3074 (arm_record_unsupported_insn): New function.
3075 (arm_record_coproc_data_proc): Removed.
3076 (thumb2_record_ld_st_multiple): New function.
3077 (thumb2_record_ld_st_dual_ex_tbb): New function.
3078 (thumb2_record_data_proc_sreg_mimm): New function.
3079 (thumb2_record_ps_dest_generic): New function.
3080 (thumb2_record_branch_misc_cntrl): New function.
3081 (thumb2_record_str_single_data): New function.
3082 (thumb2_record_ld_mem_hints): New function.
3083 (thumb2_record_ld_word): New function.
3084 (thumb2_record_lmul_lmla_div): New function.
3085 (thumb2_record_decode_insn_handler): New function.
3086 (decode_insn): Add thumb32 instruction handlers.
3088 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3090 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3091 (struct arm_linux_record_tdep): Declare.
3092 (arm_canonicalize_syscall): New function.
3093 (arm_all_but_pc_registers_record): New function.
3094 (arm_linux_syscall_record): New function.
3095 (arm_linux_init_abi): Add syscall recording constructs.
3096 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3097 decoding. (arm_record_coproc_data_proc): Update arm syscall
3099 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3100 <arm_syscall_record>: New field.
3101 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3104 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3106 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3107 register for push instruction recording.
3109 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3111 * arm-tdep.c (thumb_record_misc): Update to correct logical
3112 error while recording ldm, ldmia and pop instructions.
3114 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3116 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3118 2014-01-15 Pedro Alves <palves@redhat.com>
3120 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3121 (go32_resume, go32_fetch_registers, store_register)
3122 (go32_store_registers, go32_prepare_to_store)
3123 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3124 (go32_create_inferior, go32_can_run, go32_terminal_init)
3125 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3128 2014-01-15 Tom Tromey <tromey@redhat.com>
3130 * target.h (async_callback_ftype): New typedef.
3131 (struct target_ops) <to_async>: Use it.
3133 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3135 * python/py-value.c (get_field_type): Remove unnecessary curly
3136 braces for single-statement if block.
3138 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3140 * python/py-type.c (convert_field): Add missing empty line
3143 2014-01-14 Doug Evans <dje@google.com>
3145 * symfile.h (expand_symtabs_matching): Renamed from
3146 expand_partial_symbol_names. Update prototype.
3147 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3148 * symfile.c (expand_symtabs_matching): Renamed from
3149 expand_partial_symbol_names. New args file_matcher, kind.
3150 Rename arg fun to symbol_matcher.
3151 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3152 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3153 ada_expand_partial_symbol_name.
3154 (ada_make_symbol_completion_list): Update to call
3155 expand_symtabs_matching.
3156 (ada_add_global_exceptions): Call expand_symtabs_matching.
3157 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3158 call map_symbol_filenames.
3159 * symtab.c (sources_info): Update to call map_symbol_filenames.
3160 (search_symbols): Call expand_symtabs_matching.
3161 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3162 (default_make_symbol_completion_list_break_on): Update to call
3163 expand_symtabs_matching.
3164 (make_source_files_completion_list): Update to call
3165 map_symbol_filenames.
3167 2014-01-14 Doug Evans <dje@google.com>
3169 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3170 (expand_symtabs_symbol_matcher_ftype): New typedef.
3171 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3172 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3173 * symfile.c (expand_partial_symbol_names): Update to use
3174 expand_symtabs_symbol_matcher_ftype.
3175 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3176 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3177 Arg name_matcher renamed to symbol_matcher.
3178 * psymtab.c (recursively_search_psymtabs): Update to use
3179 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3181 (expand_symtabs_matching_via_partial): Update to use
3182 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3183 Arg name_matcher renamed to symbol_matcher.
3185 2014-01-14 Doug Evans <dje@google.com>
3187 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3188 (map_partial_symbol_filenames): Ditto.
3189 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3190 (map_partial_symbol_filenames): Ditto.
3191 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3192 (map_partial_symbol_filenames): Ditto.
3193 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3194 (map_partial_symbol_filenames): Ditto.
3195 * symtab.c: Delete #include "psymtab.h".
3197 2014-01-14 Pedro Alves <palves@redhat.com>
3198 Tom Tromey <tromey@redhat.com>
3200 * infrun.c (use_displaced_stepping): Use find_record_target
3201 instead of RECORD_IS_USED.
3202 (adjust_pc_after_break): Use record_full_is_used instead of
3204 * record-btrace.c (record_btrace_open): Call record_preopen
3205 instead of checking RECORD_IS_USED.
3206 * record-full.c (record_full_shortname)
3207 (record_full_core_shortname): New globals.
3208 (record_full_is_used): New function.
3209 (find_full_open): Call record_preopen instead of checking
3211 (init_record_full_ops): Set the target's shortname to
3212 record_full_shortname.
3213 (init_record_full_core_ops): Set the target's shortname to
3214 record_full_core_shortname.
3215 * record-full.h (record_full_is_used): Declare.
3216 * record.c (find_record_target): Make extern.
3217 (record_preopen): New function.
3218 * record.h (RECORD_IS_USED): Delete macro.
3219 (find_record_target, record_preopen): Declare functions.
3221 2014-01-14 Yao Qi <yao@codesourcery.com>
3223 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3224 'len''s type to ULONGEST.
3225 (core_xfer_shared_libraries_aix): Likewise.
3226 * gdbarch.c, gdbarch.h: Regenerated.
3227 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3228 Change type of 'len' to ULONGEST.
3229 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3230 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3232 2014-01-14 Yao Qi <yao@codesourcery.com>
3234 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3235 type of 'len' to ULONGEST.
3236 (linux_xfer_osdata_processgroups): Likewise.
3237 (linux_xfer_osdata_threads): Likewise.
3238 (linux_xfer_osdata_fds): Likewise.
3239 (linux_xfer_osdata_isockets): Likewise.
3240 (linux_xfer_osdata_shm): Likewise.
3241 (linux_xfer_osdata_sem): Likewise.
3242 (linux_xfer_osdata_msg): Likewise.
3243 (linux_common_xfer_osdata): Likewise.
3244 (struct osdata_type) <getter>: Likewise.
3245 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3248 2014-01-14 Yao Qi <yao@codesourcery.com>
3250 * target.h (target_xfer_partial_ftype): Update.
3251 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3253 * aix-thread.c (aix_thread_xfer_partial): Change type of
3254 argument 'len' to ULONGEST.
3255 * auxv.c (procfs_xfer_auxv): Likewise.
3256 (ld_so_xfer_auxv): Likewise.
3257 (memory_xfer_auxv): Likewise.
3258 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3259 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3260 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3261 * corelow.c (core_xfer_partial): Likewise.
3262 * ctf.c (ctf_xfer_partial): Likewise.
3263 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3265 (darwin_read_dyld_info): Likewise.
3266 (darwin_xfer_partial): Likewise.
3267 * exec.c (section_table_xfer_memory_partial): Likewise.
3268 (exec_xfer_partial): Likewise.
3269 * exec.h (section_table_xfer_memory_partial): Update
3271 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3272 instead of plongest.
3273 (gnu_xfer_partial): Likewise.
3274 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3275 (ia64_hpux_xfer_solib_got): Likewise.
3276 (ia64_hpux_xfer_partial): Likewise.
3277 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3278 * inf-ptrace.c (inf_ptrace_xfer_partial):
3279 * inf-ttrace.c (inf_ttrace_xfer_partial):
3280 * linux-nat.c (linux_xfer_siginfo): Likewise.
3281 (linux_nat_xfer_partial): Likewise.
3282 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3283 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3284 * monitor.c (monitor_xfer_memory): Likewise.
3285 (monitor_xfer_partial): Likewise.
3286 * procfs.c (procfs_xfer_partial): Likewise.
3287 * record-full.c (record_full_xfer_partial): Likewise.
3288 (record_full_core_xfer_partial): Likewise.
3289 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3290 instead of plongest.
3291 (gdbsim_xfer_partial): Likewise.
3292 * remote.c (remote_xfer_partial): Likewise.
3293 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3294 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3296 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3297 (rs6000_xfer_shared_libraries): Likewise.
3298 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3299 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3300 (sparc_xfer_partial): Likewise.
3301 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3302 (spu_xfer_partial): Likewise.
3303 * spu-multiarch.c (spu_xfer_partial): Likewise.
3304 * target.c (target_read_live_memory): Likewise.
3305 (memory_xfer_live_readonly_partial): Likewise.
3306 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3307 (target_xfer_partial, default_xfer_partial): Likewise.
3308 (current_xfer_partial): Likewise.
3309 * tracepoint.c (tfile_xfer_partial): Likewise.
3310 * windows-nat.c (windows_xfer_memory): Likewise. Call
3311 pulongest instead of plongest.
3312 (windows_xfer_partial): Likewise.
3313 (windows_xfer_shared_libraries): Likewise.
3315 2014-01-14 Yao Qi <yao@codesourcery.com>
3317 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3318 target_xfer_partial_ftype.
3320 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3324 * valops.c (value_struct_elt_bitpos): New function
3325 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3326 object to 'None' if the field name is an empty string ("").
3327 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3328 attribute to look for a field when 'name' is 'None'.
3329 (get_field_type): New function
3331 2014-01-13 Doug Evans <dje@google.com>
3334 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3335 (try_open_dwop_file): Ditto.
3336 * gdb_bfd.c: #include "vec.h".
3337 (bfdp): New typedef.
3338 (struct gdb_bfd_data): New member included_bfds.
3339 (gdb_bfd_unref): Unref all included bfds.
3340 (gdb_bfd_record_inclusion): New function.
3341 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3343 2014-01-13 Tom Tromey <tromey@redhat.com>
3345 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3347 2014-01-13 Tom Tromey <tromey@redhat.com>
3349 * defs.h (use_windows): Remove.
3350 * gdb.c (main): Update.
3351 * main.c (captured_main, gdb_main): Update.
3352 * main.h (struct captured_main_args) <use_windows>: Remove.
3353 * top.c (use_windows): Remove.
3355 2014-01-13 Tom Tromey <tromey@redhat.com>
3357 * defs.h (deprecated_flush_hook): Remove.
3359 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 * linux-thread-db.c (try_thread_db_load): Add parameter
3363 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3364 (try_thread_db_load_from_pdir_1): Move it there from here.
3365 (try_thread_db_load_from_sdir): Update caller.
3366 (try_thread_db_load_from_dir): Move it there from here.
3368 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3370 * regformats/regdat.sh: Always rewrite the register file.
3372 2014-01-13 Pedro Alves <palves@redhat.com>
3374 * Makefile.in (CHECK_HEADERS): New variable.
3375 (check-headers:): New rule.
3377 2014-01-13 Tom Tromey <tromey@redhat.com>
3379 * cli/cli-setshow.c (do_set_command): Update.
3380 * defs.h (deprecated_set_hook): Remove.
3381 * top.c (deprecated_set_hook): Remove.
3383 2014-01-13 Pedro Alves <palves@redhat.com>
3385 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3386 the tracepoint if the PC is a pseudo-register.
3388 2014-01-13 Tom Tromey <tromey@redhat.com>
3390 * defs.h (XCALLOC): Remove.
3391 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3392 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3393 * dwarf2loc.c (allocate_piece_closure): Likewise.
3394 * elfread.c (elf_symfile_segments): Likewise.
3395 (elf_symfile_segments): Likewise.
3396 * gdbtypes.c (copy_type_recursive): Likewise.
3397 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3398 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3399 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3401 * mt-tdep.c (mt_gdbarch_init): Likewise.
3402 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3404 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3405 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3406 * registry.c (registry_alloc_data): Likewise.
3407 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3408 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3409 * serial.c (serial_fdopen_ops): Likewise.
3410 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3412 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3413 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3416 2014-01-13 Tom Tromey <tromey@redhat.com>
3418 * defs.h (XMALLOC): Remove.
3419 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3420 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3421 * cli-out.c (struct ui_out *): Likewise.
3422 * cli/cli-dump.c (add_dump_command): Likewise.
3423 (add_dump_command): Likewise.
3424 * complaints.c (get_complaints): Likewise.
3425 (find_complaint): Likewise.
3426 * dwarf2-frame.c (execute_cfa_program): Likewise.
3427 * dwarf2read.c (abbrev_table_read_table): Likewise.
3428 * gdbarch.sh: Likewise.
3429 * gdbarch.c: Rebuild.
3430 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3431 * interps.c (interp_new): Likewise.
3432 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3433 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3434 * mi/mi-console.c (mi_console_file_new): Likewise.
3435 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3436 * mi/mi-out.c (mi_out_new): Likewise.
3437 * mi/mi-parse.c (mi_parse): Likewise.
3438 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3439 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3440 * observer.c (xalloc_observer_list_node): Likewise.
3441 * regcache.c (regcache_xmalloc_1): Likewise.
3442 * reggroups.c (reggroup_new): Likewise.
3443 (_initialize_reggroup): Likewise.
3444 * registry.c (register_data_with_cleanup): Likewise.
3445 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3446 * ser-base.c (serial_ttystate): Likewise.
3447 * ser-mingw.c (make_pipe_state): Likewise.
3448 * ser-pipe.c (pipe_open): Likewise.
3449 * serial.c (serial_open): Likewise.
3450 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3451 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3452 (tui_alloc_win_info): Likewise.
3453 (tui_add_content_elements): Likewise.
3454 * tui/tui-file.c (tui_file_new): Likewise.
3455 * tui/tui-out.c (tui_out_new): Likewise.
3456 * ui-file.c (mem_file_new): Likewise.
3457 * ui-out.c (push_level): Likewise.
3458 (make_cleanup_ui_out_end): Likewise.
3459 (append_header_to_list): Likewise.
3460 (ui_out_new): Likewise.
3461 * user-regs.c (user_reg_add_builtin): Likewise.
3463 2014-01-13 Tom Tromey <tromey@redhat.com>
3465 * defs.h (XZALLOC): Remove.
3466 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3467 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3468 (get_ada_tasks_inferior_data): Likewise.
3469 * auto-load.c (get_auto_load_pspace_data): Likewise.
3470 * auxv.c (get_auxv_inferior_data): Likewise.
3471 * bfd-target.c (target_bfd_reopen): Likewise.
3472 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3473 (deprecated_insert_raw_breakpoint): Likewise.
3474 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3475 * corelow.c (core_open): Likewise.
3476 * darwin-nat.c (darwin_check_new_threads): Likewise.
3477 (darwin_attach_pid): Likewise.
3478 * dummy-frame.c (dummy_frame_push): Likewise.
3479 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3480 * dwarf2loc.c (allocate_piece_closure): Likewise.
3481 * elfread.c (elf_symfile_segments): Likewise.
3482 * eval.c (ptrmath_type_p): Likewise.
3483 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3484 * gdbtypes.c (alloc_type_arch): Likewise.
3485 (alloc_type_instance): Likewise.
3486 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3487 * inf-child.c (inf_child_can_use_agent): Likewise.
3488 * inflow.c (get_inflow_inferior_data): Likewise.
3489 * infrun.c (save_infcall_suspend_state): Likewise.
3490 * jit.c (jit_reader_load): Likewise.
3491 (get_jit_objfile_data): Likewise.
3492 (get_jit_program_space_data): Likewise.
3493 (jit_object_open_impl): Likewise.
3494 (jit_symtab_open_impl): Likewise.
3495 (jit_block_open_impl): Likewise.
3496 (jit_frame_sniffer): Likewise.
3497 * linux-fork.c (add_fork): Likewise.
3498 * maint.c (make_command_stats_cleanup): Likewise.
3499 * objfiles.c (get_objfile_pspace_data): Likewise.
3500 * opencl-lang.c (struct lval_closure): Likewise.
3501 * osdata.c (osdata_start_osdata): Likewise.
3502 * progspace.c (new_address_space): Likewise.
3503 (add_program_space): Likewise.
3504 * remote-sim.c (get_sim_inferior_data): Likewise.
3505 * sh-tdep.c (sh_gdbarch_init): Likewise.
3506 * skip.c (Ignore): Likewise.
3507 (skip_delete_command): Likewise.
3508 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3509 (library_list_start_library): Likewise.
3510 (solib_aix_current_sos): Likewise.
3511 * solib-darwin.c (get_darwin_info): Likewise.
3512 (darwin_current_sos): Likewise.
3513 * solib-dsbt.c (get_dsbt_info): Likewise.
3514 * solib-ia64-hpux.c (new_so_list): Likewise.
3515 (ia64_hpux_get_solib_linkage_addr): Likewise.
3516 * solib-spu.c (append_ocl_sos): Likewise.
3517 (spu_current_sos): Likewise.
3518 * solib-svr4.c (get_svr4_info): Likewise.
3519 (svr4_keep_data_in_core): Likewise.
3520 (library_list_start_library): Likewise.
3521 (svr4_default_sos): Likewise.
3522 (svr4_read_so_list): Likewise.
3523 * solib-target.c (library_list_start_library): Likewise.
3524 (solib_target_current_sos): Likewise.
3525 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3526 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3527 * symfile.c (default_symfile_segments): Likewise.
3528 * target-descriptions.c (tdesc_data_init): Likewise.
3529 (tdesc_create_reg): Likewise.
3530 (struct tdesc_type *): Likewise.
3531 (tdesc_create_vector): Likewise.
3532 (tdesc_set_struct_size): Likewise.
3533 (struct tdesc_type *): Likewise.
3534 (tdesc_free_feature): Likewise.
3535 (tdesc_create_feature): Likewise.
3536 * windows-nat.c (windows_add_thread): Likewise.
3537 (windows_make_so): Likewise.
3538 * xml-support.c (gdb_xml_body_text): Likewise.
3539 (gdb_xml_create_parser_and_cleanup): Likewise.
3540 (xml_process_xincludes): Likewise.
3541 * xml-syscall.c (allocate_syscalls_info): Likewise.
3542 (syscall_create_syscall_desc): Likewise.
3544 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3546 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3547 function, with code from i386_stap_parse_special_token.
3548 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3549 (i386_stap_parse_special_token): Move code to the two functions
3552 2014-01-09 Pedro Alves <palves@redhat.com>
3553 Hui Zhu <hui@codesourcery.com>
3556 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3557 bp_err_string. Don't mark the location shlib_disabled if the
3558 error thrown wasn't a generic or memory error. Catch errors
3559 thrown while inserting breakpoints in overlayed code. Output
3560 error message of software breakpoints.
3561 * remote.c (remote_insert_breakpoint): If this breakpoint has
3562 target-side commands but this stub doesn't support Z0 packets,
3563 throw NOT_SUPPORTED_ERROR error.
3564 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3565 * target.h (target_insert_breakpoint): Extend comment.
3566 (target_insert_hw_breakpoint): Add comment.
3568 2014-01-08 Pedro Alves <palves@redhat.com>
3570 * remote.c (remote_add_thread): Add threads silently if starting
3572 (remote_notice_new_inferior): If in all-stop, and starting up,
3573 don't call notice_new_inferior.
3574 (get_current_thread): New function, factored out from ...
3575 (add_current_inferior_and_thread): ... this. Adjust.
3576 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3577 found any thread, then select the remote's current thread as GDB's
3580 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3582 * NEWS: Create a new section for the next release branch.
3583 Rename the section of the current branch, now that it has
3586 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3588 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3589 * version.in: Bump version to 7.7.50.DATE-cvs.
3591 2014-01-08 Yao Qi <yao@codesourcery.com>
3593 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3594 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3595 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3597 2014-01-08 Yao Qi <yao@codesourcery.com>
3599 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3600 return value of bfd_get_filename to symbol_file_add_from_bfd.
3602 2014-01-08 Pierre Muller <muller@sourceware.org>
3605 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3606 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3607 to prim_record_mininal_symbol_and_info.
3608 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3609 in call to prim_record_minimal_symbol_and_info.
3610 (read_pe_exported_syms): Set index field of section_data.
3612 2014-01-07 Andrew Pinski <apinski@cavium.com>
3614 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3615 * features/aarch64.c: Regenerate.
3617 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3619 * target.c (return_null): Define.
3620 (update_current_target): Use it instead of return_zero for
3621 functions that return a pointer.
3623 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3625 * source.c (add_path): Fix check for duplicated paths in the previously
3628 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3630 * ada-lang.c: Remove duplicated include statements.
3631 * alphabsd-nat.c: Ditto.
3632 * amd64-darwin-tdep.c: Ditto.
3633 * amd64fbsd-nat.c: Ditto.
3634 * auto-load.c: Ditto.
3636 * breakpoint.c: Ditto.
3638 * fork-child.c: Ditto.
3639 * gdb_usleep.c: Ditto.
3640 * i386-darwin-tdep.c: Ditto.
3641 * i386fbsd-nat.c: Ditto.
3643 * inferior.c: Ditto.
3645 * linux-nat.c: Ditto.
3646 * linux-tdep.c: Ditto.
3647 * m68kbsd-nat.c: Ditto.
3648 * m68klinux-nat.c: Ditto.
3649 * microblaze-tdep.c: Ditto.
3650 * mips-linux-tdep.c: Ditto.
3651 * mn10300-tdep.c: Ditto.
3652 * nto-tdep.c: Ditto.
3653 * opencl-lang.c: Ditto.
3655 * printcmd.c: Ditto.
3656 * regcache.c: Ditto.
3657 * remote-m32r-sdi.c: Ditto.
3661 * tilegx-linux-nat.c: Ditto.
3662 * tilegx-tdep.c: Ditto.
3663 * tracepoint.c: Ditto.
3665 * vaxbsd-nat.c: Ditto.
3666 * windows-nat.c: Ditto.
3667 * xtensa-tdep.c: Ditto.
3669 2014-01-07 Yao Qi <yao@codesourcery.com>
3671 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3673 2014-01-07 Yao Qi <yao@codesourcery.com>
3674 Joel Brobecker <brobecker@adacore.com>
3676 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3677 (pdc_write_regs): Likewise.
3678 (fetch_regs_kernel_thread): Likewise.
3679 (store_regs_kernel_thread): Likewise.
3681 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3683 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3684 tagged type objects to their actual type.
3686 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3688 * ada-valprint.c (print_field_values): Add "language" parameter.
3689 Update calls to print_field_values and print_variant_part.
3690 Pass new parameter "language" in call to val_print instead
3691 of "current_language". Replace call to ada_val_print by call
3693 (print_variant_part): Add "language" parameter.
3694 (ada_val_print_struct_union): Update call to print_field_values.
3696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3698 * ada-valprint.c (ui_memcpy): Delete.
3699 (ada_print_floating): Update documentation. Add empty line
3700 between between function documentation and implementation.
3701 Delete variable "buffer". Use ui_file_xstrdup in place of
3702 ui_file_put. Minor adjustments following this change.
3704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3706 * ada-valprint.c (ada_val_print_string): New function,
3707 extracted from ada_val_print_array.
3708 (ada_val_print_array): Replace extracted code by call
3709 to ada_val_print_string followed by a return. Move
3710 "else" branch to the function's top block.
3712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3714 * ada-valprint.c (ada_val_print_array): Move implementation
3715 down. Rename parameter "offset" and "val" into "offset_aligned"
3716 and "original_value" respectively. Add parameter "offset".
3718 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3720 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3721 re-organizing the code. Change the "???" message printed
3722 when target type is a TYPE_CODE_UNDEF into
3723 "<ref to undefined type>".
3725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3727 * ada-valprint.c (print_record): Delete, implementation inlined...
3728 (ada_val_print_struct_union): ... here. Remove call to
3729 ada_check_typedef in inlined implementation.
3731 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3733 * ada-valprint.c (ada_val_print_gnat_array): New function,
3734 extracted from ada_val_print_1;
3735 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3736 (ada_val_print_flt, ada_val_print_struct_union)
3737 (ada_val_print_ref): Likewise.
3738 (ada_val_print_1): Delete variables i and elttype.
3739 Replace extracted-out code by call to corresponding
3742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3744 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3748 * ada-valprint.c (ada_val_print_1): Replace calls to
3749 ada_val_print_1 by calls to val_print.
3751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3753 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3754 Update calls to self accordingly. Replace calls to c_val_print
3755 by calls to val_print.
3757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3759 * ada-valprint.c (print_record): Delete declaration.
3760 (adjust_type_signedness, ada_val_print_1): Likewise.
3761 (ada_val_print): Move function implementation down.
3762 (print_variant_part, print_field_values, print_record):
3763 Move function implementation up.
3765 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3767 * python/py-type.c (typy_get_name): New function.
3768 (type_object_getset): Add entry for attribute "name".
3769 * NEWS: Add entry mentioning this new attribute.
3771 2014-01-07 Yao Qi <yao@codesourcery.com>
3773 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3776 2014-01-07 Yao Qi <yao@codesourcery.com>
3778 * gnu-nat.c (info_port_rights): Add qualifier const to
3781 2014-01-07 Yao Qi <yao@codesourcery.com>
3783 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3785 2014-01-07 Yao Qi <yao@codesourcery.com>
3787 * gnu-nat.c (make_inf) Update declaration.
3788 (make_inf): Make it static.
3789 (inf_set_traced): Likewise.
3790 (inf_port_to_thread, inf_task_died_status): Likewise.
3792 2014-01-07 Yao Qi <yao@codesourcery.com>
3794 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3796 2014-01-07 Yao Qi <yao@codesourcery.com>
3798 * gnu-nat.c (_initialize_gnu_nat): Declare.
3800 2014-01-07 Yao Qi <yao@codesourcery.com>
3802 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3804 (struct gdbarch_info) <byte_order>: Change type to
3806 <byte_order_for_code>: Likewise.
3807 * gdbarch.c, gdbarch.h: Regenerated.
3809 2014-01-06 Sasha Smundak <asmundak@google.com>
3811 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3813 2014-01-06 Tom Tromey <tromey@redhat.com>
3815 * doublest.c (convert_doublest_to_floatformat): Use const, not
3817 * somread.c (som_symtab_read): Likewise.
3819 2014-01-07 Hui Zhu <hui@codesourcery.com>
3821 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3822 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3823 (gdb_bfd_fopen): Ditto.
3824 (gdb_bfd_openr): Ditto.
3825 (gdb_bfd_openw): Ditto.
3826 (gdb_bfd_openr_iovec): Ditto.
3827 (gdb_bfd_fdopenr): Ditto.
3828 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3829 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3831 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3833 * symfile-mem.c (symbol_file_add_from_memory): Removed
3834 gdb_bfd_stash_filename.
3836 2014-01-03 Doug Evans <dje@google.com>
3838 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3841 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3843 Update year range in copyright notice of all files.
3845 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3847 * top.c (print_gdb_version): Set copyright year to 2014.
3849 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3851 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3853 For older changes see ChangeLog-2013.
3859 version-control: never