1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_insn_history_range>: Add
5 * target.c (target_insn_history_range): Add argument.
6 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8 (record_btrace_insn_history_from): Update.
10 2014-02-19 Tom Tromey <tromey@redhat.com>
12 * target.h (struct target_ops) <to_insn_history_from>: Add
14 * target.c (target_insn_history_from): Add argument.
15 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
18 2014-02-19 Tom Tromey <tromey@redhat.com>
20 * target.h (struct target_ops) <to_insn_history>: Add argument.
21 * target.c (target_insn_history): Add argument.
22 * record-btrace.c (record_btrace_insn_history): Add 'self'
25 2014-02-19 Tom Tromey <tromey@redhat.com>
27 * target.h (struct target_ops) <to_goto_record>: Add argument.
28 * target.c (target_goto_record): Add argument.
29 * record-full.c (record_full_goto): Add 'self' argument.
30 * record-btrace.c (record_btrace_goto): Add 'self' argument.
32 2014-02-19 Tom Tromey <tromey@redhat.com>
34 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
35 * target.c (target_goto_record_end): Add argument.
36 * record-full.c (record_full_goto_end): Add 'self' argument.
37 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
39 2014-02-19 Tom Tromey <tromey@redhat.com>
41 * target.h (struct target_ops) <to_goto_record_begin>: Add
43 * target.c (target_goto_record_begin): Add argument.
44 * record-full.c (record_full_goto_begin): Add 'self' argument.
45 * record-btrace.c (record_btrace_goto_begin): Add 'self'
48 2014-02-19 Tom Tromey <tromey@redhat.com>
50 * target.h (struct target_ops) <to_record_is_replaying>: Add
52 * target.c (target_record_is_replaying): Add argument.
53 * record-full.c (record_full_is_replaying): Add 'self' argument.
54 * record-btrace.c (record_btrace_is_replaying): Add 'self'
56 (record_btrace_xfer_partial, record_btrace_store_registers)
57 (record_btrace_prepare_to_store, record_btrace_resume)
58 (record_btrace_wait, record_btrace_decr_pc_after_break)
59 (record_btrace_find_new_threads, record_btrace_thread_alive):
62 2014-02-19 Tom Tromey <tromey@redhat.com>
64 * target.h (struct target_ops) <to_delete_record>: Add argument.
65 * target.c (target_delete_record): Add argument.
66 * record-full.c (record_full_delete): Add 'self' argument.
68 2014-02-19 Tom Tromey <tromey@redhat.com>
70 * target.h (struct target_ops) <to_save_record>: Add argument.
71 * target.c (target_save_record): Add argument.
72 * record-full.c (record_full_save): Add 'self' argument.
73 (record_full_save): Add 'self' argument.
75 2014-02-19 Tom Tromey <tromey@redhat.com>
77 * target.h (struct target_ops) <to_info_record>: Add argument.
78 * target.c (target_info_record): Add argument.
79 * record.c (info_record_command): Add argument.
80 * record-full.c (record_full_info): Add 'self' argument.
81 * record-btrace.c (record_btrace_info): Add 'self' argument.
83 2014-02-19 Tom Tromey <tromey@redhat.com>
85 * target.h (struct target_ops) <to_stop_recording>: Add argument.
86 * target.c (target_stop_recording): Add argument.
87 * record.c (record_stop): Add argument.
88 * record-btrace.c (record_btrace_stop_recording): Add 'self'
91 2014-02-19 Tom Tromey <tromey@redhat.com>
93 * target.h (struct target_ops) <to_read_btrace>: Add argument.
94 * target.c (struct target_ops) <to_read_btrace>: Add argument.
95 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
97 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
98 (_initialize_amd64_linux_nat): Use it.
99 * i386-linux-nat.c (i386_linux_read_btrace): New function.
100 (_initialize_i386_linux_nat): Use it.
102 2014-02-19 Tom Tromey <tromey@redhat.com>
104 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
105 * target.c (target_teardown_btrace): Add argument.
106 * remote.c (remote_teardown_btrace): Add 'self' argument.
107 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
109 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
112 2014-02-19 Tom Tromey <tromey@redhat.com>
114 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
115 * target.c (target_disable_btrace): Add argument.
116 * remote.c (remote_disable_btrace): Add 'self' argument.
117 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
119 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
122 2014-02-19 Tom Tromey <tromey@redhat.com>
124 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
125 * target.c (target_enable_btrace): Add argument.
126 * remote.c (remote_enable_btrace): Add 'self' argument.
127 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
129 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
132 2014-02-19 Tom Tromey <tromey@redhat.com>
134 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
135 (target_can_use_agent): Add argument.
136 * target.c (update_current_target): Update.
137 * remote.c (remote_can_use_agent): Add 'self' argument.
138 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
140 2014-02-19 Tom Tromey <tromey@redhat.com>
142 * target.h (struct target_ops) <to_use_agent>: Add argument.
143 (target_use_agent): Add argument.
144 * target.c (update_current_target): Update.
145 * remote.c (remote_use_agent): Add 'self' argument.
146 * inf-child.c (inf_child_use_agent): Add 'self' argument.
148 2014-02-19 Tom Tromey <tromey@redhat.com>
150 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
151 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
152 (target_traceframe_info): Add argument.
153 * target.c (update_current_target): Update.
154 * remote.c (remote_traceframe_info): Add 'self' argument.
155 * ctf.c (ctf_traceframe_info): Add 'self' argument.
157 2014-02-19 Tom Tromey <tromey@redhat.com>
159 * target.h (target_static_tracepoint_markers_by_strid): Add
161 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
163 * target.c (update_current_target): Update.
164 * remote.c (struct target_ops)
165 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
166 * linux-nat.c (struct target_ops)
167 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
169 2014-02-19 Tom Tromey <tromey@redhat.com>
171 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
173 (target_static_tracepoint_marker_at): Add argument.
174 * target.c (update_current_target): Update.
175 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
178 2014-02-19 Tom Tromey <tromey@redhat.com>
180 * target.h (struct target_ops) <to_set_permissions>: Add argument.
181 (target_set_permissions): Add argument.
182 * target.c (update_current_target): Update.
183 * remote.c (remote_set_permissions): Add 'self' argument.
184 (remote_start_remote): Update.
186 2014-02-19 Tom Tromey <tromey@redhat.com>
188 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
189 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
190 (target_get_tib_address): Add argument.
191 * target.c (update_current_target): Update.
192 * remote.c (remote_get_tib_address): Add 'self' argument.
194 2014-02-19 Tom Tromey <tromey@redhat.com>
196 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
197 (target_set_trace_notes): Add argument.
198 * target.c (update_current_target): Update.
199 * remote.c (remote_set_trace_notes): Add 'self' argument.
201 2014-02-19 Tom Tromey <tromey@redhat.com>
203 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
205 (target_set_trace_buffer_size): Add argument.
206 * target.c (update_current_target): Update.
207 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
209 2014-02-19 Tom Tromey <tromey@redhat.com>
211 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
213 (target_set_circular_trace_buffer): Add argument.
214 * target.c (update_current_target): Update.
215 * remote.c (remote_set_circular_trace_buffer): Add 'self'
218 2014-02-19 Tom Tromey <tromey@redhat.com>
220 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
222 (target_set_disconnected_tracing): Add argument.
223 * target.c (update_current_target): Update.
224 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
226 2014-02-19 Tom Tromey <tromey@redhat.com>
228 * target.h (struct target_ops)
229 <to_get_min_fast_tracepoint_insn_len>: Add argument.
230 (target_get_min_fast_tracepoint_insn_len): Add argument.
231 * target.c (update_current_target): Update.
232 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
235 2014-02-19 Tom Tromey <tromey@redhat.com>
237 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
239 (target_get_raw_trace_data): Add argument.
240 * target.c (update_current_target): Update.
241 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target.h (struct target_ops) <to_upload_trace_state_variables>:
247 (target_upload_trace_state_variables): Add argument.
248 * target.c (update_current_target): Update.
249 * remote.c (remote_upload_trace_state_variables): Add 'self'
251 (remote_start_remote): Update.
253 2014-02-19 Tom Tromey <tromey@redhat.com>
255 * target.h (struct target_ops) <to_upload_tracepoints>: Add
257 (target_upload_tracepoints): Add argument.
258 * target.c (update_current_target): Update.
259 * remote.c (remote_upload_tracepoints): Add 'self' argument.
260 (remote_start_remote): Update.
262 2014-02-19 Tom Tromey <tromey@redhat.com>
264 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
265 (target_save_trace_data): Add argument.
266 * target.c (update_current_target): Update.
267 * remote.c (remote_save_trace_data): Add 'self' argument.
269 2014-02-19 Tom Tromey <tromey@redhat.com>
271 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
273 * target.h (struct target_ops)
274 <to_get_trace_state_variable_value>: Add argument.
275 (target_get_trace_state_variable_value): Add argument.
276 * target.c (update_current_target): Update.
277 * remote.c (remote_get_trace_state_variable_value): Add 'self'
279 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
281 2014-02-19 Tom Tromey <tromey@redhat.com>
283 * tracepoint.c (tfile_trace_find): Add 'self' argument.
284 * target.h (struct target_ops) <to_trace_find>: Add argument.
285 (target_trace_find): Add argument.
286 * target.c (update_current_target): Update.
287 * remote.c (remote_trace_find): Add 'self' argument.
288 * ctf.c (ctf_trace_find): Add 'self' argument.
290 2014-02-19 Tom Tromey <tromey@redhat.com>
292 * target.h (struct target_ops) <to_trace_stop>: Add argument.
293 (target_trace_stop): Add argument.
294 * target.c (update_current_target): Update.
295 * remote.c (remote_trace_stop): Add 'self' argument.
297 2014-02-19 Tom Tromey <tromey@redhat.com>
299 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
300 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
302 (target_get_tracepoint_status): Add argument.
303 * target.c (update_current_target): Update.
304 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
306 2014-02-19 Tom Tromey <tromey@redhat.com>
308 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
309 * target.h (struct target_ops) <to_get_trace_status>: Add
311 (target_get_trace_status): Add argument.
312 * target.c (update_current_target): Update.
313 * remote.c (remote_get_trace_status): Add 'self' argument.
314 (remote_start_remote, remote_can_download_tracepoint): Update.
315 * ctf.c (ctf_get_trace_status): Add 'self' argument.
317 2014-02-19 Tom Tromey <tromey@redhat.com>
319 * target.h (struct target_ops) <to_trace_start>: Add argument.
320 (target_trace_start): Add argument.
321 * target.c (update_current_target): Update.
322 * remote.c (remote_trace_start): Add 'self' argument.
324 2014-02-19 Tom Tromey <tromey@redhat.com>
326 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
328 (target_trace_set_readonly_regions): Add argument.
329 * target.c (update_current_target): Update.
330 * remote.c (remote_trace_set_readonly_regions): Add 'self'
333 2014-02-19 Tom Tromey <tromey@redhat.com>
335 * target.h (struct target_ops) <to_disable_tracepoint>: Add
337 (target_disable_tracepoint): Add argument.
338 * target.c (update_current_target): Update.
339 * remote.c (remote_disable_tracepoint): Add 'self' argument.
341 2014-02-19 Tom Tromey <tromey@redhat.com>
343 * target.h (struct target_ops) <to_enable_tracepoint>: Add
345 (target_enable_tracepoint): Add argument.
346 * target.c (update_current_target): Update.
347 * remote.c (remote_enable_tracepoint): Add 'self' argument.
349 2014-02-19 Tom Tromey <tromey@redhat.com>
351 * target.h (struct target_ops) <to_download_trace_state_variable>:
353 (target_download_trace_state_variable): Add argument.
354 * target.c (update_current_target): Update.
355 * remote.c (remote_download_trace_state_variable): Add 'self'
358 2014-02-19 Tom Tromey <tromey@redhat.com>
360 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
362 (target_can_download_tracepoint): Add argument.
363 * target.c (update_current_target): Update.
364 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_download_tracepoint>: Add
370 (target_download_tracepoint): Add argument.
371 * target.c (update_current_target): Update.
372 * remote.c (remote_download_tracepoint): Add 'self' argument.
374 2014-02-19 Tom Tromey <tromey@redhat.com>
376 * target.h (struct target_ops) <to_trace_init>: Add argument.
377 (target_trace_init): Add argument.
378 * target.c (update_current_target): Update.
379 * remote.c (remote_trace_init): Add 'self' argument.
381 2014-02-19 Tom Tromey <tromey@redhat.com>
383 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
384 * target.c (target_fileio_readlink): Add argument.
385 * remote.c (remote_hostio_readlink): Add 'self' argument.
386 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
388 2014-02-19 Tom Tromey <tromey@redhat.com>
390 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
391 * target.c (target_fileio_unlink): Add argument.
392 * remote.c (remote_hostio_unlink): Add 'self' argument.
393 (remote_file_delete): Update.
394 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
396 2014-02-19 Tom Tromey <tromey@redhat.com>
398 * target.h (struct target_ops) <to_fileio_close>: Add argument.
399 * target.c (target_fileio_close): Add argument.
400 * remote.c (remote_hostio_close): Add 'self' argument.
401 (remote_hostio_close_cleanup): Update.
402 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
404 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
406 2014-02-19 Tom Tromey <tromey@redhat.com>
408 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
409 * target.c (target_fileio_pread): Add argument.
410 * remote.c (remote_hostio_pread): Add 'self' argument.
411 (remote_bfd_iovec_pread, remote_file_get): Update.
412 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
414 2014-02-19 Tom Tromey <tromey@redhat.com>
416 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
417 * target.c (target_fileio_pwrite): Add argument.
418 * remote.c (remote_hostio_pwrite): Add 'self' argument.
419 (remote_file_put): Update.
420 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
422 2014-02-19 Tom Tromey <tromey@redhat.com>
424 * target.h (struct target_ops) <to_fileio_open>: Add argument.
425 * target.c (target_fileio_open): Add argument.
426 * remote.c (remote_hostio_open): Add 'self' argument.
427 (remote_bfd_iovec_open): Add 'self' argument.
428 (remote_file_put): Add 'self' argument.
429 (remote_file_get): Add 'self' argument.
430 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
432 2014-02-19 Tom Tromey <tromey@redhat.com>
434 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
436 (target_can_run_breakpoint_commands): Add argument.
437 * target.c (update_current_target): Update.
438 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
440 (remote_insert_breakpoint): Add 'self' argument.
441 (remote_insert_hw_breakpoint): Add 'self' argument.
442 (remote_can_run_breakpoint_commands): Add 'self' argument.
444 2014-02-19 Tom Tromey <tromey@redhat.com>
446 * target.h (struct target_ops)
447 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
448 (target_supports_evaluation_of_breakpoint_conditions): Add
450 * target.c (update_current_target): Update.
451 * remote.c (remote_supports_cond_breakpoints): Add 'self'
453 (remote_insert_breakpoint): Add 'self' argument.
454 (remote_insert_hw_breakpoint): Add 'self' argument.
455 (remote_supports_cond_breakpoints): Add 'self' argument.
457 2014-02-19 Tom Tromey <tromey@redhat.com>
459 * target.h (struct target_ops) <to_supports_string_tracing>: Add
461 (target_supports_string_tracing): Add argument.
462 * target.c (update_current_target): Update.
463 * remote.c (remote_supports_string_tracing): Add 'self' argument.
465 2014-02-19 Tom Tromey <tromey@redhat.com>
467 * target.h (struct target_ops)
468 <to_supports_disable_randomization>: Add argument.
469 * target.c (find_default_supports_disable_randomization): Add
471 (target_supports_disable_randomization): Add argument.
472 (find_default_supports_disable_randomization): Add 'self'
474 * remote.c (extended_remote_supports_disable_randomization): Add
476 (remote_supports_disable_randomization): Add 'self' argument.
477 (extended_remote_create_inferior): Update.
478 * linux-nat.c (linux_nat_supports_disable_randomization): Add
481 2014-02-19 Tom Tromey <tromey@redhat.com>
483 * target.h (struct target_ops)
484 <to_supports_enable_disable_tracepoint>: Add argument.
485 (target_supports_enable_disable_tracepoint): Add argument.
486 * target.c (update_current_target): Update.
487 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
490 2014-02-19 Tom Tromey <tromey@redhat.com>
492 * target.h (struct target_ops) <to_supports_multi_process>: Add
494 (target_supports_multi_process): Add argument.
495 * target.c (update_current_target): Update.
496 * remote.c (remote_supports_multi_process): Add 'self' argument.
497 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
499 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
502 2014-02-19 Tom Tromey <tromey@redhat.com>
504 * target.h (struct target_ops) <to_execution_direction>: Add
506 (target_execution_direction): Add argument.
507 * target.c (default_execution_direction): Add 'self' argument.
508 * record-full.c (record_full_execution_direction): Add 'self'
511 2014-02-19 Tom Tromey <tromey@redhat.com>
513 * target.h (struct target_ops) <to_can_execute_reverse>: Add
515 (target_can_execute_reverse): Add argument.
516 * remote.c (remote_can_execute_reverse): Add 'self' argument.
517 * record-full.c (record_full_can_execute_reverse): Add 'self'
519 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
522 2014-02-19 Tom Tromey <tromey@redhat.com>
524 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
525 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
527 (target_get_ada_task_ptid): Add argument.
528 * target.c (update_current_target): Update.
529 (default_get_ada_task_ptid): Add 'self' argument.
530 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
531 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
532 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
534 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
536 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
538 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
540 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
541 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
544 2014-02-19 Tom Tromey <tromey@redhat.com>
546 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
547 (target_goto_bookmark): Add argument.
548 * target.c (dummy_goto_bookmark): Add 'self' argument.
549 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
551 2014-02-19 Tom Tromey <tromey@redhat.com>
553 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
554 (target_get_bookmark): Add argument.
555 * target.c (dummy_get_bookmark): Add 'self' argument.
556 * record-full.c (record_full_get_bookmark): Add 'self' argument.
558 2014-02-19 Tom Tromey <tromey@redhat.com>
560 * target.h (struct target_ops) <to_make_corefile_notes>: Add
562 (target_make_corefile_notes): Add argument.
563 * target.c (dummy_make_corefile_notes): Add 'self' argument.
564 * procfs.c (procfs_make_note_section): Add 'self' argument.
565 (procfs_make_note_section): Add 'self' argument.
566 (procfs_make_note_section): Add 'self' argument.
567 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
569 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
570 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
571 * exec.c (exec_make_note_section): Add 'self' argument.
572 (exec_make_note_section): Add 'self' argument.
574 2014-02-19 Tom Tromey <tromey@redhat.com>
576 * target.h (struct target_ops) <to_find_memory_regions>: Add
578 (target_find_memory_regions): Add argument.
579 * target.c (dummy_find_memory_regions): Add 'self' argument.
580 * procfs.c (proc_find_memory_regions): Add 'self' argument.
581 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
582 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
583 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
584 * exec. (exec_do_find_memory_regions): New global.
585 (exec_set_find_memory_regions): Rewrite.
586 (exec_find_memory_regions): New function.
587 (init_exec_ops): Use exec_find_memory_regions.
589 2014-02-19 Tom Tromey <tromey@redhat.com>
591 * target.h (struct target_ops) <to_supports_non_stop>: Add
593 * target.c (find_default_supports_non_stop): Add argument.
594 (target_supports_non_stop): Add argument.
595 (find_default_supports_non_stop): Add 'self' argument.
596 * remote.c (remote_supports_non_stop): Add 'self' argument.
597 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
599 2014-02-19 Tom Tromey <tromey@redhat.com>
601 * target.h (struct target_ops) <to_log_command>: Add argument.
602 (target_log_command): Add argument.
603 * serial.h (serial_log_command): Add 'self' argument.
604 * serial.c (serial_log_command): Add 'self' argument.
606 2014-02-19 Tom Tromey <tromey@redhat.com>
608 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
609 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
611 (target_pid_to_exec_file): Add argument.
612 * target.c (debug_to_pid_to_exec_file): Add argument.
613 (update_current_target): Update.
614 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
615 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
616 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
617 (linux_handle_extended_wait): Update.
618 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
619 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
620 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
621 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
623 2014-02-19 Tom Tromey <tromey@redhat.com>
625 * target.h (struct target_ops) <to_rcmd>: Add argument.
626 (target_rcmd): Add argument.
627 * target.c (debug_to_rcmd): Add argument.
628 (update_current_target, do_monitor_command): Update.
629 * remote.c (remote_rcmd): Add 'self' argument.
630 * monitor.c (monitor_rcmd): Add 'self' argument.
632 2014-02-19 Tom Tromey <tromey@redhat.com>
634 * windows-nat.c (windows_stop): Add 'self' argument.
635 * target.h (struct target_ops) <to_stop>: Add argument.
636 * target.c (target_stop): Add argument.
637 (debug_to_stop): Add argument.
638 (update_current_target): Update.
639 * remote.c (remote_stop): Add 'self' argument.
640 * remote-sim.c (gdbsim_stop): Add 'self' argument.
641 (gdbsim_cntrl_c): Update.
642 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
643 * procfs.c (procfs_stop): Add 'self' argument.
644 * nto-procfs.c (procfs_stop): Add 'self' argument.
645 * monitor.c (monitor_stop): Add 'self' argument.
646 (monitor_open): Update.
647 * linux-nat.c (linux_nat_stop): Add argument.
648 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
649 * gnu-nat.c (gnu_stop): Add 'self' argument.
650 * darwin-nat.c (darwin_stop): Add 'self' argument.
652 2014-02-19 Tom Tromey <tromey@redhat.com>
654 * target.h (struct target_ops) <to_thread_name>: Add argument.
655 * target.c (target_thread_name): Add argument.
656 (update_current_target): Update.
657 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
659 2014-02-19 Tom Tromey <tromey@redhat.com>
661 * target.h (struct target_ops) <to_extra_thread_info>: Add
663 (target_extra_thread_info): Add argument.
664 * target.c (update_current_target): Update.
665 * remote.c (remote_threads_extra_info): Add 'self' argument.
666 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
668 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
669 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
670 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
672 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
674 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
676 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
679 2014-02-19 Tom Tromey <tromey@redhat.com>
681 * target.h (struct target_ops) <to_program_signals>: Add argument.
682 * target.c (target_program_signals): Add argument.
683 * remote.c (remote_program_signals): Add 'self' argument.
685 2014-02-19 Tom Tromey <tromey@redhat.com>
687 * target.h (struct target_ops) <to_pass_signals>: Add argument.
688 * target.c (target_pass_signals): Add argument.
689 * remote.c (remote_pass_signals): Add 'self' argument.
690 (remote_start_remote): Update.
691 * procfs.c (procfs_pass_signals): Add 'self' argument.
692 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
693 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
694 (linux_nat_create_inferior, linux_nat_attach): Update.
696 2014-02-19 Tom Tromey <tromey@redhat.com>
698 * windows-nat.c (windows_can_run): Add 'self' argument.
699 * target.h (struct target_ops) <to_can_run>: Add argument.
700 (target_can_run): Add argument.
701 * target.c (debug_to_can_run): Add argument.
702 (update_current_target): Update.
703 * nto-procfs.c (procfs_can_run): Add 'self' argument.
704 * inf-child.c (inf_child_can_run): Add 'self' argument.
705 * go32-nat.c (go32_can_run): Add 'self' argument.
707 2014-02-19 Tom Tromey <tromey@redhat.com>
709 * target.h (struct target_ops) <to_has_exited>: Add argument.
710 (target_has_exited): Add argument.
711 * target.c (debug_to_has_exited): Add argument.
712 (update_current_target): Update.
714 2014-02-19 Tom Tromey <tromey@redhat.com>
716 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
718 (target_set_syscall_catchpoint): Add argument.
719 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
721 * target.c (update_current_target): Update.
723 2014-02-19 Tom Tromey <tromey@redhat.com>
725 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
727 (target_remove_exec_catchpoint): Add argument.
728 * target.c (debug_to_remove_exec_catchpoint): Add argument.
729 (update_current_target): Update.
730 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
733 2014-02-19 Tom Tromey <tromey@redhat.com>
735 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
737 (target_insert_exec_catchpoint): Add argument.
738 * target.c (debug_to_insert_exec_catchpoint): Add argument.
739 (update_current_target): Update.
740 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
743 2014-02-19 Tom Tromey <tromey@redhat.com>
745 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
747 (target_remove_vfork_catchpoint): Add argument.
748 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
749 (update_current_target): Update.
750 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
753 2014-02-19 Tom Tromey <tromey@redhat.com>
755 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
757 (target_insert_vfork_catchpoint): Add argument.
758 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
759 (update_current_target): Update.
760 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
763 2014-02-19 Tom Tromey <tromey@redhat.com>
765 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
767 (target_remove_fork_catchpoint): Add argument.
768 * target.c (debug_to_remove_fork_catchpoint): Add argument.
769 (update_current_target): Update.
770 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
773 2014-02-19 Tom Tromey <tromey@redhat.com>
775 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
777 (target_insert_fork_catchpoint): Add argument.
778 * target.c (debug_to_insert_fork_catchpoint): Add argument.
779 (update_current_target): Update.
780 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
783 2014-02-19 Tom Tromey <tromey@redhat.com>
785 * target.h (struct target_ops) <to_post_startup_inferior>: Add
787 (target_post_startup_inferior): Add argument.
788 * target.c (debug_to_post_startup_inferior): Add argument.
789 (update_current_target): Update.
790 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
792 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
794 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
796 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
798 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
800 (super_post_startup_inferior): Likewise.
801 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
803 (super_post_startup_inferior): Likewise.
804 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
806 (super_post_startup_inferior): Likewise.
808 2014-02-19 Tom Tromey <tromey@redhat.com>
810 * target.h (struct target_ops) <to_load>: Add argument.
811 * target.c (target_load): Add argument.
812 (debug_to_load): Add argument.
813 (update_current_target): Update.
814 * remote.c (remote_load): Add 'self' argument.
815 * remote-sim.c (gdbsim_load): Add 'self' argument.
816 * remote-mips.c (mips_load): Add 'self' argument.
817 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
818 * monitor.c (monitor_load): Add 'self' argument.
819 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
821 2014-02-19 Tom Tromey <tromey@redhat.com>
823 * target.h (struct target_ops) <to_terminal_info>: Add argument.
824 (target_terminal_info): Add argument.
825 * target.c (debug_to_terminal_info): Add argument.
826 (default_terminal_info): Likewise.
827 * inflow.c (child_terminal_info): Add 'self' argument.
828 * inferior.h (child_terminal_info): Add 'self' argument.
829 * go32-nat.c (go32_terminal_info): Add 'self' argument.
831 2014-02-19 Tom Tromey <tromey@redhat.com>
833 * target.h (struct target_ops) <to_terminal_save_ours>: Add
835 (target_terminal_save_ours): Add argument.
836 * target.c (debug_to_terminal_save_ours): Add argument.
837 (update_current_target): Update.
838 * inflow.c (terminal_save_ours): Add 'self' argument.
839 * inferior.h (terminal_save_ours): Add 'self' argument.
841 2014-02-19 Tom Tromey <tromey@redhat.com>
843 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
844 (target_terminal_ours): Add argument.
845 * target.c (debug_to_terminal_ours): Add argument.
846 (update_current_target): Update.
847 * remote.c (remote_terminal_ours): Add 'self' argument.
848 (remote_close): Update.
849 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
850 * inflow.c (terminal_ours): Add 'self' argument.
851 * inferior.h (terminal_ours): Add 'self' argument.
852 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
854 2014-02-19 Pedro Alves <palves@redhat.com>
855 Tom Tromey <tromey@redhat.com>
857 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
859 (target_terminal_ours_for_output): Add argument.
860 * target.c (debug_to_terminal_ours_for_output): Add argument.
861 (update_current_target): Update.
862 * inflow.c (terminal_ours_for_output): Add 'self' argument.
863 * inferior.h (terminal_ours_for_output): Add 'self' argument.
864 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
866 2014-02-19 Tom Tromey <tromey@redhat.com>
868 * target.h (struct target_ops) <to_terminal_inferior>: Add
870 * target.c (target_terminal_inferior): Add argument.
871 (update_current_target): Update.
872 * remote.c (remote_terminal_inferior): Add 'self' argument.
873 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
874 * inflow.c (terminal_inferior): Add 'self' argument.
875 * inferior.h (terminal_inferior): Add 'self' argument.
876 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
877 (go32_terminal_inferior): Add 'self' argument.
879 2014-02-19 Tom Tromey <tromey@redhat.com>
881 * target.h (struct target_ops) <to_terminal_init>: Add argument.
882 (target_terminal_init): Add argument.
883 * target.c (debug_to_terminal_init): Add argument.
884 (update_current_target): Update.
885 * inflow.c (terminal_init_inferior): Add 'self' argument.
886 * inferior.h (terminal_init_inferior): Add 'self' argument.
887 * go32-nat.c (go32_terminal_init): Add 'self' argument.
888 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
890 2014-02-19 Tom Tromey <tromey@redhat.com>
892 * target.h (struct target_ops)
893 <to_can_accel_watchpoint_condition>: Add argument.
894 (target_can_accel_watchpoint_condition): Add argument.
895 * target.c (debug_to_can_accel_watchpoint_condition): Add
897 (update_current_target): Update.
898 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
901 2014-02-19 Tom Tromey <tromey@redhat.com>
903 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
905 (target_region_ok_for_hw_watchpoint): Add argument.
906 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
907 (default_region_ok_for_hw_watchpoint): Add argument.
908 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
909 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
911 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
913 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
915 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
917 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
919 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
921 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
922 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
924 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
927 2014-02-19 Tom Tromey <tromey@redhat.com>
929 * target.h (struct target_ops) <to_insert_watchpoint>: Add
931 (target_insert_watchpoint): Add argument.
932 * target.c (debug_to_insert_watchpoint): Add argument.
933 (update_current_target): Update.
934 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
935 * remote.c (remote_insert_watchpoint): Add 'self' argument.
936 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
937 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
938 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
939 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
941 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
942 (procfs_insert_hw_watchpoint): Add 'self' argument.
943 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
945 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
947 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
949 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
950 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
952 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
955 2014-02-19 Tom Tromey <tromey@redhat.com>
957 * target.h (struct target_ops) <to_remove_watchpoint>: Add
959 (target_remove_watchpoint): Add argument.
960 * target.c (debug_to_remove_watchpoint): Add argument.
961 (update_current_target): Update.
962 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
963 * remote.c (remote_remove_watchpoint): Add 'self' argument.
964 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
965 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
966 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
967 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
969 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
970 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
972 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
974 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
976 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
977 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
979 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
982 2014-02-19 Tom Tromey <tromey@redhat.com>
984 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
986 (target_remove_hw_breakpoint): Add argument.
987 * target.c (debug_to_remove_hw_breakpoint): Add argument.
988 (update_current_target): Update.
989 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
990 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
992 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
993 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
995 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
998 2014-02-19 Tom Tromey <tromey@redhat.com>
1000 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1002 (target_insert_hw_breakpoint): Add argument.
1003 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1004 (update_current_target): Update.
1005 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1006 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1008 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1009 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1010 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1012 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1015 2014-02-19 Tom Tromey <tromey@redhat.com>
1017 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1019 (target_can_use_hardware_watchpoint): Add argument.
1020 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1021 (update_current_target): Update.
1022 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1024 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1026 * remote.c (remote_check_watch_resources): Add 'self' argument.
1027 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1028 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1030 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1031 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1033 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1035 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1037 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1039 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1041 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1043 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1044 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1046 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1049 2014-02-19 Tom Tromey <tromey@redhat.com>
1051 * target.h (struct target_ops) <to_post_attach>: Add argument.
1052 (target_post_attach): Add argument.
1053 * target.c (debug_to_post_attach): Add argument.
1054 (update_current_target): Update.
1055 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1056 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1057 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1058 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1059 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1061 2014-02-19 Tom Tromey <tromey@redhat.com>
1063 * windows-nat.c (windows_close): Add 'self' argument.
1064 * tracepoint.c (tfile_close): Add 'self' argument.
1065 * target.h (struct target_ops) <to_close>: Add argument.
1066 * target.c (target_close): Add argument.
1067 (update_current_target): Update.
1068 * remote.c (remote_close): Add 'self' argument.
1069 * remote-sim.c (gdbsim_close): Add 'self' argument.
1070 * remote-mips.c (mips_close): Add 'self' argument.
1071 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1072 * record-full.c (record_full_close): Add 'self' argument.
1073 * record-btrace.c (record_btrace_close): Add 'self' argument.
1074 * monitor.h (monitor_close): Add 'self' argument.
1075 * monitor.c (monitor_close): Add 'self' argument.
1076 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1077 * linux-nat.c (linux_nat_close): Add argument.
1078 * go32-nat.c (go32_close): Add 'self' argument.
1079 * exec.c (exec_close_1): Add 'self' argument.
1080 * ctf.c (ctf_close): Add 'self' argument.
1081 * corelow.c (core_close): Add 'self' argument.
1082 (core_close_cleanup): Update.
1083 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1084 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1086 2014-02-19 Tom Tromey <tromey@redhat.com>
1088 * remote.c (remote_load): New function.
1089 (init_remote_ops): Use it.
1091 2014-02-19 Tom Tromey <tromey@redhat.com>
1093 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1095 * common/linux-btrace.h (linux_supports_btrace): Update.
1096 * remote.c (remote_supports_btrace): Add "self" argument.
1097 * target-delegates.c: Rebuild.
1098 * target.c (target_supports_btrace): Remove.
1099 * target.h (struct target_ops) <to_supports_btrace>: Add
1100 target_ops argument.
1101 (target_supports_btrace): New define.
1103 2014-02-19 Tom Tromey <tromey@redhat.com>
1105 * record-full.c (record_full_beneath_to_resume_ops)
1106 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1107 (record_full_beneath_to_wait)
1108 (record_full_beneath_to_store_registers_ops)
1109 (record_full_beneath_to_store_registers)
1110 (record_full_beneath_to_xfer_partial_ops)
1111 (record_full_beneath_to_xfer_partial)
1112 (record_full_beneath_to_insert_breakpoint_ops)
1113 (record_full_beneath_to_insert_breakpoint)
1114 (record_full_beneath_to_remove_breakpoint_ops)
1115 (record_full_beneath_to_remove_breakpoint)
1116 (record_full_beneath_to_stopped_by_watchpoint)
1117 (record_full_beneath_to_stopped_data_address)
1118 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1119 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1120 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1121 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1122 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1123 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1124 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1125 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1126 (record_full_resume, record_full_wait_1)
1127 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1128 (record_full_store_registers, record_full_xfer_partial)
1129 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1130 (record_full_async, record_full_core_xfer_partial): Use target
1132 * target-delegates.c: Rebuild.
1133 * target.c (current_xfer_partial): Remove.
1134 (update_current_target): Do not INHERIT or de_fault
1135 to_insert_breakpoint, to_remove_breakpoint,
1136 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1137 to_is_async_p, to_async. Do not set to_xfer_partial field.
1138 (default_xfer_partial): Simplify.
1139 (current_xfer_partial): Remove.
1140 (target_wait, target_resume): Simplify.
1141 (find_default_can_async_p, find_default_is_async_p): Update.
1142 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1143 to_xfer_partial, to_stopped_by_watchpoint,
1144 to_stopped_data_address.
1145 (target_store_registers): Simplify.
1146 (forward_target_remove_breakpoint)
1147 (forward_target_insert_breakpoint): Remove.
1148 (target_remove_breakpoint, target_insert_breakpoint)
1149 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1150 * target.h (struct target_ops) <to_resume, to_wait,
1151 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1152 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1153 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1155 (forward_target_remove_breakpoint)
1156 (forward_target_insert_breakpoint): Remove.
1157 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1159 (record_btrace_insert_breakpoint): Delegate directly.
1161 2014-02-19 Tom Tromey <tromey@redhat.com>
1164 * target-delegates.c: New file.
1165 * target.c: Include target-delegates.c.
1166 (init_dummy_target): Call install_dummy_methods.
1167 (complete_target_initialization): Call install_delegators.
1168 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1169 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1170 * make-target-delegates: New file.
1172 2014-02-19 Tom Tromey <tromey@redhat.com>
1174 * record.c (find_record_target): Use find_target_at.
1175 * target.c (find_target_at): New function.
1176 * target.h (find_target_at): Declare.
1178 2014-02-19 Tom Tromey <tromey@redhat.com>
1180 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1182 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1184 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1185 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1187 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1189 * linux-nat.c (save_sigtrap): Update.
1190 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1191 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1192 (linux_nat_close): Update.
1193 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1195 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1197 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1198 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1199 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1200 (tmp_to_async): Add 'ops' argument.
1201 (record_full_stopped_by_watchpoint, record_full_async)
1202 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1204 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1205 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1206 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1207 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1208 (remote_is_async_p, remote_async): Add 'ops' argument.
1209 (remote_stopped_data_address): Update.
1210 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1211 * target.c (update_current_target)
1212 (find_default_can_async_p, find_default_is_async_p): Update.
1213 (init_dummy_target): Update.
1214 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1215 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1216 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1217 (target_can_async_p, target_is_async_p, target_async)
1218 (target_stopped_by_watchpoint): Update.
1220 2014-02-19 Yao Qi <yao@codesourcery.com>
1223 * gdbarch.sh: Remove startup_gdbarch.
1224 * gdbarch.c: Regenerated.
1225 * gdbarch.h: Likewise.
1227 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1229 * rl78-tdep.c (rl78_g10_register_name): New function.
1230 (rl78_return_value): Add g10 support.
1231 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1234 2014-02-17 Doug Evans <xdje42@gmail.com>
1236 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1237 (SUBDIR_GUILE_SRCS): Ditto.
1238 (scm-gsmob.o): Ditto.
1240 2014-02-17 Yao Qi <yao@codesourcery.com>
1242 * gnu-nat.c (ILL_RPC): Declare defined function.
1244 2014-02-17 Yao Qi <yao@codesourcery.com>
1246 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1247 mach_msg_type_number_t.
1248 (gnu_write_inferior): Likewise.
1250 2014-02-17 Yao Qi <yao@codesourcery.com>
1252 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1254 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1255 (inf_validate_procs, inf_signal): Likewise.
1256 (S_exception_raise_request): Likewise.
1257 (do_mach_notify_dead_name): Likewise.
1258 (steal_exc_port): Likewise.
1259 (gnu_read_inferior): Change 'copy_count''s type to
1260 mach_msg_type_number_t.
1261 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1264 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1266 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1267 flag. Adjust all users; in particular...
1268 (gnu_wait): ..., don't decrement its value in here...
1269 (gnu_create_inferior): ..., and instead set the flag in here,
1270 around the startup_inferior call, and call that one with
1271 START_INFERIOR_TRAPS_EXPECTED.
1273 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1274 (ILL_RPC): ... new macro.
1275 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1276 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1277 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1278 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1279 functions with ILL_RPC macro.
1280 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1281 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1282 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1283 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1284 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1285 (S_proc_getlogin_reply, S_proc_getsid_reply)
1286 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1287 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1288 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1289 (S_proc_getnports_reply, S_proc_is_important_reply)
1290 (S_proc_get_code_reply): New stub functions, generated with
1293 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1294 collected the type check structures.
1296 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1298 2014-02-14 Doug Evans <dje@google.com>
1300 * target.c (target_write_partial): Fix result type.
1302 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1304 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1305 the proper offsets to access fpregset_t.
1307 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1309 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1310 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1311 * h8300-tdep.c (setmachinelist): Remove global.
1312 * hppa-tdep.c (hppa_sigtramp): Remove global.
1313 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1314 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1315 * ravenscar-thread.c (update_target_observer): Remove global.
1316 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1318 2014-02-12 Tom Tromey <tromey@redhat.com>
1320 * common/rsp-low.c: Update comments.
1321 * common/rsp-low.h: Update comments.
1323 2014-02-12 Tom Tromey <tromey@redhat.com>
1325 * common/rsp-low.c (convert_ascii_to_int): Remove.
1326 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1328 2014-02-12 Tom Tromey <tromey@redhat.com>
1330 * common/rsp-low.h (unhexify): Don't declare.
1331 * common/rsp-low.c (unhexify): Remove.
1333 2014-02-12 Tom Tromey <tromey@redhat.com>
1335 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1336 * common/rsp-low.c (convert_int_to_ascii): Remove.
1338 2014-02-12 Tom Tromey <tromey@redhat.com>
1340 * common/rsp-low.h (hexify): Don't declare.
1341 * common/rsp-low.c (hexify): Remove.
1343 2014-02-12 Tom Tromey <tromey@redhat.com>
1345 * common/rsp-low.c (hexify): Never take strlen of argument.
1347 2014-02-12 Tom Tromey <tromey@redhat.com>
1349 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1350 * remote.c (extended_remote_run, remote_rcmd)
1351 (remote_download_trace_state_variable, remote_save_trace_data)
1352 (remote_set_trace_notes): Update.
1353 * tracepoint.c (encode_source_string, tfile_write_status)
1354 (tfile_write_uploaded_tsv): Update.
1356 2014-02-12 Tom Tromey <tromey@redhat.com>
1358 * tracepoint.c: Include rsp-low.h.
1359 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1360 * remote.c: Include rsp-low.h.
1361 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1362 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1363 (remote_unescape_input): Move to common/rsp-low.c.
1364 * common/rsp-low.h: New file.
1365 * common/rsp-low.c: New file.
1366 * Makefile.in (SFILES): Add common/rsp-low.c.
1367 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1368 (COMMON_OBS): Add rsp-low.o.
1369 (rsp-low.o): New target.
1371 2014-02-12 Tom Tromey <tromey@redhat.com>
1373 * utils.h: Include print-utils.h.
1374 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1375 (int_string, core_addr_to_string, core_addr_to_string_nz)
1376 (hex_string, hex_string_custom): Don't declare.
1377 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1378 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1379 (hex_string_custom, int_string, core_addr_to_string)
1380 (core_addr_to_string_nz, host_address_to_string): Move to
1381 common/print-utils.c.
1382 * common/print-utils.h: New file.
1383 * common/print-utils.c: New file
1384 * Makefile.in (SFILES): Add common/print-utils.c.
1385 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1386 (COMMON_OBS): Add print-utils.o.
1387 (print-utils.o): New target.
1389 2014-02-12 Tom Tromey <tromey@redhat.com>
1391 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1393 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1395 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1397 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1399 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1400 if a PT_IO ptrace request returns sucessfully but indicates that 0
1401 bytes were transferred.
1403 2014-02-12 Pedro Alves <palves@redhat.com>
1404 Kevin Buettner <kevinb@redhat.com>
1406 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1407 TYPE_INSTANCE_FLAG_CODE_SPACE.
1409 2014-02-12 Pedro Alves <palves@redhat.com>
1411 * h8300-tdep.c (pseudo_from_raw_register)
1412 (raw_from_pseudo_register): New functions.
1413 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1416 2014-02-12 Pedro Alves <palves@redhat.com>
1418 * h8300-tdep.c (h8300_register_sim_regno): New function.
1419 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1420 gdbarch_register_sim_regno hook.
1422 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1424 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1426 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1428 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1430 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1432 * obsd-tdep.h (obsd_init_abi): New prototype.
1433 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1434 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1435 (obsd_init_abi): New functions.
1436 * i386obsd-tdep.c: Include "obsd-tdep.h".
1437 (i386obsd_init_abi): Call obsd_init_abi.
1438 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1439 (amd64obsd_init_abi): Call obsd_init_abi.
1440 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1441 obsd-tdep.c to gdb_target_obs.
1443 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1445 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1446 double float arguments to 16-byte in the argument slots.
1448 2014-02-11 Doug Evans <xdje42@gmail.com>
1450 * configure.ac: Don't crash if pkg-config is not found and guile
1451 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1453 * configure: Regenerate.
1455 2014-02-11 Yao Qi <yao@codesourcery.com>
1457 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1458 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1459 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1460 * gnu-nat.c (gnu_xfer_memory): Likewise.
1461 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1462 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1463 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1464 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1466 2014-02-11 Yao Qi <yao@codesourcery.com>
1468 * target.h (enum target_xfer_error): Rename to ...
1469 (enum target_xfer_status): ... it. New. All users updated.
1470 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1472 (TARGET_XFER_STATUS_ERROR_P): New macro.
1473 (target_xfer_error_to_string): Remove declaration.
1474 (target_xfer_status_to_string): Declare.
1475 (target_xfer_partial_ftype): Adjust it.
1476 (struct target_ops) <to_xfer_partial>: Return
1477 target_xfer_status. Add argument xfered_len. Update
1479 * target.c (target_xfer_error_to_string): Rename to ...
1480 (target_xfer_status_to_string): ... it. New. All callers
1482 (target_read_live_memory): Likewise. Call target_xfer_partial
1483 instead of target_read.
1484 (memory_xfer_live_readonly_partial): Return
1485 target_xfer_status. Add argument xfered_len.
1486 (raw_memory_xfer_partial): Likewise.
1487 (memory_xfer_partial_1): Likewise.
1488 (memory_xfer_partial): Likewise.
1489 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1490 properly. Update debug message.
1491 (default_xfer_partial, current_xfer_partial): Likewise.
1492 (target_write_partial): Likewise.
1493 (target_read_partial): Likewise. All callers updated.
1494 (read_whatever_is_readable): Likewise.
1495 (target_write_with_progress): Likewise.
1496 (target_read_alloc_1): Likewise.
1498 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1499 * auxv.c (procfs_xfer_auxv): Likewise.
1500 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1501 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1502 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1503 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1504 * corefile.c (read_memory): Adjust.
1505 * corelow.c (core_xfer_partial): Likewise.
1506 * ctf.c (ctf_xfer_partial): Likewise.
1507 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1509 (darwin_xfer_partial): Likewise.
1510 * exec.c (section_table_xfer_memory_partial): Likewise. All
1512 (exec_xfer_partial): Likewise.
1513 * exec.h (section_table_xfer_memory_partial): Update
1515 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1517 (gnu_xfer_partial): Likewise.
1518 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1519 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1520 (ia64_hpux_xfer_solib_got): Likewise.
1521 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1522 type of 'partial_len' to ULONGEST.
1523 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1524 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1525 (linux_nat_xfer_partial): Likewise.
1526 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1527 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1528 * monitor.c (monitor_xfer_memory): Likewise.
1529 (monitor_xfer_partial): Likewise.
1530 * procfs.c (procfs_xfer_partial): Likewise.
1531 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1532 * record-full.c (record_full_xfer_partial): Likewise.
1533 (record_full_core_xfer_partial): Likewise.
1534 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1535 (gdbsim_xfer_partial): Likewise.
1536 * remote.c (remote_write_bytes_aux): Likewise. All callers
1538 (remote_write_bytes, remote_read_bytes): Likewise. All
1540 (remote_flash_erase): Likewise. All callers updated.
1541 (remote_write_qxfer): Likewise. All callers updated.
1542 (remote_read_qxfer): Likewise. All callers updated.
1543 (remote_xfer_partial): Likewise.
1544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1545 (rs6000_xfer_shared_libraries): Likewise.
1546 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1547 (sol_thread_xfer_partial): Likewise.
1548 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1549 (sparc_xfer_partial): Likewise.
1550 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1552 (spu_xfer_partial): Likewise.
1553 * spu-multiarch.c (spu_xfer_partial): Likewise.
1554 * tracepoint.c (tfile_xfer_partial): Likewise.
1555 * windows-nat.c (windows_xfer_memory): Likewise.
1556 (windows_xfer_shared_libraries): Likewise.
1557 (windows_xfer_partial): Likewise.
1558 * valprint.c: Replace 'target_xfer_error' with
1559 'target_xfer_status' in comments.
1561 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1563 Checked in by Joel Brobecker <brobecker@adacore.com>.
1564 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1566 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1568 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1569 function parameters.
1571 2014-02-10 Will Newton <will.newton@linaro.org>
1573 * elfread.c (elf_rel_plt_read): Look for a .got section if
1574 looking up .got.plt fails.
1575 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1576 on address passed to elf_gnu_ifunc_record_cache.
1577 (elf_gnu_ifunc_resolve_addr): Likewise.
1578 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1580 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1582 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1583 (X_RETTURN): New macro.
1584 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1586 * sparc64-tdep.c (sparc64_init_abi): Hook
1587 sparc_in_function_epilogue_p.
1589 2014-02-10 Gary Benson <gbenson@redhat.com>
1591 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1592 Rename name_matcher to symbol_matcher.
1594 2014-02-10 Gary Benson <gbenson@redhat.com>
1596 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1597 Use expand_symtabs_file_matcher_ftype and
1598 expand_symtabs_symbol_matcher_ftype.
1600 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1602 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1603 (struct ada_symbol_cache): New.
1604 (ada_free_symbol_cache): Forward declare.
1605 (struct ada_pspace_data): New.
1606 (ada_pspace_data_handle): New static global.
1607 (get_ada_pspace_data, ada_pspace_data_cleanup)
1608 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1609 (cache_space, cache): Delete, now folded inside struct
1611 (ada_get_symbol_cache): New function.
1612 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1614 (_initialize_ada_language): Remove initialization of cache_space.
1615 Move call to observer_attach_inferior_exit up, grouping it
1616 with the other observer registrations inside this function.
1617 Rename command to be more general. Add call to
1618 register_program_space_data_with_cleanup.
1620 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1622 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1623 ada_new_objfile_observer.
1624 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1625 (_initialize_tasks): Update uses of ada_new_objfile_observer
1626 and ada_tasks_normal_stop_observer.
1628 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1630 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1631 returned by the 'Length attribute to integer.
1633 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1635 * ada-lang.c (_initialize_ada_language): Initialize
1636 cache_space obstack.
1638 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1640 * ada-lang.c (HASH_SIZE): New macro.
1641 (struct cache_entry): New type.
1642 (cache_space, cache): New static globals.
1643 (ada_clear_symbol_cache, find_entry): New functions.
1644 (lookup_cached_symbol, cache_symbol): Implement.
1645 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1646 (_initialize_ada_language): Attach ada_new_objfile_observer
1647 and ada_free_objfile_observer.
1649 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1651 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1652 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1653 struct block * parameter.
1654 (ada_lookup_symbol_list_worker): Constify local variable "block".
1655 Remove cast which is no longer necessary.
1657 2014-02-10 Doug Evans <xdje42@gmail.com>
1659 Add Guile as an extension language.
1660 * NEWS: Mention Guile scripting.
1661 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1662 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1663 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1664 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1665 (CLIBS): Add GUILE_LIBS.
1666 (install-guile): New rule.
1667 (guile.o): New rule.
1668 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1669 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1670 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1671 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1672 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1673 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1674 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1675 * configure.ac: New option --with-guile.
1676 * configure: Regenerate.
1677 * config.in: Regenerate.
1678 * auto-load.c: Remove #include "python/python.h". Add #include
1679 "gdb/section-scripts.h".
1680 (source_section_scripts): Handle Guile scripts.
1681 (_initialize_auto_load): Add name of Guile objfile script to
1682 scripts-directory help text.
1683 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1684 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1685 (struct breakpoint): New member scm_bp_object.
1686 * defs.h (enum command_control_type): New value guile_control.
1687 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1689 (show_user): Update comment.
1690 (_initialize_cli_cmds): Update help text for "show user". Update help
1691 text for max-user-call-depth.
1692 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1694 (multi_line_command_p): Add guile_control.
1695 (print_command_lines): Handle guile_control.
1696 (execute_control_command, recurse_read_control_structure): Ditto.
1697 (process_next_line): Recognize "guile" commands.
1698 * disasm.c (gdb_disassemble_info): Make non-static.
1699 * disasm.h: #include "dis-asm.h".
1700 (struct gdbarch): Add forward decl.
1701 (gdb_disassemble_info): Declare.
1702 * extension.c: #include "guile/guile.h".
1703 (extension_languages): Add guile.
1704 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1705 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1706 * gdbtypes.c (get_unsigned_type_max): New function.
1707 (get_signed_type_minmax): New function.
1708 * gdbtypes.h (get_unsigned_type_max): Declare.
1709 (get_signed_type_minmax): Declare.
1710 * guile/README: New file.
1711 * guile/guile-internal.h: New file.
1712 * guile/guile.c: New file.
1713 * guile/guile.h: New file.
1714 * guile/scm-arch.c: New file.
1715 * guile/scm-auto-load.c: New file.
1716 * guile/scm-block.c: New file.
1717 * guile/scm-breakpoint.c: New file.
1718 * guile/scm-disasm.c: New file.
1719 * guile/scm-exception.c: New file.
1720 * guile/scm-frame.c: New file.
1721 * guile/scm-gsmob.c: New file.
1722 * guile/scm-iterator.c: New file.
1723 * guile/scm-lazy-string.c: New file.
1724 * guile/scm-math.c: New file.
1725 * guile/scm-objfile.c: New file.
1726 * guile/scm-ports.c: New file.
1727 * guile/scm-pretty-print.c: New file.
1728 * guile/scm-safe-call.c: New file.
1729 * guile/scm-string.c: New file.
1730 * guile/scm-symbol.c: New file.
1731 * guile/scm-symtab.c: New file.
1732 * guile/scm-type.c: New file.
1733 * guile/scm-utils.c: New file.
1734 * guile/scm-value.c: New file.
1735 * guile/lib/gdb.scm: New file.
1736 * guile/lib/gdb/boot.scm: New file.
1737 * guile/lib/gdb/experimental.scm: New file.
1738 * guile/lib/gdb/init.scm: New file.
1739 * guile/lib/gdb/iterator.scm: New file.
1740 * guile/lib/gdb/printing.scm: New file.
1741 * guile/lib/gdb/types.scm: New file.
1742 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1743 (VPATH): Add $(GUILE_SRCDIR).
1744 (GUILE_DIR): New variable.
1745 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1746 (all): Add stamp-guile dependency.
1747 (stamp-guile): New rule.
1748 (clean-guile, install-guile, uninstall-guile): New rules.
1749 (install-only): Add install-guile dependency.
1750 (uninstall): Add uninstall-guile dependency.
1751 (clean): Add clean-guile dependency.
1753 2014-02-09 Doug Evans <xdje42@gmail.com>
1755 Revert this patch (which I approved, mea culpa).
1757 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1759 * Makefile.in (all-lib): Remove.
1760 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1762 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1764 Fix Python stack corruption.
1765 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1768 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1770 * Makefile.in (all-lib): Remove.
1771 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1773 2014-02-07 Doug Evans <dje@google.com>
1775 * extension-priv.h (extension_language_script_ops): Add comment.
1776 (extension_language_ops): Add comment.
1777 (active_ext_lang_state): Fix typo in comment.
1779 2014-02-07 Pedro Alves <palves@redhat.com>
1781 * infrun.c (handle_signal_stop) <signal arrives while stepping
1782 over a breakpoint>: Switch back to the stepping thread.
1784 2014-02-07 Yao Qi <yao@codesourcery.com>
1786 * target.c (target_xfer_partial): Return zero if LEN is zero.
1788 2014-02-07 Yao Qi <yao@codesourcery.com>
1790 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1791 (ld_so_xfer_auxv): Likewise.
1792 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1793 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1794 * corelow.c (core_xfer_partial): Likewise.
1795 * ctf.c (ctf_xfer_partial): Likewise.
1796 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1797 (darwin_xfer_partial): Likewise.
1798 * exec.c (exec_xfer_partial): Likewise.
1799 * gnu-nat.c (gnu_xfer_partial): Likewise.
1800 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1801 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1802 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1803 * linux-nat.c (linux_xfer_siginfo): Likewise.
1804 (linux_proc_xfer_spu): Likewise.
1805 * procfs.c (procfs_xfer_partial): Likewise.
1806 * record-full.c (record_full_xfer_partial): Likewise.
1807 (record_full_core_xfer_partial): Likewise.
1808 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1809 * remote.c (remote_write_qxfer): Likewise.
1810 (remote_write_qxfer, remote_read_qxfer): Likewise.
1811 (remote_xfer_partial): Likewise.
1812 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1813 (rs6000_xfer_shared_libraries): Likewise.
1814 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1815 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1816 (spu_xfer_partial): Likewise.
1817 * target.c (memory_xfer_partial_1): Likewise.
1818 * tracepoint.c (tfile_xfer_partial): Likewise.
1819 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1820 (windows_xfer_partial): Likewise.
1822 2014-02-07 Yao Qi <yao@codesourcery.com>
1824 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1826 (core_xfer_shared_libraries_aix): Likewise.
1827 * gdbarch.c, gdbarch.h: Regenerated.
1828 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1829 ULONGEST. Change 'len_avail' type to ULONGEST.
1830 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1831 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1833 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1835 2014-02-07 Yao Qi <yao@codesourcery.com>
1837 * corefile.c (memory_error): Get 'exception' from ERR and pass
1838 'exception' to throw_error.
1840 2014-02-06 Doug Evans <xdje42@gmail.com>
1842 * configure.ac (libpython checking): Remove all but python.o from
1843 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1844 * configure: Regenerate.
1846 * Makefile.in (SFILES): Add extension.c.
1847 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1848 (COMMON_OBS): Add extension.o.
1849 * extension.h: New file.
1850 * extension-priv.h: New file.
1851 * extension.c: New file.
1853 * python/python-internal.h: #include "extension.h".
1854 (gdbpy_auto_load_enabled): Declare.
1855 (gdbpy_apply_val_pretty_printer): Declare.
1856 (gdbpy_apply_frame_filter): Declare.
1857 (gdbpy_preserve_values): Declare.
1858 (gdbpy_breakpoint_cond_says_stop): Declare.
1859 (gdbpy_breakpoint_has_cond): Declare.
1860 (void source_python_script_for_objfile): Delete.
1861 * python/python.c: #include "extension-priv.h".
1862 Delete inclusion of "observer.h".
1863 (extension_language_python): Moved here and renamed from
1864 script_language_python in py-auto-load.c.
1865 Redefined to be of type extension_language_defn.
1866 (python_extension_script_ops): New global.
1867 (python_extension_ops): New global.
1868 (struct python_env): New member previous_active.
1869 (restore_python_env): Call restore_active_ext_lang.
1870 (ensure_python_env): Call set_active_ext_lang.
1871 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1873 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1875 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1877 (gdbpy_eval_from_control_command): Renamed from
1878 eval_python_from_control_command, made static. New arg extlang.
1879 (gdbpy_source_script) Renamed from source_python_script, made static.
1881 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1882 result to int. New arg extlang.
1883 (gdbpy_source_objfile_script): Renamed from
1884 source_python_script_for_objfile, made static. New arg extlang.
1885 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1886 static. New args extlang, extlang_printers. Change result type to
1888 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1889 static. New arg extlang. Rename arg printers to extlang_printers
1890 and change type to ext_lang_type_printers *.
1891 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1892 static. Replace argument arg with extlang, extlang_printers.
1893 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1894 (!HAVE_PYTHON, source_python_script): Delete.
1895 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1896 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1897 (!HAVE_PYTHON, start_type_printers): Delete.
1898 (!HAVE_PYTHON, apply_type_printers): Delete.
1899 (!HAVE_PYTHON, free_type_printers): Delete.
1900 (_initialize_python): Delete call to observer_attach_before_prompt.
1901 (finalize_python): Set/restore active extension language.
1902 (gdbpy_finish_initialization) Renamed from
1903 finish_python_initialization, made static. New arg extlang.
1904 (gdbpy_initialized): New function.
1905 * python/python.h: #include "extension.h". Delete #include
1906 "value.h", "mi/mi-cmds.h".
1907 (extension_language_python): Declare.
1908 (GDBPY_AUTO_FILE_NAME): Delete.
1909 (enum py_bt_status): Moved to extension.h and renamed to
1911 (enum frame_filter_flags): Moved to extension.h.
1912 (enum py_frame_args): Moved to extension.h and renamed to
1913 ext_lang_frame_args.
1914 (finish_python_initialization): Delete.
1915 (eval_python_from_control_command): Delete.
1916 (source_python_script): Delete.
1917 (apply_val_pretty_printer): Delete.
1918 (apply_frame_filter): Delete.
1919 (preserve_python_values): Delete.
1920 (gdbpy_script_language_defn): Delete.
1921 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1922 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1924 * auto-load.c: #include "extension.h".
1925 (GDB_AUTO_FILE_NAME): Delete.
1926 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1927 (script_language_gdb): Delete, moved to extension.c and renamed to
1928 extension_language_gdb.
1929 (source_gdb_script_for_objfile): Delete.
1930 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1931 (loaded_script): Change type of language member to
1932 struct extension_language_defn *.
1933 (init_loaded_scripts_info): Initialize
1934 unsupported_script_warning_printed.
1935 (maybe_add_script): Make static. Change type of language arg to
1936 struct extension_language_defn *.
1937 (clear_section_scripts): Reset unsupported_script_warning_printed.
1938 (auto_load_objfile_script_1): Rewrite to use extension language API.
1939 (auto_load_objfile_script): Make public. Remove support-compiled-in
1940 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1941 (source_section_scripts): Rewrite to use extension language API.
1942 (load_auto_scripts_for_objfile): Rewrite to use
1943 auto_load_scripts_for_objfile.
1944 (collect_matching_scripts_data): Change type of language member to
1945 struct extension_language_defn *.
1946 (auto_load_info_scripts): Change type of language arg to
1947 struct extension_language_defn *.
1948 (unsupported_script_warning_print): New function.
1949 (script_not_found_warning_print): Make static.
1950 (_initialize_auto_load): Rewrite construction of scripts-directory
1952 * auto-load.h (struct objfile): Add forward decl.
1953 (struct script_language): Delete.
1954 (struct auto_load_pspace_info): Add forward decl.
1955 (struct extension_language_defn): Add forward decl.
1956 (maybe_add_script): Delete.
1957 (auto_load_objfile_script): Declare.
1958 (script_not_found_warning_print): Delete.
1959 (auto_load_info_scripts): Update prototype.
1960 (auto_load_gdb_scripts_enabled): Declare.
1961 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1962 auto_load_python_scripts_enabled and made public.
1963 (script_language_python): Delete, moved to python.c.
1964 (gdbpy_script_language_defn): Delete.
1965 (info_auto_load_python_scripts): Update to use
1966 extension_language_python.
1968 * breakpoint.c (condition_command): Replace call to
1969 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1970 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1971 with call to breakpoint_ext_lang_cond_says_stop.
1972 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1973 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1974 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1975 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1977 (local_setattro): Print name of extension language with existing
1980 * valprint.c (val_print, value_print): Update to call
1981 apply_ext_lang_val_pretty_printer.
1982 * cp-valprint.c (cp_print_value): Update call to
1983 apply_ext_lang_val_pretty_printer.
1984 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1985 (gdbpy_apply_val_pretty_printer): Renamed from
1986 apply_val_pretty_printer. New arg extlang.
1987 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1989 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1990 extension language API.
1991 * cli/cli-script.c (execute_control_command): Update to call
1992 eval_ext_lang_from_control_command.
1994 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1995 enum ext_lang_bt_status values. Update call to
1996 apply_ext_lang_frame_filter.
1997 (mi_cmd_stack_list_locals): Ditto.
1998 (mi_cmd_stack_list_args): Ditto.
1999 (mi_cmd_stack_list_variables): Ditto.
2000 * mi/mi-main.c: Delete #include "python/python-internal.h".
2001 Add #include "extension.h".
2002 (mi_cmd_list_features): Replace reference to python internal variable
2003 gdb_python_initialized with call to ext_lang_initialized_p.
2005 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2006 Update to use enum ext_lang_frame_args. Update to call
2007 apply_ext_lang_frame_filter.
2008 * python/py-framefilter.c (extract_sym): Update to use enum
2010 (extract_value, py_print_type, py_print_value): Ditto.
2011 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2012 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2013 (py_print_frame): Ditto.
2014 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2015 New arg extlang. Update to use enum ext_lang_bt_status.
2017 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2018 finish_python_initialization. Replace with call to
2019 finish_ext_lang_initialization.
2021 * typeprint.c (do_free_global_table): Update to call
2022 free_ext_lang_type_printers.
2023 (create_global_typedef_table): Update to call
2024 start_ext_lang_type_printers.
2025 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2026 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2027 (type_print_options): Change type of global_printers from "void *"
2028 to "struct ext_lang_type_printers *".
2030 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2031 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2032 (gdbpy_preserve_values): Renamed from preserve_python_values.
2034 (!HAVE_PYTHON, preserve_python_values): Delete.
2036 * utils.c (quit_flag): Delete, moved to extension.c.
2037 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2040 * eval.c: Delete #include "python/python.h".
2041 * main.c: Delete #include "python/python.h".
2043 * defs.h: Update comment.
2045 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2049 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2051 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2054 2014-02-05 Yao Qi <yao@codesourcery.com>
2056 * remote.c (remote_pass_signals): Remove local 'buf' and use
2058 (remote_program_signals): Likewise.
2060 2014-02-05 Yao Qi <yao@codesourcery.com>
2062 * ctf.c: Include "inferior.h" and "gdbthread.h".
2063 (CTF_PID): A new macro.
2064 (ctf_open): Call inferior_appeared and add_thread_silent.
2065 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2066 (ctf_thread_alive): New function.
2067 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2069 2014-02-05 Yao Qi <yao@codesourcery.com>
2073 2013-05-24 Yao Qi <yao@codesourcery.com>
2075 * tracepoint.c (TFILE_PID): Remove.
2076 (tfile_open): Don't add thread and inferior.
2077 (tfile_close): Don't set 'inferior_ptid'. Don't call
2078 exit_inferior_silent.
2079 (tfile_thread_alive): Remove.
2080 (init_tfile_ops): Don't set field 'to_thread_alive' of
2083 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2085 * remote.c (remote_start_remote): Call remote_check_symbols even
2086 if only symbol-file (not file) has been given.
2088 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2090 * gdbarch.sh (skip_entrypoint): New callback.
2091 * gdbarch.c, gdbarch.h: Regenerate.
2092 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2093 * infrun.c (fill_in_stop_func): Likewise.
2094 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2095 (ppc_elfv2_elf_make_msymbol_special): New function.
2096 (ppc_elfv2_skip_entrypoint): Likewise.
2097 (ppc_linux_init_abi): Install them for ELFv2.
2099 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2101 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2102 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2103 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2104 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2105 structures returned in GPRs.
2107 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2110 offset to the stack parameter list for the ELFv2 ABI.
2112 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2114 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2115 set_gdbarch_convert_from_func_ptr_addr and
2116 set_gdbarch_elf_make_msymbol_special for ELFv1.
2117 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2118 function descriptors on ELFv1.
2119 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2120 set up r12 at function entry.
2122 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2124 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2125 (struct gdbarch_tdep): New member elf_abi.
2127 * rs6000-tdep.c: Include "elf/ppc64.h".
2128 (rs6000_gdbarch_init): Detect ELF ABI version.
2130 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2132 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2133 within a register pair holding a DFP 128-bit value on little-endian.
2134 (ppc64_sysv_abi_return_value_base): Likewise.
2135 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2136 (dfp_pseudo_register_write): Likewise.
2138 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2140 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2141 offset on little-endian when passing _Decimal32.
2142 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2144 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2146 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2147 of the overlapped FP register within the VSX register on little-
2149 (efpr_pseudo_register_write): Likewise.
2151 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2153 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2154 offset on little-endian when passing small structures.
2156 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2158 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2159 (struct ppc64_sysv_argpos): New data structure.
2160 (ppc64_sysv_abi_push_float): Remove.
2161 (ppc64_sysv_abi_push_val): New function.
2162 (ppc64_sysv_abi_push_integer): Likewise.
2163 (ppc64_sysv_abi_push_freg): Likewise.
2164 (ppc64_sysv_abi_push_vreg): Likewise.
2165 (ppc64_sysv_abi_push_param): Likewise.
2166 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2167 (ppc64_sysv_abi_return_value_base): New function.
2168 (ppc64_sysv_abi_return_value): Refactor to use it.
2170 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2172 * NEWS: Document new target powerpc64le-*-linux*.
2174 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2176 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2177 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2179 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2180 register set used in ELF core dumps. Add floating-point register set.
2182 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2184 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2185 dwarf2_to_gdb[] table using symbolic constants. Adjust
2186 penultimate entry from number representing the PC register
2187 to symbolic constant representing the MDR register. Add
2188 constant for the PC register to the end of the table.
2190 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2192 * bsd-kvm.c: Include <sys/param.h>
2194 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2196 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2198 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2200 * ada-lang.h (clear_ada_sym_cache): Delete.
2202 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2204 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2206 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2208 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2209 the sigreturn register save area only if the syscall is
2212 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2214 * valops.c (value_slice): Minor reformatting.
2216 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2218 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2220 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2222 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2224 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2225 (ada_ignore_descriptive_types_p): New static global.
2226 (find_parallel_type_by_descriptive_type): Return immediately
2227 if ada_ignore_descriptive_types_p is set.
2228 (_initialize_ada_language): Register new commands "maintenance
2229 set ada", "maintenance show ada", "maintenance set ada
2230 ignore-descriptive-types" and "maintenance show ada
2231 ignore-descriptive-types".
2232 * NEWS: Add entry for new "maint ada set/show
2233 ignore-descriptive-types" commands.
2235 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2237 * record-btrace.c (record_btrace_close): Call btrace_teardown
2240 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2242 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2245 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2247 * ada-typeprint (type_is_full_subrange_of_target_type):
2249 (print_range): Add parameter bounds_prefered_p. If not set,
2250 try printing range types using the name of their base type.
2251 (print_range_type): Add parameter bounds_prefered_p.
2252 Use it in call to print_range.
2253 (print_array_type, ada_print_type): Update calls to print_range
2254 and print_range_type.
2256 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2258 * ada-typeprint.c (print_array_type, print_choices, print_range)
2259 (print_range_bound, print_dynamic_range_bound, print_range_type):
2262 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2264 * ada-typeprint.c (print_range): Add missing empty line
2265 after local declaration.
2267 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2269 * ada-valprint.c (print_optional_low_bound): Get index_type's
2270 target type for as long as it is a TYPE_CODE_RANGE.
2272 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2274 * procfs.c (procfs_make_note_section): Remove assertion and
2277 2014-01-24 Yao Qi <yao@codesourcery.com>
2279 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2280 * corelow.c (get_core_siginfo): Likewise.
2282 2014-01-24 Yao Qi <yao@codesourcery.com>
2284 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2285 ULONGEST. Don't check 'len' is negative.
2286 (remote_write_bytes): Change type of 'len' to ULONGEST.
2288 2014-01-23 Tom Tromey <tromey@redhat.com>
2291 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2292 Handle exception from frame.block.
2293 (FrameVars.fetch_frame_locals): Likewise.
2295 2014-01-23 Tom Tromey <tromey@redhat.com>
2298 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2299 on a NULL pointer. Move "goto error" to correct place.
2301 2014-01-23 Tom Tromey <tromey@redhat.com>
2304 * python/py-framefilter.c (apply_frame_filter): Call
2305 ensure_python_env after computing gdbarch.
2307 2014-01-23 Yao Qi <yao@codesourcery.com>
2309 * target.c (raw_memory_xfer_partial): Change argument type
2310 from void * to gdb_byte *.
2311 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2313 2014-01-22 Doug Evans <dje@google.com>
2315 New gdbserver option --debug-format=timestamp.
2318 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2320 * syscalls/s390x-linux.xml: New file.
2321 * syscalls/s390-linux.xml: New file.
2322 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2323 (XML_SYSCALL_FILENAME_S390X): Likewise.
2324 (op_svc): New enum value for SVC opcode.
2325 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2326 (s390_linux_get_syscall_number): New function.
2327 (s390_gdbarch_init): Register '*get_syscall_number' and the
2328 syscall xml file name.
2329 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2330 "s390-linux.xml" and "s390x-linux.xml".
2331 * NEWS: Announce new feature.
2333 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2335 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2337 2014-01-22 Pedro Alves <palves@redhat.com>
2339 * xtensa-config.c: Include defs.h.
2341 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2343 * common/common-utils.h: Add "ARI:" comment beside __func__
2346 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2348 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2349 documentation a bit.
2351 2014-01-21 Roland McGrath <mcgrathr@google.com>
2353 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2354 * configure: Regenerate.
2355 * aclocal.m4: Regenerate.
2356 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2357 New substituted variables.
2358 (install-strip): New target.
2359 (INSTALL_SCRIPT): New substituted variable.
2360 (FLAGS_TO_PASS): Add it.
2361 (install-only): Use $(INSTALL_SCRIPT) rather than
2362 $(INSTALL_PROGRAM) for gcore.
2364 2014-01-20 Tom Tromey <tromey@redhat.com>
2366 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2369 2014-01-20 Tom Tromey <tromey@redhat.com>
2371 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2372 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2373 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2374 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2375 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2376 (struct cmd_list_element) <flags>: Remove.
2377 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2378 doc_allocated>: New fields.
2379 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2381 * maint.c (maintenance_do_deprecate): Update.
2382 * top.c (execute_command): Update.
2384 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2386 * xtensa-linux-nat.c: Include asm/ptrace.h.
2388 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2390 * Makefile.in (SFILES): Add d-support.c.
2391 (COMMON_OBS): Add d-support.o.
2392 * d-lang.h (d_parse_symbol): Add comment, now defined in
2394 * d-lang.c (parse_call_convention)
2395 (parse_attributes, parse_function_types)
2396 (parse_function_args, parse_type, parse_identifier)
2397 (call_convention_p, d_parse_symbol): Move functions to ...
2398 * d-support.c: ... New file.
2400 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2402 * d-lang.h (d_parse_symbol): Add declaration.
2403 * d-lang.c (extract_identifiers)
2404 (extract_type_info): Remove functions.
2405 (parse_call_convention, parse_attributes)
2406 (parse_function_types, parse_function_args)
2407 (parse_type, parse_identifier, call_convention_p)
2408 (d_parse_symbol): New functions.
2409 (d_demangle): Use d_parse_symbol to demangle D symbols.
2411 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2413 * d-lang.h (struct builtin_d_type): New data type.
2414 (builtin_d_type): Add declaration.
2415 * d-lang.c (d_language_arch_info, build_d_types)
2416 (builtin_d_type): New functions.
2417 (enum d_primitive_types): New data type.
2418 (d_language_defn): Change c_language_arch_info to
2419 d_language_arch_info.
2420 (d_type_data): New static variable.
2421 (_initialize_d_language): Initialize d_type_data.
2423 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2425 * d-lang.h (d_main_name): Add declaration.
2426 * d-lang.c (d_main_name): New function.
2427 * symtab.c (find_main_name): Add call to d_main_name.
2429 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2431 * d-lang.c (d_language_defn): Change macro_expansion_c to
2434 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2436 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2438 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2440 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2441 gdb_exception" declaration.
2442 * remote.c (getpkt_or_notif_sane): Likewise.
2444 2014-01-17 Doug Evans <dje@google.com>
2446 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2447 function, contents of dirnames_to_char_ptr_vec_append moved here.
2448 (delim_string_to_char_ptr_vec): New function.
2449 (dirnames_to_char_ptr_vec_append): Rewrite.
2450 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2452 2014-01-17 Doug Evans <dje@google.com>
2454 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2456 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2457 #include "common-utils.h".
2458 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2459 * common/vec.h (VEC_ASSERT_PASS): Update.
2460 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2461 (MACH_CHECK_ERROR): Update.
2463 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2465 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2467 * gdbarch.h: Regenerate.
2469 2014-01-16 Tom Tromey <tromey@redhat.com>
2471 * value.c (struct value) <regnum>: Move earlier.
2473 2014-01-16 Tom Tromey <tromey@redhat.com>
2475 * remote.c (extended_remote_create_inferior): Rename from
2476 extended_remote_create_inferior_1. Add "ops" argument. Remove
2479 2014-01-16 Pedro Alves <palves@redhat.com>
2481 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2482 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2485 2014-01-16 Doug Evans <dje@google.com>
2487 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2491 * btrace.h (btrace_thread_flag): New.
2492 (struct btrace_thread_info) <flags>: New.
2493 * record-btrace.c (record_btrace_resume_thread)
2494 (record_btrace_find_thread_to_move, btrace_step_no_history)
2495 (btrace_step_stopped, record_btrace_start_replaying)
2496 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2497 (record_btrace_find_resume_thread): New.
2498 (record_btrace_resume, record_btrace_wait): Extend.
2499 (record_btrace_can_execute_reverse): New.
2500 (record_btrace_open): Fail in non-stop mode.
2501 (record_btrace_set_replay): Split into this, ...
2502 (record_btrace_stop_replaying): ... this, ...
2503 (record_btrace_clear_histories): ... and this.
2504 (init_record_btrace_ops): Init to_can_execute_reverse.
2505 * NEWS: Announce it.
2507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2509 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2510 (forward_target_decr_pc_after_break)
2511 (target_decr_pc_after_break): New.
2512 * target.c (forward_target_decr_pc_after_break)
2513 (target_decr_pc_after_break): New.
2514 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2515 instead of gdbarch_decr_pc_after_break.
2516 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2517 instead of gdbarch_decr_pc_after_break.
2518 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2519 instead of gdbarch_decr_pc_after_break.
2520 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2521 instead of gdbarch_decr_pc_after_break.
2522 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2523 instead of gdbarch_decr_pc_after_break.
2524 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2525 instead of gdbarch_decr_pc_after_break.
2527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2529 * btrace.c: Include regcache.h.
2530 (btrace_add_pc): New.
2531 (btrace_enable): Call btrace_add_pc.
2532 (btrace_is_empty): New.
2533 * btrace.h (btrace_is_empty): New.
2534 * record-btrace.c (require_btrace, record_btrace_info): Call
2537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2539 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2540 Support delta reads.
2541 (linux_disable_btrace): Change return type.
2542 * common/linux-btrace.h (linux_read_btrace): Change parameters
2543 and return type to allow error reporting. Update users.
2544 (linux_disable_btrace): Change return type. Update users.
2545 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2547 (btrace_error): New.
2548 (btrace_block) <begin>: Comment on BEGIN == 0.
2549 * btrace.c (btrace_compute_ftrace): Start from the end of
2551 (btrace_stitch_trace, btrace_clear_history): New.
2552 (btrace_fetch): Read delta trace, return if replaying.
2553 (btrace_clear): Move clear history code to btrace_clear_history.
2554 (parse_xml_btrace): Throw an error if parsing failed.
2555 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2556 and return type to allow error reporting.
2557 (target_read_btrace): Change parameters and return type to allow
2559 * target.c (target_read_btrace): Update.
2560 * remote.c (remote_read_btrace): Support delta reads. Pass
2562 * NEWS: Announce it.
2564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2566 * record.h (record_btrace_frame_unwind)
2567 (record_btrace_tailcall_frame_unwind): New declarations.
2568 * dwarf2-frame: Include record.h
2569 (dwarf2_frame_cfa): Throw an error for btrace frames.
2570 * record-btrace.c: Include hashtab.h.
2571 (btrace_get_bfun_name): New.
2572 (btrace_call_history): Call btrace_get_bfun_name.
2573 (struct btrace_frame_cache): New.
2575 (bfcache_hash, bfcache_eq, bfcache_new): New.
2576 (btrace_get_frame_function): New.
2577 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2578 (record_btrace_frame_this_id): Compute own id.
2579 (record_btrace_frame_prev_register): Provide PC, throw_error
2580 for all other registers.
2581 (record_btrace_frame_sniffer): Detect btrace frames.
2582 (record_btrace_tailcall_frame_sniffer): New.
2583 (record_btrace_frame_dealloc_cache): New.
2584 (record_btrace_frame_unwind): Add new functions.
2585 (record_btrace_tailcall_frame_unwind): New.
2586 (_initialize_record_btrace): Allocate cache.
2587 * btrace.c (btrace_clear): Call reinit_frame_cache.
2588 * NEWS: Announce it.
2590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2592 * record-btrace.c (record_btrace_set_replay)
2593 (record_btrace_goto_begin, record_btrace_goto_end)
2594 (record_btrace_goto): New.
2595 (init_record_btrace_ops): Initialize them.
2596 * NEWS: Announce it.
2598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2600 * record-btrace.c (record_btrace_find_new_threads)
2601 (record_btrace_thread_alive): New.
2602 (init_record_btrace_ops): Initialize to_find_new_threads and
2605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2607 * record-btrace.c (record_btrace_resume): New.
2608 (record_btrace_wait): New.
2609 (init_record_btrace_ops): Initialize to_wait and to_resume.
2611 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2613 * record-btrace.c (record_btrace_xfer_partial)
2614 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2615 (record_btrace_allow_memory_access): New.
2616 (init_record_btrace_ops): Initialize new methods.
2617 * target.c (raw_memory_xfer_partial): Bail out if target reports
2618 that this memory is not available.
2620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2622 * target.h (target_ops) <to_insert_breakpoint>
2623 <to_remove_breakpoint>: Add target_ops parameter.
2624 (forward_target_insert_breakpoint): New.
2625 (forward_target_remove_breakpoint): New.
2626 (memory_remove_breakpoint, memory_insert_breakpoint):
2627 Add target_ops parameter.
2628 * target.c (target_insert_breakpoint): Split into this and ...
2629 (forward_target_insert_breakpoint): ... this.
2630 (target_remove_breakpoint): Split into this and ...
2631 (forward_target_remove_breakpoint): ... this.
2632 (debug_to_insert_breakpoint): Add target_ops parameter.
2633 Call forward_target_insert_breakpoint.
2634 (debug_to_remove_breakpoint): Add target_ops parameter.
2635 Call forward_target_remove_breakpoint.
2636 (update_current_target): Do not inherit or default to_insert_breakpoint
2637 and to_remove_breakpoint.
2638 * corelow.c (ignore): Add target_ops parameter.
2639 * exec.c (ignore): Add target_ops parameter.
2640 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2641 Add target_ops parameter.
2642 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2643 Add target_ops parameter.
2644 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2645 Add target_ops parameter.
2646 * record-full.c (record_full_beneath_to_insert_breakpoint)
2647 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2648 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2649 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2650 (record_full_core_remove_breakpoint): Add target_ops parameter.
2652 (record_full_beneath_to_insert_breakpoint_ops)
2653 (record_full_beneath_to_remove_breakpoint_ops)
2654 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2655 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2656 tmp_to_remove_breakpoint_ops,
2657 record_full_beneath_to_insert_breakpoint_ops, and
2658 record_full_beneath_to_remove_breakpoint_ops.
2659 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2660 (m32r_remove_breakpoint): Add target_ops parameter.
2661 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2662 Add target_ops parameter.
2663 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2664 Add target_ops parameter.
2666 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2667 Markus Metzger <markus.t.metzger@intel.com>
2669 * record-btrace.c: Include frame-unwind.h.
2670 (record_btrace_frame_unwind_stop_reason)
2671 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2672 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2674 (init_record_btrace_ops): Install it.
2676 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2678 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2681 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2683 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2686 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2688 * frame-unwind.c: Include target.h.
2689 (frame_unwind_try_unwinder): New function with code from ...
2690 (frame_unwind_find_by_frame): ... here. New variable
2691 unwinder_from_target, call also target_get_unwinder)
2692 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2693 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2694 * target.h (struct target_ops): New fields to_get_unwinder and
2695 to_get_tailcall_unwinder.
2696 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2700 * record-btrace.c (record_btrace_fetch_registers)
2701 (record_btrace_store_registers)
2702 (record_btrace_to_prepare_to_store): New.
2703 (init_record_btrace_ops): Add the above.
2705 2014-01-16 Tom Tromey <tromey@redhat.com>
2707 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2708 * target.h (struct target_ops) <to_prepare_to_store>: Add
2710 (target_prepare_to_store): Add argument.
2711 * target.c (debug_to_prepare_to_store): Add argument.
2712 (update_current_target): Update.
2713 * remote.c (remote_prepare_to_store): Add 'self' argument.
2714 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2715 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2716 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2717 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2719 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2720 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2721 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2722 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2723 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2727 * btrace.h (replay) <replay>: New.
2728 (btrace_is_replaying): New.
2729 * btrace.c (btrace_clear): Free replay iterator.
2730 (btrace_is_replaying): New.
2731 * record-btrace.c (record_btrace_is_replaying): New.
2732 (record_btrace_info): Print insn number if replaying.
2733 (record_btrace_insn_history): Start at replay position.
2734 (record_btrace_call_history): Start at replay position.
2735 (init_record_btrace_ops): Init to_record_is_replaying.
2737 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2739 * record-btrace.c (record_btrace_insn_history_range): Include
2741 (record_btrace_insn_history_from): Adjust range.
2742 (record_btrace_call_history_range): Include
2744 (record_btrace_call_history_from): Adjust range.
2745 * NEWS: Announce changes.
2747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2749 * record.h (enum record_print_flag)
2750 <record_print_indent_calls>: New.
2751 * record.c (get_call_history_modifiers): Recognize /c modifier.
2752 (_initialize_record): Document /c modifier.
2753 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2754 Reorder fields. Optionally indent the function name. Update
2756 * NEWS: Announce changes.
2758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2760 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2764 * btrace.c (ftrace_new_function): Start counting at one.
2765 * record-btrace.c (record_btrace_info): Adjust number of calls
2767 * NEWS: Announce it.
2769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2771 * record-btrace.c (btrace_call_history_insn_range): Print
2772 insn range as [begin, end].
2774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2776 * btrace.h (struct btrace_func_link): New.
2777 (enum btrace_function_flag): New.
2778 (struct btrace_inst): Rename to ...
2779 (struct btrace_insn): ...this. Update all users.
2780 (struct btrace_func) <ibegin, iend>: Remove.
2781 (struct btrace_func_link): New.
2782 (struct btrace_func): Rename to ...
2783 (struct btrace_function): ...this. Update all users.
2784 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2785 (number, level, flags>: New.
2786 (struct btrace_insn_iterator): Rename to ...
2787 (struct btrace_insn_history): ...this.
2789 (struct btrace_insn_iterator, btrace_call_iterator): New.
2790 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2791 (struct btrace_target_info) <begin, end, level>
2792 <insn_history, call_history>: New.
2793 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2794 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2795 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2796 (btrace_call_number, btrace_call_begin, btrace_call_end)
2797 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2798 (btrace_find_function_by_number, btrace_set_insn_history)
2799 (btrace_set_call_history): New.
2800 * btrace.c (btrace_init_insn_iterator)
2801 (btrace_init_func_iterator, compute_itrace): Remove.
2802 (ftrace_print_function_name, ftrace_print_filename)
2803 (ftrace_skip_file): Change
2805 (ftrace_init_func): Remove.
2806 (ftrace_debug): Use new btrace_function fields.
2807 (ftrace_function_switched): Also consider gaining and
2808 losing symbol information).
2809 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2810 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2811 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2813 (ftrace_new_function): Move. Remove debug print.
2814 (ftrace_update_lines, ftrace_update_insns): New.
2815 (ftrace_update_function): Check for call, ret, and jump.
2816 (compute_ftrace): Renamed to ...
2817 (btrace_compute_ftrace): ...this. Rewritten to compute call
2819 (btrace_fetch, btrace_clear): Updated.
2820 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2821 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2822 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2823 (btrace_call_number, btrace_call_begin, btrace_call_end)
2824 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2825 (btrace_find_function_by_number, btrace_set_insn_history)
2826 (btrace_set_call_history): New.
2827 * record-btrace.c (require_btrace): Use new btrace thread
2829 (record_btrace_info, btrace_insn_history)
2830 (record_btrace_insn_history, record_btrace_insn_history_range):
2831 Use new btrace thread info fields and new iterator.
2832 (btrace_func_history_src_line): Rename to ...
2833 (btrace_call_history_src_line): ...this. Use new btrace
2835 (btrace_func_history): Rename to ...
2836 (btrace_call_history): ...this. Use new btrace thread info
2837 fields and new iterator.
2838 (record_btrace_call_history, record_btrace_call_history_range):
2839 Use new btrace thread info fields and new iterator.
2841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2843 * frame.h (frame_id_build_unavailable_stack_special): New.
2844 * frame.c (frame_id_build_unavailable_stack_special): New.
2846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2848 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2849 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2850 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2852 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2853 (i386_insn_is_jump, i386_jmp_p): New.
2854 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2855 insn_is_jump to gdbarch.
2856 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2857 * gdbarch.h: Regenerated.
2858 * gdbarch.c: Regenerated.
2859 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2860 (default_insn_is_jump): New.
2861 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2862 (default_insn_is_jump): New.
2864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2866 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2868 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2869 (btrace_read_type) <btrace_read_new>: Change to ...
2870 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2874 * common/linux-btrace.c (linux_read_btrace): Free trace from
2877 2014-01-15 Doug Evans <dje@google.com>
2879 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2882 2014-01-15 Tom Tromey <tromey@redhat.com>
2884 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2885 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2886 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2887 (set_objfile_main_name): New function.
2888 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2889 language_of_main>: New fields.
2890 (set_objfile_main_name): Declare.
2891 * symtab.c (find_main_name): Loop over objfiles to find the main
2893 (set_main_name): Now static.
2894 (get_main_info): Add comment.
2895 * symtab.h (set_main_name): Don't declare.
2897 2014-01-15 Tom Tromey <tromey@redhat.com>
2899 * symtab.c (main_progspace_key): New global.
2900 (struct main_info): New.
2901 (name_of_main, language_of_main): Remove.
2902 (get_main_info, main_info_cleanup): New function.
2903 (set_main_name, main_name, main_language): Use get_main_info.
2904 (_initialize_symtab): Initialize main_progspace_key.
2906 2014-01-15 Tom Tromey <tromey@redhat.com>
2908 * dbxread.c (process_one_symbol): Update.
2909 * dwarf2read.c (read_partial_die): Update.
2910 * symfile.c (set_initial_language): Call main_language.
2911 * symtab.c (language_of_main): Now static.
2912 (set_main_name): Add 'lang' parameter.
2913 (find_main_name): Update.
2914 (main_language): New function.
2915 (symtab_observer_executable_changed): Update.
2916 * symtab.h (set_main_name): Update.
2917 (language_of_main): Remove.
2918 (main_language): Declare.
2920 2014-01-15 Tom Tromey <tromey@redhat.com>
2922 * symfile.c (init_entry_point_info): Use new "initialized" field.
2924 * objfiles.h (struct entry_point) <initialized>: New field.
2925 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2926 (struct objfile) <ei>: ...here. Remove.
2927 * objfiles.c (entry_point_address_query): Update.
2929 2014-01-15 Tom Tromey <tromey@redhat.com>
2931 * objfiles.c (entry_point_address_query): Relocate entry point
2933 (objfile_relocate1): Do not relocate entry point address.
2934 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2935 <the_bfd_section_index>: New field.
2936 * symfile.c (init_entry_point_info): Find the entry point's
2939 2014-01-15 Tom Tromey <tromey@redhat.com>
2941 * solib-frv.c (enable_break): Use entry_point_address_query.
2943 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2945 * NEWS: Add note on improved process record-replay on
2946 arm*-linux* targets.
2948 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2950 * arm-tdep.c (enum arm_record_result): New enum.
2951 (arm_record_unsupported_insn): New function.
2952 (arm_record_coproc_data_proc): Removed.
2953 (thumb2_record_ld_st_multiple): New function.
2954 (thumb2_record_ld_st_dual_ex_tbb): New function.
2955 (thumb2_record_data_proc_sreg_mimm): New function.
2956 (thumb2_record_ps_dest_generic): New function.
2957 (thumb2_record_branch_misc_cntrl): New function.
2958 (thumb2_record_str_single_data): New function.
2959 (thumb2_record_ld_mem_hints): New function.
2960 (thumb2_record_ld_word): New function.
2961 (thumb2_record_lmul_lmla_div): New function.
2962 (thumb2_record_decode_insn_handler): New function.
2963 (decode_insn): Add thumb32 instruction handlers.
2965 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2967 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2968 (struct arm_linux_record_tdep): Declare.
2969 (arm_canonicalize_syscall): New function.
2970 (arm_all_but_pc_registers_record): New function.
2971 (arm_linux_syscall_record): New function.
2972 (arm_linux_init_abi): Add syscall recording constructs.
2973 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2974 decoding. (arm_record_coproc_data_proc): Update arm syscall
2976 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2977 <arm_syscall_record>: New field.
2978 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2981 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2983 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2984 register for push instruction recording.
2986 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2988 * arm-tdep.c (thumb_record_misc): Update to correct logical
2989 error while recording ldm, ldmia and pop instructions.
2991 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2993 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2995 2014-01-15 Pedro Alves <palves@redhat.com>
2997 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2998 (go32_resume, go32_fetch_registers, store_register)
2999 (go32_store_registers, go32_prepare_to_store)
3000 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3001 (go32_create_inferior, go32_can_run, go32_terminal_init)
3002 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3005 2014-01-15 Tom Tromey <tromey@redhat.com>
3007 * target.h (async_callback_ftype): New typedef.
3008 (struct target_ops) <to_async>: Use it.
3010 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3012 * python/py-value.c (get_field_type): Remove unnecessary curly
3013 braces for single-statement if block.
3015 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3017 * python/py-type.c (convert_field): Add missing empty line
3020 2014-01-14 Doug Evans <dje@google.com>
3022 * symfile.h (expand_symtabs_matching): Renamed from
3023 expand_partial_symbol_names. Update prototype.
3024 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3025 * symfile.c (expand_symtabs_matching): Renamed from
3026 expand_partial_symbol_names. New args file_matcher, kind.
3027 Rename arg fun to symbol_matcher.
3028 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3029 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3030 ada_expand_partial_symbol_name.
3031 (ada_make_symbol_completion_list): Update to call
3032 expand_symtabs_matching.
3033 (ada_add_global_exceptions): Call expand_symtabs_matching.
3034 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3035 call map_symbol_filenames.
3036 * symtab.c (sources_info): Update to call map_symbol_filenames.
3037 (search_symbols): Call expand_symtabs_matching.
3038 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3039 (default_make_symbol_completion_list_break_on): Update to call
3040 expand_symtabs_matching.
3041 (make_source_files_completion_list): Update to call
3042 map_symbol_filenames.
3044 2014-01-14 Doug Evans <dje@google.com>
3046 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3047 (expand_symtabs_symbol_matcher_ftype): New typedef.
3048 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3049 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3050 * symfile.c (expand_partial_symbol_names): Update to use
3051 expand_symtabs_symbol_matcher_ftype.
3052 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3053 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3054 Arg name_matcher renamed to symbol_matcher.
3055 * psymtab.c (recursively_search_psymtabs): Update to use
3056 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3058 (expand_symtabs_matching_via_partial): Update to use
3059 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3060 Arg name_matcher renamed to symbol_matcher.
3062 2014-01-14 Doug Evans <dje@google.com>
3064 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3065 (map_partial_symbol_filenames): Ditto.
3066 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3067 (map_partial_symbol_filenames): Ditto.
3068 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3069 (map_partial_symbol_filenames): Ditto.
3070 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3071 (map_partial_symbol_filenames): Ditto.
3072 * symtab.c: Delete #include "psymtab.h".
3074 2014-01-14 Pedro Alves <palves@redhat.com>
3075 Tom Tromey <tromey@redhat.com>
3077 * infrun.c (use_displaced_stepping): Use find_record_target
3078 instead of RECORD_IS_USED.
3079 (adjust_pc_after_break): Use record_full_is_used instead of
3081 * record-btrace.c (record_btrace_open): Call record_preopen
3082 instead of checking RECORD_IS_USED.
3083 * record-full.c (record_full_shortname)
3084 (record_full_core_shortname): New globals.
3085 (record_full_is_used): New function.
3086 (find_full_open): Call record_preopen instead of checking
3088 (init_record_full_ops): Set the target's shortname to
3089 record_full_shortname.
3090 (init_record_full_core_ops): Set the target's shortname to
3091 record_full_core_shortname.
3092 * record-full.h (record_full_is_used): Declare.
3093 * record.c (find_record_target): Make extern.
3094 (record_preopen): New function.
3095 * record.h (RECORD_IS_USED): Delete macro.
3096 (find_record_target, record_preopen): Declare functions.
3098 2014-01-14 Yao Qi <yao@codesourcery.com>
3100 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3101 'len''s type to ULONGEST.
3102 (core_xfer_shared_libraries_aix): Likewise.
3103 * gdbarch.c, gdbarch.h: Regenerated.
3104 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3105 Change type of 'len' to ULONGEST.
3106 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3107 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3109 2014-01-14 Yao Qi <yao@codesourcery.com>
3111 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3112 type of 'len' to ULONGEST.
3113 (linux_xfer_osdata_processgroups): Likewise.
3114 (linux_xfer_osdata_threads): Likewise.
3115 (linux_xfer_osdata_fds): Likewise.
3116 (linux_xfer_osdata_isockets): Likewise.
3117 (linux_xfer_osdata_shm): Likewise.
3118 (linux_xfer_osdata_sem): Likewise.
3119 (linux_xfer_osdata_msg): Likewise.
3120 (linux_common_xfer_osdata): Likewise.
3121 (struct osdata_type) <getter>: Likewise.
3122 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3125 2014-01-14 Yao Qi <yao@codesourcery.com>
3127 * target.h (target_xfer_partial_ftype): Update.
3128 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3130 * aix-thread.c (aix_thread_xfer_partial): Change type of
3131 argument 'len' to ULONGEST.
3132 * auxv.c (procfs_xfer_auxv): Likewise.
3133 (ld_so_xfer_auxv): Likewise.
3134 (memory_xfer_auxv): Likewise.
3135 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3136 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3137 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3138 * corelow.c (core_xfer_partial): Likewise.
3139 * ctf.c (ctf_xfer_partial): Likewise.
3140 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3142 (darwin_read_dyld_info): Likewise.
3143 (darwin_xfer_partial): Likewise.
3144 * exec.c (section_table_xfer_memory_partial): Likewise.
3145 (exec_xfer_partial): Likewise.
3146 * exec.h (section_table_xfer_memory_partial): Update
3148 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3149 instead of plongest.
3150 (gnu_xfer_partial): Likewise.
3151 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3152 (ia64_hpux_xfer_solib_got): Likewise.
3153 (ia64_hpux_xfer_partial): Likewise.
3154 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3155 * inf-ptrace.c (inf_ptrace_xfer_partial):
3156 * inf-ttrace.c (inf_ttrace_xfer_partial):
3157 * linux-nat.c (linux_xfer_siginfo): Likewise.
3158 (linux_nat_xfer_partial): Likewise.
3159 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3160 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3161 * monitor.c (monitor_xfer_memory): Likewise.
3162 (monitor_xfer_partial): Likewise.
3163 * procfs.c (procfs_xfer_partial): Likewise.
3164 * record-full.c (record_full_xfer_partial): Likewise.
3165 (record_full_core_xfer_partial): Likewise.
3166 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3167 instead of plongest.
3168 (gdbsim_xfer_partial): Likewise.
3169 * remote.c (remote_xfer_partial): Likewise.
3170 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3171 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3173 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3174 (rs6000_xfer_shared_libraries): Likewise.
3175 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3176 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3177 (sparc_xfer_partial): Likewise.
3178 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3179 (spu_xfer_partial): Likewise.
3180 * spu-multiarch.c (spu_xfer_partial): Likewise.
3181 * target.c (target_read_live_memory): Likewise.
3182 (memory_xfer_live_readonly_partial): Likewise.
3183 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3184 (target_xfer_partial, default_xfer_partial): Likewise.
3185 (current_xfer_partial): Likewise.
3186 * tracepoint.c (tfile_xfer_partial): Likewise.
3187 * windows-nat.c (windows_xfer_memory): Likewise. Call
3188 pulongest instead of plongest.
3189 (windows_xfer_partial): Likewise.
3190 (windows_xfer_shared_libraries): Likewise.
3192 2014-01-14 Yao Qi <yao@codesourcery.com>
3194 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3195 target_xfer_partial_ftype.
3197 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3201 * valops.c (value_struct_elt_bitpos): New function
3202 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3203 object to 'None' if the field name is an empty string ("").
3204 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3205 attribute to look for a field when 'name' is 'None'.
3206 (get_field_type): New function
3208 2014-01-13 Doug Evans <dje@google.com>
3211 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3212 (try_open_dwop_file): Ditto.
3213 * gdb_bfd.c: #include "vec.h".
3214 (bfdp): New typedef.
3215 (struct gdb_bfd_data): New member included_bfds.
3216 (gdb_bfd_unref): Unref all included bfds.
3217 (gdb_bfd_record_inclusion): New function.
3218 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3220 2014-01-13 Tom Tromey <tromey@redhat.com>
3222 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3224 2014-01-13 Tom Tromey <tromey@redhat.com>
3226 * defs.h (use_windows): Remove.
3227 * gdb.c (main): Update.
3228 * main.c (captured_main, gdb_main): Update.
3229 * main.h (struct captured_main_args) <use_windows>: Remove.
3230 * top.c (use_windows): Remove.
3232 2014-01-13 Tom Tromey <tromey@redhat.com>
3234 * defs.h (deprecated_flush_hook): Remove.
3236 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3239 * linux-thread-db.c (try_thread_db_load): Add parameter
3240 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3241 (try_thread_db_load_from_pdir_1): Move it there from here.
3242 (try_thread_db_load_from_sdir): Update caller.
3243 (try_thread_db_load_from_dir): Move it there from here.
3245 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3247 * regformats/regdat.sh: Always rewrite the register file.
3249 2014-01-13 Pedro Alves <palves@redhat.com>
3251 * Makefile.in (CHECK_HEADERS): New variable.
3252 (check-headers:): New rule.
3254 2014-01-13 Tom Tromey <tromey@redhat.com>
3256 * cli/cli-setshow.c (do_set_command): Update.
3257 * defs.h (deprecated_set_hook): Remove.
3258 * top.c (deprecated_set_hook): Remove.
3260 2014-01-13 Pedro Alves <palves@redhat.com>
3262 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3263 the tracepoint if the PC is a pseudo-register.
3265 2014-01-13 Tom Tromey <tromey@redhat.com>
3267 * defs.h (XCALLOC): Remove.
3268 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3269 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3270 * dwarf2loc.c (allocate_piece_closure): Likewise.
3271 * elfread.c (elf_symfile_segments): Likewise.
3272 (elf_symfile_segments): Likewise.
3273 * gdbtypes.c (copy_type_recursive): Likewise.
3274 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3275 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3276 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3278 * mt-tdep.c (mt_gdbarch_init): Likewise.
3279 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3281 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3282 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3283 * registry.c (registry_alloc_data): Likewise.
3284 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3285 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3286 * serial.c (serial_fdopen_ops): Likewise.
3287 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3289 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3290 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3293 2014-01-13 Tom Tromey <tromey@redhat.com>
3295 * defs.h (XMALLOC): Remove.
3296 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3297 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3298 * cli-out.c (struct ui_out *): Likewise.
3299 * cli/cli-dump.c (add_dump_command): Likewise.
3300 (add_dump_command): Likewise.
3301 * complaints.c (get_complaints): Likewise.
3302 (find_complaint): Likewise.
3303 * dwarf2-frame.c (execute_cfa_program): Likewise.
3304 * dwarf2read.c (abbrev_table_read_table): Likewise.
3305 * gdbarch.sh: Likewise.
3306 * gdbarch.c: Rebuild.
3307 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3308 * interps.c (interp_new): Likewise.
3309 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3310 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3311 * mi/mi-console.c (mi_console_file_new): Likewise.
3312 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3313 * mi/mi-out.c (mi_out_new): Likewise.
3314 * mi/mi-parse.c (mi_parse): Likewise.
3315 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3316 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3317 * observer.c (xalloc_observer_list_node): Likewise.
3318 * regcache.c (regcache_xmalloc_1): Likewise.
3319 * reggroups.c (reggroup_new): Likewise.
3320 (_initialize_reggroup): Likewise.
3321 * registry.c (register_data_with_cleanup): Likewise.
3322 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3323 * ser-base.c (serial_ttystate): Likewise.
3324 * ser-mingw.c (make_pipe_state): Likewise.
3325 * ser-pipe.c (pipe_open): Likewise.
3326 * serial.c (serial_open): Likewise.
3327 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3328 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3329 (tui_alloc_win_info): Likewise.
3330 (tui_add_content_elements): Likewise.
3331 * tui/tui-file.c (tui_file_new): Likewise.
3332 * tui/tui-out.c (tui_out_new): Likewise.
3333 * ui-file.c (mem_file_new): Likewise.
3334 * ui-out.c (push_level): Likewise.
3335 (make_cleanup_ui_out_end): Likewise.
3336 (append_header_to_list): Likewise.
3337 (ui_out_new): Likewise.
3338 * user-regs.c (user_reg_add_builtin): Likewise.
3340 2014-01-13 Tom Tromey <tromey@redhat.com>
3342 * defs.h (XZALLOC): Remove.
3343 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3344 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3345 (get_ada_tasks_inferior_data): Likewise.
3346 * auto-load.c (get_auto_load_pspace_data): Likewise.
3347 * auxv.c (get_auxv_inferior_data): Likewise.
3348 * bfd-target.c (target_bfd_reopen): Likewise.
3349 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3350 (deprecated_insert_raw_breakpoint): Likewise.
3351 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3352 * corelow.c (core_open): Likewise.
3353 * darwin-nat.c (darwin_check_new_threads): Likewise.
3354 (darwin_attach_pid): Likewise.
3355 * dummy-frame.c (dummy_frame_push): Likewise.
3356 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3357 * dwarf2loc.c (allocate_piece_closure): Likewise.
3358 * elfread.c (elf_symfile_segments): Likewise.
3359 * eval.c (ptrmath_type_p): Likewise.
3360 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3361 * gdbtypes.c (alloc_type_arch): Likewise.
3362 (alloc_type_instance): Likewise.
3363 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3364 * inf-child.c (inf_child_can_use_agent): Likewise.
3365 * inflow.c (get_inflow_inferior_data): Likewise.
3366 * infrun.c (save_infcall_suspend_state): Likewise.
3367 * jit.c (jit_reader_load): Likewise.
3368 (get_jit_objfile_data): Likewise.
3369 (get_jit_program_space_data): Likewise.
3370 (jit_object_open_impl): Likewise.
3371 (jit_symtab_open_impl): Likewise.
3372 (jit_block_open_impl): Likewise.
3373 (jit_frame_sniffer): Likewise.
3374 * linux-fork.c (add_fork): Likewise.
3375 * maint.c (make_command_stats_cleanup): Likewise.
3376 * objfiles.c (get_objfile_pspace_data): Likewise.
3377 * opencl-lang.c (struct lval_closure): Likewise.
3378 * osdata.c (osdata_start_osdata): Likewise.
3379 * progspace.c (new_address_space): Likewise.
3380 (add_program_space): Likewise.
3381 * remote-sim.c (get_sim_inferior_data): Likewise.
3382 * sh-tdep.c (sh_gdbarch_init): Likewise.
3383 * skip.c (Ignore): Likewise.
3384 (skip_delete_command): Likewise.
3385 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3386 (library_list_start_library): Likewise.
3387 (solib_aix_current_sos): Likewise.
3388 * solib-darwin.c (get_darwin_info): Likewise.
3389 (darwin_current_sos): Likewise.
3390 * solib-dsbt.c (get_dsbt_info): Likewise.
3391 * solib-ia64-hpux.c (new_so_list): Likewise.
3392 (ia64_hpux_get_solib_linkage_addr): Likewise.
3393 * solib-spu.c (append_ocl_sos): Likewise.
3394 (spu_current_sos): Likewise.
3395 * solib-svr4.c (get_svr4_info): Likewise.
3396 (svr4_keep_data_in_core): Likewise.
3397 (library_list_start_library): Likewise.
3398 (svr4_default_sos): Likewise.
3399 (svr4_read_so_list): Likewise.
3400 * solib-target.c (library_list_start_library): Likewise.
3401 (solib_target_current_sos): Likewise.
3402 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3403 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3404 * symfile.c (default_symfile_segments): Likewise.
3405 * target-descriptions.c (tdesc_data_init): Likewise.
3406 (tdesc_create_reg): Likewise.
3407 (struct tdesc_type *): Likewise.
3408 (tdesc_create_vector): Likewise.
3409 (tdesc_set_struct_size): Likewise.
3410 (struct tdesc_type *): Likewise.
3411 (tdesc_free_feature): Likewise.
3412 (tdesc_create_feature): Likewise.
3413 * windows-nat.c (windows_add_thread): Likewise.
3414 (windows_make_so): Likewise.
3415 * xml-support.c (gdb_xml_body_text): Likewise.
3416 (gdb_xml_create_parser_and_cleanup): Likewise.
3417 (xml_process_xincludes): Likewise.
3418 * xml-syscall.c (allocate_syscalls_info): Likewise.
3419 (syscall_create_syscall_desc): Likewise.
3421 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3423 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3424 function, with code from i386_stap_parse_special_token.
3425 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3426 (i386_stap_parse_special_token): Move code to the two functions
3429 2014-01-09 Pedro Alves <palves@redhat.com>
3430 Hui Zhu <hui@codesourcery.com>
3433 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3434 bp_err_string. Don't mark the location shlib_disabled if the
3435 error thrown wasn't a generic or memory error. Catch errors
3436 thrown while inserting breakpoints in overlayed code. Output
3437 error message of software breakpoints.
3438 * remote.c (remote_insert_breakpoint): If this breakpoint has
3439 target-side commands but this stub doesn't support Z0 packets,
3440 throw NOT_SUPPORTED_ERROR error.
3441 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3442 * target.h (target_insert_breakpoint): Extend comment.
3443 (target_insert_hw_breakpoint): Add comment.
3445 2014-01-08 Pedro Alves <palves@redhat.com>
3447 * remote.c (remote_add_thread): Add threads silently if starting
3449 (remote_notice_new_inferior): If in all-stop, and starting up,
3450 don't call notice_new_inferior.
3451 (get_current_thread): New function, factored out from ...
3452 (add_current_inferior_and_thread): ... this. Adjust.
3453 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3454 found any thread, then select the remote's current thread as GDB's
3457 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3459 * NEWS: Create a new section for the next release branch.
3460 Rename the section of the current branch, now that it has
3463 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3465 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3466 * version.in: Bump version to 7.7.50.DATE-cvs.
3468 2014-01-08 Yao Qi <yao@codesourcery.com>
3470 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3471 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3472 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3474 2014-01-08 Yao Qi <yao@codesourcery.com>
3476 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3477 return value of bfd_get_filename to symbol_file_add_from_bfd.
3479 2014-01-08 Pierre Muller <muller@sourceware.org>
3482 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3483 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3484 to prim_record_mininal_symbol_and_info.
3485 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3486 in call to prim_record_minimal_symbol_and_info.
3487 (read_pe_exported_syms): Set index field of section_data.
3489 2014-01-07 Andrew Pinski <apinski@cavium.com>
3491 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3492 * features/aarch64.c: Regenerate.
3494 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3496 * target.c (return_null): Define.
3497 (update_current_target): Use it instead of return_zero for
3498 functions that return a pointer.
3500 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3502 * source.c (add_path): Fix check for duplicated paths in the previously
3505 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3507 * ada-lang.c: Remove duplicated include statements.
3508 * alphabsd-nat.c: Ditto.
3509 * amd64-darwin-tdep.c: Ditto.
3510 * amd64fbsd-nat.c: Ditto.
3511 * auto-load.c: Ditto.
3513 * breakpoint.c: Ditto.
3515 * fork-child.c: Ditto.
3516 * gdb_usleep.c: Ditto.
3517 * i386-darwin-tdep.c: Ditto.
3518 * i386fbsd-nat.c: Ditto.
3520 * inferior.c: Ditto.
3522 * linux-nat.c: Ditto.
3523 * linux-tdep.c: Ditto.
3524 * m68kbsd-nat.c: Ditto.
3525 * m68klinux-nat.c: Ditto.
3526 * microblaze-tdep.c: Ditto.
3527 * mips-linux-tdep.c: Ditto.
3528 * mn10300-tdep.c: Ditto.
3529 * nto-tdep.c: Ditto.
3530 * opencl-lang.c: Ditto.
3532 * printcmd.c: Ditto.
3533 * regcache.c: Ditto.
3534 * remote-m32r-sdi.c: Ditto.
3538 * tilegx-linux-nat.c: Ditto.
3539 * tilegx-tdep.c: Ditto.
3540 * tracepoint.c: Ditto.
3542 * vaxbsd-nat.c: Ditto.
3543 * windows-nat.c: Ditto.
3544 * xtensa-tdep.c: Ditto.
3546 2014-01-07 Yao Qi <yao@codesourcery.com>
3548 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3550 2014-01-07 Yao Qi <yao@codesourcery.com>
3551 Joel Brobecker <brobecker@adacore.com>
3553 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3554 (pdc_write_regs): Likewise.
3555 (fetch_regs_kernel_thread): Likewise.
3556 (store_regs_kernel_thread): Likewise.
3558 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3560 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3561 tagged type objects to their actual type.
3563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3565 * ada-valprint.c (print_field_values): Add "language" parameter.
3566 Update calls to print_field_values and print_variant_part.
3567 Pass new parameter "language" in call to val_print instead
3568 of "current_language". Replace call to ada_val_print by call
3570 (print_variant_part): Add "language" parameter.
3571 (ada_val_print_struct_union): Update call to print_field_values.
3573 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3575 * ada-valprint.c (ui_memcpy): Delete.
3576 (ada_print_floating): Update documentation. Add empty line
3577 between between function documentation and implementation.
3578 Delete variable "buffer". Use ui_file_xstrdup in place of
3579 ui_file_put. Minor adjustments following this change.
3581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3583 * ada-valprint.c (ada_val_print_string): New function,
3584 extracted from ada_val_print_array.
3585 (ada_val_print_array): Replace extracted code by call
3586 to ada_val_print_string followed by a return. Move
3587 "else" branch to the function's top block.
3589 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3591 * ada-valprint.c (ada_val_print_array): Move implementation
3592 down. Rename parameter "offset" and "val" into "offset_aligned"
3593 and "original_value" respectively. Add parameter "offset".
3595 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3597 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3598 re-organizing the code. Change the "???" message printed
3599 when target type is a TYPE_CODE_UNDEF into
3600 "<ref to undefined type>".
3602 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3604 * ada-valprint.c (print_record): Delete, implementation inlined...
3605 (ada_val_print_struct_union): ... here. Remove call to
3606 ada_check_typedef in inlined implementation.
3608 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3610 * ada-valprint.c (ada_val_print_gnat_array): New function,
3611 extracted from ada_val_print_1;
3612 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3613 (ada_val_print_flt, ada_val_print_struct_union)
3614 (ada_val_print_ref): Likewise.
3615 (ada_val_print_1): Delete variables i and elttype.
3616 Replace extracted-out code by call to corresponding
3619 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3621 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3625 * ada-valprint.c (ada_val_print_1): Replace calls to
3626 ada_val_print_1 by calls to val_print.
3628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3630 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3631 Update calls to self accordingly. Replace calls to c_val_print
3632 by calls to val_print.
3634 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3636 * ada-valprint.c (print_record): Delete declaration.
3637 (adjust_type_signedness, ada_val_print_1): Likewise.
3638 (ada_val_print): Move function implementation down.
3639 (print_variant_part, print_field_values, print_record):
3640 Move function implementation up.
3642 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3644 * python/py-type.c (typy_get_name): New function.
3645 (type_object_getset): Add entry for attribute "name".
3646 * NEWS: Add entry mentioning this new attribute.
3648 2014-01-07 Yao Qi <yao@codesourcery.com>
3650 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3653 2014-01-07 Yao Qi <yao@codesourcery.com>
3655 * gnu-nat.c (info_port_rights): Add qualifier const to
3658 2014-01-07 Yao Qi <yao@codesourcery.com>
3660 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3662 2014-01-07 Yao Qi <yao@codesourcery.com>
3664 * gnu-nat.c (make_inf) Update declaration.
3665 (make_inf): Make it static.
3666 (inf_set_traced): Likewise.
3667 (inf_port_to_thread, inf_task_died_status): Likewise.
3669 2014-01-07 Yao Qi <yao@codesourcery.com>
3671 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3673 2014-01-07 Yao Qi <yao@codesourcery.com>
3675 * gnu-nat.c (_initialize_gnu_nat): Declare.
3677 2014-01-07 Yao Qi <yao@codesourcery.com>
3679 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3681 (struct gdbarch_info) <byte_order>: Change type to
3683 <byte_order_for_code>: Likewise.
3684 * gdbarch.c, gdbarch.h: Regenerated.
3686 2014-01-06 Sasha Smundak <asmundak@google.com>
3688 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3690 2014-01-06 Tom Tromey <tromey@redhat.com>
3692 * doublest.c (convert_doublest_to_floatformat): Use const, not
3694 * somread.c (som_symtab_read): Likewise.
3696 2014-01-07 Hui Zhu <hui@codesourcery.com>
3698 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3699 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3700 (gdb_bfd_fopen): Ditto.
3701 (gdb_bfd_openr): Ditto.
3702 (gdb_bfd_openw): Ditto.
3703 (gdb_bfd_openr_iovec): Ditto.
3704 (gdb_bfd_fdopenr): Ditto.
3705 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3706 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3708 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3710 * symfile-mem.c (symbol_file_add_from_memory): Removed
3711 gdb_bfd_stash_filename.
3713 2014-01-03 Doug Evans <dje@google.com>
3715 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3718 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3720 Update year range in copyright notice of all files.
3722 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3724 * top.c (print_gdb_version): Set copyright year to 2014.
3726 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3728 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3730 For older changes see ChangeLog-2013.
3736 version-control: never