1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target-delegates.c: Rebuild.
4 * target.c (init_dummy_target): Don't initialize to_attach.
5 (target_attach): Unconditionally delegate.
6 * target.h (struct target_ops) <to_attach>: Use
9 2014-02-19 Tom Tromey <tromey@redhat.com>
11 * target-delegates.c: Rebuild.
12 * target.c (target_detach): Unconditionally delegate.
13 (init_dummy_target): Don't initialize to_detach.
14 * target.h (struct target_ops) <to_detach>: Use
15 TARGET_DEFAULT_IGNORE.
17 2014-02-19 Tom Tromey <tromey@redhat.com>
19 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
21 (target_augmented_libraries_svr4_read): Add argument.
22 * target.c (update_current_target): Update.
23 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
26 2014-02-19 Tom Tromey <tromey@redhat.com>
28 * target.h (struct target_ops) <to_call_history_range>: Add
30 * target.c (target_call_history_range): Add argument.
31 * record-btrace.c (record_btrace_call_history_range): Add 'self'
33 (record_btrace_call_history_from): Update.
35 2014-02-19 Tom Tromey <tromey@redhat.com>
37 * target.h (struct target_ops) <to_call_history_from>: Add
39 * target.c (target_call_history_from): Add argument.
40 * record-btrace.c (record_btrace_call_history_from): Add 'self'
43 2014-02-19 Tom Tromey <tromey@redhat.com>
45 * target.h (struct target_ops) <to_call_history>: Add argument.
46 * target.c (target_call_history): Add argument.
47 * record-btrace.c (record_btrace_call_history): Add 'self'
50 2014-02-19 Tom Tromey <tromey@redhat.com>
52 * target.h (struct target_ops) <to_insn_history_range>: Add
54 * target.c (target_insn_history_range): Add argument.
55 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
57 (record_btrace_insn_history_from): Update.
59 2014-02-19 Tom Tromey <tromey@redhat.com>
61 * target.h (struct target_ops) <to_insn_history_from>: Add
63 * target.c (target_insn_history_from): Add argument.
64 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
67 2014-02-19 Tom Tromey <tromey@redhat.com>
69 * target.h (struct target_ops) <to_insn_history>: Add argument.
70 * target.c (target_insn_history): Add argument.
71 * record-btrace.c (record_btrace_insn_history): Add 'self'
74 2014-02-19 Tom Tromey <tromey@redhat.com>
76 * target.h (struct target_ops) <to_goto_record>: Add argument.
77 * target.c (target_goto_record): Add argument.
78 * record-full.c (record_full_goto): Add 'self' argument.
79 * record-btrace.c (record_btrace_goto): Add 'self' argument.
81 2014-02-19 Tom Tromey <tromey@redhat.com>
83 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
84 * target.c (target_goto_record_end): Add argument.
85 * record-full.c (record_full_goto_end): Add 'self' argument.
86 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
88 2014-02-19 Tom Tromey <tromey@redhat.com>
90 * target.h (struct target_ops) <to_goto_record_begin>: Add
92 * target.c (target_goto_record_begin): Add argument.
93 * record-full.c (record_full_goto_begin): Add 'self' argument.
94 * record-btrace.c (record_btrace_goto_begin): Add 'self'
97 2014-02-19 Tom Tromey <tromey@redhat.com>
99 * target.h (struct target_ops) <to_record_is_replaying>: Add
101 * target.c (target_record_is_replaying): Add argument.
102 * record-full.c (record_full_is_replaying): Add 'self' argument.
103 * record-btrace.c (record_btrace_is_replaying): Add 'self'
105 (record_btrace_xfer_partial, record_btrace_store_registers)
106 (record_btrace_prepare_to_store, record_btrace_resume)
107 (record_btrace_wait, record_btrace_decr_pc_after_break)
108 (record_btrace_find_new_threads, record_btrace_thread_alive):
111 2014-02-19 Tom Tromey <tromey@redhat.com>
113 * target.h (struct target_ops) <to_delete_record>: Add argument.
114 * target.c (target_delete_record): Add argument.
115 * record-full.c (record_full_delete): Add 'self' argument.
117 2014-02-19 Tom Tromey <tromey@redhat.com>
119 * target.h (struct target_ops) <to_save_record>: Add argument.
120 * target.c (target_save_record): Add argument.
121 * record-full.c (record_full_save): Add 'self' argument.
122 (record_full_save): Add 'self' argument.
124 2014-02-19 Tom Tromey <tromey@redhat.com>
126 * target.h (struct target_ops) <to_info_record>: Add argument.
127 * target.c (target_info_record): Add argument.
128 * record.c (info_record_command): Add argument.
129 * record-full.c (record_full_info): Add 'self' argument.
130 * record-btrace.c (record_btrace_info): Add 'self' argument.
132 2014-02-19 Tom Tromey <tromey@redhat.com>
134 * target.h (struct target_ops) <to_stop_recording>: Add argument.
135 * target.c (target_stop_recording): Add argument.
136 * record.c (record_stop): Add argument.
137 * record-btrace.c (record_btrace_stop_recording): Add 'self'
140 2014-02-19 Tom Tromey <tromey@redhat.com>
142 * target.h (struct target_ops) <to_read_btrace>: Add argument.
143 * target.c (struct target_ops) <to_read_btrace>: Add argument.
144 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
146 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
147 (_initialize_amd64_linux_nat): Use it.
148 * i386-linux-nat.c (i386_linux_read_btrace): New function.
149 (_initialize_i386_linux_nat): Use it.
151 2014-02-19 Tom Tromey <tromey@redhat.com>
153 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
154 * target.c (target_teardown_btrace): Add argument.
155 * remote.c (remote_teardown_btrace): Add 'self' argument.
156 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
158 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
161 2014-02-19 Tom Tromey <tromey@redhat.com>
163 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
164 * target.c (target_disable_btrace): Add argument.
165 * remote.c (remote_disable_btrace): Add 'self' argument.
166 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
168 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
171 2014-02-19 Tom Tromey <tromey@redhat.com>
173 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
174 * target.c (target_enable_btrace): Add argument.
175 * remote.c (remote_enable_btrace): Add 'self' argument.
176 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
178 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
181 2014-02-19 Tom Tromey <tromey@redhat.com>
183 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
184 (target_can_use_agent): Add argument.
185 * target.c (update_current_target): Update.
186 * remote.c (remote_can_use_agent): Add 'self' argument.
187 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
189 2014-02-19 Tom Tromey <tromey@redhat.com>
191 * target.h (struct target_ops) <to_use_agent>: Add argument.
192 (target_use_agent): Add argument.
193 * target.c (update_current_target): Update.
194 * remote.c (remote_use_agent): Add 'self' argument.
195 * inf-child.c (inf_child_use_agent): Add 'self' argument.
197 2014-02-19 Tom Tromey <tromey@redhat.com>
199 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
200 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
201 (target_traceframe_info): Add argument.
202 * target.c (update_current_target): Update.
203 * remote.c (remote_traceframe_info): Add 'self' argument.
204 * ctf.c (ctf_traceframe_info): Add 'self' argument.
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (target_static_tracepoint_markers_by_strid): Add
210 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
212 * target.c (update_current_target): Update.
213 * remote.c (struct target_ops)
214 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
215 * linux-nat.c (struct target_ops)
216 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
218 2014-02-19 Tom Tromey <tromey@redhat.com>
220 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
222 (target_static_tracepoint_marker_at): Add argument.
223 * target.c (update_current_target): Update.
224 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
227 2014-02-19 Tom Tromey <tromey@redhat.com>
229 * target.h (struct target_ops) <to_set_permissions>: Add argument.
230 (target_set_permissions): Add argument.
231 * target.c (update_current_target): Update.
232 * remote.c (remote_set_permissions): Add 'self' argument.
233 (remote_start_remote): Update.
235 2014-02-19 Tom Tromey <tromey@redhat.com>
237 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
238 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
239 (target_get_tib_address): Add argument.
240 * target.c (update_current_target): Update.
241 * remote.c (remote_get_tib_address): Add 'self' argument.
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
246 (target_set_trace_notes): Add argument.
247 * target.c (update_current_target): Update.
248 * remote.c (remote_set_trace_notes): Add 'self' argument.
250 2014-02-19 Tom Tromey <tromey@redhat.com>
252 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
254 (target_set_trace_buffer_size): Add argument.
255 * target.c (update_current_target): Update.
256 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
258 2014-02-19 Tom Tromey <tromey@redhat.com>
260 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
262 (target_set_circular_trace_buffer): Add argument.
263 * target.c (update_current_target): Update.
264 * remote.c (remote_set_circular_trace_buffer): Add 'self'
267 2014-02-19 Tom Tromey <tromey@redhat.com>
269 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
271 (target_set_disconnected_tracing): Add argument.
272 * target.c (update_current_target): Update.
273 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
275 2014-02-19 Tom Tromey <tromey@redhat.com>
277 * target.h (struct target_ops)
278 <to_get_min_fast_tracepoint_insn_len>: Add argument.
279 (target_get_min_fast_tracepoint_insn_len): Add argument.
280 * target.c (update_current_target): Update.
281 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
284 2014-02-19 Tom Tromey <tromey@redhat.com>
286 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
288 (target_get_raw_trace_data): Add argument.
289 * target.c (update_current_target): Update.
290 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
292 2014-02-19 Tom Tromey <tromey@redhat.com>
294 * target.h (struct target_ops) <to_upload_trace_state_variables>:
296 (target_upload_trace_state_variables): Add argument.
297 * target.c (update_current_target): Update.
298 * remote.c (remote_upload_trace_state_variables): Add 'self'
300 (remote_start_remote): Update.
302 2014-02-19 Tom Tromey <tromey@redhat.com>
304 * target.h (struct target_ops) <to_upload_tracepoints>: Add
306 (target_upload_tracepoints): Add argument.
307 * target.c (update_current_target): Update.
308 * remote.c (remote_upload_tracepoints): Add 'self' argument.
309 (remote_start_remote): Update.
311 2014-02-19 Tom Tromey <tromey@redhat.com>
313 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
314 (target_save_trace_data): Add argument.
315 * target.c (update_current_target): Update.
316 * remote.c (remote_save_trace_data): Add 'self' argument.
318 2014-02-19 Tom Tromey <tromey@redhat.com>
320 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
322 * target.h (struct target_ops)
323 <to_get_trace_state_variable_value>: Add argument.
324 (target_get_trace_state_variable_value): Add argument.
325 * target.c (update_current_target): Update.
326 * remote.c (remote_get_trace_state_variable_value): Add 'self'
328 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
330 2014-02-19 Tom Tromey <tromey@redhat.com>
332 * tracepoint.c (tfile_trace_find): Add 'self' argument.
333 * target.h (struct target_ops) <to_trace_find>: Add argument.
334 (target_trace_find): Add argument.
335 * target.c (update_current_target): Update.
336 * remote.c (remote_trace_find): Add 'self' argument.
337 * ctf.c (ctf_trace_find): Add 'self' argument.
339 2014-02-19 Tom Tromey <tromey@redhat.com>
341 * target.h (struct target_ops) <to_trace_stop>: Add argument.
342 (target_trace_stop): Add argument.
343 * target.c (update_current_target): Update.
344 * remote.c (remote_trace_stop): Add 'self' argument.
346 2014-02-19 Tom Tromey <tromey@redhat.com>
348 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
349 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
351 (target_get_tracepoint_status): Add argument.
352 * target.c (update_current_target): Update.
353 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
355 2014-02-19 Tom Tromey <tromey@redhat.com>
357 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
358 * target.h (struct target_ops) <to_get_trace_status>: Add
360 (target_get_trace_status): Add argument.
361 * target.c (update_current_target): Update.
362 * remote.c (remote_get_trace_status): Add 'self' argument.
363 (remote_start_remote, remote_can_download_tracepoint): Update.
364 * ctf.c (ctf_get_trace_status): Add 'self' argument.
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_trace_start>: Add argument.
369 (target_trace_start): Add argument.
370 * target.c (update_current_target): Update.
371 * remote.c (remote_trace_start): Add 'self' argument.
373 2014-02-19 Tom Tromey <tromey@redhat.com>
375 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
377 (target_trace_set_readonly_regions): Add argument.
378 * target.c (update_current_target): Update.
379 * remote.c (remote_trace_set_readonly_regions): Add 'self'
382 2014-02-19 Tom Tromey <tromey@redhat.com>
384 * target.h (struct target_ops) <to_disable_tracepoint>: Add
386 (target_disable_tracepoint): Add argument.
387 * target.c (update_current_target): Update.
388 * remote.c (remote_disable_tracepoint): Add 'self' argument.
390 2014-02-19 Tom Tromey <tromey@redhat.com>
392 * target.h (struct target_ops) <to_enable_tracepoint>: Add
394 (target_enable_tracepoint): Add argument.
395 * target.c (update_current_target): Update.
396 * remote.c (remote_enable_tracepoint): Add 'self' argument.
398 2014-02-19 Tom Tromey <tromey@redhat.com>
400 * target.h (struct target_ops) <to_download_trace_state_variable>:
402 (target_download_trace_state_variable): Add argument.
403 * target.c (update_current_target): Update.
404 * remote.c (remote_download_trace_state_variable): Add 'self'
407 2014-02-19 Tom Tromey <tromey@redhat.com>
409 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
411 (target_can_download_tracepoint): Add argument.
412 * target.c (update_current_target): Update.
413 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
415 2014-02-19 Tom Tromey <tromey@redhat.com>
417 * target.h (struct target_ops) <to_download_tracepoint>: Add
419 (target_download_tracepoint): Add argument.
420 * target.c (update_current_target): Update.
421 * remote.c (remote_download_tracepoint): Add 'self' argument.
423 2014-02-19 Tom Tromey <tromey@redhat.com>
425 * target.h (struct target_ops) <to_trace_init>: Add argument.
426 (target_trace_init): Add argument.
427 * target.c (update_current_target): Update.
428 * remote.c (remote_trace_init): Add 'self' argument.
430 2014-02-19 Tom Tromey <tromey@redhat.com>
432 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
433 * target.c (target_fileio_readlink): Add argument.
434 * remote.c (remote_hostio_readlink): Add 'self' argument.
435 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
437 2014-02-19 Tom Tromey <tromey@redhat.com>
439 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
440 * target.c (target_fileio_unlink): Add argument.
441 * remote.c (remote_hostio_unlink): Add 'self' argument.
442 (remote_file_delete): Update.
443 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
445 2014-02-19 Tom Tromey <tromey@redhat.com>
447 * target.h (struct target_ops) <to_fileio_close>: Add argument.
448 * target.c (target_fileio_close): Add argument.
449 * remote.c (remote_hostio_close): Add 'self' argument.
450 (remote_hostio_close_cleanup): Update.
451 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
453 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
455 2014-02-19 Tom Tromey <tromey@redhat.com>
457 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
458 * target.c (target_fileio_pread): Add argument.
459 * remote.c (remote_hostio_pread): Add 'self' argument.
460 (remote_bfd_iovec_pread, remote_file_get): Update.
461 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
463 2014-02-19 Tom Tromey <tromey@redhat.com>
465 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
466 * target.c (target_fileio_pwrite): Add argument.
467 * remote.c (remote_hostio_pwrite): Add 'self' argument.
468 (remote_file_put): Update.
469 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
471 2014-02-19 Tom Tromey <tromey@redhat.com>
473 * target.h (struct target_ops) <to_fileio_open>: Add argument.
474 * target.c (target_fileio_open): Add argument.
475 * remote.c (remote_hostio_open): Add 'self' argument.
476 (remote_bfd_iovec_open): Add 'self' argument.
477 (remote_file_put): Add 'self' argument.
478 (remote_file_get): Add 'self' argument.
479 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
481 2014-02-19 Tom Tromey <tromey@redhat.com>
483 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
485 (target_can_run_breakpoint_commands): Add argument.
486 * target.c (update_current_target): Update.
487 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
489 (remote_insert_breakpoint): Add 'self' argument.
490 (remote_insert_hw_breakpoint): Add 'self' argument.
491 (remote_can_run_breakpoint_commands): Add 'self' argument.
493 2014-02-19 Tom Tromey <tromey@redhat.com>
495 * target.h (struct target_ops)
496 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
497 (target_supports_evaluation_of_breakpoint_conditions): Add
499 * target.c (update_current_target): Update.
500 * remote.c (remote_supports_cond_breakpoints): Add 'self'
502 (remote_insert_breakpoint): Add 'self' argument.
503 (remote_insert_hw_breakpoint): Add 'self' argument.
504 (remote_supports_cond_breakpoints): Add 'self' argument.
506 2014-02-19 Tom Tromey <tromey@redhat.com>
508 * target.h (struct target_ops) <to_supports_string_tracing>: Add
510 (target_supports_string_tracing): Add argument.
511 * target.c (update_current_target): Update.
512 * remote.c (remote_supports_string_tracing): Add 'self' argument.
514 2014-02-19 Tom Tromey <tromey@redhat.com>
516 * target.h (struct target_ops)
517 <to_supports_disable_randomization>: Add argument.
518 * target.c (find_default_supports_disable_randomization): Add
520 (target_supports_disable_randomization): Add argument.
521 (find_default_supports_disable_randomization): Add 'self'
523 * remote.c (extended_remote_supports_disable_randomization): Add
525 (remote_supports_disable_randomization): Add 'self' argument.
526 (extended_remote_create_inferior): Update.
527 * linux-nat.c (linux_nat_supports_disable_randomization): Add
530 2014-02-19 Tom Tromey <tromey@redhat.com>
532 * target.h (struct target_ops)
533 <to_supports_enable_disable_tracepoint>: Add argument.
534 (target_supports_enable_disable_tracepoint): Add argument.
535 * target.c (update_current_target): Update.
536 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
539 2014-02-19 Tom Tromey <tromey@redhat.com>
541 * target.h (struct target_ops) <to_supports_multi_process>: Add
543 (target_supports_multi_process): Add argument.
544 * target.c (update_current_target): Update.
545 * remote.c (remote_supports_multi_process): Add 'self' argument.
546 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
548 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
551 2014-02-19 Tom Tromey <tromey@redhat.com>
553 * target.h (struct target_ops) <to_execution_direction>: Add
555 (target_execution_direction): Add argument.
556 * target.c (default_execution_direction): Add 'self' argument.
557 * record-full.c (record_full_execution_direction): Add 'self'
560 2014-02-19 Tom Tromey <tromey@redhat.com>
562 * target.h (struct target_ops) <to_can_execute_reverse>: Add
564 (target_can_execute_reverse): Add argument.
565 * remote.c (remote_can_execute_reverse): Add 'self' argument.
566 * record-full.c (record_full_can_execute_reverse): Add 'self'
568 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
571 2014-02-19 Tom Tromey <tromey@redhat.com>
573 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
574 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
576 (target_get_ada_task_ptid): Add argument.
577 * target.c (update_current_target): Update.
578 (default_get_ada_task_ptid): Add 'self' argument.
579 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
580 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
581 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
583 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
585 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
587 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
589 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
590 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
593 2014-02-19 Tom Tromey <tromey@redhat.com>
595 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
596 (target_goto_bookmark): Add argument.
597 * target.c (dummy_goto_bookmark): Add 'self' argument.
598 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
600 2014-02-19 Tom Tromey <tromey@redhat.com>
602 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
603 (target_get_bookmark): Add argument.
604 * target.c (dummy_get_bookmark): Add 'self' argument.
605 * record-full.c (record_full_get_bookmark): Add 'self' argument.
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * target.h (struct target_ops) <to_make_corefile_notes>: Add
611 (target_make_corefile_notes): Add argument.
612 * target.c (dummy_make_corefile_notes): Add 'self' argument.
613 * procfs.c (procfs_make_note_section): Add 'self' argument.
614 (procfs_make_note_section): Add 'self' argument.
615 (procfs_make_note_section): Add 'self' argument.
616 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
618 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
619 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
620 * exec.c (exec_make_note_section): Add 'self' argument.
621 (exec_make_note_section): Add 'self' argument.
623 2014-02-19 Tom Tromey <tromey@redhat.com>
625 * target.h (struct target_ops) <to_find_memory_regions>: Add
627 (target_find_memory_regions): Add argument.
628 * target.c (dummy_find_memory_regions): Add 'self' argument.
629 * procfs.c (proc_find_memory_regions): Add 'self' argument.
630 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
631 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
632 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
633 * exec. (exec_do_find_memory_regions): New global.
634 (exec_set_find_memory_regions): Rewrite.
635 (exec_find_memory_regions): New function.
636 (init_exec_ops): Use exec_find_memory_regions.
638 2014-02-19 Tom Tromey <tromey@redhat.com>
640 * target.h (struct target_ops) <to_supports_non_stop>: Add
642 * target.c (find_default_supports_non_stop): Add argument.
643 (target_supports_non_stop): Add argument.
644 (find_default_supports_non_stop): Add 'self' argument.
645 * remote.c (remote_supports_non_stop): Add 'self' argument.
646 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
648 2014-02-19 Tom Tromey <tromey@redhat.com>
650 * target.h (struct target_ops) <to_log_command>: Add argument.
651 (target_log_command): Add argument.
652 * serial.h (serial_log_command): Add 'self' argument.
653 * serial.c (serial_log_command): Add 'self' argument.
655 2014-02-19 Tom Tromey <tromey@redhat.com>
657 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
658 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
660 (target_pid_to_exec_file): Add argument.
661 * target.c (debug_to_pid_to_exec_file): Add argument.
662 (update_current_target): Update.
663 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
664 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
665 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
666 (linux_handle_extended_wait): Update.
667 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
668 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
669 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
670 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
672 2014-02-19 Tom Tromey <tromey@redhat.com>
674 * target.h (struct target_ops) <to_rcmd>: Add argument.
675 (target_rcmd): Add argument.
676 * target.c (debug_to_rcmd): Add argument.
677 (update_current_target, do_monitor_command): Update.
678 * remote.c (remote_rcmd): Add 'self' argument.
679 * monitor.c (monitor_rcmd): Add 'self' argument.
681 2014-02-19 Tom Tromey <tromey@redhat.com>
683 * windows-nat.c (windows_stop): Add 'self' argument.
684 * target.h (struct target_ops) <to_stop>: Add argument.
685 * target.c (target_stop): Add argument.
686 (debug_to_stop): Add argument.
687 (update_current_target): Update.
688 * remote.c (remote_stop): Add 'self' argument.
689 * remote-sim.c (gdbsim_stop): Add 'self' argument.
690 (gdbsim_cntrl_c): Update.
691 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
692 * procfs.c (procfs_stop): Add 'self' argument.
693 * nto-procfs.c (procfs_stop): Add 'self' argument.
694 * monitor.c (monitor_stop): Add 'self' argument.
695 (monitor_open): Update.
696 * linux-nat.c (linux_nat_stop): Add argument.
697 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
698 * gnu-nat.c (gnu_stop): Add 'self' argument.
699 * darwin-nat.c (darwin_stop): Add 'self' argument.
701 2014-02-19 Tom Tromey <tromey@redhat.com>
703 * target.h (struct target_ops) <to_thread_name>: Add argument.
704 * target.c (target_thread_name): Add argument.
705 (update_current_target): Update.
706 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
708 2014-02-19 Tom Tromey <tromey@redhat.com>
710 * target.h (struct target_ops) <to_extra_thread_info>: Add
712 (target_extra_thread_info): Add argument.
713 * target.c (update_current_target): Update.
714 * remote.c (remote_threads_extra_info): Add 'self' argument.
715 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
717 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
718 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
719 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
721 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
723 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
725 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
728 2014-02-19 Tom Tromey <tromey@redhat.com>
730 * target.h (struct target_ops) <to_program_signals>: Add argument.
731 * target.c (target_program_signals): Add argument.
732 * remote.c (remote_program_signals): Add 'self' argument.
734 2014-02-19 Tom Tromey <tromey@redhat.com>
736 * target.h (struct target_ops) <to_pass_signals>: Add argument.
737 * target.c (target_pass_signals): Add argument.
738 * remote.c (remote_pass_signals): Add 'self' argument.
739 (remote_start_remote): Update.
740 * procfs.c (procfs_pass_signals): Add 'self' argument.
741 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
742 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
743 (linux_nat_create_inferior, linux_nat_attach): Update.
745 2014-02-19 Tom Tromey <tromey@redhat.com>
747 * windows-nat.c (windows_can_run): Add 'self' argument.
748 * target.h (struct target_ops) <to_can_run>: Add argument.
749 (target_can_run): Add argument.
750 * target.c (debug_to_can_run): Add argument.
751 (update_current_target): Update.
752 * nto-procfs.c (procfs_can_run): Add 'self' argument.
753 * inf-child.c (inf_child_can_run): Add 'self' argument.
754 * go32-nat.c (go32_can_run): Add 'self' argument.
756 2014-02-19 Tom Tromey <tromey@redhat.com>
758 * target.h (struct target_ops) <to_has_exited>: Add argument.
759 (target_has_exited): Add argument.
760 * target.c (debug_to_has_exited): Add argument.
761 (update_current_target): Update.
763 2014-02-19 Tom Tromey <tromey@redhat.com>
765 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
767 (target_set_syscall_catchpoint): Add argument.
768 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
770 * target.c (update_current_target): Update.
772 2014-02-19 Tom Tromey <tromey@redhat.com>
774 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
776 (target_remove_exec_catchpoint): Add argument.
777 * target.c (debug_to_remove_exec_catchpoint): Add argument.
778 (update_current_target): Update.
779 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
782 2014-02-19 Tom Tromey <tromey@redhat.com>
784 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
786 (target_insert_exec_catchpoint): Add argument.
787 * target.c (debug_to_insert_exec_catchpoint): Add argument.
788 (update_current_target): Update.
789 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
792 2014-02-19 Tom Tromey <tromey@redhat.com>
794 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
796 (target_remove_vfork_catchpoint): Add argument.
797 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
798 (update_current_target): Update.
799 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
802 2014-02-19 Tom Tromey <tromey@redhat.com>
804 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
806 (target_insert_vfork_catchpoint): Add argument.
807 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
808 (update_current_target): Update.
809 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
812 2014-02-19 Tom Tromey <tromey@redhat.com>
814 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
816 (target_remove_fork_catchpoint): Add argument.
817 * target.c (debug_to_remove_fork_catchpoint): Add argument.
818 (update_current_target): Update.
819 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
822 2014-02-19 Tom Tromey <tromey@redhat.com>
824 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
826 (target_insert_fork_catchpoint): Add argument.
827 * target.c (debug_to_insert_fork_catchpoint): Add argument.
828 (update_current_target): Update.
829 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
832 2014-02-19 Tom Tromey <tromey@redhat.com>
834 * target.h (struct target_ops) <to_post_startup_inferior>: Add
836 (target_post_startup_inferior): Add argument.
837 * target.c (debug_to_post_startup_inferior): Add argument.
838 (update_current_target): Update.
839 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
841 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
843 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
845 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
847 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
849 (super_post_startup_inferior): Likewise.
850 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
852 (super_post_startup_inferior): Likewise.
853 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
855 (super_post_startup_inferior): Likewise.
857 2014-02-19 Tom Tromey <tromey@redhat.com>
859 * target.h (struct target_ops) <to_load>: Add argument.
860 * target.c (target_load): Add argument.
861 (debug_to_load): Add argument.
862 (update_current_target): Update.
863 * remote.c (remote_load): Add 'self' argument.
864 * remote-sim.c (gdbsim_load): Add 'self' argument.
865 * remote-mips.c (mips_load): Add 'self' argument.
866 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
867 * monitor.c (monitor_load): Add 'self' argument.
868 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
870 2014-02-19 Tom Tromey <tromey@redhat.com>
872 * target.h (struct target_ops) <to_terminal_info>: Add argument.
873 (target_terminal_info): Add argument.
874 * target.c (debug_to_terminal_info): Add argument.
875 (default_terminal_info): Likewise.
876 * inflow.c (child_terminal_info): Add 'self' argument.
877 * inferior.h (child_terminal_info): Add 'self' argument.
878 * go32-nat.c (go32_terminal_info): Add 'self' argument.
880 2014-02-19 Tom Tromey <tromey@redhat.com>
882 * target.h (struct target_ops) <to_terminal_save_ours>: Add
884 (target_terminal_save_ours): Add argument.
885 * target.c (debug_to_terminal_save_ours): Add argument.
886 (update_current_target): Update.
887 * inflow.c (terminal_save_ours): Add 'self' argument.
888 * inferior.h (terminal_save_ours): Add 'self' argument.
890 2014-02-19 Tom Tromey <tromey@redhat.com>
892 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
893 (target_terminal_ours): Add argument.
894 * target.c (debug_to_terminal_ours): Add argument.
895 (update_current_target): Update.
896 * remote.c (remote_terminal_ours): Add 'self' argument.
897 (remote_close): Update.
898 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
899 * inflow.c (terminal_ours): Add 'self' argument.
900 * inferior.h (terminal_ours): Add 'self' argument.
901 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
903 2014-02-19 Pedro Alves <palves@redhat.com>
904 Tom Tromey <tromey@redhat.com>
906 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
908 (target_terminal_ours_for_output): Add argument.
909 * target.c (debug_to_terminal_ours_for_output): Add argument.
910 (update_current_target): Update.
911 * inflow.c (terminal_ours_for_output): Add 'self' argument.
912 * inferior.h (terminal_ours_for_output): Add 'self' argument.
913 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
915 2014-02-19 Tom Tromey <tromey@redhat.com>
917 * target.h (struct target_ops) <to_terminal_inferior>: Add
919 * target.c (target_terminal_inferior): Add argument.
920 (update_current_target): Update.
921 * remote.c (remote_terminal_inferior): Add 'self' argument.
922 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
923 * inflow.c (terminal_inferior): Add 'self' argument.
924 * inferior.h (terminal_inferior): Add 'self' argument.
925 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
926 (go32_terminal_inferior): Add 'self' argument.
928 2014-02-19 Tom Tromey <tromey@redhat.com>
930 * target.h (struct target_ops) <to_terminal_init>: Add argument.
931 (target_terminal_init): Add argument.
932 * target.c (debug_to_terminal_init): Add argument.
933 (update_current_target): Update.
934 * inflow.c (terminal_init_inferior): Add 'self' argument.
935 * inferior.h (terminal_init_inferior): Add 'self' argument.
936 * go32-nat.c (go32_terminal_init): Add 'self' argument.
937 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
939 2014-02-19 Tom Tromey <tromey@redhat.com>
941 * target.h (struct target_ops)
942 <to_can_accel_watchpoint_condition>: Add argument.
943 (target_can_accel_watchpoint_condition): Add argument.
944 * target.c (debug_to_can_accel_watchpoint_condition): Add
946 (update_current_target): Update.
947 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
950 2014-02-19 Tom Tromey <tromey@redhat.com>
952 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
954 (target_region_ok_for_hw_watchpoint): Add argument.
955 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
956 (default_region_ok_for_hw_watchpoint): Add argument.
957 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
958 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
960 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
962 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
964 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
966 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
968 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
970 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
971 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
973 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
976 2014-02-19 Tom Tromey <tromey@redhat.com>
978 * target.h (struct target_ops) <to_insert_watchpoint>: Add
980 (target_insert_watchpoint): Add argument.
981 * target.c (debug_to_insert_watchpoint): Add argument.
982 (update_current_target): Update.
983 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
984 * remote.c (remote_insert_watchpoint): Add 'self' argument.
985 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
986 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
987 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
988 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
990 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
991 (procfs_insert_hw_watchpoint): Add 'self' argument.
992 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
994 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
996 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
998 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
999 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1001 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1004 2014-02-19 Tom Tromey <tromey@redhat.com>
1006 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1008 (target_remove_watchpoint): Add argument.
1009 * target.c (debug_to_remove_watchpoint): Add argument.
1010 (update_current_target): Update.
1011 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1012 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1013 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1014 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1015 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1016 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1018 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1019 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1021 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1023 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1025 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1026 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1028 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1031 2014-02-19 Tom Tromey <tromey@redhat.com>
1033 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1035 (target_remove_hw_breakpoint): Add argument.
1036 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1037 (update_current_target): Update.
1038 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1039 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1041 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1042 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1044 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1047 2014-02-19 Tom Tromey <tromey@redhat.com>
1049 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1051 (target_insert_hw_breakpoint): Add argument.
1052 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1053 (update_current_target): Update.
1054 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1055 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1057 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1058 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1059 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1061 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1064 2014-02-19 Tom Tromey <tromey@redhat.com>
1066 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1068 (target_can_use_hardware_watchpoint): Add argument.
1069 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1070 (update_current_target): Update.
1071 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1073 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1075 * remote.c (remote_check_watch_resources): Add 'self' argument.
1076 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1077 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1079 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1080 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1082 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1084 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1086 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1088 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1090 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1092 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1093 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1095 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1098 2014-02-19 Tom Tromey <tromey@redhat.com>
1100 * target.h (struct target_ops) <to_post_attach>: Add argument.
1101 (target_post_attach): Add argument.
1102 * target.c (debug_to_post_attach): Add argument.
1103 (update_current_target): Update.
1104 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1105 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1106 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1107 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1108 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1110 2014-02-19 Tom Tromey <tromey@redhat.com>
1112 * windows-nat.c (windows_close): Add 'self' argument.
1113 * tracepoint.c (tfile_close): Add 'self' argument.
1114 * target.h (struct target_ops) <to_close>: Add argument.
1115 * target.c (target_close): Add argument.
1116 (update_current_target): Update.
1117 * remote.c (remote_close): Add 'self' argument.
1118 * remote-sim.c (gdbsim_close): Add 'self' argument.
1119 * remote-mips.c (mips_close): Add 'self' argument.
1120 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1121 * record-full.c (record_full_close): Add 'self' argument.
1122 * record-btrace.c (record_btrace_close): Add 'self' argument.
1123 * monitor.h (monitor_close): Add 'self' argument.
1124 * monitor.c (monitor_close): Add 'self' argument.
1125 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1126 * linux-nat.c (linux_nat_close): Add argument.
1127 * go32-nat.c (go32_close): Add 'self' argument.
1128 * exec.c (exec_close_1): Add 'self' argument.
1129 * ctf.c (ctf_close): Add 'self' argument.
1130 * corelow.c (core_close): Add 'self' argument.
1131 (core_close_cleanup): Update.
1132 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1133 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1135 2014-02-19 Tom Tromey <tromey@redhat.com>
1137 * remote.c (remote_load): New function.
1138 (init_remote_ops): Use it.
1140 2014-02-19 Tom Tromey <tromey@redhat.com>
1142 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1144 * common/linux-btrace.h (linux_supports_btrace): Update.
1145 * remote.c (remote_supports_btrace): Add "self" argument.
1146 * target-delegates.c: Rebuild.
1147 * target.c (target_supports_btrace): Remove.
1148 * target.h (struct target_ops) <to_supports_btrace>: Add
1149 target_ops argument.
1150 (target_supports_btrace): New define.
1152 2014-02-19 Tom Tromey <tromey@redhat.com>
1154 * record-full.c (record_full_beneath_to_resume_ops)
1155 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1156 (record_full_beneath_to_wait)
1157 (record_full_beneath_to_store_registers_ops)
1158 (record_full_beneath_to_store_registers)
1159 (record_full_beneath_to_xfer_partial_ops)
1160 (record_full_beneath_to_xfer_partial)
1161 (record_full_beneath_to_insert_breakpoint_ops)
1162 (record_full_beneath_to_insert_breakpoint)
1163 (record_full_beneath_to_remove_breakpoint_ops)
1164 (record_full_beneath_to_remove_breakpoint)
1165 (record_full_beneath_to_stopped_by_watchpoint)
1166 (record_full_beneath_to_stopped_data_address)
1167 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1168 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1169 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1170 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1171 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1172 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1173 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1174 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1175 (record_full_resume, record_full_wait_1)
1176 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1177 (record_full_store_registers, record_full_xfer_partial)
1178 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1179 (record_full_async, record_full_core_xfer_partial): Use target
1181 * target-delegates.c: Rebuild.
1182 * target.c (current_xfer_partial): Remove.
1183 (update_current_target): Do not INHERIT or de_fault
1184 to_insert_breakpoint, to_remove_breakpoint,
1185 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1186 to_is_async_p, to_async. Do not set to_xfer_partial field.
1187 (default_xfer_partial): Simplify.
1188 (current_xfer_partial): Remove.
1189 (target_wait, target_resume): Simplify.
1190 (find_default_can_async_p, find_default_is_async_p): Update.
1191 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1192 to_xfer_partial, to_stopped_by_watchpoint,
1193 to_stopped_data_address.
1194 (target_store_registers): Simplify.
1195 (forward_target_remove_breakpoint)
1196 (forward_target_insert_breakpoint): Remove.
1197 (target_remove_breakpoint, target_insert_breakpoint)
1198 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1199 * target.h (struct target_ops) <to_resume, to_wait,
1200 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1201 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1202 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1204 (forward_target_remove_breakpoint)
1205 (forward_target_insert_breakpoint): Remove.
1206 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1208 (record_btrace_insert_breakpoint): Delegate directly.
1210 2014-02-19 Tom Tromey <tromey@redhat.com>
1213 * target-delegates.c: New file.
1214 * target.c: Include target-delegates.c.
1215 (init_dummy_target): Call install_dummy_methods.
1216 (complete_target_initialization): Call install_delegators.
1217 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1218 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1219 * make-target-delegates: New file.
1221 2014-02-19 Tom Tromey <tromey@redhat.com>
1223 * record.c (find_record_target): Use find_target_at.
1224 * target.c (find_target_at): New function.
1225 * target.h (find_target_at): Declare.
1227 2014-02-19 Tom Tromey <tromey@redhat.com>
1229 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1231 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1233 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1234 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1236 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1238 * linux-nat.c (save_sigtrap): Update.
1239 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1240 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1241 (linux_nat_close): Update.
1242 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1244 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1246 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1247 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1248 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1249 (tmp_to_async): Add 'ops' argument.
1250 (record_full_stopped_by_watchpoint, record_full_async)
1251 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1253 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1254 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1255 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1256 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1257 (remote_is_async_p, remote_async): Add 'ops' argument.
1258 (remote_stopped_data_address): Update.
1259 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1260 * target.c (update_current_target)
1261 (find_default_can_async_p, find_default_is_async_p): Update.
1262 (init_dummy_target): Update.
1263 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1264 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1265 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1266 (target_can_async_p, target_is_async_p, target_async)
1267 (target_stopped_by_watchpoint): Update.
1269 2014-02-19 Yao Qi <yao@codesourcery.com>
1272 * gdbarch.sh: Remove startup_gdbarch.
1273 * gdbarch.c: Regenerated.
1274 * gdbarch.h: Likewise.
1276 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1278 * rl78-tdep.c (rl78_g10_register_name): New function.
1279 (rl78_return_value): Add g10 support.
1280 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1283 2014-02-17 Doug Evans <xdje42@gmail.com>
1285 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1286 (SUBDIR_GUILE_SRCS): Ditto.
1287 (scm-gsmob.o): Ditto.
1289 2014-02-17 Yao Qi <yao@codesourcery.com>
1291 * gnu-nat.c (ILL_RPC): Declare defined function.
1293 2014-02-17 Yao Qi <yao@codesourcery.com>
1295 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1296 mach_msg_type_number_t.
1297 (gnu_write_inferior): Likewise.
1299 2014-02-17 Yao Qi <yao@codesourcery.com>
1301 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1303 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1304 (inf_validate_procs, inf_signal): Likewise.
1305 (S_exception_raise_request): Likewise.
1306 (do_mach_notify_dead_name): Likewise.
1307 (steal_exc_port): Likewise.
1308 (gnu_read_inferior): Change 'copy_count''s type to
1309 mach_msg_type_number_t.
1310 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1313 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1315 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1316 flag. Adjust all users; in particular...
1317 (gnu_wait): ..., don't decrement its value in here...
1318 (gnu_create_inferior): ..., and instead set the flag in here,
1319 around the startup_inferior call, and call that one with
1320 START_INFERIOR_TRAPS_EXPECTED.
1322 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1323 (ILL_RPC): ... new macro.
1324 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1325 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1326 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1327 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1328 functions with ILL_RPC macro.
1329 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1330 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1331 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1332 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1333 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1334 (S_proc_getlogin_reply, S_proc_getsid_reply)
1335 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1336 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1337 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1338 (S_proc_getnports_reply, S_proc_is_important_reply)
1339 (S_proc_get_code_reply): New stub functions, generated with
1342 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1343 collected the type check structures.
1345 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1347 2014-02-14 Doug Evans <dje@google.com>
1349 * target.c (target_write_partial): Fix result type.
1351 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1353 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1354 the proper offsets to access fpregset_t.
1356 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1358 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1359 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1360 * h8300-tdep.c (setmachinelist): Remove global.
1361 * hppa-tdep.c (hppa_sigtramp): Remove global.
1362 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1363 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1364 * ravenscar-thread.c (update_target_observer): Remove global.
1365 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1367 2014-02-12 Tom Tromey <tromey@redhat.com>
1369 * common/rsp-low.c: Update comments.
1370 * common/rsp-low.h: Update comments.
1372 2014-02-12 Tom Tromey <tromey@redhat.com>
1374 * common/rsp-low.c (convert_ascii_to_int): Remove.
1375 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1377 2014-02-12 Tom Tromey <tromey@redhat.com>
1379 * common/rsp-low.h (unhexify): Don't declare.
1380 * common/rsp-low.c (unhexify): Remove.
1382 2014-02-12 Tom Tromey <tromey@redhat.com>
1384 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1385 * common/rsp-low.c (convert_int_to_ascii): Remove.
1387 2014-02-12 Tom Tromey <tromey@redhat.com>
1389 * common/rsp-low.h (hexify): Don't declare.
1390 * common/rsp-low.c (hexify): Remove.
1392 2014-02-12 Tom Tromey <tromey@redhat.com>
1394 * common/rsp-low.c (hexify): Never take strlen of argument.
1396 2014-02-12 Tom Tromey <tromey@redhat.com>
1398 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1399 * remote.c (extended_remote_run, remote_rcmd)
1400 (remote_download_trace_state_variable, remote_save_trace_data)
1401 (remote_set_trace_notes): Update.
1402 * tracepoint.c (encode_source_string, tfile_write_status)
1403 (tfile_write_uploaded_tsv): Update.
1405 2014-02-12 Tom Tromey <tromey@redhat.com>
1407 * tracepoint.c: Include rsp-low.h.
1408 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1409 * remote.c: Include rsp-low.h.
1410 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1411 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1412 (remote_unescape_input): Move to common/rsp-low.c.
1413 * common/rsp-low.h: New file.
1414 * common/rsp-low.c: New file.
1415 * Makefile.in (SFILES): Add common/rsp-low.c.
1416 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1417 (COMMON_OBS): Add rsp-low.o.
1418 (rsp-low.o): New target.
1420 2014-02-12 Tom Tromey <tromey@redhat.com>
1422 * utils.h: Include print-utils.h.
1423 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1424 (int_string, core_addr_to_string, core_addr_to_string_nz)
1425 (hex_string, hex_string_custom): Don't declare.
1426 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1427 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1428 (hex_string_custom, int_string, core_addr_to_string)
1429 (core_addr_to_string_nz, host_address_to_string): Move to
1430 common/print-utils.c.
1431 * common/print-utils.h: New file.
1432 * common/print-utils.c: New file
1433 * Makefile.in (SFILES): Add common/print-utils.c.
1434 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1435 (COMMON_OBS): Add print-utils.o.
1436 (print-utils.o): New target.
1438 2014-02-12 Tom Tromey <tromey@redhat.com>
1440 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1442 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1444 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1446 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1448 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1449 if a PT_IO ptrace request returns sucessfully but indicates that 0
1450 bytes were transferred.
1452 2014-02-12 Pedro Alves <palves@redhat.com>
1453 Kevin Buettner <kevinb@redhat.com>
1455 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1456 TYPE_INSTANCE_FLAG_CODE_SPACE.
1458 2014-02-12 Pedro Alves <palves@redhat.com>
1460 * h8300-tdep.c (pseudo_from_raw_register)
1461 (raw_from_pseudo_register): New functions.
1462 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1465 2014-02-12 Pedro Alves <palves@redhat.com>
1467 * h8300-tdep.c (h8300_register_sim_regno): New function.
1468 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1469 gdbarch_register_sim_regno hook.
1471 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1473 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1475 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1477 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1479 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1481 * obsd-tdep.h (obsd_init_abi): New prototype.
1482 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1483 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1484 (obsd_init_abi): New functions.
1485 * i386obsd-tdep.c: Include "obsd-tdep.h".
1486 (i386obsd_init_abi): Call obsd_init_abi.
1487 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1488 (amd64obsd_init_abi): Call obsd_init_abi.
1489 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1490 obsd-tdep.c to gdb_target_obs.
1492 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1494 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1495 double float arguments to 16-byte in the argument slots.
1497 2014-02-11 Doug Evans <xdje42@gmail.com>
1499 * configure.ac: Don't crash if pkg-config is not found and guile
1500 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1502 * configure: Regenerate.
1504 2014-02-11 Yao Qi <yao@codesourcery.com>
1506 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1507 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1508 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1509 * gnu-nat.c (gnu_xfer_memory): Likewise.
1510 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1511 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1512 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1513 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1515 2014-02-11 Yao Qi <yao@codesourcery.com>
1517 * target.h (enum target_xfer_error): Rename to ...
1518 (enum target_xfer_status): ... it. New. All users updated.
1519 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1521 (TARGET_XFER_STATUS_ERROR_P): New macro.
1522 (target_xfer_error_to_string): Remove declaration.
1523 (target_xfer_status_to_string): Declare.
1524 (target_xfer_partial_ftype): Adjust it.
1525 (struct target_ops) <to_xfer_partial>: Return
1526 target_xfer_status. Add argument xfered_len. Update
1528 * target.c (target_xfer_error_to_string): Rename to ...
1529 (target_xfer_status_to_string): ... it. New. All callers
1531 (target_read_live_memory): Likewise. Call target_xfer_partial
1532 instead of target_read.
1533 (memory_xfer_live_readonly_partial): Return
1534 target_xfer_status. Add argument xfered_len.
1535 (raw_memory_xfer_partial): Likewise.
1536 (memory_xfer_partial_1): Likewise.
1537 (memory_xfer_partial): Likewise.
1538 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1539 properly. Update debug message.
1540 (default_xfer_partial, current_xfer_partial): Likewise.
1541 (target_write_partial): Likewise.
1542 (target_read_partial): Likewise. All callers updated.
1543 (read_whatever_is_readable): Likewise.
1544 (target_write_with_progress): Likewise.
1545 (target_read_alloc_1): Likewise.
1547 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1548 * auxv.c (procfs_xfer_auxv): Likewise.
1549 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1550 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1551 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1552 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1553 * corefile.c (read_memory): Adjust.
1554 * corelow.c (core_xfer_partial): Likewise.
1555 * ctf.c (ctf_xfer_partial): Likewise.
1556 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1558 (darwin_xfer_partial): Likewise.
1559 * exec.c (section_table_xfer_memory_partial): Likewise. All
1561 (exec_xfer_partial): Likewise.
1562 * exec.h (section_table_xfer_memory_partial): Update
1564 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1566 (gnu_xfer_partial): Likewise.
1567 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1568 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1569 (ia64_hpux_xfer_solib_got): Likewise.
1570 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1571 type of 'partial_len' to ULONGEST.
1572 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1573 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1574 (linux_nat_xfer_partial): Likewise.
1575 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1576 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1577 * monitor.c (monitor_xfer_memory): Likewise.
1578 (monitor_xfer_partial): Likewise.
1579 * procfs.c (procfs_xfer_partial): Likewise.
1580 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1581 * record-full.c (record_full_xfer_partial): Likewise.
1582 (record_full_core_xfer_partial): Likewise.
1583 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1584 (gdbsim_xfer_partial): Likewise.
1585 * remote.c (remote_write_bytes_aux): Likewise. All callers
1587 (remote_write_bytes, remote_read_bytes): Likewise. All
1589 (remote_flash_erase): Likewise. All callers updated.
1590 (remote_write_qxfer): Likewise. All callers updated.
1591 (remote_read_qxfer): Likewise. All callers updated.
1592 (remote_xfer_partial): Likewise.
1593 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1594 (rs6000_xfer_shared_libraries): Likewise.
1595 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1596 (sol_thread_xfer_partial): Likewise.
1597 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1598 (sparc_xfer_partial): Likewise.
1599 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1601 (spu_xfer_partial): Likewise.
1602 * spu-multiarch.c (spu_xfer_partial): Likewise.
1603 * tracepoint.c (tfile_xfer_partial): Likewise.
1604 * windows-nat.c (windows_xfer_memory): Likewise.
1605 (windows_xfer_shared_libraries): Likewise.
1606 (windows_xfer_partial): Likewise.
1607 * valprint.c: Replace 'target_xfer_error' with
1608 'target_xfer_status' in comments.
1610 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1612 Checked in by Joel Brobecker <brobecker@adacore.com>.
1613 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1615 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1617 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1618 function parameters.
1620 2014-02-10 Will Newton <will.newton@linaro.org>
1622 * elfread.c (elf_rel_plt_read): Look for a .got section if
1623 looking up .got.plt fails.
1624 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1625 on address passed to elf_gnu_ifunc_record_cache.
1626 (elf_gnu_ifunc_resolve_addr): Likewise.
1627 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1629 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1631 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1632 (X_RETTURN): New macro.
1633 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1635 * sparc64-tdep.c (sparc64_init_abi): Hook
1636 sparc_in_function_epilogue_p.
1638 2014-02-10 Gary Benson <gbenson@redhat.com>
1640 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1641 Rename name_matcher to symbol_matcher.
1643 2014-02-10 Gary Benson <gbenson@redhat.com>
1645 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1646 Use expand_symtabs_file_matcher_ftype and
1647 expand_symtabs_symbol_matcher_ftype.
1649 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1651 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1652 (struct ada_symbol_cache): New.
1653 (ada_free_symbol_cache): Forward declare.
1654 (struct ada_pspace_data): New.
1655 (ada_pspace_data_handle): New static global.
1656 (get_ada_pspace_data, ada_pspace_data_cleanup)
1657 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1658 (cache_space, cache): Delete, now folded inside struct
1660 (ada_get_symbol_cache): New function.
1661 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1663 (_initialize_ada_language): Remove initialization of cache_space.
1664 Move call to observer_attach_inferior_exit up, grouping it
1665 with the other observer registrations inside this function.
1666 Rename command to be more general. Add call to
1667 register_program_space_data_with_cleanup.
1669 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1671 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1672 ada_new_objfile_observer.
1673 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1674 (_initialize_tasks): Update uses of ada_new_objfile_observer
1675 and ada_tasks_normal_stop_observer.
1677 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1679 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1680 returned by the 'Length attribute to integer.
1682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1684 * ada-lang.c (_initialize_ada_language): Initialize
1685 cache_space obstack.
1687 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1689 * ada-lang.c (HASH_SIZE): New macro.
1690 (struct cache_entry): New type.
1691 (cache_space, cache): New static globals.
1692 (ada_clear_symbol_cache, find_entry): New functions.
1693 (lookup_cached_symbol, cache_symbol): Implement.
1694 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1695 (_initialize_ada_language): Attach ada_new_objfile_observer
1696 and ada_free_objfile_observer.
1698 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1700 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1701 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1702 struct block * parameter.
1703 (ada_lookup_symbol_list_worker): Constify local variable "block".
1704 Remove cast which is no longer necessary.
1706 2014-02-10 Doug Evans <xdje42@gmail.com>
1708 Add Guile as an extension language.
1709 * NEWS: Mention Guile scripting.
1710 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1711 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1712 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1713 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1714 (CLIBS): Add GUILE_LIBS.
1715 (install-guile): New rule.
1716 (guile.o): New rule.
1717 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1718 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1719 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1720 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1721 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1722 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1723 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1724 * configure.ac: New option --with-guile.
1725 * configure: Regenerate.
1726 * config.in: Regenerate.
1727 * auto-load.c: Remove #include "python/python.h". Add #include
1728 "gdb/section-scripts.h".
1729 (source_section_scripts): Handle Guile scripts.
1730 (_initialize_auto_load): Add name of Guile objfile script to
1731 scripts-directory help text.
1732 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1733 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1734 (struct breakpoint): New member scm_bp_object.
1735 * defs.h (enum command_control_type): New value guile_control.
1736 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1738 (show_user): Update comment.
1739 (_initialize_cli_cmds): Update help text for "show user". Update help
1740 text for max-user-call-depth.
1741 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1743 (multi_line_command_p): Add guile_control.
1744 (print_command_lines): Handle guile_control.
1745 (execute_control_command, recurse_read_control_structure): Ditto.
1746 (process_next_line): Recognize "guile" commands.
1747 * disasm.c (gdb_disassemble_info): Make non-static.
1748 * disasm.h: #include "dis-asm.h".
1749 (struct gdbarch): Add forward decl.
1750 (gdb_disassemble_info): Declare.
1751 * extension.c: #include "guile/guile.h".
1752 (extension_languages): Add guile.
1753 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1754 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1755 * gdbtypes.c (get_unsigned_type_max): New function.
1756 (get_signed_type_minmax): New function.
1757 * gdbtypes.h (get_unsigned_type_max): Declare.
1758 (get_signed_type_minmax): Declare.
1759 * guile/README: New file.
1760 * guile/guile-internal.h: New file.
1761 * guile/guile.c: New file.
1762 * guile/guile.h: New file.
1763 * guile/scm-arch.c: New file.
1764 * guile/scm-auto-load.c: New file.
1765 * guile/scm-block.c: New file.
1766 * guile/scm-breakpoint.c: New file.
1767 * guile/scm-disasm.c: New file.
1768 * guile/scm-exception.c: New file.
1769 * guile/scm-frame.c: New file.
1770 * guile/scm-gsmob.c: New file.
1771 * guile/scm-iterator.c: New file.
1772 * guile/scm-lazy-string.c: New file.
1773 * guile/scm-math.c: New file.
1774 * guile/scm-objfile.c: New file.
1775 * guile/scm-ports.c: New file.
1776 * guile/scm-pretty-print.c: New file.
1777 * guile/scm-safe-call.c: New file.
1778 * guile/scm-string.c: New file.
1779 * guile/scm-symbol.c: New file.
1780 * guile/scm-symtab.c: New file.
1781 * guile/scm-type.c: New file.
1782 * guile/scm-utils.c: New file.
1783 * guile/scm-value.c: New file.
1784 * guile/lib/gdb.scm: New file.
1785 * guile/lib/gdb/boot.scm: New file.
1786 * guile/lib/gdb/experimental.scm: New file.
1787 * guile/lib/gdb/init.scm: New file.
1788 * guile/lib/gdb/iterator.scm: New file.
1789 * guile/lib/gdb/printing.scm: New file.
1790 * guile/lib/gdb/types.scm: New file.
1791 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1792 (VPATH): Add $(GUILE_SRCDIR).
1793 (GUILE_DIR): New variable.
1794 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1795 (all): Add stamp-guile dependency.
1796 (stamp-guile): New rule.
1797 (clean-guile, install-guile, uninstall-guile): New rules.
1798 (install-only): Add install-guile dependency.
1799 (uninstall): Add uninstall-guile dependency.
1800 (clean): Add clean-guile dependency.
1802 2014-02-09 Doug Evans <xdje42@gmail.com>
1804 Revert this patch (which I approved, mea culpa).
1806 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1808 * Makefile.in (all-lib): Remove.
1809 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1811 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1813 Fix Python stack corruption.
1814 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1817 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1819 * Makefile.in (all-lib): Remove.
1820 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1822 2014-02-07 Doug Evans <dje@google.com>
1824 * extension-priv.h (extension_language_script_ops): Add comment.
1825 (extension_language_ops): Add comment.
1826 (active_ext_lang_state): Fix typo in comment.
1828 2014-02-07 Pedro Alves <palves@redhat.com>
1830 * infrun.c (handle_signal_stop) <signal arrives while stepping
1831 over a breakpoint>: Switch back to the stepping thread.
1833 2014-02-07 Yao Qi <yao@codesourcery.com>
1835 * target.c (target_xfer_partial): Return zero if LEN is zero.
1837 2014-02-07 Yao Qi <yao@codesourcery.com>
1839 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1840 (ld_so_xfer_auxv): Likewise.
1841 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1842 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1843 * corelow.c (core_xfer_partial): Likewise.
1844 * ctf.c (ctf_xfer_partial): Likewise.
1845 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1846 (darwin_xfer_partial): Likewise.
1847 * exec.c (exec_xfer_partial): Likewise.
1848 * gnu-nat.c (gnu_xfer_partial): Likewise.
1849 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1850 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1851 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1852 * linux-nat.c (linux_xfer_siginfo): Likewise.
1853 (linux_proc_xfer_spu): Likewise.
1854 * procfs.c (procfs_xfer_partial): Likewise.
1855 * record-full.c (record_full_xfer_partial): Likewise.
1856 (record_full_core_xfer_partial): Likewise.
1857 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1858 * remote.c (remote_write_qxfer): Likewise.
1859 (remote_write_qxfer, remote_read_qxfer): Likewise.
1860 (remote_xfer_partial): Likewise.
1861 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1862 (rs6000_xfer_shared_libraries): Likewise.
1863 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1864 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1865 (spu_xfer_partial): Likewise.
1866 * target.c (memory_xfer_partial_1): Likewise.
1867 * tracepoint.c (tfile_xfer_partial): Likewise.
1868 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1869 (windows_xfer_partial): Likewise.
1871 2014-02-07 Yao Qi <yao@codesourcery.com>
1873 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1875 (core_xfer_shared_libraries_aix): Likewise.
1876 * gdbarch.c, gdbarch.h: Regenerated.
1877 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1878 ULONGEST. Change 'len_avail' type to ULONGEST.
1879 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1880 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1882 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1884 2014-02-07 Yao Qi <yao@codesourcery.com>
1886 * corefile.c (memory_error): Get 'exception' from ERR and pass
1887 'exception' to throw_error.
1889 2014-02-06 Doug Evans <xdje42@gmail.com>
1891 * configure.ac (libpython checking): Remove all but python.o from
1892 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1893 * configure: Regenerate.
1895 * Makefile.in (SFILES): Add extension.c.
1896 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1897 (COMMON_OBS): Add extension.o.
1898 * extension.h: New file.
1899 * extension-priv.h: New file.
1900 * extension.c: New file.
1902 * python/python-internal.h: #include "extension.h".
1903 (gdbpy_auto_load_enabled): Declare.
1904 (gdbpy_apply_val_pretty_printer): Declare.
1905 (gdbpy_apply_frame_filter): Declare.
1906 (gdbpy_preserve_values): Declare.
1907 (gdbpy_breakpoint_cond_says_stop): Declare.
1908 (gdbpy_breakpoint_has_cond): Declare.
1909 (void source_python_script_for_objfile): Delete.
1910 * python/python.c: #include "extension-priv.h".
1911 Delete inclusion of "observer.h".
1912 (extension_language_python): Moved here and renamed from
1913 script_language_python in py-auto-load.c.
1914 Redefined to be of type extension_language_defn.
1915 (python_extension_script_ops): New global.
1916 (python_extension_ops): New global.
1917 (struct python_env): New member previous_active.
1918 (restore_python_env): Call restore_active_ext_lang.
1919 (ensure_python_env): Call set_active_ext_lang.
1920 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1922 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1924 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1926 (gdbpy_eval_from_control_command): Renamed from
1927 eval_python_from_control_command, made static. New arg extlang.
1928 (gdbpy_source_script) Renamed from source_python_script, made static.
1930 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1931 result to int. New arg extlang.
1932 (gdbpy_source_objfile_script): Renamed from
1933 source_python_script_for_objfile, made static. New arg extlang.
1934 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1935 static. New args extlang, extlang_printers. Change result type to
1937 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1938 static. New arg extlang. Rename arg printers to extlang_printers
1939 and change type to ext_lang_type_printers *.
1940 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1941 static. Replace argument arg with extlang, extlang_printers.
1942 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1943 (!HAVE_PYTHON, source_python_script): Delete.
1944 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1945 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1946 (!HAVE_PYTHON, start_type_printers): Delete.
1947 (!HAVE_PYTHON, apply_type_printers): Delete.
1948 (!HAVE_PYTHON, free_type_printers): Delete.
1949 (_initialize_python): Delete call to observer_attach_before_prompt.
1950 (finalize_python): Set/restore active extension language.
1951 (gdbpy_finish_initialization) Renamed from
1952 finish_python_initialization, made static. New arg extlang.
1953 (gdbpy_initialized): New function.
1954 * python/python.h: #include "extension.h". Delete #include
1955 "value.h", "mi/mi-cmds.h".
1956 (extension_language_python): Declare.
1957 (GDBPY_AUTO_FILE_NAME): Delete.
1958 (enum py_bt_status): Moved to extension.h and renamed to
1960 (enum frame_filter_flags): Moved to extension.h.
1961 (enum py_frame_args): Moved to extension.h and renamed to
1962 ext_lang_frame_args.
1963 (finish_python_initialization): Delete.
1964 (eval_python_from_control_command): Delete.
1965 (source_python_script): Delete.
1966 (apply_val_pretty_printer): Delete.
1967 (apply_frame_filter): Delete.
1968 (preserve_python_values): Delete.
1969 (gdbpy_script_language_defn): Delete.
1970 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1971 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1973 * auto-load.c: #include "extension.h".
1974 (GDB_AUTO_FILE_NAME): Delete.
1975 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1976 (script_language_gdb): Delete, moved to extension.c and renamed to
1977 extension_language_gdb.
1978 (source_gdb_script_for_objfile): Delete.
1979 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1980 (loaded_script): Change type of language member to
1981 struct extension_language_defn *.
1982 (init_loaded_scripts_info): Initialize
1983 unsupported_script_warning_printed.
1984 (maybe_add_script): Make static. Change type of language arg to
1985 struct extension_language_defn *.
1986 (clear_section_scripts): Reset unsupported_script_warning_printed.
1987 (auto_load_objfile_script_1): Rewrite to use extension language API.
1988 (auto_load_objfile_script): Make public. Remove support-compiled-in
1989 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1990 (source_section_scripts): Rewrite to use extension language API.
1991 (load_auto_scripts_for_objfile): Rewrite to use
1992 auto_load_scripts_for_objfile.
1993 (collect_matching_scripts_data): Change type of language member to
1994 struct extension_language_defn *.
1995 (auto_load_info_scripts): Change type of language arg to
1996 struct extension_language_defn *.
1997 (unsupported_script_warning_print): New function.
1998 (script_not_found_warning_print): Make static.
1999 (_initialize_auto_load): Rewrite construction of scripts-directory
2001 * auto-load.h (struct objfile): Add forward decl.
2002 (struct script_language): Delete.
2003 (struct auto_load_pspace_info): Add forward decl.
2004 (struct extension_language_defn): Add forward decl.
2005 (maybe_add_script): Delete.
2006 (auto_load_objfile_script): Declare.
2007 (script_not_found_warning_print): Delete.
2008 (auto_load_info_scripts): Update prototype.
2009 (auto_load_gdb_scripts_enabled): Declare.
2010 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2011 auto_load_python_scripts_enabled and made public.
2012 (script_language_python): Delete, moved to python.c.
2013 (gdbpy_script_language_defn): Delete.
2014 (info_auto_load_python_scripts): Update to use
2015 extension_language_python.
2017 * breakpoint.c (condition_command): Replace call to
2018 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2019 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2020 with call to breakpoint_ext_lang_cond_says_stop.
2021 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2022 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2023 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2024 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2026 (local_setattro): Print name of extension language with existing
2029 * valprint.c (val_print, value_print): Update to call
2030 apply_ext_lang_val_pretty_printer.
2031 * cp-valprint.c (cp_print_value): Update call to
2032 apply_ext_lang_val_pretty_printer.
2033 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2034 (gdbpy_apply_val_pretty_printer): Renamed from
2035 apply_val_pretty_printer. New arg extlang.
2036 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2038 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2039 extension language API.
2040 * cli/cli-script.c (execute_control_command): Update to call
2041 eval_ext_lang_from_control_command.
2043 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2044 enum ext_lang_bt_status values. Update call to
2045 apply_ext_lang_frame_filter.
2046 (mi_cmd_stack_list_locals): Ditto.
2047 (mi_cmd_stack_list_args): Ditto.
2048 (mi_cmd_stack_list_variables): Ditto.
2049 * mi/mi-main.c: Delete #include "python/python-internal.h".
2050 Add #include "extension.h".
2051 (mi_cmd_list_features): Replace reference to python internal variable
2052 gdb_python_initialized with call to ext_lang_initialized_p.
2054 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2055 Update to use enum ext_lang_frame_args. Update to call
2056 apply_ext_lang_frame_filter.
2057 * python/py-framefilter.c (extract_sym): Update to use enum
2059 (extract_value, py_print_type, py_print_value): Ditto.
2060 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2061 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2062 (py_print_frame): Ditto.
2063 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2064 New arg extlang. Update to use enum ext_lang_bt_status.
2066 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2067 finish_python_initialization. Replace with call to
2068 finish_ext_lang_initialization.
2070 * typeprint.c (do_free_global_table): Update to call
2071 free_ext_lang_type_printers.
2072 (create_global_typedef_table): Update to call
2073 start_ext_lang_type_printers.
2074 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2075 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2076 (type_print_options): Change type of global_printers from "void *"
2077 to "struct ext_lang_type_printers *".
2079 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2080 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2081 (gdbpy_preserve_values): Renamed from preserve_python_values.
2083 (!HAVE_PYTHON, preserve_python_values): Delete.
2085 * utils.c (quit_flag): Delete, moved to extension.c.
2086 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2089 * eval.c: Delete #include "python/python.h".
2090 * main.c: Delete #include "python/python.h".
2092 * defs.h: Update comment.
2094 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2098 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2100 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2103 2014-02-05 Yao Qi <yao@codesourcery.com>
2105 * remote.c (remote_pass_signals): Remove local 'buf' and use
2107 (remote_program_signals): Likewise.
2109 2014-02-05 Yao Qi <yao@codesourcery.com>
2111 * ctf.c: Include "inferior.h" and "gdbthread.h".
2112 (CTF_PID): A new macro.
2113 (ctf_open): Call inferior_appeared and add_thread_silent.
2114 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2115 (ctf_thread_alive): New function.
2116 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2118 2014-02-05 Yao Qi <yao@codesourcery.com>
2122 2013-05-24 Yao Qi <yao@codesourcery.com>
2124 * tracepoint.c (TFILE_PID): Remove.
2125 (tfile_open): Don't add thread and inferior.
2126 (tfile_close): Don't set 'inferior_ptid'. Don't call
2127 exit_inferior_silent.
2128 (tfile_thread_alive): Remove.
2129 (init_tfile_ops): Don't set field 'to_thread_alive' of
2132 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2134 * remote.c (remote_start_remote): Call remote_check_symbols even
2135 if only symbol-file (not file) has been given.
2137 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2139 * gdbarch.sh (skip_entrypoint): New callback.
2140 * gdbarch.c, gdbarch.h: Regenerate.
2141 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2142 * infrun.c (fill_in_stop_func): Likewise.
2143 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2144 (ppc_elfv2_elf_make_msymbol_special): New function.
2145 (ppc_elfv2_skip_entrypoint): Likewise.
2146 (ppc_linux_init_abi): Install them for ELFv2.
2148 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2150 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2151 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2152 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2153 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2154 structures returned in GPRs.
2156 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2158 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2159 offset to the stack parameter list for the ELFv2 ABI.
2161 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2163 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2164 set_gdbarch_convert_from_func_ptr_addr and
2165 set_gdbarch_elf_make_msymbol_special for ELFv1.
2166 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2167 function descriptors on ELFv1.
2168 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2169 set up r12 at function entry.
2171 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2173 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2174 (struct gdbarch_tdep): New member elf_abi.
2176 * rs6000-tdep.c: Include "elf/ppc64.h".
2177 (rs6000_gdbarch_init): Detect ELF ABI version.
2179 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2181 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2182 within a register pair holding a DFP 128-bit value on little-endian.
2183 (ppc64_sysv_abi_return_value_base): Likewise.
2184 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2185 (dfp_pseudo_register_write): Likewise.
2187 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2189 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2190 offset on little-endian when passing _Decimal32.
2191 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2193 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2195 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2196 of the overlapped FP register within the VSX register on little-
2198 (efpr_pseudo_register_write): Likewise.
2200 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2202 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2203 offset on little-endian when passing small structures.
2205 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2207 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2208 (struct ppc64_sysv_argpos): New data structure.
2209 (ppc64_sysv_abi_push_float): Remove.
2210 (ppc64_sysv_abi_push_val): New function.
2211 (ppc64_sysv_abi_push_integer): Likewise.
2212 (ppc64_sysv_abi_push_freg): Likewise.
2213 (ppc64_sysv_abi_push_vreg): Likewise.
2214 (ppc64_sysv_abi_push_param): Likewise.
2215 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2216 (ppc64_sysv_abi_return_value_base): New function.
2217 (ppc64_sysv_abi_return_value): Refactor to use it.
2219 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2221 * NEWS: Document new target powerpc64le-*-linux*.
2223 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2225 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2226 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2228 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2229 register set used in ELF core dumps. Add floating-point register set.
2231 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2233 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2234 dwarf2_to_gdb[] table using symbolic constants. Adjust
2235 penultimate entry from number representing the PC register
2236 to symbolic constant representing the MDR register. Add
2237 constant for the PC register to the end of the table.
2239 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2241 * bsd-kvm.c: Include <sys/param.h>
2243 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2245 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2247 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2249 * ada-lang.h (clear_ada_sym_cache): Delete.
2251 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2253 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2255 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2257 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2258 the sigreturn register save area only if the syscall is
2261 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2263 * valops.c (value_slice): Minor reformatting.
2265 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2267 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2269 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2271 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2273 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2274 (ada_ignore_descriptive_types_p): New static global.
2275 (find_parallel_type_by_descriptive_type): Return immediately
2276 if ada_ignore_descriptive_types_p is set.
2277 (_initialize_ada_language): Register new commands "maintenance
2278 set ada", "maintenance show ada", "maintenance set ada
2279 ignore-descriptive-types" and "maintenance show ada
2280 ignore-descriptive-types".
2281 * NEWS: Add entry for new "maint ada set/show
2282 ignore-descriptive-types" commands.
2284 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2286 * record-btrace.c (record_btrace_close): Call btrace_teardown
2289 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2291 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2294 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2296 * ada-typeprint (type_is_full_subrange_of_target_type):
2298 (print_range): Add parameter bounds_prefered_p. If not set,
2299 try printing range types using the name of their base type.
2300 (print_range_type): Add parameter bounds_prefered_p.
2301 Use it in call to print_range.
2302 (print_array_type, ada_print_type): Update calls to print_range
2303 and print_range_type.
2305 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2307 * ada-typeprint.c (print_array_type, print_choices, print_range)
2308 (print_range_bound, print_dynamic_range_bound, print_range_type):
2311 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2313 * ada-typeprint.c (print_range): Add missing empty line
2314 after local declaration.
2316 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2318 * ada-valprint.c (print_optional_low_bound): Get index_type's
2319 target type for as long as it is a TYPE_CODE_RANGE.
2321 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2323 * procfs.c (procfs_make_note_section): Remove assertion and
2326 2014-01-24 Yao Qi <yao@codesourcery.com>
2328 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2329 * corelow.c (get_core_siginfo): Likewise.
2331 2014-01-24 Yao Qi <yao@codesourcery.com>
2333 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2334 ULONGEST. Don't check 'len' is negative.
2335 (remote_write_bytes): Change type of 'len' to ULONGEST.
2337 2014-01-23 Tom Tromey <tromey@redhat.com>
2340 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2341 Handle exception from frame.block.
2342 (FrameVars.fetch_frame_locals): Likewise.
2344 2014-01-23 Tom Tromey <tromey@redhat.com>
2347 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2348 on a NULL pointer. Move "goto error" to correct place.
2350 2014-01-23 Tom Tromey <tromey@redhat.com>
2353 * python/py-framefilter.c (apply_frame_filter): Call
2354 ensure_python_env after computing gdbarch.
2356 2014-01-23 Yao Qi <yao@codesourcery.com>
2358 * target.c (raw_memory_xfer_partial): Change argument type
2359 from void * to gdb_byte *.
2360 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2362 2014-01-22 Doug Evans <dje@google.com>
2364 New gdbserver option --debug-format=timestamp.
2367 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2369 * syscalls/s390x-linux.xml: New file.
2370 * syscalls/s390-linux.xml: New file.
2371 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2372 (XML_SYSCALL_FILENAME_S390X): Likewise.
2373 (op_svc): New enum value for SVC opcode.
2374 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2375 (s390_linux_get_syscall_number): New function.
2376 (s390_gdbarch_init): Register '*get_syscall_number' and the
2377 syscall xml file name.
2378 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2379 "s390-linux.xml" and "s390x-linux.xml".
2380 * NEWS: Announce new feature.
2382 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2384 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2386 2014-01-22 Pedro Alves <palves@redhat.com>
2388 * xtensa-config.c: Include defs.h.
2390 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2392 * common/common-utils.h: Add "ARI:" comment beside __func__
2395 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2397 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2398 documentation a bit.
2400 2014-01-21 Roland McGrath <mcgrathr@google.com>
2402 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2403 * configure: Regenerate.
2404 * aclocal.m4: Regenerate.
2405 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2406 New substituted variables.
2407 (install-strip): New target.
2408 (INSTALL_SCRIPT): New substituted variable.
2409 (FLAGS_TO_PASS): Add it.
2410 (install-only): Use $(INSTALL_SCRIPT) rather than
2411 $(INSTALL_PROGRAM) for gcore.
2413 2014-01-20 Tom Tromey <tromey@redhat.com>
2415 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2418 2014-01-20 Tom Tromey <tromey@redhat.com>
2420 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2421 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2422 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2423 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2424 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2425 (struct cmd_list_element) <flags>: Remove.
2426 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2427 doc_allocated>: New fields.
2428 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2430 * maint.c (maintenance_do_deprecate): Update.
2431 * top.c (execute_command): Update.
2433 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2435 * xtensa-linux-nat.c: Include asm/ptrace.h.
2437 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2439 * Makefile.in (SFILES): Add d-support.c.
2440 (COMMON_OBS): Add d-support.o.
2441 * d-lang.h (d_parse_symbol): Add comment, now defined in
2443 * d-lang.c (parse_call_convention)
2444 (parse_attributes, parse_function_types)
2445 (parse_function_args, parse_type, parse_identifier)
2446 (call_convention_p, d_parse_symbol): Move functions to ...
2447 * d-support.c: ... New file.
2449 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2451 * d-lang.h (d_parse_symbol): Add declaration.
2452 * d-lang.c (extract_identifiers)
2453 (extract_type_info): Remove functions.
2454 (parse_call_convention, parse_attributes)
2455 (parse_function_types, parse_function_args)
2456 (parse_type, parse_identifier, call_convention_p)
2457 (d_parse_symbol): New functions.
2458 (d_demangle): Use d_parse_symbol to demangle D symbols.
2460 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2462 * d-lang.h (struct builtin_d_type): New data type.
2463 (builtin_d_type): Add declaration.
2464 * d-lang.c (d_language_arch_info, build_d_types)
2465 (builtin_d_type): New functions.
2466 (enum d_primitive_types): New data type.
2467 (d_language_defn): Change c_language_arch_info to
2468 d_language_arch_info.
2469 (d_type_data): New static variable.
2470 (_initialize_d_language): Initialize d_type_data.
2472 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2474 * d-lang.h (d_main_name): Add declaration.
2475 * d-lang.c (d_main_name): New function.
2476 * symtab.c (find_main_name): Add call to d_main_name.
2478 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2480 * d-lang.c (d_language_defn): Change macro_expansion_c to
2483 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2485 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2487 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2489 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2490 gdb_exception" declaration.
2491 * remote.c (getpkt_or_notif_sane): Likewise.
2493 2014-01-17 Doug Evans <dje@google.com>
2495 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2496 function, contents of dirnames_to_char_ptr_vec_append moved here.
2497 (delim_string_to_char_ptr_vec): New function.
2498 (dirnames_to_char_ptr_vec_append): Rewrite.
2499 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2501 2014-01-17 Doug Evans <dje@google.com>
2503 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2505 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2506 #include "common-utils.h".
2507 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2508 * common/vec.h (VEC_ASSERT_PASS): Update.
2509 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2510 (MACH_CHECK_ERROR): Update.
2512 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2514 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2516 * gdbarch.h: Regenerate.
2518 2014-01-16 Tom Tromey <tromey@redhat.com>
2520 * value.c (struct value) <regnum>: Move earlier.
2522 2014-01-16 Tom Tromey <tromey@redhat.com>
2524 * remote.c (extended_remote_create_inferior): Rename from
2525 extended_remote_create_inferior_1. Add "ops" argument. Remove
2528 2014-01-16 Pedro Alves <palves@redhat.com>
2530 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2531 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2534 2014-01-16 Doug Evans <dje@google.com>
2536 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2540 * btrace.h (btrace_thread_flag): New.
2541 (struct btrace_thread_info) <flags>: New.
2542 * record-btrace.c (record_btrace_resume_thread)
2543 (record_btrace_find_thread_to_move, btrace_step_no_history)
2544 (btrace_step_stopped, record_btrace_start_replaying)
2545 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2546 (record_btrace_find_resume_thread): New.
2547 (record_btrace_resume, record_btrace_wait): Extend.
2548 (record_btrace_can_execute_reverse): New.
2549 (record_btrace_open): Fail in non-stop mode.
2550 (record_btrace_set_replay): Split into this, ...
2551 (record_btrace_stop_replaying): ... this, ...
2552 (record_btrace_clear_histories): ... and this.
2553 (init_record_btrace_ops): Init to_can_execute_reverse.
2554 * NEWS: Announce it.
2556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2558 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2559 (forward_target_decr_pc_after_break)
2560 (target_decr_pc_after_break): New.
2561 * target.c (forward_target_decr_pc_after_break)
2562 (target_decr_pc_after_break): New.
2563 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2564 instead of gdbarch_decr_pc_after_break.
2565 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2566 instead of gdbarch_decr_pc_after_break.
2567 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2568 instead of gdbarch_decr_pc_after_break.
2569 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2570 instead of gdbarch_decr_pc_after_break.
2571 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2572 instead of gdbarch_decr_pc_after_break.
2573 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2574 instead of gdbarch_decr_pc_after_break.
2576 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2578 * btrace.c: Include regcache.h.
2579 (btrace_add_pc): New.
2580 (btrace_enable): Call btrace_add_pc.
2581 (btrace_is_empty): New.
2582 * btrace.h (btrace_is_empty): New.
2583 * record-btrace.c (require_btrace, record_btrace_info): Call
2586 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2588 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2589 Support delta reads.
2590 (linux_disable_btrace): Change return type.
2591 * common/linux-btrace.h (linux_read_btrace): Change parameters
2592 and return type to allow error reporting. Update users.
2593 (linux_disable_btrace): Change return type. Update users.
2594 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2596 (btrace_error): New.
2597 (btrace_block) <begin>: Comment on BEGIN == 0.
2598 * btrace.c (btrace_compute_ftrace): Start from the end of
2600 (btrace_stitch_trace, btrace_clear_history): New.
2601 (btrace_fetch): Read delta trace, return if replaying.
2602 (btrace_clear): Move clear history code to btrace_clear_history.
2603 (parse_xml_btrace): Throw an error if parsing failed.
2604 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2605 and return type to allow error reporting.
2606 (target_read_btrace): Change parameters and return type to allow
2608 * target.c (target_read_btrace): Update.
2609 * remote.c (remote_read_btrace): Support delta reads. Pass
2611 * NEWS: Announce it.
2613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2615 * record.h (record_btrace_frame_unwind)
2616 (record_btrace_tailcall_frame_unwind): New declarations.
2617 * dwarf2-frame: Include record.h
2618 (dwarf2_frame_cfa): Throw an error for btrace frames.
2619 * record-btrace.c: Include hashtab.h.
2620 (btrace_get_bfun_name): New.
2621 (btrace_call_history): Call btrace_get_bfun_name.
2622 (struct btrace_frame_cache): New.
2624 (bfcache_hash, bfcache_eq, bfcache_new): New.
2625 (btrace_get_frame_function): New.
2626 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2627 (record_btrace_frame_this_id): Compute own id.
2628 (record_btrace_frame_prev_register): Provide PC, throw_error
2629 for all other registers.
2630 (record_btrace_frame_sniffer): Detect btrace frames.
2631 (record_btrace_tailcall_frame_sniffer): New.
2632 (record_btrace_frame_dealloc_cache): New.
2633 (record_btrace_frame_unwind): Add new functions.
2634 (record_btrace_tailcall_frame_unwind): New.
2635 (_initialize_record_btrace): Allocate cache.
2636 * btrace.c (btrace_clear): Call reinit_frame_cache.
2637 * NEWS: Announce it.
2639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2641 * record-btrace.c (record_btrace_set_replay)
2642 (record_btrace_goto_begin, record_btrace_goto_end)
2643 (record_btrace_goto): New.
2644 (init_record_btrace_ops): Initialize them.
2645 * NEWS: Announce it.
2647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2649 * record-btrace.c (record_btrace_find_new_threads)
2650 (record_btrace_thread_alive): New.
2651 (init_record_btrace_ops): Initialize to_find_new_threads and
2654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2656 * record-btrace.c (record_btrace_resume): New.
2657 (record_btrace_wait): New.
2658 (init_record_btrace_ops): Initialize to_wait and to_resume.
2660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2662 * record-btrace.c (record_btrace_xfer_partial)
2663 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2664 (record_btrace_allow_memory_access): New.
2665 (init_record_btrace_ops): Initialize new methods.
2666 * target.c (raw_memory_xfer_partial): Bail out if target reports
2667 that this memory is not available.
2669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2671 * target.h (target_ops) <to_insert_breakpoint>
2672 <to_remove_breakpoint>: Add target_ops parameter.
2673 (forward_target_insert_breakpoint): New.
2674 (forward_target_remove_breakpoint): New.
2675 (memory_remove_breakpoint, memory_insert_breakpoint):
2676 Add target_ops parameter.
2677 * target.c (target_insert_breakpoint): Split into this and ...
2678 (forward_target_insert_breakpoint): ... this.
2679 (target_remove_breakpoint): Split into this and ...
2680 (forward_target_remove_breakpoint): ... this.
2681 (debug_to_insert_breakpoint): Add target_ops parameter.
2682 Call forward_target_insert_breakpoint.
2683 (debug_to_remove_breakpoint): Add target_ops parameter.
2684 Call forward_target_remove_breakpoint.
2685 (update_current_target): Do not inherit or default to_insert_breakpoint
2686 and to_remove_breakpoint.
2687 * corelow.c (ignore): Add target_ops parameter.
2688 * exec.c (ignore): Add target_ops parameter.
2689 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2690 Add target_ops parameter.
2691 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2692 Add target_ops parameter.
2693 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2694 Add target_ops parameter.
2695 * record-full.c (record_full_beneath_to_insert_breakpoint)
2696 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2697 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2698 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2699 (record_full_core_remove_breakpoint): Add target_ops parameter.
2701 (record_full_beneath_to_insert_breakpoint_ops)
2702 (record_full_beneath_to_remove_breakpoint_ops)
2703 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2704 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2705 tmp_to_remove_breakpoint_ops,
2706 record_full_beneath_to_insert_breakpoint_ops, and
2707 record_full_beneath_to_remove_breakpoint_ops.
2708 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2709 (m32r_remove_breakpoint): Add target_ops parameter.
2710 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2711 Add target_ops parameter.
2712 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2713 Add target_ops parameter.
2715 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2716 Markus Metzger <markus.t.metzger@intel.com>
2718 * record-btrace.c: Include frame-unwind.h.
2719 (record_btrace_frame_unwind_stop_reason)
2720 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2721 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2723 (init_record_btrace_ops): Install it.
2725 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2730 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2732 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2735 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2737 * frame-unwind.c: Include target.h.
2738 (frame_unwind_try_unwinder): New function with code from ...
2739 (frame_unwind_find_by_frame): ... here. New variable
2740 unwinder_from_target, call also target_get_unwinder)
2741 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2742 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2743 * target.h (struct target_ops): New fields to_get_unwinder and
2744 to_get_tailcall_unwinder.
2745 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2749 * record-btrace.c (record_btrace_fetch_registers)
2750 (record_btrace_store_registers)
2751 (record_btrace_to_prepare_to_store): New.
2752 (init_record_btrace_ops): Add the above.
2754 2014-01-16 Tom Tromey <tromey@redhat.com>
2756 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2757 * target.h (struct target_ops) <to_prepare_to_store>: Add
2759 (target_prepare_to_store): Add argument.
2760 * target.c (debug_to_prepare_to_store): Add argument.
2761 (update_current_target): Update.
2762 * remote.c (remote_prepare_to_store): Add 'self' argument.
2763 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2764 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2765 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2766 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2768 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2769 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2770 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2771 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2772 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2776 * btrace.h (replay) <replay>: New.
2777 (btrace_is_replaying): New.
2778 * btrace.c (btrace_clear): Free replay iterator.
2779 (btrace_is_replaying): New.
2780 * record-btrace.c (record_btrace_is_replaying): New.
2781 (record_btrace_info): Print insn number if replaying.
2782 (record_btrace_insn_history): Start at replay position.
2783 (record_btrace_call_history): Start at replay position.
2784 (init_record_btrace_ops): Init to_record_is_replaying.
2786 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2788 * record-btrace.c (record_btrace_insn_history_range): Include
2790 (record_btrace_insn_history_from): Adjust range.
2791 (record_btrace_call_history_range): Include
2793 (record_btrace_call_history_from): Adjust range.
2794 * NEWS: Announce changes.
2796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2798 * record.h (enum record_print_flag)
2799 <record_print_indent_calls>: New.
2800 * record.c (get_call_history_modifiers): Recognize /c modifier.
2801 (_initialize_record): Document /c modifier.
2802 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2803 Reorder fields. Optionally indent the function name. Update
2805 * NEWS: Announce changes.
2807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2809 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2813 * btrace.c (ftrace_new_function): Start counting at one.
2814 * record-btrace.c (record_btrace_info): Adjust number of calls
2816 * NEWS: Announce it.
2818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2820 * record-btrace.c (btrace_call_history_insn_range): Print
2821 insn range as [begin, end].
2823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2825 * btrace.h (struct btrace_func_link): New.
2826 (enum btrace_function_flag): New.
2827 (struct btrace_inst): Rename to ...
2828 (struct btrace_insn): ...this. Update all users.
2829 (struct btrace_func) <ibegin, iend>: Remove.
2830 (struct btrace_func_link): New.
2831 (struct btrace_func): Rename to ...
2832 (struct btrace_function): ...this. Update all users.
2833 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2834 (number, level, flags>: New.
2835 (struct btrace_insn_iterator): Rename to ...
2836 (struct btrace_insn_history): ...this.
2838 (struct btrace_insn_iterator, btrace_call_iterator): New.
2839 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2840 (struct btrace_target_info) <begin, end, level>
2841 <insn_history, call_history>: New.
2842 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2843 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2844 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2845 (btrace_call_number, btrace_call_begin, btrace_call_end)
2846 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2847 (btrace_find_function_by_number, btrace_set_insn_history)
2848 (btrace_set_call_history): New.
2849 * btrace.c (btrace_init_insn_iterator)
2850 (btrace_init_func_iterator, compute_itrace): Remove.
2851 (ftrace_print_function_name, ftrace_print_filename)
2852 (ftrace_skip_file): Change
2854 (ftrace_init_func): Remove.
2855 (ftrace_debug): Use new btrace_function fields.
2856 (ftrace_function_switched): Also consider gaining and
2857 losing symbol information).
2858 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2859 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2860 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2862 (ftrace_new_function): Move. Remove debug print.
2863 (ftrace_update_lines, ftrace_update_insns): New.
2864 (ftrace_update_function): Check for call, ret, and jump.
2865 (compute_ftrace): Renamed to ...
2866 (btrace_compute_ftrace): ...this. Rewritten to compute call
2868 (btrace_fetch, btrace_clear): Updated.
2869 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2870 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2871 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2872 (btrace_call_number, btrace_call_begin, btrace_call_end)
2873 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2874 (btrace_find_function_by_number, btrace_set_insn_history)
2875 (btrace_set_call_history): New.
2876 * record-btrace.c (require_btrace): Use new btrace thread
2878 (record_btrace_info, btrace_insn_history)
2879 (record_btrace_insn_history, record_btrace_insn_history_range):
2880 Use new btrace thread info fields and new iterator.
2881 (btrace_func_history_src_line): Rename to ...
2882 (btrace_call_history_src_line): ...this. Use new btrace
2884 (btrace_func_history): Rename to ...
2885 (btrace_call_history): ...this. Use new btrace thread info
2886 fields and new iterator.
2887 (record_btrace_call_history, record_btrace_call_history_range):
2888 Use new btrace thread info fields and new iterator.
2890 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2892 * frame.h (frame_id_build_unavailable_stack_special): New.
2893 * frame.c (frame_id_build_unavailable_stack_special): New.
2895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2897 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2898 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2899 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2901 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2902 (i386_insn_is_jump, i386_jmp_p): New.
2903 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2904 insn_is_jump to gdbarch.
2905 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2906 * gdbarch.h: Regenerated.
2907 * gdbarch.c: Regenerated.
2908 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2909 (default_insn_is_jump): New.
2910 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2911 (default_insn_is_jump): New.
2913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2915 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2917 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2918 (btrace_read_type) <btrace_read_new>: Change to ...
2919 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2923 * common/linux-btrace.c (linux_read_btrace): Free trace from
2926 2014-01-15 Doug Evans <dje@google.com>
2928 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2931 2014-01-15 Tom Tromey <tromey@redhat.com>
2933 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2934 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2935 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2936 (set_objfile_main_name): New function.
2937 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2938 language_of_main>: New fields.
2939 (set_objfile_main_name): Declare.
2940 * symtab.c (find_main_name): Loop over objfiles to find the main
2942 (set_main_name): Now static.
2943 (get_main_info): Add comment.
2944 * symtab.h (set_main_name): Don't declare.
2946 2014-01-15 Tom Tromey <tromey@redhat.com>
2948 * symtab.c (main_progspace_key): New global.
2949 (struct main_info): New.
2950 (name_of_main, language_of_main): Remove.
2951 (get_main_info, main_info_cleanup): New function.
2952 (set_main_name, main_name, main_language): Use get_main_info.
2953 (_initialize_symtab): Initialize main_progspace_key.
2955 2014-01-15 Tom Tromey <tromey@redhat.com>
2957 * dbxread.c (process_one_symbol): Update.
2958 * dwarf2read.c (read_partial_die): Update.
2959 * symfile.c (set_initial_language): Call main_language.
2960 * symtab.c (language_of_main): Now static.
2961 (set_main_name): Add 'lang' parameter.
2962 (find_main_name): Update.
2963 (main_language): New function.
2964 (symtab_observer_executable_changed): Update.
2965 * symtab.h (set_main_name): Update.
2966 (language_of_main): Remove.
2967 (main_language): Declare.
2969 2014-01-15 Tom Tromey <tromey@redhat.com>
2971 * symfile.c (init_entry_point_info): Use new "initialized" field.
2973 * objfiles.h (struct entry_point) <initialized>: New field.
2974 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2975 (struct objfile) <ei>: ...here. Remove.
2976 * objfiles.c (entry_point_address_query): Update.
2978 2014-01-15 Tom Tromey <tromey@redhat.com>
2980 * objfiles.c (entry_point_address_query): Relocate entry point
2982 (objfile_relocate1): Do not relocate entry point address.
2983 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2984 <the_bfd_section_index>: New field.
2985 * symfile.c (init_entry_point_info): Find the entry point's
2988 2014-01-15 Tom Tromey <tromey@redhat.com>
2990 * solib-frv.c (enable_break): Use entry_point_address_query.
2992 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2994 * NEWS: Add note on improved process record-replay on
2995 arm*-linux* targets.
2997 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2999 * arm-tdep.c (enum arm_record_result): New enum.
3000 (arm_record_unsupported_insn): New function.
3001 (arm_record_coproc_data_proc): Removed.
3002 (thumb2_record_ld_st_multiple): New function.
3003 (thumb2_record_ld_st_dual_ex_tbb): New function.
3004 (thumb2_record_data_proc_sreg_mimm): New function.
3005 (thumb2_record_ps_dest_generic): New function.
3006 (thumb2_record_branch_misc_cntrl): New function.
3007 (thumb2_record_str_single_data): New function.
3008 (thumb2_record_ld_mem_hints): New function.
3009 (thumb2_record_ld_word): New function.
3010 (thumb2_record_lmul_lmla_div): New function.
3011 (thumb2_record_decode_insn_handler): New function.
3012 (decode_insn): Add thumb32 instruction handlers.
3014 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3016 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3017 (struct arm_linux_record_tdep): Declare.
3018 (arm_canonicalize_syscall): New function.
3019 (arm_all_but_pc_registers_record): New function.
3020 (arm_linux_syscall_record): New function.
3021 (arm_linux_init_abi): Add syscall recording constructs.
3022 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3023 decoding. (arm_record_coproc_data_proc): Update arm syscall
3025 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3026 <arm_syscall_record>: New field.
3027 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3030 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3032 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3033 register for push instruction recording.
3035 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3037 * arm-tdep.c (thumb_record_misc): Update to correct logical
3038 error while recording ldm, ldmia and pop instructions.
3040 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3042 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3044 2014-01-15 Pedro Alves <palves@redhat.com>
3046 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3047 (go32_resume, go32_fetch_registers, store_register)
3048 (go32_store_registers, go32_prepare_to_store)
3049 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3050 (go32_create_inferior, go32_can_run, go32_terminal_init)
3051 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3054 2014-01-15 Tom Tromey <tromey@redhat.com>
3056 * target.h (async_callback_ftype): New typedef.
3057 (struct target_ops) <to_async>: Use it.
3059 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3061 * python/py-value.c (get_field_type): Remove unnecessary curly
3062 braces for single-statement if block.
3064 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3066 * python/py-type.c (convert_field): Add missing empty line
3069 2014-01-14 Doug Evans <dje@google.com>
3071 * symfile.h (expand_symtabs_matching): Renamed from
3072 expand_partial_symbol_names. Update prototype.
3073 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3074 * symfile.c (expand_symtabs_matching): Renamed from
3075 expand_partial_symbol_names. New args file_matcher, kind.
3076 Rename arg fun to symbol_matcher.
3077 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3078 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3079 ada_expand_partial_symbol_name.
3080 (ada_make_symbol_completion_list): Update to call
3081 expand_symtabs_matching.
3082 (ada_add_global_exceptions): Call expand_symtabs_matching.
3083 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3084 call map_symbol_filenames.
3085 * symtab.c (sources_info): Update to call map_symbol_filenames.
3086 (search_symbols): Call expand_symtabs_matching.
3087 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3088 (default_make_symbol_completion_list_break_on): Update to call
3089 expand_symtabs_matching.
3090 (make_source_files_completion_list): Update to call
3091 map_symbol_filenames.
3093 2014-01-14 Doug Evans <dje@google.com>
3095 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3096 (expand_symtabs_symbol_matcher_ftype): New typedef.
3097 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3098 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3099 * symfile.c (expand_partial_symbol_names): Update to use
3100 expand_symtabs_symbol_matcher_ftype.
3101 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3102 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3103 Arg name_matcher renamed to symbol_matcher.
3104 * psymtab.c (recursively_search_psymtabs): Update to use
3105 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3107 (expand_symtabs_matching_via_partial): Update to use
3108 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3109 Arg name_matcher renamed to symbol_matcher.
3111 2014-01-14 Doug Evans <dje@google.com>
3113 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3114 (map_partial_symbol_filenames): Ditto.
3115 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3116 (map_partial_symbol_filenames): Ditto.
3117 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3118 (map_partial_symbol_filenames): Ditto.
3119 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3120 (map_partial_symbol_filenames): Ditto.
3121 * symtab.c: Delete #include "psymtab.h".
3123 2014-01-14 Pedro Alves <palves@redhat.com>
3124 Tom Tromey <tromey@redhat.com>
3126 * infrun.c (use_displaced_stepping): Use find_record_target
3127 instead of RECORD_IS_USED.
3128 (adjust_pc_after_break): Use record_full_is_used instead of
3130 * record-btrace.c (record_btrace_open): Call record_preopen
3131 instead of checking RECORD_IS_USED.
3132 * record-full.c (record_full_shortname)
3133 (record_full_core_shortname): New globals.
3134 (record_full_is_used): New function.
3135 (find_full_open): Call record_preopen instead of checking
3137 (init_record_full_ops): Set the target's shortname to
3138 record_full_shortname.
3139 (init_record_full_core_ops): Set the target's shortname to
3140 record_full_core_shortname.
3141 * record-full.h (record_full_is_used): Declare.
3142 * record.c (find_record_target): Make extern.
3143 (record_preopen): New function.
3144 * record.h (RECORD_IS_USED): Delete macro.
3145 (find_record_target, record_preopen): Declare functions.
3147 2014-01-14 Yao Qi <yao@codesourcery.com>
3149 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3150 'len''s type to ULONGEST.
3151 (core_xfer_shared_libraries_aix): Likewise.
3152 * gdbarch.c, gdbarch.h: Regenerated.
3153 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3154 Change type of 'len' to ULONGEST.
3155 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3156 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3158 2014-01-14 Yao Qi <yao@codesourcery.com>
3160 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3161 type of 'len' to ULONGEST.
3162 (linux_xfer_osdata_processgroups): Likewise.
3163 (linux_xfer_osdata_threads): Likewise.
3164 (linux_xfer_osdata_fds): Likewise.
3165 (linux_xfer_osdata_isockets): Likewise.
3166 (linux_xfer_osdata_shm): Likewise.
3167 (linux_xfer_osdata_sem): Likewise.
3168 (linux_xfer_osdata_msg): Likewise.
3169 (linux_common_xfer_osdata): Likewise.
3170 (struct osdata_type) <getter>: Likewise.
3171 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3174 2014-01-14 Yao Qi <yao@codesourcery.com>
3176 * target.h (target_xfer_partial_ftype): Update.
3177 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3179 * aix-thread.c (aix_thread_xfer_partial): Change type of
3180 argument 'len' to ULONGEST.
3181 * auxv.c (procfs_xfer_auxv): Likewise.
3182 (ld_so_xfer_auxv): Likewise.
3183 (memory_xfer_auxv): Likewise.
3184 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3185 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3186 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3187 * corelow.c (core_xfer_partial): Likewise.
3188 * ctf.c (ctf_xfer_partial): Likewise.
3189 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3191 (darwin_read_dyld_info): Likewise.
3192 (darwin_xfer_partial): Likewise.
3193 * exec.c (section_table_xfer_memory_partial): Likewise.
3194 (exec_xfer_partial): Likewise.
3195 * exec.h (section_table_xfer_memory_partial): Update
3197 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3198 instead of plongest.
3199 (gnu_xfer_partial): Likewise.
3200 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3201 (ia64_hpux_xfer_solib_got): Likewise.
3202 (ia64_hpux_xfer_partial): Likewise.
3203 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3204 * inf-ptrace.c (inf_ptrace_xfer_partial):
3205 * inf-ttrace.c (inf_ttrace_xfer_partial):
3206 * linux-nat.c (linux_xfer_siginfo): Likewise.
3207 (linux_nat_xfer_partial): Likewise.
3208 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3209 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3210 * monitor.c (monitor_xfer_memory): Likewise.
3211 (monitor_xfer_partial): Likewise.
3212 * procfs.c (procfs_xfer_partial): Likewise.
3213 * record-full.c (record_full_xfer_partial): Likewise.
3214 (record_full_core_xfer_partial): Likewise.
3215 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3216 instead of plongest.
3217 (gdbsim_xfer_partial): Likewise.
3218 * remote.c (remote_xfer_partial): Likewise.
3219 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3220 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3222 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3223 (rs6000_xfer_shared_libraries): Likewise.
3224 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3225 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3226 (sparc_xfer_partial): Likewise.
3227 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3228 (spu_xfer_partial): Likewise.
3229 * spu-multiarch.c (spu_xfer_partial): Likewise.
3230 * target.c (target_read_live_memory): Likewise.
3231 (memory_xfer_live_readonly_partial): Likewise.
3232 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3233 (target_xfer_partial, default_xfer_partial): Likewise.
3234 (current_xfer_partial): Likewise.
3235 * tracepoint.c (tfile_xfer_partial): Likewise.
3236 * windows-nat.c (windows_xfer_memory): Likewise. Call
3237 pulongest instead of plongest.
3238 (windows_xfer_partial): Likewise.
3239 (windows_xfer_shared_libraries): Likewise.
3241 2014-01-14 Yao Qi <yao@codesourcery.com>
3243 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3244 target_xfer_partial_ftype.
3246 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3250 * valops.c (value_struct_elt_bitpos): New function
3251 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3252 object to 'None' if the field name is an empty string ("").
3253 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3254 attribute to look for a field when 'name' is 'None'.
3255 (get_field_type): New function
3257 2014-01-13 Doug Evans <dje@google.com>
3260 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3261 (try_open_dwop_file): Ditto.
3262 * gdb_bfd.c: #include "vec.h".
3263 (bfdp): New typedef.
3264 (struct gdb_bfd_data): New member included_bfds.
3265 (gdb_bfd_unref): Unref all included bfds.
3266 (gdb_bfd_record_inclusion): New function.
3267 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3269 2014-01-13 Tom Tromey <tromey@redhat.com>
3271 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3273 2014-01-13 Tom Tromey <tromey@redhat.com>
3275 * defs.h (use_windows): Remove.
3276 * gdb.c (main): Update.
3277 * main.c (captured_main, gdb_main): Update.
3278 * main.h (struct captured_main_args) <use_windows>: Remove.
3279 * top.c (use_windows): Remove.
3281 2014-01-13 Tom Tromey <tromey@redhat.com>
3283 * defs.h (deprecated_flush_hook): Remove.
3285 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * linux-thread-db.c (try_thread_db_load): Add parameter
3289 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3290 (try_thread_db_load_from_pdir_1): Move it there from here.
3291 (try_thread_db_load_from_sdir): Update caller.
3292 (try_thread_db_load_from_dir): Move it there from here.
3294 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3296 * regformats/regdat.sh: Always rewrite the register file.
3298 2014-01-13 Pedro Alves <palves@redhat.com>
3300 * Makefile.in (CHECK_HEADERS): New variable.
3301 (check-headers:): New rule.
3303 2014-01-13 Tom Tromey <tromey@redhat.com>
3305 * cli/cli-setshow.c (do_set_command): Update.
3306 * defs.h (deprecated_set_hook): Remove.
3307 * top.c (deprecated_set_hook): Remove.
3309 2014-01-13 Pedro Alves <palves@redhat.com>
3311 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3312 the tracepoint if the PC is a pseudo-register.
3314 2014-01-13 Tom Tromey <tromey@redhat.com>
3316 * defs.h (XCALLOC): Remove.
3317 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3318 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3319 * dwarf2loc.c (allocate_piece_closure): Likewise.
3320 * elfread.c (elf_symfile_segments): Likewise.
3321 (elf_symfile_segments): Likewise.
3322 * gdbtypes.c (copy_type_recursive): Likewise.
3323 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3324 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3325 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3327 * mt-tdep.c (mt_gdbarch_init): Likewise.
3328 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3330 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3331 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3332 * registry.c (registry_alloc_data): Likewise.
3333 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3334 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3335 * serial.c (serial_fdopen_ops): Likewise.
3336 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3338 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3339 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3342 2014-01-13 Tom Tromey <tromey@redhat.com>
3344 * defs.h (XMALLOC): Remove.
3345 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3346 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3347 * cli-out.c (struct ui_out *): Likewise.
3348 * cli/cli-dump.c (add_dump_command): Likewise.
3349 (add_dump_command): Likewise.
3350 * complaints.c (get_complaints): Likewise.
3351 (find_complaint): Likewise.
3352 * dwarf2-frame.c (execute_cfa_program): Likewise.
3353 * dwarf2read.c (abbrev_table_read_table): Likewise.
3354 * gdbarch.sh: Likewise.
3355 * gdbarch.c: Rebuild.
3356 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3357 * interps.c (interp_new): Likewise.
3358 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3359 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3360 * mi/mi-console.c (mi_console_file_new): Likewise.
3361 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3362 * mi/mi-out.c (mi_out_new): Likewise.
3363 * mi/mi-parse.c (mi_parse): Likewise.
3364 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3365 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3366 * observer.c (xalloc_observer_list_node): Likewise.
3367 * regcache.c (regcache_xmalloc_1): Likewise.
3368 * reggroups.c (reggroup_new): Likewise.
3369 (_initialize_reggroup): Likewise.
3370 * registry.c (register_data_with_cleanup): Likewise.
3371 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3372 * ser-base.c (serial_ttystate): Likewise.
3373 * ser-mingw.c (make_pipe_state): Likewise.
3374 * ser-pipe.c (pipe_open): Likewise.
3375 * serial.c (serial_open): Likewise.
3376 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3377 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3378 (tui_alloc_win_info): Likewise.
3379 (tui_add_content_elements): Likewise.
3380 * tui/tui-file.c (tui_file_new): Likewise.
3381 * tui/tui-out.c (tui_out_new): Likewise.
3382 * ui-file.c (mem_file_new): Likewise.
3383 * ui-out.c (push_level): Likewise.
3384 (make_cleanup_ui_out_end): Likewise.
3385 (append_header_to_list): Likewise.
3386 (ui_out_new): Likewise.
3387 * user-regs.c (user_reg_add_builtin): Likewise.
3389 2014-01-13 Tom Tromey <tromey@redhat.com>
3391 * defs.h (XZALLOC): Remove.
3392 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3393 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3394 (get_ada_tasks_inferior_data): Likewise.
3395 * auto-load.c (get_auto_load_pspace_data): Likewise.
3396 * auxv.c (get_auxv_inferior_data): Likewise.
3397 * bfd-target.c (target_bfd_reopen): Likewise.
3398 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3399 (deprecated_insert_raw_breakpoint): Likewise.
3400 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3401 * corelow.c (core_open): Likewise.
3402 * darwin-nat.c (darwin_check_new_threads): Likewise.
3403 (darwin_attach_pid): Likewise.
3404 * dummy-frame.c (dummy_frame_push): Likewise.
3405 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3406 * dwarf2loc.c (allocate_piece_closure): Likewise.
3407 * elfread.c (elf_symfile_segments): Likewise.
3408 * eval.c (ptrmath_type_p): Likewise.
3409 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3410 * gdbtypes.c (alloc_type_arch): Likewise.
3411 (alloc_type_instance): Likewise.
3412 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3413 * inf-child.c (inf_child_can_use_agent): Likewise.
3414 * inflow.c (get_inflow_inferior_data): Likewise.
3415 * infrun.c (save_infcall_suspend_state): Likewise.
3416 * jit.c (jit_reader_load): Likewise.
3417 (get_jit_objfile_data): Likewise.
3418 (get_jit_program_space_data): Likewise.
3419 (jit_object_open_impl): Likewise.
3420 (jit_symtab_open_impl): Likewise.
3421 (jit_block_open_impl): Likewise.
3422 (jit_frame_sniffer): Likewise.
3423 * linux-fork.c (add_fork): Likewise.
3424 * maint.c (make_command_stats_cleanup): Likewise.
3425 * objfiles.c (get_objfile_pspace_data): Likewise.
3426 * opencl-lang.c (struct lval_closure): Likewise.
3427 * osdata.c (osdata_start_osdata): Likewise.
3428 * progspace.c (new_address_space): Likewise.
3429 (add_program_space): Likewise.
3430 * remote-sim.c (get_sim_inferior_data): Likewise.
3431 * sh-tdep.c (sh_gdbarch_init): Likewise.
3432 * skip.c (Ignore): Likewise.
3433 (skip_delete_command): Likewise.
3434 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3435 (library_list_start_library): Likewise.
3436 (solib_aix_current_sos): Likewise.
3437 * solib-darwin.c (get_darwin_info): Likewise.
3438 (darwin_current_sos): Likewise.
3439 * solib-dsbt.c (get_dsbt_info): Likewise.
3440 * solib-ia64-hpux.c (new_so_list): Likewise.
3441 (ia64_hpux_get_solib_linkage_addr): Likewise.
3442 * solib-spu.c (append_ocl_sos): Likewise.
3443 (spu_current_sos): Likewise.
3444 * solib-svr4.c (get_svr4_info): Likewise.
3445 (svr4_keep_data_in_core): Likewise.
3446 (library_list_start_library): Likewise.
3447 (svr4_default_sos): Likewise.
3448 (svr4_read_so_list): Likewise.
3449 * solib-target.c (library_list_start_library): Likewise.
3450 (solib_target_current_sos): Likewise.
3451 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3452 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3453 * symfile.c (default_symfile_segments): Likewise.
3454 * target-descriptions.c (tdesc_data_init): Likewise.
3455 (tdesc_create_reg): Likewise.
3456 (struct tdesc_type *): Likewise.
3457 (tdesc_create_vector): Likewise.
3458 (tdesc_set_struct_size): Likewise.
3459 (struct tdesc_type *): Likewise.
3460 (tdesc_free_feature): Likewise.
3461 (tdesc_create_feature): Likewise.
3462 * windows-nat.c (windows_add_thread): Likewise.
3463 (windows_make_so): Likewise.
3464 * xml-support.c (gdb_xml_body_text): Likewise.
3465 (gdb_xml_create_parser_and_cleanup): Likewise.
3466 (xml_process_xincludes): Likewise.
3467 * xml-syscall.c (allocate_syscalls_info): Likewise.
3468 (syscall_create_syscall_desc): Likewise.
3470 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3472 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3473 function, with code from i386_stap_parse_special_token.
3474 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3475 (i386_stap_parse_special_token): Move code to the two functions
3478 2014-01-09 Pedro Alves <palves@redhat.com>
3479 Hui Zhu <hui@codesourcery.com>
3482 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3483 bp_err_string. Don't mark the location shlib_disabled if the
3484 error thrown wasn't a generic or memory error. Catch errors
3485 thrown while inserting breakpoints in overlayed code. Output
3486 error message of software breakpoints.
3487 * remote.c (remote_insert_breakpoint): If this breakpoint has
3488 target-side commands but this stub doesn't support Z0 packets,
3489 throw NOT_SUPPORTED_ERROR error.
3490 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3491 * target.h (target_insert_breakpoint): Extend comment.
3492 (target_insert_hw_breakpoint): Add comment.
3494 2014-01-08 Pedro Alves <palves@redhat.com>
3496 * remote.c (remote_add_thread): Add threads silently if starting
3498 (remote_notice_new_inferior): If in all-stop, and starting up,
3499 don't call notice_new_inferior.
3500 (get_current_thread): New function, factored out from ...
3501 (add_current_inferior_and_thread): ... this. Adjust.
3502 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3503 found any thread, then select the remote's current thread as GDB's
3506 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3508 * NEWS: Create a new section for the next release branch.
3509 Rename the section of the current branch, now that it has
3512 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3514 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3515 * version.in: Bump version to 7.7.50.DATE-cvs.
3517 2014-01-08 Yao Qi <yao@codesourcery.com>
3519 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3520 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3521 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3523 2014-01-08 Yao Qi <yao@codesourcery.com>
3525 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3526 return value of bfd_get_filename to symbol_file_add_from_bfd.
3528 2014-01-08 Pierre Muller <muller@sourceware.org>
3531 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3532 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3533 to prim_record_mininal_symbol_and_info.
3534 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3535 in call to prim_record_minimal_symbol_and_info.
3536 (read_pe_exported_syms): Set index field of section_data.
3538 2014-01-07 Andrew Pinski <apinski@cavium.com>
3540 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3541 * features/aarch64.c: Regenerate.
3543 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3545 * target.c (return_null): Define.
3546 (update_current_target): Use it instead of return_zero for
3547 functions that return a pointer.
3549 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3551 * source.c (add_path): Fix check for duplicated paths in the previously
3554 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3556 * ada-lang.c: Remove duplicated include statements.
3557 * alphabsd-nat.c: Ditto.
3558 * amd64-darwin-tdep.c: Ditto.
3559 * amd64fbsd-nat.c: Ditto.
3560 * auto-load.c: Ditto.
3562 * breakpoint.c: Ditto.
3564 * fork-child.c: Ditto.
3565 * gdb_usleep.c: Ditto.
3566 * i386-darwin-tdep.c: Ditto.
3567 * i386fbsd-nat.c: Ditto.
3569 * inferior.c: Ditto.
3571 * linux-nat.c: Ditto.
3572 * linux-tdep.c: Ditto.
3573 * m68kbsd-nat.c: Ditto.
3574 * m68klinux-nat.c: Ditto.
3575 * microblaze-tdep.c: Ditto.
3576 * mips-linux-tdep.c: Ditto.
3577 * mn10300-tdep.c: Ditto.
3578 * nto-tdep.c: Ditto.
3579 * opencl-lang.c: Ditto.
3581 * printcmd.c: Ditto.
3582 * regcache.c: Ditto.
3583 * remote-m32r-sdi.c: Ditto.
3587 * tilegx-linux-nat.c: Ditto.
3588 * tilegx-tdep.c: Ditto.
3589 * tracepoint.c: Ditto.
3591 * vaxbsd-nat.c: Ditto.
3592 * windows-nat.c: Ditto.
3593 * xtensa-tdep.c: Ditto.
3595 2014-01-07 Yao Qi <yao@codesourcery.com>
3597 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3599 2014-01-07 Yao Qi <yao@codesourcery.com>
3600 Joel Brobecker <brobecker@adacore.com>
3602 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3603 (pdc_write_regs): Likewise.
3604 (fetch_regs_kernel_thread): Likewise.
3605 (store_regs_kernel_thread): Likewise.
3607 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3609 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3610 tagged type objects to their actual type.
3612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3614 * ada-valprint.c (print_field_values): Add "language" parameter.
3615 Update calls to print_field_values and print_variant_part.
3616 Pass new parameter "language" in call to val_print instead
3617 of "current_language". Replace call to ada_val_print by call
3619 (print_variant_part): Add "language" parameter.
3620 (ada_val_print_struct_union): Update call to print_field_values.
3622 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3624 * ada-valprint.c (ui_memcpy): Delete.
3625 (ada_print_floating): Update documentation. Add empty line
3626 between between function documentation and implementation.
3627 Delete variable "buffer". Use ui_file_xstrdup in place of
3628 ui_file_put. Minor adjustments following this change.
3630 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3632 * ada-valprint.c (ada_val_print_string): New function,
3633 extracted from ada_val_print_array.
3634 (ada_val_print_array): Replace extracted code by call
3635 to ada_val_print_string followed by a return. Move
3636 "else" branch to the function's top block.
3638 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3640 * ada-valprint.c (ada_val_print_array): Move implementation
3641 down. Rename parameter "offset" and "val" into "offset_aligned"
3642 and "original_value" respectively. Add parameter "offset".
3644 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3646 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3647 re-organizing the code. Change the "???" message printed
3648 when target type is a TYPE_CODE_UNDEF into
3649 "<ref to undefined type>".
3651 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3653 * ada-valprint.c (print_record): Delete, implementation inlined...
3654 (ada_val_print_struct_union): ... here. Remove call to
3655 ada_check_typedef in inlined implementation.
3657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3659 * ada-valprint.c (ada_val_print_gnat_array): New function,
3660 extracted from ada_val_print_1;
3661 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3662 (ada_val_print_flt, ada_val_print_struct_union)
3663 (ada_val_print_ref): Likewise.
3664 (ada_val_print_1): Delete variables i and elttype.
3665 Replace extracted-out code by call to corresponding
3668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3670 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3674 * ada-valprint.c (ada_val_print_1): Replace calls to
3675 ada_val_print_1 by calls to val_print.
3677 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3679 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3680 Update calls to self accordingly. Replace calls to c_val_print
3681 by calls to val_print.
3683 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3685 * ada-valprint.c (print_record): Delete declaration.
3686 (adjust_type_signedness, ada_val_print_1): Likewise.
3687 (ada_val_print): Move function implementation down.
3688 (print_variant_part, print_field_values, print_record):
3689 Move function implementation up.
3691 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3693 * python/py-type.c (typy_get_name): New function.
3694 (type_object_getset): Add entry for attribute "name".
3695 * NEWS: Add entry mentioning this new attribute.
3697 2014-01-07 Yao Qi <yao@codesourcery.com>
3699 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3702 2014-01-07 Yao Qi <yao@codesourcery.com>
3704 * gnu-nat.c (info_port_rights): Add qualifier const to
3707 2014-01-07 Yao Qi <yao@codesourcery.com>
3709 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3711 2014-01-07 Yao Qi <yao@codesourcery.com>
3713 * gnu-nat.c (make_inf) Update declaration.
3714 (make_inf): Make it static.
3715 (inf_set_traced): Likewise.
3716 (inf_port_to_thread, inf_task_died_status): Likewise.
3718 2014-01-07 Yao Qi <yao@codesourcery.com>
3720 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3722 2014-01-07 Yao Qi <yao@codesourcery.com>
3724 * gnu-nat.c (_initialize_gnu_nat): Declare.
3726 2014-01-07 Yao Qi <yao@codesourcery.com>
3728 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3730 (struct gdbarch_info) <byte_order>: Change type to
3732 <byte_order_for_code>: Likewise.
3733 * gdbarch.c, gdbarch.h: Regenerated.
3735 2014-01-06 Sasha Smundak <asmundak@google.com>
3737 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3739 2014-01-06 Tom Tromey <tromey@redhat.com>
3741 * doublest.c (convert_doublest_to_floatformat): Use const, not
3743 * somread.c (som_symtab_read): Likewise.
3745 2014-01-07 Hui Zhu <hui@codesourcery.com>
3747 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3748 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3749 (gdb_bfd_fopen): Ditto.
3750 (gdb_bfd_openr): Ditto.
3751 (gdb_bfd_openw): Ditto.
3752 (gdb_bfd_openr_iovec): Ditto.
3753 (gdb_bfd_fdopenr): Ditto.
3754 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3755 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3757 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3759 * symfile-mem.c (symbol_file_add_from_memory): Removed
3760 gdb_bfd_stash_filename.
3762 2014-01-03 Doug Evans <dje@google.com>
3764 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3767 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3769 Update year range in copyright notice of all files.
3771 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3773 * top.c (print_gdb_version): Set copyright year to 2014.
3775 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3777 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3779 For older changes see ChangeLog-2013.
3785 version-control: never