1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (target_static_tracepoint_markers_by_strid): Add
5 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7 * target.c (update_current_target): Update.
8 * remote.c (struct target_ops)
9 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10 * linux-nat.c (struct target_ops)
11 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13 2014-02-19 Tom Tromey <tromey@redhat.com>
15 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
17 (target_static_tracepoint_marker_at): Add argument.
18 * target.c (update_current_target): Update.
19 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
22 2014-02-19 Tom Tromey <tromey@redhat.com>
24 * target.h (struct target_ops) <to_set_permissions>: Add argument.
25 (target_set_permissions): Add argument.
26 * target.c (update_current_target): Update.
27 * remote.c (remote_set_permissions): Add 'self' argument.
28 (remote_start_remote): Update.
30 2014-02-19 Tom Tromey <tromey@redhat.com>
32 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
33 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
34 (target_get_tib_address): Add argument.
35 * target.c (update_current_target): Update.
36 * remote.c (remote_get_tib_address): Add 'self' argument.
38 2014-02-19 Tom Tromey <tromey@redhat.com>
40 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
41 (target_set_trace_notes): Add argument.
42 * target.c (update_current_target): Update.
43 * remote.c (remote_set_trace_notes): Add 'self' argument.
45 2014-02-19 Tom Tromey <tromey@redhat.com>
47 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
49 (target_set_trace_buffer_size): Add argument.
50 * target.c (update_current_target): Update.
51 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
53 2014-02-19 Tom Tromey <tromey@redhat.com>
55 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
57 (target_set_circular_trace_buffer): Add argument.
58 * target.c (update_current_target): Update.
59 * remote.c (remote_set_circular_trace_buffer): Add 'self'
62 2014-02-19 Tom Tromey <tromey@redhat.com>
64 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
66 (target_set_disconnected_tracing): Add argument.
67 * target.c (update_current_target): Update.
68 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
70 2014-02-19 Tom Tromey <tromey@redhat.com>
72 * target.h (struct target_ops)
73 <to_get_min_fast_tracepoint_insn_len>: Add argument.
74 (target_get_min_fast_tracepoint_insn_len): Add argument.
75 * target.c (update_current_target): Update.
76 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
79 2014-02-19 Tom Tromey <tromey@redhat.com>
81 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
83 (target_get_raw_trace_data): Add argument.
84 * target.c (update_current_target): Update.
85 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
87 2014-02-19 Tom Tromey <tromey@redhat.com>
89 * target.h (struct target_ops) <to_upload_trace_state_variables>:
91 (target_upload_trace_state_variables): Add argument.
92 * target.c (update_current_target): Update.
93 * remote.c (remote_upload_trace_state_variables): Add 'self'
95 (remote_start_remote): Update.
97 2014-02-19 Tom Tromey <tromey@redhat.com>
99 * target.h (struct target_ops) <to_upload_tracepoints>: Add
101 (target_upload_tracepoints): Add argument.
102 * target.c (update_current_target): Update.
103 * remote.c (remote_upload_tracepoints): Add 'self' argument.
104 (remote_start_remote): Update.
106 2014-02-19 Tom Tromey <tromey@redhat.com>
108 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
109 (target_save_trace_data): Add argument.
110 * target.c (update_current_target): Update.
111 * remote.c (remote_save_trace_data): Add 'self' argument.
113 2014-02-19 Tom Tromey <tromey@redhat.com>
115 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
117 * target.h (struct target_ops)
118 <to_get_trace_state_variable_value>: Add argument.
119 (target_get_trace_state_variable_value): Add argument.
120 * target.c (update_current_target): Update.
121 * remote.c (remote_get_trace_state_variable_value): Add 'self'
123 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
125 2014-02-19 Tom Tromey <tromey@redhat.com>
127 * tracepoint.c (tfile_trace_find): Add 'self' argument.
128 * target.h (struct target_ops) <to_trace_find>: Add argument.
129 (target_trace_find): Add argument.
130 * target.c (update_current_target): Update.
131 * remote.c (remote_trace_find): Add 'self' argument.
132 * ctf.c (ctf_trace_find): Add 'self' argument.
134 2014-02-19 Tom Tromey <tromey@redhat.com>
136 * target.h (struct target_ops) <to_trace_stop>: Add argument.
137 (target_trace_stop): Add argument.
138 * target.c (update_current_target): Update.
139 * remote.c (remote_trace_stop): Add 'self' argument.
141 2014-02-19 Tom Tromey <tromey@redhat.com>
143 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
144 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
146 (target_get_tracepoint_status): Add argument.
147 * target.c (update_current_target): Update.
148 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
150 2014-02-19 Tom Tromey <tromey@redhat.com>
152 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
153 * target.h (struct target_ops) <to_get_trace_status>: Add
155 (target_get_trace_status): Add argument.
156 * target.c (update_current_target): Update.
157 * remote.c (remote_get_trace_status): Add 'self' argument.
158 (remote_start_remote, remote_can_download_tracepoint): Update.
159 * ctf.c (ctf_get_trace_status): Add 'self' argument.
161 2014-02-19 Tom Tromey <tromey@redhat.com>
163 * target.h (struct target_ops) <to_trace_start>: Add argument.
164 (target_trace_start): Add argument.
165 * target.c (update_current_target): Update.
166 * remote.c (remote_trace_start): Add 'self' argument.
168 2014-02-19 Tom Tromey <tromey@redhat.com>
170 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
172 (target_trace_set_readonly_regions): Add argument.
173 * target.c (update_current_target): Update.
174 * remote.c (remote_trace_set_readonly_regions): Add 'self'
177 2014-02-19 Tom Tromey <tromey@redhat.com>
179 * target.h (struct target_ops) <to_disable_tracepoint>: Add
181 (target_disable_tracepoint): Add argument.
182 * target.c (update_current_target): Update.
183 * remote.c (remote_disable_tracepoint): Add 'self' argument.
185 2014-02-19 Tom Tromey <tromey@redhat.com>
187 * target.h (struct target_ops) <to_enable_tracepoint>: Add
189 (target_enable_tracepoint): Add argument.
190 * target.c (update_current_target): Update.
191 * remote.c (remote_enable_tracepoint): Add 'self' argument.
193 2014-02-19 Tom Tromey <tromey@redhat.com>
195 * target.h (struct target_ops) <to_download_trace_state_variable>:
197 (target_download_trace_state_variable): Add argument.
198 * target.c (update_current_target): Update.
199 * remote.c (remote_download_trace_state_variable): Add 'self'
202 2014-02-19 Tom Tromey <tromey@redhat.com>
204 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
206 (target_can_download_tracepoint): Add argument.
207 * target.c (update_current_target): Update.
208 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
210 2014-02-19 Tom Tromey <tromey@redhat.com>
212 * target.h (struct target_ops) <to_download_tracepoint>: Add
214 (target_download_tracepoint): Add argument.
215 * target.c (update_current_target): Update.
216 * remote.c (remote_download_tracepoint): Add 'self' argument.
218 2014-02-19 Tom Tromey <tromey@redhat.com>
220 * target.h (struct target_ops) <to_trace_init>: Add argument.
221 (target_trace_init): Add argument.
222 * target.c (update_current_target): Update.
223 * remote.c (remote_trace_init): Add 'self' argument.
225 2014-02-19 Tom Tromey <tromey@redhat.com>
227 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
228 * target.c (target_fileio_readlink): Add argument.
229 * remote.c (remote_hostio_readlink): Add 'self' argument.
230 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
232 2014-02-19 Tom Tromey <tromey@redhat.com>
234 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
235 * target.c (target_fileio_unlink): Add argument.
236 * remote.c (remote_hostio_unlink): Add 'self' argument.
237 (remote_file_delete): Update.
238 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
240 2014-02-19 Tom Tromey <tromey@redhat.com>
242 * target.h (struct target_ops) <to_fileio_close>: Add argument.
243 * target.c (target_fileio_close): Add argument.
244 * remote.c (remote_hostio_close): Add 'self' argument.
245 (remote_hostio_close_cleanup): Update.
246 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
248 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
250 2014-02-19 Tom Tromey <tromey@redhat.com>
252 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
253 * target.c (target_fileio_pread): Add argument.
254 * remote.c (remote_hostio_pread): Add 'self' argument.
255 (remote_bfd_iovec_pread, remote_file_get): Update.
256 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
258 2014-02-19 Tom Tromey <tromey@redhat.com>
260 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
261 * target.c (target_fileio_pwrite): Add argument.
262 * remote.c (remote_hostio_pwrite): Add 'self' argument.
263 (remote_file_put): Update.
264 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
266 2014-02-19 Tom Tromey <tromey@redhat.com>
268 * target.h (struct target_ops) <to_fileio_open>: Add argument.
269 * target.c (target_fileio_open): Add argument.
270 * remote.c (remote_hostio_open): Add 'self' argument.
271 (remote_bfd_iovec_open): Add 'self' argument.
272 (remote_file_put): Add 'self' argument.
273 (remote_file_get): Add 'self' argument.
274 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
276 2014-02-19 Tom Tromey <tromey@redhat.com>
278 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
280 (target_can_run_breakpoint_commands): Add argument.
281 * target.c (update_current_target): Update.
282 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
284 (remote_insert_breakpoint): Add 'self' argument.
285 (remote_insert_hw_breakpoint): Add 'self' argument.
286 (remote_can_run_breakpoint_commands): Add 'self' argument.
288 2014-02-19 Tom Tromey <tromey@redhat.com>
290 * target.h (struct target_ops)
291 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
292 (target_supports_evaluation_of_breakpoint_conditions): Add
294 * target.c (update_current_target): Update.
295 * remote.c (remote_supports_cond_breakpoints): Add 'self'
297 (remote_insert_breakpoint): Add 'self' argument.
298 (remote_insert_hw_breakpoint): Add 'self' argument.
299 (remote_supports_cond_breakpoints): Add 'self' argument.
301 2014-02-19 Tom Tromey <tromey@redhat.com>
303 * target.h (struct target_ops) <to_supports_string_tracing>: Add
305 (target_supports_string_tracing): Add argument.
306 * target.c (update_current_target): Update.
307 * remote.c (remote_supports_string_tracing): Add 'self' argument.
309 2014-02-19 Tom Tromey <tromey@redhat.com>
311 * target.h (struct target_ops)
312 <to_supports_disable_randomization>: Add argument.
313 * target.c (find_default_supports_disable_randomization): Add
315 (target_supports_disable_randomization): Add argument.
316 (find_default_supports_disable_randomization): Add 'self'
318 * remote.c (extended_remote_supports_disable_randomization): Add
320 (remote_supports_disable_randomization): Add 'self' argument.
321 (extended_remote_create_inferior): Update.
322 * linux-nat.c (linux_nat_supports_disable_randomization): Add
325 2014-02-19 Tom Tromey <tromey@redhat.com>
327 * target.h (struct target_ops)
328 <to_supports_enable_disable_tracepoint>: Add argument.
329 (target_supports_enable_disable_tracepoint): Add argument.
330 * target.c (update_current_target): Update.
331 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
334 2014-02-19 Tom Tromey <tromey@redhat.com>
336 * target.h (struct target_ops) <to_supports_multi_process>: Add
338 (target_supports_multi_process): Add argument.
339 * target.c (update_current_target): Update.
340 * remote.c (remote_supports_multi_process): Add 'self' argument.
341 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
343 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
346 2014-02-19 Tom Tromey <tromey@redhat.com>
348 * target.h (struct target_ops) <to_execution_direction>: Add
350 (target_execution_direction): Add argument.
351 * target.c (default_execution_direction): Add 'self' argument.
352 * record-full.c (record_full_execution_direction): Add 'self'
355 2014-02-19 Tom Tromey <tromey@redhat.com>
357 * target.h (struct target_ops) <to_can_execute_reverse>: Add
359 (target_can_execute_reverse): Add argument.
360 * remote.c (remote_can_execute_reverse): Add 'self' argument.
361 * record-full.c (record_full_can_execute_reverse): Add 'self'
363 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
369 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
371 (target_get_ada_task_ptid): Add argument.
372 * target.c (update_current_target): Update.
373 (default_get_ada_task_ptid): Add 'self' argument.
374 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
375 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
376 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
378 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
380 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
382 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
384 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
385 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
388 2014-02-19 Tom Tromey <tromey@redhat.com>
390 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
391 (target_goto_bookmark): Add argument.
392 * target.c (dummy_goto_bookmark): Add 'self' argument.
393 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
395 2014-02-19 Tom Tromey <tromey@redhat.com>
397 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
398 (target_get_bookmark): Add argument.
399 * target.c (dummy_get_bookmark): Add 'self' argument.
400 * record-full.c (record_full_get_bookmark): Add 'self' argument.
402 2014-02-19 Tom Tromey <tromey@redhat.com>
404 * target.h (struct target_ops) <to_make_corefile_notes>: Add
406 (target_make_corefile_notes): Add argument.
407 * target.c (dummy_make_corefile_notes): Add 'self' argument.
408 * procfs.c (procfs_make_note_section): Add 'self' argument.
409 (procfs_make_note_section): Add 'self' argument.
410 (procfs_make_note_section): Add 'self' argument.
411 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
413 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
414 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
415 * exec.c (exec_make_note_section): Add 'self' argument.
416 (exec_make_note_section): Add 'self' argument.
418 2014-02-19 Tom Tromey <tromey@redhat.com>
420 * target.h (struct target_ops) <to_find_memory_regions>: Add
422 (target_find_memory_regions): Add argument.
423 * target.c (dummy_find_memory_regions): Add 'self' argument.
424 * procfs.c (proc_find_memory_regions): Add 'self' argument.
425 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
426 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
427 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
428 * exec. (exec_do_find_memory_regions): New global.
429 (exec_set_find_memory_regions): Rewrite.
430 (exec_find_memory_regions): New function.
431 (init_exec_ops): Use exec_find_memory_regions.
433 2014-02-19 Tom Tromey <tromey@redhat.com>
435 * target.h (struct target_ops) <to_supports_non_stop>: Add
437 * target.c (find_default_supports_non_stop): Add argument.
438 (target_supports_non_stop): Add argument.
439 (find_default_supports_non_stop): Add 'self' argument.
440 * remote.c (remote_supports_non_stop): Add 'self' argument.
441 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
443 2014-02-19 Tom Tromey <tromey@redhat.com>
445 * target.h (struct target_ops) <to_log_command>: Add argument.
446 (target_log_command): Add argument.
447 * serial.h (serial_log_command): Add 'self' argument.
448 * serial.c (serial_log_command): Add 'self' argument.
450 2014-02-19 Tom Tromey <tromey@redhat.com>
452 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
453 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
455 (target_pid_to_exec_file): Add argument.
456 * target.c (debug_to_pid_to_exec_file): Add argument.
457 (update_current_target): Update.
458 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
459 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
460 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
461 (linux_handle_extended_wait): Update.
462 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
463 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
464 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
465 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
467 2014-02-19 Tom Tromey <tromey@redhat.com>
469 * target.h (struct target_ops) <to_rcmd>: Add argument.
470 (target_rcmd): Add argument.
471 * target.c (debug_to_rcmd): Add argument.
472 (update_current_target, do_monitor_command): Update.
473 * remote.c (remote_rcmd): Add 'self' argument.
474 * monitor.c (monitor_rcmd): Add 'self' argument.
476 2014-02-19 Tom Tromey <tromey@redhat.com>
478 * windows-nat.c (windows_stop): Add 'self' argument.
479 * target.h (struct target_ops) <to_stop>: Add argument.
480 * target.c (target_stop): Add argument.
481 (debug_to_stop): Add argument.
482 (update_current_target): Update.
483 * remote.c (remote_stop): Add 'self' argument.
484 * remote-sim.c (gdbsim_stop): Add 'self' argument.
485 (gdbsim_cntrl_c): Update.
486 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
487 * procfs.c (procfs_stop): Add 'self' argument.
488 * nto-procfs.c (procfs_stop): Add 'self' argument.
489 * monitor.c (monitor_stop): Add 'self' argument.
490 (monitor_open): Update.
491 * linux-nat.c (linux_nat_stop): Add argument.
492 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
493 * gnu-nat.c (gnu_stop): Add 'self' argument.
494 * darwin-nat.c (darwin_stop): Add 'self' argument.
496 2014-02-19 Tom Tromey <tromey@redhat.com>
498 * target.h (struct target_ops) <to_thread_name>: Add argument.
499 * target.c (target_thread_name): Add argument.
500 (update_current_target): Update.
501 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
503 2014-02-19 Tom Tromey <tromey@redhat.com>
505 * target.h (struct target_ops) <to_extra_thread_info>: Add
507 (target_extra_thread_info): Add argument.
508 * target.c (update_current_target): Update.
509 * remote.c (remote_threads_extra_info): Add 'self' argument.
510 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
512 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
513 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
514 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
516 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
518 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
520 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
523 2014-02-19 Tom Tromey <tromey@redhat.com>
525 * target.h (struct target_ops) <to_program_signals>: Add argument.
526 * target.c (target_program_signals): Add argument.
527 * remote.c (remote_program_signals): Add 'self' argument.
529 2014-02-19 Tom Tromey <tromey@redhat.com>
531 * target.h (struct target_ops) <to_pass_signals>: Add argument.
532 * target.c (target_pass_signals): Add argument.
533 * remote.c (remote_pass_signals): Add 'self' argument.
534 (remote_start_remote): Update.
535 * procfs.c (procfs_pass_signals): Add 'self' argument.
536 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
537 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
538 (linux_nat_create_inferior, linux_nat_attach): Update.
540 2014-02-19 Tom Tromey <tromey@redhat.com>
542 * windows-nat.c (windows_can_run): Add 'self' argument.
543 * target.h (struct target_ops) <to_can_run>: Add argument.
544 (target_can_run): Add argument.
545 * target.c (debug_to_can_run): Add argument.
546 (update_current_target): Update.
547 * nto-procfs.c (procfs_can_run): Add 'self' argument.
548 * inf-child.c (inf_child_can_run): Add 'self' argument.
549 * go32-nat.c (go32_can_run): Add 'self' argument.
551 2014-02-19 Tom Tromey <tromey@redhat.com>
553 * target.h (struct target_ops) <to_has_exited>: Add argument.
554 (target_has_exited): Add argument.
555 * target.c (debug_to_has_exited): Add argument.
556 (update_current_target): Update.
558 2014-02-19 Tom Tromey <tromey@redhat.com>
560 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
562 (target_set_syscall_catchpoint): Add argument.
563 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
565 * target.c (update_current_target): Update.
567 2014-02-19 Tom Tromey <tromey@redhat.com>
569 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
571 (target_remove_exec_catchpoint): Add argument.
572 * target.c (debug_to_remove_exec_catchpoint): Add argument.
573 (update_current_target): Update.
574 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
577 2014-02-19 Tom Tromey <tromey@redhat.com>
579 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
581 (target_insert_exec_catchpoint): Add argument.
582 * target.c (debug_to_insert_exec_catchpoint): Add argument.
583 (update_current_target): Update.
584 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
587 2014-02-19 Tom Tromey <tromey@redhat.com>
589 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
591 (target_remove_vfork_catchpoint): Add argument.
592 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
593 (update_current_target): Update.
594 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
597 2014-02-19 Tom Tromey <tromey@redhat.com>
599 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
601 (target_insert_vfork_catchpoint): Add argument.
602 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
603 (update_current_target): Update.
604 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
611 (target_remove_fork_catchpoint): Add argument.
612 * target.c (debug_to_remove_fork_catchpoint): Add argument.
613 (update_current_target): Update.
614 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
617 2014-02-19 Tom Tromey <tromey@redhat.com>
619 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
621 (target_insert_fork_catchpoint): Add argument.
622 * target.c (debug_to_insert_fork_catchpoint): Add argument.
623 (update_current_target): Update.
624 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
627 2014-02-19 Tom Tromey <tromey@redhat.com>
629 * target.h (struct target_ops) <to_post_startup_inferior>: Add
631 (target_post_startup_inferior): Add argument.
632 * target.c (debug_to_post_startup_inferior): Add argument.
633 (update_current_target): Update.
634 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
636 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
638 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
640 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
642 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
644 (super_post_startup_inferior): Likewise.
645 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
647 (super_post_startup_inferior): Likewise.
648 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
650 (super_post_startup_inferior): Likewise.
652 2014-02-19 Tom Tromey <tromey@redhat.com>
654 * target.h (struct target_ops) <to_load>: Add argument.
655 * target.c (target_load): Add argument.
656 (debug_to_load): Add argument.
657 (update_current_target): Update.
658 * remote.c (remote_load): Add 'self' argument.
659 * remote-sim.c (gdbsim_load): Add 'self' argument.
660 * remote-mips.c (mips_load): Add 'self' argument.
661 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
662 * monitor.c (monitor_load): Add 'self' argument.
663 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
665 2014-02-19 Tom Tromey <tromey@redhat.com>
667 * target.h (struct target_ops) <to_terminal_info>: Add argument.
668 (target_terminal_info): Add argument.
669 * target.c (debug_to_terminal_info): Add argument.
670 (default_terminal_info): Likewise.
671 * inflow.c (child_terminal_info): Add 'self' argument.
672 * inferior.h (child_terminal_info): Add 'self' argument.
673 * go32-nat.c (go32_terminal_info): Add 'self' argument.
675 2014-02-19 Tom Tromey <tromey@redhat.com>
677 * target.h (struct target_ops) <to_terminal_save_ours>: Add
679 (target_terminal_save_ours): Add argument.
680 * target.c (debug_to_terminal_save_ours): Add argument.
681 (update_current_target): Update.
682 * inflow.c (terminal_save_ours): Add 'self' argument.
683 * inferior.h (terminal_save_ours): Add 'self' argument.
685 2014-02-19 Tom Tromey <tromey@redhat.com>
687 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
688 (target_terminal_ours): Add argument.
689 * target.c (debug_to_terminal_ours): Add argument.
690 (update_current_target): Update.
691 * remote.c (remote_terminal_ours): Add 'self' argument.
692 (remote_close): Update.
693 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
694 * inflow.c (terminal_ours): Add 'self' argument.
695 * inferior.h (terminal_ours): Add 'self' argument.
696 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
698 2014-02-19 Pedro Alves <palves@redhat.com>
699 Tom Tromey <tromey@redhat.com>
701 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
703 (target_terminal_ours_for_output): Add argument.
704 * target.c (debug_to_terminal_ours_for_output): Add argument.
705 (update_current_target): Update.
706 * inflow.c (terminal_ours_for_output): Add 'self' argument.
707 * inferior.h (terminal_ours_for_output): Add 'self' argument.
708 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
710 2014-02-19 Tom Tromey <tromey@redhat.com>
712 * target.h (struct target_ops) <to_terminal_inferior>: Add
714 * target.c (target_terminal_inferior): Add argument.
715 (update_current_target): Update.
716 * remote.c (remote_terminal_inferior): Add 'self' argument.
717 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
718 * inflow.c (terminal_inferior): Add 'self' argument.
719 * inferior.h (terminal_inferior): Add 'self' argument.
720 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
721 (go32_terminal_inferior): Add 'self' argument.
723 2014-02-19 Tom Tromey <tromey@redhat.com>
725 * target.h (struct target_ops) <to_terminal_init>: Add argument.
726 (target_terminal_init): Add argument.
727 * target.c (debug_to_terminal_init): Add argument.
728 (update_current_target): Update.
729 * inflow.c (terminal_init_inferior): Add 'self' argument.
730 * inferior.h (terminal_init_inferior): Add 'self' argument.
731 * go32-nat.c (go32_terminal_init): Add 'self' argument.
732 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
734 2014-02-19 Tom Tromey <tromey@redhat.com>
736 * target.h (struct target_ops)
737 <to_can_accel_watchpoint_condition>: Add argument.
738 (target_can_accel_watchpoint_condition): Add argument.
739 * target.c (debug_to_can_accel_watchpoint_condition): Add
741 (update_current_target): Update.
742 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
745 2014-02-19 Tom Tromey <tromey@redhat.com>
747 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
749 (target_region_ok_for_hw_watchpoint): Add argument.
750 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
751 (default_region_ok_for_hw_watchpoint): Add argument.
752 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
753 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
755 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
757 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
759 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
761 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
763 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
765 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
766 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
768 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
771 2014-02-19 Tom Tromey <tromey@redhat.com>
773 * target.h (struct target_ops) <to_insert_watchpoint>: Add
775 (target_insert_watchpoint): Add argument.
776 * target.c (debug_to_insert_watchpoint): Add argument.
777 (update_current_target): Update.
778 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
779 * remote.c (remote_insert_watchpoint): Add 'self' argument.
780 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
781 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
782 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
783 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
785 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
786 (procfs_insert_hw_watchpoint): Add 'self' argument.
787 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
789 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
791 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
793 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
794 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
796 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
799 2014-02-19 Tom Tromey <tromey@redhat.com>
801 * target.h (struct target_ops) <to_remove_watchpoint>: Add
803 (target_remove_watchpoint): Add argument.
804 * target.c (debug_to_remove_watchpoint): Add argument.
805 (update_current_target): Update.
806 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
807 * remote.c (remote_remove_watchpoint): Add 'self' argument.
808 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
809 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
810 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
811 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
813 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
814 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
816 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
818 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
820 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
821 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
823 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
826 2014-02-19 Tom Tromey <tromey@redhat.com>
828 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
830 (target_remove_hw_breakpoint): Add argument.
831 * target.c (debug_to_remove_hw_breakpoint): Add argument.
832 (update_current_target): Update.
833 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
834 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
836 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
837 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
839 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
842 2014-02-19 Tom Tromey <tromey@redhat.com>
844 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
846 (target_insert_hw_breakpoint): Add argument.
847 * target.c (debug_to_insert_hw_breakpoint): Add argument.
848 (update_current_target): Update.
849 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
850 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
852 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
853 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
854 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
856 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
859 2014-02-19 Tom Tromey <tromey@redhat.com>
861 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
863 (target_can_use_hardware_watchpoint): Add argument.
864 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
865 (update_current_target): Update.
866 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
868 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
870 * remote.c (remote_check_watch_resources): Add 'self' argument.
871 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
872 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
874 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
875 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
877 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
879 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
881 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
883 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
885 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
887 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
888 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
890 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
893 2014-02-19 Tom Tromey <tromey@redhat.com>
895 * target.h (struct target_ops) <to_post_attach>: Add argument.
896 (target_post_attach): Add argument.
897 * target.c (debug_to_post_attach): Add argument.
898 (update_current_target): Update.
899 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
900 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
901 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
902 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
903 * inf-child.c (inf_child_post_attach): Add 'self' argument.
905 2014-02-19 Tom Tromey <tromey@redhat.com>
907 * windows-nat.c (windows_close): Add 'self' argument.
908 * tracepoint.c (tfile_close): Add 'self' argument.
909 * target.h (struct target_ops) <to_close>: Add argument.
910 * target.c (target_close): Add argument.
911 (update_current_target): Update.
912 * remote.c (remote_close): Add 'self' argument.
913 * remote-sim.c (gdbsim_close): Add 'self' argument.
914 * remote-mips.c (mips_close): Add 'self' argument.
915 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
916 * record-full.c (record_full_close): Add 'self' argument.
917 * record-btrace.c (record_btrace_close): Add 'self' argument.
918 * monitor.h (monitor_close): Add 'self' argument.
919 * monitor.c (monitor_close): Add 'self' argument.
920 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
921 * linux-nat.c (linux_nat_close): Add argument.
922 * go32-nat.c (go32_close): Add 'self' argument.
923 * exec.c (exec_close_1): Add 'self' argument.
924 * ctf.c (ctf_close): Add 'self' argument.
925 * corelow.c (core_close): Add 'self' argument.
926 (core_close_cleanup): Update.
927 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
928 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
930 2014-02-19 Tom Tromey <tromey@redhat.com>
932 * remote.c (remote_load): New function.
933 (init_remote_ops): Use it.
935 2014-02-19 Tom Tromey <tromey@redhat.com>
937 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
939 * common/linux-btrace.h (linux_supports_btrace): Update.
940 * remote.c (remote_supports_btrace): Add "self" argument.
941 * target-delegates.c: Rebuild.
942 * target.c (target_supports_btrace): Remove.
943 * target.h (struct target_ops) <to_supports_btrace>: Add
945 (target_supports_btrace): New define.
947 2014-02-19 Tom Tromey <tromey@redhat.com>
949 * record-full.c (record_full_beneath_to_resume_ops)
950 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
951 (record_full_beneath_to_wait)
952 (record_full_beneath_to_store_registers_ops)
953 (record_full_beneath_to_store_registers)
954 (record_full_beneath_to_xfer_partial_ops)
955 (record_full_beneath_to_xfer_partial)
956 (record_full_beneath_to_insert_breakpoint_ops)
957 (record_full_beneath_to_insert_breakpoint)
958 (record_full_beneath_to_remove_breakpoint_ops)
959 (record_full_beneath_to_remove_breakpoint)
960 (record_full_beneath_to_stopped_by_watchpoint)
961 (record_full_beneath_to_stopped_data_address)
962 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
963 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
964 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
965 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
966 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
967 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
968 (tmp_to_stopped_data_address, tmp_to_async): Remove.
969 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
970 (record_full_resume, record_full_wait_1)
971 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
972 (record_full_store_registers, record_full_xfer_partial)
973 (record_full_insert_breakpoint, record_full_remove_breakpoint)
974 (record_full_async, record_full_core_xfer_partial): Use target
976 * target-delegates.c: Rebuild.
977 * target.c (current_xfer_partial): Remove.
978 (update_current_target): Do not INHERIT or de_fault
979 to_insert_breakpoint, to_remove_breakpoint,
980 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
981 to_is_async_p, to_async. Do not set to_xfer_partial field.
982 (default_xfer_partial): Simplify.
983 (current_xfer_partial): Remove.
984 (target_wait, target_resume): Simplify.
985 (find_default_can_async_p, find_default_is_async_p): Update.
986 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
987 to_xfer_partial, to_stopped_by_watchpoint,
988 to_stopped_data_address.
989 (target_store_registers): Simplify.
990 (forward_target_remove_breakpoint)
991 (forward_target_insert_breakpoint): Remove.
992 (target_remove_breakpoint, target_insert_breakpoint)
993 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
994 * target.h (struct target_ops) <to_resume, to_wait,
995 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
996 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
997 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
999 (forward_target_remove_breakpoint)
1000 (forward_target_insert_breakpoint): Remove.
1001 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1003 (record_btrace_insert_breakpoint): Delegate directly.
1005 2014-02-19 Tom Tromey <tromey@redhat.com>
1008 * target-delegates.c: New file.
1009 * target.c: Include target-delegates.c.
1010 (init_dummy_target): Call install_dummy_methods.
1011 (complete_target_initialization): Call install_delegators.
1012 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1013 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1014 * make-target-delegates: New file.
1016 2014-02-19 Tom Tromey <tromey@redhat.com>
1018 * record.c (find_record_target): Use find_target_at.
1019 * target.c (find_target_at): New function.
1020 * target.h (find_target_at): Declare.
1022 2014-02-19 Tom Tromey <tromey@redhat.com>
1024 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1026 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1028 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1029 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1031 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1033 * linux-nat.c (save_sigtrap): Update.
1034 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1035 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1036 (linux_nat_close): Update.
1037 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1039 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1041 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1042 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1043 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1044 (tmp_to_async): Add 'ops' argument.
1045 (record_full_stopped_by_watchpoint, record_full_async)
1046 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1048 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1049 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1050 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1051 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1052 (remote_is_async_p, remote_async): Add 'ops' argument.
1053 (remote_stopped_data_address): Update.
1054 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1055 * target.c (update_current_target)
1056 (find_default_can_async_p, find_default_is_async_p): Update.
1057 (init_dummy_target): Update.
1058 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1059 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1060 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1061 (target_can_async_p, target_is_async_p, target_async)
1062 (target_stopped_by_watchpoint): Update.
1064 2014-02-19 Yao Qi <yao@codesourcery.com>
1067 * gdbarch.sh: Remove startup_gdbarch.
1068 * gdbarch.c: Regenerated.
1069 * gdbarch.h: Likewise.
1071 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1073 * rl78-tdep.c (rl78_g10_register_name): New function.
1074 (rl78_return_value): Add g10 support.
1075 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1078 2014-02-17 Doug Evans <xdje42@gmail.com>
1080 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1081 (SUBDIR_GUILE_SRCS): Ditto.
1082 (scm-gsmob.o): Ditto.
1084 2014-02-17 Yao Qi <yao@codesourcery.com>
1086 * gnu-nat.c (ILL_RPC): Declare defined function.
1088 2014-02-17 Yao Qi <yao@codesourcery.com>
1090 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1091 mach_msg_type_number_t.
1092 (gnu_write_inferior): Likewise.
1094 2014-02-17 Yao Qi <yao@codesourcery.com>
1096 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1098 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1099 (inf_validate_procs, inf_signal): Likewise.
1100 (S_exception_raise_request): Likewise.
1101 (do_mach_notify_dead_name): Likewise.
1102 (steal_exc_port): Likewise.
1103 (gnu_read_inferior): Change 'copy_count''s type to
1104 mach_msg_type_number_t.
1105 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1108 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1110 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1111 flag. Adjust all users; in particular...
1112 (gnu_wait): ..., don't decrement its value in here...
1113 (gnu_create_inferior): ..., and instead set the flag in here,
1114 around the startup_inferior call, and call that one with
1115 START_INFERIOR_TRAPS_EXPECTED.
1117 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1118 (ILL_RPC): ... new macro.
1119 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1120 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1121 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1122 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1123 functions with ILL_RPC macro.
1124 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1125 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1126 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1127 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1128 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1129 (S_proc_getlogin_reply, S_proc_getsid_reply)
1130 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1131 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1132 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1133 (S_proc_getnports_reply, S_proc_is_important_reply)
1134 (S_proc_get_code_reply): New stub functions, generated with
1137 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1138 collected the type check structures.
1140 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1142 2014-02-14 Doug Evans <dje@google.com>
1144 * target.c (target_write_partial): Fix result type.
1146 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1148 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1149 the proper offsets to access fpregset_t.
1151 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1153 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1154 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1155 * h8300-tdep.c (setmachinelist): Remove global.
1156 * hppa-tdep.c (hppa_sigtramp): Remove global.
1157 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1158 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1159 * ravenscar-thread.c (update_target_observer): Remove global.
1160 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1162 2014-02-12 Tom Tromey <tromey@redhat.com>
1164 * common/rsp-low.c: Update comments.
1165 * common/rsp-low.h: Update comments.
1167 2014-02-12 Tom Tromey <tromey@redhat.com>
1169 * common/rsp-low.c (convert_ascii_to_int): Remove.
1170 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1172 2014-02-12 Tom Tromey <tromey@redhat.com>
1174 * common/rsp-low.h (unhexify): Don't declare.
1175 * common/rsp-low.c (unhexify): Remove.
1177 2014-02-12 Tom Tromey <tromey@redhat.com>
1179 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1180 * common/rsp-low.c (convert_int_to_ascii): Remove.
1182 2014-02-12 Tom Tromey <tromey@redhat.com>
1184 * common/rsp-low.h (hexify): Don't declare.
1185 * common/rsp-low.c (hexify): Remove.
1187 2014-02-12 Tom Tromey <tromey@redhat.com>
1189 * common/rsp-low.c (hexify): Never take strlen of argument.
1191 2014-02-12 Tom Tromey <tromey@redhat.com>
1193 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1194 * remote.c (extended_remote_run, remote_rcmd)
1195 (remote_download_trace_state_variable, remote_save_trace_data)
1196 (remote_set_trace_notes): Update.
1197 * tracepoint.c (encode_source_string, tfile_write_status)
1198 (tfile_write_uploaded_tsv): Update.
1200 2014-02-12 Tom Tromey <tromey@redhat.com>
1202 * tracepoint.c: Include rsp-low.h.
1203 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1204 * remote.c: Include rsp-low.h.
1205 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1206 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1207 (remote_unescape_input): Move to common/rsp-low.c.
1208 * common/rsp-low.h: New file.
1209 * common/rsp-low.c: New file.
1210 * Makefile.in (SFILES): Add common/rsp-low.c.
1211 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1212 (COMMON_OBS): Add rsp-low.o.
1213 (rsp-low.o): New target.
1215 2014-02-12 Tom Tromey <tromey@redhat.com>
1217 * utils.h: Include print-utils.h.
1218 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1219 (int_string, core_addr_to_string, core_addr_to_string_nz)
1220 (hex_string, hex_string_custom): Don't declare.
1221 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1222 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1223 (hex_string_custom, int_string, core_addr_to_string)
1224 (core_addr_to_string_nz, host_address_to_string): Move to
1225 common/print-utils.c.
1226 * common/print-utils.h: New file.
1227 * common/print-utils.c: New file
1228 * Makefile.in (SFILES): Add common/print-utils.c.
1229 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1230 (COMMON_OBS): Add print-utils.o.
1231 (print-utils.o): New target.
1233 2014-02-12 Tom Tromey <tromey@redhat.com>
1235 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1237 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1239 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1241 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1243 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1244 if a PT_IO ptrace request returns sucessfully but indicates that 0
1245 bytes were transferred.
1247 2014-02-12 Pedro Alves <palves@redhat.com>
1248 Kevin Buettner <kevinb@redhat.com>
1250 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1251 TYPE_INSTANCE_FLAG_CODE_SPACE.
1253 2014-02-12 Pedro Alves <palves@redhat.com>
1255 * h8300-tdep.c (pseudo_from_raw_register)
1256 (raw_from_pseudo_register): New functions.
1257 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1260 2014-02-12 Pedro Alves <palves@redhat.com>
1262 * h8300-tdep.c (h8300_register_sim_regno): New function.
1263 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1264 gdbarch_register_sim_regno hook.
1266 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1268 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1270 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1272 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1274 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1276 * obsd-tdep.h (obsd_init_abi): New prototype.
1277 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1278 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1279 (obsd_init_abi): New functions.
1280 * i386obsd-tdep.c: Include "obsd-tdep.h".
1281 (i386obsd_init_abi): Call obsd_init_abi.
1282 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1283 (amd64obsd_init_abi): Call obsd_init_abi.
1284 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1285 obsd-tdep.c to gdb_target_obs.
1287 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1289 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1290 double float arguments to 16-byte in the argument slots.
1292 2014-02-11 Doug Evans <xdje42@gmail.com>
1294 * configure.ac: Don't crash if pkg-config is not found and guile
1295 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1297 * configure: Regenerate.
1299 2014-02-11 Yao Qi <yao@codesourcery.com>
1301 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1302 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1303 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1304 * gnu-nat.c (gnu_xfer_memory): Likewise.
1305 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1306 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1307 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1308 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1310 2014-02-11 Yao Qi <yao@codesourcery.com>
1312 * target.h (enum target_xfer_error): Rename to ...
1313 (enum target_xfer_status): ... it. New. All users updated.
1314 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1316 (TARGET_XFER_STATUS_ERROR_P): New macro.
1317 (target_xfer_error_to_string): Remove declaration.
1318 (target_xfer_status_to_string): Declare.
1319 (target_xfer_partial_ftype): Adjust it.
1320 (struct target_ops) <to_xfer_partial>: Return
1321 target_xfer_status. Add argument xfered_len. Update
1323 * target.c (target_xfer_error_to_string): Rename to ...
1324 (target_xfer_status_to_string): ... it. New. All callers
1326 (target_read_live_memory): Likewise. Call target_xfer_partial
1327 instead of target_read.
1328 (memory_xfer_live_readonly_partial): Return
1329 target_xfer_status. Add argument xfered_len.
1330 (raw_memory_xfer_partial): Likewise.
1331 (memory_xfer_partial_1): Likewise.
1332 (memory_xfer_partial): Likewise.
1333 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1334 properly. Update debug message.
1335 (default_xfer_partial, current_xfer_partial): Likewise.
1336 (target_write_partial): Likewise.
1337 (target_read_partial): Likewise. All callers updated.
1338 (read_whatever_is_readable): Likewise.
1339 (target_write_with_progress): Likewise.
1340 (target_read_alloc_1): Likewise.
1342 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1343 * auxv.c (procfs_xfer_auxv): Likewise.
1344 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1345 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1346 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1347 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1348 * corefile.c (read_memory): Adjust.
1349 * corelow.c (core_xfer_partial): Likewise.
1350 * ctf.c (ctf_xfer_partial): Likewise.
1351 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1353 (darwin_xfer_partial): Likewise.
1354 * exec.c (section_table_xfer_memory_partial): Likewise. All
1356 (exec_xfer_partial): Likewise.
1357 * exec.h (section_table_xfer_memory_partial): Update
1359 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1361 (gnu_xfer_partial): Likewise.
1362 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1363 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1364 (ia64_hpux_xfer_solib_got): Likewise.
1365 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1366 type of 'partial_len' to ULONGEST.
1367 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1368 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1369 (linux_nat_xfer_partial): Likewise.
1370 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1371 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1372 * monitor.c (monitor_xfer_memory): Likewise.
1373 (monitor_xfer_partial): Likewise.
1374 * procfs.c (procfs_xfer_partial): Likewise.
1375 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1376 * record-full.c (record_full_xfer_partial): Likewise.
1377 (record_full_core_xfer_partial): Likewise.
1378 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1379 (gdbsim_xfer_partial): Likewise.
1380 * remote.c (remote_write_bytes_aux): Likewise. All callers
1382 (remote_write_bytes, remote_read_bytes): Likewise. All
1384 (remote_flash_erase): Likewise. All callers updated.
1385 (remote_write_qxfer): Likewise. All callers updated.
1386 (remote_read_qxfer): Likewise. All callers updated.
1387 (remote_xfer_partial): Likewise.
1388 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1389 (rs6000_xfer_shared_libraries): Likewise.
1390 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1391 (sol_thread_xfer_partial): Likewise.
1392 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1393 (sparc_xfer_partial): Likewise.
1394 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1396 (spu_xfer_partial): Likewise.
1397 * spu-multiarch.c (spu_xfer_partial): Likewise.
1398 * tracepoint.c (tfile_xfer_partial): Likewise.
1399 * windows-nat.c (windows_xfer_memory): Likewise.
1400 (windows_xfer_shared_libraries): Likewise.
1401 (windows_xfer_partial): Likewise.
1402 * valprint.c: Replace 'target_xfer_error' with
1403 'target_xfer_status' in comments.
1405 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1407 Checked in by Joel Brobecker <brobecker@adacore.com>.
1408 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1410 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1412 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1413 function parameters.
1415 2014-02-10 Will Newton <will.newton@linaro.org>
1417 * elfread.c (elf_rel_plt_read): Look for a .got section if
1418 looking up .got.plt fails.
1419 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1420 on address passed to elf_gnu_ifunc_record_cache.
1421 (elf_gnu_ifunc_resolve_addr): Likewise.
1422 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1424 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1426 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1427 (X_RETTURN): New macro.
1428 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1430 * sparc64-tdep.c (sparc64_init_abi): Hook
1431 sparc_in_function_epilogue_p.
1433 2014-02-10 Gary Benson <gbenson@redhat.com>
1435 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1436 Rename name_matcher to symbol_matcher.
1438 2014-02-10 Gary Benson <gbenson@redhat.com>
1440 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1441 Use expand_symtabs_file_matcher_ftype and
1442 expand_symtabs_symbol_matcher_ftype.
1444 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1446 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1447 (struct ada_symbol_cache): New.
1448 (ada_free_symbol_cache): Forward declare.
1449 (struct ada_pspace_data): New.
1450 (ada_pspace_data_handle): New static global.
1451 (get_ada_pspace_data, ada_pspace_data_cleanup)
1452 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1453 (cache_space, cache): Delete, now folded inside struct
1455 (ada_get_symbol_cache): New function.
1456 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1458 (_initialize_ada_language): Remove initialization of cache_space.
1459 Move call to observer_attach_inferior_exit up, grouping it
1460 with the other observer registrations inside this function.
1461 Rename command to be more general. Add call to
1462 register_program_space_data_with_cleanup.
1464 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1466 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1467 ada_new_objfile_observer.
1468 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1469 (_initialize_tasks): Update uses of ada_new_objfile_observer
1470 and ada_tasks_normal_stop_observer.
1472 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1474 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1475 returned by the 'Length attribute to integer.
1477 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1479 * ada-lang.c (_initialize_ada_language): Initialize
1480 cache_space obstack.
1482 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1484 * ada-lang.c (HASH_SIZE): New macro.
1485 (struct cache_entry): New type.
1486 (cache_space, cache): New static globals.
1487 (ada_clear_symbol_cache, find_entry): New functions.
1488 (lookup_cached_symbol, cache_symbol): Implement.
1489 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1490 (_initialize_ada_language): Attach ada_new_objfile_observer
1491 and ada_free_objfile_observer.
1493 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1495 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1496 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1497 struct block * parameter.
1498 (ada_lookup_symbol_list_worker): Constify local variable "block".
1499 Remove cast which is no longer necessary.
1501 2014-02-10 Doug Evans <xdje42@gmail.com>
1503 Add Guile as an extension language.
1504 * NEWS: Mention Guile scripting.
1505 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1506 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1507 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1508 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1509 (CLIBS): Add GUILE_LIBS.
1510 (install-guile): New rule.
1511 (guile.o): New rule.
1512 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1513 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1514 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1515 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1516 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1517 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1518 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1519 * configure.ac: New option --with-guile.
1520 * configure: Regenerate.
1521 * config.in: Regenerate.
1522 * auto-load.c: Remove #include "python/python.h". Add #include
1523 "gdb/section-scripts.h".
1524 (source_section_scripts): Handle Guile scripts.
1525 (_initialize_auto_load): Add name of Guile objfile script to
1526 scripts-directory help text.
1527 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1528 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1529 (struct breakpoint): New member scm_bp_object.
1530 * defs.h (enum command_control_type): New value guile_control.
1531 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1533 (show_user): Update comment.
1534 (_initialize_cli_cmds): Update help text for "show user". Update help
1535 text for max-user-call-depth.
1536 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1538 (multi_line_command_p): Add guile_control.
1539 (print_command_lines): Handle guile_control.
1540 (execute_control_command, recurse_read_control_structure): Ditto.
1541 (process_next_line): Recognize "guile" commands.
1542 * disasm.c (gdb_disassemble_info): Make non-static.
1543 * disasm.h: #include "dis-asm.h".
1544 (struct gdbarch): Add forward decl.
1545 (gdb_disassemble_info): Declare.
1546 * extension.c: #include "guile/guile.h".
1547 (extension_languages): Add guile.
1548 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1549 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1550 * gdbtypes.c (get_unsigned_type_max): New function.
1551 (get_signed_type_minmax): New function.
1552 * gdbtypes.h (get_unsigned_type_max): Declare.
1553 (get_signed_type_minmax): Declare.
1554 * guile/README: New file.
1555 * guile/guile-internal.h: New file.
1556 * guile/guile.c: New file.
1557 * guile/guile.h: New file.
1558 * guile/scm-arch.c: New file.
1559 * guile/scm-auto-load.c: New file.
1560 * guile/scm-block.c: New file.
1561 * guile/scm-breakpoint.c: New file.
1562 * guile/scm-disasm.c: New file.
1563 * guile/scm-exception.c: New file.
1564 * guile/scm-frame.c: New file.
1565 * guile/scm-gsmob.c: New file.
1566 * guile/scm-iterator.c: New file.
1567 * guile/scm-lazy-string.c: New file.
1568 * guile/scm-math.c: New file.
1569 * guile/scm-objfile.c: New file.
1570 * guile/scm-ports.c: New file.
1571 * guile/scm-pretty-print.c: New file.
1572 * guile/scm-safe-call.c: New file.
1573 * guile/scm-string.c: New file.
1574 * guile/scm-symbol.c: New file.
1575 * guile/scm-symtab.c: New file.
1576 * guile/scm-type.c: New file.
1577 * guile/scm-utils.c: New file.
1578 * guile/scm-value.c: New file.
1579 * guile/lib/gdb.scm: New file.
1580 * guile/lib/gdb/boot.scm: New file.
1581 * guile/lib/gdb/experimental.scm: New file.
1582 * guile/lib/gdb/init.scm: New file.
1583 * guile/lib/gdb/iterator.scm: New file.
1584 * guile/lib/gdb/printing.scm: New file.
1585 * guile/lib/gdb/types.scm: New file.
1586 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1587 (VPATH): Add $(GUILE_SRCDIR).
1588 (GUILE_DIR): New variable.
1589 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1590 (all): Add stamp-guile dependency.
1591 (stamp-guile): New rule.
1592 (clean-guile, install-guile, uninstall-guile): New rules.
1593 (install-only): Add install-guile dependency.
1594 (uninstall): Add uninstall-guile dependency.
1595 (clean): Add clean-guile dependency.
1597 2014-02-09 Doug Evans <xdje42@gmail.com>
1599 Revert this patch (which I approved, mea culpa).
1601 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1603 * Makefile.in (all-lib): Remove.
1604 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1606 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1608 Fix Python stack corruption.
1609 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1612 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1614 * Makefile.in (all-lib): Remove.
1615 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1617 2014-02-07 Doug Evans <dje@google.com>
1619 * extension-priv.h (extension_language_script_ops): Add comment.
1620 (extension_language_ops): Add comment.
1621 (active_ext_lang_state): Fix typo in comment.
1623 2014-02-07 Pedro Alves <palves@redhat.com>
1625 * infrun.c (handle_signal_stop) <signal arrives while stepping
1626 over a breakpoint>: Switch back to the stepping thread.
1628 2014-02-07 Yao Qi <yao@codesourcery.com>
1630 * target.c (target_xfer_partial): Return zero if LEN is zero.
1632 2014-02-07 Yao Qi <yao@codesourcery.com>
1634 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1635 (ld_so_xfer_auxv): Likewise.
1636 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1637 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1638 * corelow.c (core_xfer_partial): Likewise.
1639 * ctf.c (ctf_xfer_partial): Likewise.
1640 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1641 (darwin_xfer_partial): Likewise.
1642 * exec.c (exec_xfer_partial): Likewise.
1643 * gnu-nat.c (gnu_xfer_partial): Likewise.
1644 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1645 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1646 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1647 * linux-nat.c (linux_xfer_siginfo): Likewise.
1648 (linux_proc_xfer_spu): Likewise.
1649 * procfs.c (procfs_xfer_partial): Likewise.
1650 * record-full.c (record_full_xfer_partial): Likewise.
1651 (record_full_core_xfer_partial): Likewise.
1652 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1653 * remote.c (remote_write_qxfer): Likewise.
1654 (remote_write_qxfer, remote_read_qxfer): Likewise.
1655 (remote_xfer_partial): Likewise.
1656 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1657 (rs6000_xfer_shared_libraries): Likewise.
1658 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1659 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1660 (spu_xfer_partial): Likewise.
1661 * target.c (memory_xfer_partial_1): Likewise.
1662 * tracepoint.c (tfile_xfer_partial): Likewise.
1663 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1664 (windows_xfer_partial): Likewise.
1666 2014-02-07 Yao Qi <yao@codesourcery.com>
1668 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1670 (core_xfer_shared_libraries_aix): Likewise.
1671 * gdbarch.c, gdbarch.h: Regenerated.
1672 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1673 ULONGEST. Change 'len_avail' type to ULONGEST.
1674 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1675 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1677 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1679 2014-02-07 Yao Qi <yao@codesourcery.com>
1681 * corefile.c (memory_error): Get 'exception' from ERR and pass
1682 'exception' to throw_error.
1684 2014-02-06 Doug Evans <xdje42@gmail.com>
1686 * configure.ac (libpython checking): Remove all but python.o from
1687 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1688 * configure: Regenerate.
1690 * Makefile.in (SFILES): Add extension.c.
1691 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1692 (COMMON_OBS): Add extension.o.
1693 * extension.h: New file.
1694 * extension-priv.h: New file.
1695 * extension.c: New file.
1697 * python/python-internal.h: #include "extension.h".
1698 (gdbpy_auto_load_enabled): Declare.
1699 (gdbpy_apply_val_pretty_printer): Declare.
1700 (gdbpy_apply_frame_filter): Declare.
1701 (gdbpy_preserve_values): Declare.
1702 (gdbpy_breakpoint_cond_says_stop): Declare.
1703 (gdbpy_breakpoint_has_cond): Declare.
1704 (void source_python_script_for_objfile): Delete.
1705 * python/python.c: #include "extension-priv.h".
1706 Delete inclusion of "observer.h".
1707 (extension_language_python): Moved here and renamed from
1708 script_language_python in py-auto-load.c.
1709 Redefined to be of type extension_language_defn.
1710 (python_extension_script_ops): New global.
1711 (python_extension_ops): New global.
1712 (struct python_env): New member previous_active.
1713 (restore_python_env): Call restore_active_ext_lang.
1714 (ensure_python_env): Call set_active_ext_lang.
1715 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1717 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1719 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1721 (gdbpy_eval_from_control_command): Renamed from
1722 eval_python_from_control_command, made static. New arg extlang.
1723 (gdbpy_source_script) Renamed from source_python_script, made static.
1725 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1726 result to int. New arg extlang.
1727 (gdbpy_source_objfile_script): Renamed from
1728 source_python_script_for_objfile, made static. New arg extlang.
1729 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1730 static. New args extlang, extlang_printers. Change result type to
1732 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1733 static. New arg extlang. Rename arg printers to extlang_printers
1734 and change type to ext_lang_type_printers *.
1735 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1736 static. Replace argument arg with extlang, extlang_printers.
1737 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1738 (!HAVE_PYTHON, source_python_script): Delete.
1739 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1740 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1741 (!HAVE_PYTHON, start_type_printers): Delete.
1742 (!HAVE_PYTHON, apply_type_printers): Delete.
1743 (!HAVE_PYTHON, free_type_printers): Delete.
1744 (_initialize_python): Delete call to observer_attach_before_prompt.
1745 (finalize_python): Set/restore active extension language.
1746 (gdbpy_finish_initialization) Renamed from
1747 finish_python_initialization, made static. New arg extlang.
1748 (gdbpy_initialized): New function.
1749 * python/python.h: #include "extension.h". Delete #include
1750 "value.h", "mi/mi-cmds.h".
1751 (extension_language_python): Declare.
1752 (GDBPY_AUTO_FILE_NAME): Delete.
1753 (enum py_bt_status): Moved to extension.h and renamed to
1755 (enum frame_filter_flags): Moved to extension.h.
1756 (enum py_frame_args): Moved to extension.h and renamed to
1757 ext_lang_frame_args.
1758 (finish_python_initialization): Delete.
1759 (eval_python_from_control_command): Delete.
1760 (source_python_script): Delete.
1761 (apply_val_pretty_printer): Delete.
1762 (apply_frame_filter): Delete.
1763 (preserve_python_values): Delete.
1764 (gdbpy_script_language_defn): Delete.
1765 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1766 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1768 * auto-load.c: #include "extension.h".
1769 (GDB_AUTO_FILE_NAME): Delete.
1770 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1771 (script_language_gdb): Delete, moved to extension.c and renamed to
1772 extension_language_gdb.
1773 (source_gdb_script_for_objfile): Delete.
1774 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1775 (loaded_script): Change type of language member to
1776 struct extension_language_defn *.
1777 (init_loaded_scripts_info): Initialize
1778 unsupported_script_warning_printed.
1779 (maybe_add_script): Make static. Change type of language arg to
1780 struct extension_language_defn *.
1781 (clear_section_scripts): Reset unsupported_script_warning_printed.
1782 (auto_load_objfile_script_1): Rewrite to use extension language API.
1783 (auto_load_objfile_script): Make public. Remove support-compiled-in
1784 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1785 (source_section_scripts): Rewrite to use extension language API.
1786 (load_auto_scripts_for_objfile): Rewrite to use
1787 auto_load_scripts_for_objfile.
1788 (collect_matching_scripts_data): Change type of language member to
1789 struct extension_language_defn *.
1790 (auto_load_info_scripts): Change type of language arg to
1791 struct extension_language_defn *.
1792 (unsupported_script_warning_print): New function.
1793 (script_not_found_warning_print): Make static.
1794 (_initialize_auto_load): Rewrite construction of scripts-directory
1796 * auto-load.h (struct objfile): Add forward decl.
1797 (struct script_language): Delete.
1798 (struct auto_load_pspace_info): Add forward decl.
1799 (struct extension_language_defn): Add forward decl.
1800 (maybe_add_script): Delete.
1801 (auto_load_objfile_script): Declare.
1802 (script_not_found_warning_print): Delete.
1803 (auto_load_info_scripts): Update prototype.
1804 (auto_load_gdb_scripts_enabled): Declare.
1805 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1806 auto_load_python_scripts_enabled and made public.
1807 (script_language_python): Delete, moved to python.c.
1808 (gdbpy_script_language_defn): Delete.
1809 (info_auto_load_python_scripts): Update to use
1810 extension_language_python.
1812 * breakpoint.c (condition_command): Replace call to
1813 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1814 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1815 with call to breakpoint_ext_lang_cond_says_stop.
1816 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1817 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1818 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1819 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1821 (local_setattro): Print name of extension language with existing
1824 * valprint.c (val_print, value_print): Update to call
1825 apply_ext_lang_val_pretty_printer.
1826 * cp-valprint.c (cp_print_value): Update call to
1827 apply_ext_lang_val_pretty_printer.
1828 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1829 (gdbpy_apply_val_pretty_printer): Renamed from
1830 apply_val_pretty_printer. New arg extlang.
1831 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1833 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1834 extension language API.
1835 * cli/cli-script.c (execute_control_command): Update to call
1836 eval_ext_lang_from_control_command.
1838 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1839 enum ext_lang_bt_status values. Update call to
1840 apply_ext_lang_frame_filter.
1841 (mi_cmd_stack_list_locals): Ditto.
1842 (mi_cmd_stack_list_args): Ditto.
1843 (mi_cmd_stack_list_variables): Ditto.
1844 * mi/mi-main.c: Delete #include "python/python-internal.h".
1845 Add #include "extension.h".
1846 (mi_cmd_list_features): Replace reference to python internal variable
1847 gdb_python_initialized with call to ext_lang_initialized_p.
1849 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1850 Update to use enum ext_lang_frame_args. Update to call
1851 apply_ext_lang_frame_filter.
1852 * python/py-framefilter.c (extract_sym): Update to use enum
1854 (extract_value, py_print_type, py_print_value): Ditto.
1855 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1856 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1857 (py_print_frame): Ditto.
1858 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1859 New arg extlang. Update to use enum ext_lang_bt_status.
1861 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1862 finish_python_initialization. Replace with call to
1863 finish_ext_lang_initialization.
1865 * typeprint.c (do_free_global_table): Update to call
1866 free_ext_lang_type_printers.
1867 (create_global_typedef_table): Update to call
1868 start_ext_lang_type_printers.
1869 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1870 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1871 (type_print_options): Change type of global_printers from "void *"
1872 to "struct ext_lang_type_printers *".
1874 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1875 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1876 (gdbpy_preserve_values): Renamed from preserve_python_values.
1878 (!HAVE_PYTHON, preserve_python_values): Delete.
1880 * utils.c (quit_flag): Delete, moved to extension.c.
1881 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1884 * eval.c: Delete #include "python/python.h".
1885 * main.c: Delete #include "python/python.h".
1887 * defs.h: Update comment.
1889 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1893 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1895 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1898 2014-02-05 Yao Qi <yao@codesourcery.com>
1900 * remote.c (remote_pass_signals): Remove local 'buf' and use
1902 (remote_program_signals): Likewise.
1904 2014-02-05 Yao Qi <yao@codesourcery.com>
1906 * ctf.c: Include "inferior.h" and "gdbthread.h".
1907 (CTF_PID): A new macro.
1908 (ctf_open): Call inferior_appeared and add_thread_silent.
1909 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1910 (ctf_thread_alive): New function.
1911 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1913 2014-02-05 Yao Qi <yao@codesourcery.com>
1917 2013-05-24 Yao Qi <yao@codesourcery.com>
1919 * tracepoint.c (TFILE_PID): Remove.
1920 (tfile_open): Don't add thread and inferior.
1921 (tfile_close): Don't set 'inferior_ptid'. Don't call
1922 exit_inferior_silent.
1923 (tfile_thread_alive): Remove.
1924 (init_tfile_ops): Don't set field 'to_thread_alive' of
1927 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1929 * remote.c (remote_start_remote): Call remote_check_symbols even
1930 if only symbol-file (not file) has been given.
1932 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1934 * gdbarch.sh (skip_entrypoint): New callback.
1935 * gdbarch.c, gdbarch.h: Regenerate.
1936 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1937 * infrun.c (fill_in_stop_func): Likewise.
1938 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1939 (ppc_elfv2_elf_make_msymbol_special): New function.
1940 (ppc_elfv2_skip_entrypoint): Likewise.
1941 (ppc_linux_init_abi): Install them for ELFv2.
1943 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1945 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1946 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1947 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1948 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1949 structures returned in GPRs.
1951 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1953 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1954 offset to the stack parameter list for the ELFv2 ABI.
1956 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1958 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1959 set_gdbarch_convert_from_func_ptr_addr and
1960 set_gdbarch_elf_make_msymbol_special for ELFv1.
1961 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1962 function descriptors on ELFv1.
1963 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1964 set up r12 at function entry.
1966 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1968 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1969 (struct gdbarch_tdep): New member elf_abi.
1971 * rs6000-tdep.c: Include "elf/ppc64.h".
1972 (rs6000_gdbarch_init): Detect ELF ABI version.
1974 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1976 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1977 within a register pair holding a DFP 128-bit value on little-endian.
1978 (ppc64_sysv_abi_return_value_base): Likewise.
1979 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1980 (dfp_pseudo_register_write): Likewise.
1982 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1984 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1985 offset on little-endian when passing _Decimal32.
1986 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1988 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1990 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1991 of the overlapped FP register within the VSX register on little-
1993 (efpr_pseudo_register_write): Likewise.
1995 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1997 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1998 offset on little-endian when passing small structures.
2000 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2002 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2003 (struct ppc64_sysv_argpos): New data structure.
2004 (ppc64_sysv_abi_push_float): Remove.
2005 (ppc64_sysv_abi_push_val): New function.
2006 (ppc64_sysv_abi_push_integer): Likewise.
2007 (ppc64_sysv_abi_push_freg): Likewise.
2008 (ppc64_sysv_abi_push_vreg): Likewise.
2009 (ppc64_sysv_abi_push_param): Likewise.
2010 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2011 (ppc64_sysv_abi_return_value_base): New function.
2012 (ppc64_sysv_abi_return_value): Refactor to use it.
2014 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2016 * NEWS: Document new target powerpc64le-*-linux*.
2018 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2020 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2021 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2023 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2024 register set used in ELF core dumps. Add floating-point register set.
2026 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2028 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2029 dwarf2_to_gdb[] table using symbolic constants. Adjust
2030 penultimate entry from number representing the PC register
2031 to symbolic constant representing the MDR register. Add
2032 constant for the PC register to the end of the table.
2034 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2036 * bsd-kvm.c: Include <sys/param.h>
2038 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2040 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2042 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2044 * ada-lang.h (clear_ada_sym_cache): Delete.
2046 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2048 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2050 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2052 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2053 the sigreturn register save area only if the syscall is
2056 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2058 * valops.c (value_slice): Minor reformatting.
2060 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
2062 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2064 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2066 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2068 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2069 (ada_ignore_descriptive_types_p): New static global.
2070 (find_parallel_type_by_descriptive_type): Return immediately
2071 if ada_ignore_descriptive_types_p is set.
2072 (_initialize_ada_language): Register new commands "maintenance
2073 set ada", "maintenance show ada", "maintenance set ada
2074 ignore-descriptive-types" and "maintenance show ada
2075 ignore-descriptive-types".
2076 * NEWS: Add entry for new "maint ada set/show
2077 ignore-descriptive-types" commands.
2079 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2081 * record-btrace.c (record_btrace_close): Call btrace_teardown
2084 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2086 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2089 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2091 * ada-typeprint (type_is_full_subrange_of_target_type):
2093 (print_range): Add parameter bounds_prefered_p. If not set,
2094 try printing range types using the name of their base type.
2095 (print_range_type): Add parameter bounds_prefered_p.
2096 Use it in call to print_range.
2097 (print_array_type, ada_print_type): Update calls to print_range
2098 and print_range_type.
2100 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2102 * ada-typeprint.c (print_array_type, print_choices, print_range)
2103 (print_range_bound, print_dynamic_range_bound, print_range_type):
2106 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2108 * ada-typeprint.c (print_range): Add missing empty line
2109 after local declaration.
2111 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2113 * ada-valprint.c (print_optional_low_bound): Get index_type's
2114 target type for as long as it is a TYPE_CODE_RANGE.
2116 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2118 * procfs.c (procfs_make_note_section): Remove assertion and
2121 2014-01-24 Yao Qi <yao@codesourcery.com>
2123 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2124 * corelow.c (get_core_siginfo): Likewise.
2126 2014-01-24 Yao Qi <yao@codesourcery.com>
2128 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2129 ULONGEST. Don't check 'len' is negative.
2130 (remote_write_bytes): Change type of 'len' to ULONGEST.
2132 2014-01-23 Tom Tromey <tromey@redhat.com>
2135 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2136 Handle exception from frame.block.
2137 (FrameVars.fetch_frame_locals): Likewise.
2139 2014-01-23 Tom Tromey <tromey@redhat.com>
2142 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2143 on a NULL pointer. Move "goto error" to correct place.
2145 2014-01-23 Tom Tromey <tromey@redhat.com>
2148 * python/py-framefilter.c (apply_frame_filter): Call
2149 ensure_python_env after computing gdbarch.
2151 2014-01-23 Yao Qi <yao@codesourcery.com>
2153 * target.c (raw_memory_xfer_partial): Change argument type
2154 from void * to gdb_byte *.
2155 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2157 2014-01-22 Doug Evans <dje@google.com>
2159 New gdbserver option --debug-format=timestamp.
2162 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2164 * syscalls/s390x-linux.xml: New file.
2165 * syscalls/s390-linux.xml: New file.
2166 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2167 (XML_SYSCALL_FILENAME_S390X): Likewise.
2168 (op_svc): New enum value for SVC opcode.
2169 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2170 (s390_linux_get_syscall_number): New function.
2171 (s390_gdbarch_init): Register '*get_syscall_number' and the
2172 syscall xml file name.
2173 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2174 "s390-linux.xml" and "s390x-linux.xml".
2175 * NEWS: Announce new feature.
2177 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2179 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2181 2014-01-22 Pedro Alves <palves@redhat.com>
2183 * xtensa-config.c: Include defs.h.
2185 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2187 * common/common-utils.h: Add "ARI:" comment beside __func__
2190 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2192 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2193 documentation a bit.
2195 2014-01-21 Roland McGrath <mcgrathr@google.com>
2197 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2198 * configure: Regenerate.
2199 * aclocal.m4: Regenerate.
2200 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2201 New substituted variables.
2202 (install-strip): New target.
2203 (INSTALL_SCRIPT): New substituted variable.
2204 (FLAGS_TO_PASS): Add it.
2205 (install-only): Use $(INSTALL_SCRIPT) rather than
2206 $(INSTALL_PROGRAM) for gcore.
2208 2014-01-20 Tom Tromey <tromey@redhat.com>
2210 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2213 2014-01-20 Tom Tromey <tromey@redhat.com>
2215 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2216 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2217 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2218 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2219 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2220 (struct cmd_list_element) <flags>: Remove.
2221 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2222 doc_allocated>: New fields.
2223 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2225 * maint.c (maintenance_do_deprecate): Update.
2226 * top.c (execute_command): Update.
2228 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2230 * xtensa-linux-nat.c: Include asm/ptrace.h.
2232 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2234 * Makefile.in (SFILES): Add d-support.c.
2235 (COMMON_OBS): Add d-support.o.
2236 * d-lang.h (d_parse_symbol): Add comment, now defined in
2238 * d-lang.c (parse_call_convention)
2239 (parse_attributes, parse_function_types)
2240 (parse_function_args, parse_type, parse_identifier)
2241 (call_convention_p, d_parse_symbol): Move functions to ...
2242 * d-support.c: ... New file.
2244 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2246 * d-lang.h (d_parse_symbol): Add declaration.
2247 * d-lang.c (extract_identifiers)
2248 (extract_type_info): Remove functions.
2249 (parse_call_convention, parse_attributes)
2250 (parse_function_types, parse_function_args)
2251 (parse_type, parse_identifier, call_convention_p)
2252 (d_parse_symbol): New functions.
2253 (d_demangle): Use d_parse_symbol to demangle D symbols.
2255 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2257 * d-lang.h (struct builtin_d_type): New data type.
2258 (builtin_d_type): Add declaration.
2259 * d-lang.c (d_language_arch_info, build_d_types)
2260 (builtin_d_type): New functions.
2261 (enum d_primitive_types): New data type.
2262 (d_language_defn): Change c_language_arch_info to
2263 d_language_arch_info.
2264 (d_type_data): New static variable.
2265 (_initialize_d_language): Initialize d_type_data.
2267 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2269 * d-lang.h (d_main_name): Add declaration.
2270 * d-lang.c (d_main_name): New function.
2271 * symtab.c (find_main_name): Add call to d_main_name.
2273 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2275 * d-lang.c (d_language_defn): Change macro_expansion_c to
2278 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2280 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2282 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2284 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2285 gdb_exception" declaration.
2286 * remote.c (getpkt_or_notif_sane): Likewise.
2288 2014-01-17 Doug Evans <dje@google.com>
2290 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2291 function, contents of dirnames_to_char_ptr_vec_append moved here.
2292 (delim_string_to_char_ptr_vec): New function.
2293 (dirnames_to_char_ptr_vec_append): Rewrite.
2294 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2296 2014-01-17 Doug Evans <dje@google.com>
2298 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2300 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2301 #include "common-utils.h".
2302 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2303 * common/vec.h (VEC_ASSERT_PASS): Update.
2304 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2305 (MACH_CHECK_ERROR): Update.
2307 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2309 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2311 * gdbarch.h: Regenerate.
2313 2014-01-16 Tom Tromey <tromey@redhat.com>
2315 * value.c (struct value) <regnum>: Move earlier.
2317 2014-01-16 Tom Tromey <tromey@redhat.com>
2319 * remote.c (extended_remote_create_inferior): Rename from
2320 extended_remote_create_inferior_1. Add "ops" argument. Remove
2323 2014-01-16 Pedro Alves <palves@redhat.com>
2325 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2326 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2329 2014-01-16 Doug Evans <dje@google.com>
2331 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2335 * btrace.h (btrace_thread_flag): New.
2336 (struct btrace_thread_info) <flags>: New.
2337 * record-btrace.c (record_btrace_resume_thread)
2338 (record_btrace_find_thread_to_move, btrace_step_no_history)
2339 (btrace_step_stopped, record_btrace_start_replaying)
2340 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2341 (record_btrace_find_resume_thread): New.
2342 (record_btrace_resume, record_btrace_wait): Extend.
2343 (record_btrace_can_execute_reverse): New.
2344 (record_btrace_open): Fail in non-stop mode.
2345 (record_btrace_set_replay): Split into this, ...
2346 (record_btrace_stop_replaying): ... this, ...
2347 (record_btrace_clear_histories): ... and this.
2348 (init_record_btrace_ops): Init to_can_execute_reverse.
2349 * NEWS: Announce it.
2351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2353 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2354 (forward_target_decr_pc_after_break)
2355 (target_decr_pc_after_break): New.
2356 * target.c (forward_target_decr_pc_after_break)
2357 (target_decr_pc_after_break): New.
2358 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2359 instead of gdbarch_decr_pc_after_break.
2360 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2361 instead of gdbarch_decr_pc_after_break.
2362 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2363 instead of gdbarch_decr_pc_after_break.
2364 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2365 instead of gdbarch_decr_pc_after_break.
2366 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2367 instead of gdbarch_decr_pc_after_break.
2368 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2369 instead of gdbarch_decr_pc_after_break.
2371 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2373 * btrace.c: Include regcache.h.
2374 (btrace_add_pc): New.
2375 (btrace_enable): Call btrace_add_pc.
2376 (btrace_is_empty): New.
2377 * btrace.h (btrace_is_empty): New.
2378 * record-btrace.c (require_btrace, record_btrace_info): Call
2381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2383 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2384 Support delta reads.
2385 (linux_disable_btrace): Change return type.
2386 * common/linux-btrace.h (linux_read_btrace): Change parameters
2387 and return type to allow error reporting. Update users.
2388 (linux_disable_btrace): Change return type. Update users.
2389 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2391 (btrace_error): New.
2392 (btrace_block) <begin>: Comment on BEGIN == 0.
2393 * btrace.c (btrace_compute_ftrace): Start from the end of
2395 (btrace_stitch_trace, btrace_clear_history): New.
2396 (btrace_fetch): Read delta trace, return if replaying.
2397 (btrace_clear): Move clear history code to btrace_clear_history.
2398 (parse_xml_btrace): Throw an error if parsing failed.
2399 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2400 and return type to allow error reporting.
2401 (target_read_btrace): Change parameters and return type to allow
2403 * target.c (target_read_btrace): Update.
2404 * remote.c (remote_read_btrace): Support delta reads. Pass
2406 * NEWS: Announce it.
2408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2410 * record.h (record_btrace_frame_unwind)
2411 (record_btrace_tailcall_frame_unwind): New declarations.
2412 * dwarf2-frame: Include record.h
2413 (dwarf2_frame_cfa): Throw an error for btrace frames.
2414 * record-btrace.c: Include hashtab.h.
2415 (btrace_get_bfun_name): New.
2416 (btrace_call_history): Call btrace_get_bfun_name.
2417 (struct btrace_frame_cache): New.
2419 (bfcache_hash, bfcache_eq, bfcache_new): New.
2420 (btrace_get_frame_function): New.
2421 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2422 (record_btrace_frame_this_id): Compute own id.
2423 (record_btrace_frame_prev_register): Provide PC, throw_error
2424 for all other registers.
2425 (record_btrace_frame_sniffer): Detect btrace frames.
2426 (record_btrace_tailcall_frame_sniffer): New.
2427 (record_btrace_frame_dealloc_cache): New.
2428 (record_btrace_frame_unwind): Add new functions.
2429 (record_btrace_tailcall_frame_unwind): New.
2430 (_initialize_record_btrace): Allocate cache.
2431 * btrace.c (btrace_clear): Call reinit_frame_cache.
2432 * NEWS: Announce it.
2434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2436 * record-btrace.c (record_btrace_set_replay)
2437 (record_btrace_goto_begin, record_btrace_goto_end)
2438 (record_btrace_goto): New.
2439 (init_record_btrace_ops): Initialize them.
2440 * NEWS: Announce it.
2442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2444 * record-btrace.c (record_btrace_find_new_threads)
2445 (record_btrace_thread_alive): New.
2446 (init_record_btrace_ops): Initialize to_find_new_threads and
2449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2451 * record-btrace.c (record_btrace_resume): New.
2452 (record_btrace_wait): New.
2453 (init_record_btrace_ops): Initialize to_wait and to_resume.
2455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2457 * record-btrace.c (record_btrace_xfer_partial)
2458 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2459 (record_btrace_allow_memory_access): New.
2460 (init_record_btrace_ops): Initialize new methods.
2461 * target.c (raw_memory_xfer_partial): Bail out if target reports
2462 that this memory is not available.
2464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2466 * target.h (target_ops) <to_insert_breakpoint>
2467 <to_remove_breakpoint>: Add target_ops parameter.
2468 (forward_target_insert_breakpoint): New.
2469 (forward_target_remove_breakpoint): New.
2470 (memory_remove_breakpoint, memory_insert_breakpoint):
2471 Add target_ops parameter.
2472 * target.c (target_insert_breakpoint): Split into this and ...
2473 (forward_target_insert_breakpoint): ... this.
2474 (target_remove_breakpoint): Split into this and ...
2475 (forward_target_remove_breakpoint): ... this.
2476 (debug_to_insert_breakpoint): Add target_ops parameter.
2477 Call forward_target_insert_breakpoint.
2478 (debug_to_remove_breakpoint): Add target_ops parameter.
2479 Call forward_target_remove_breakpoint.
2480 (update_current_target): Do not inherit or default to_insert_breakpoint
2481 and to_remove_breakpoint.
2482 * corelow.c (ignore): Add target_ops parameter.
2483 * exec.c (ignore): Add target_ops parameter.
2484 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2485 Add target_ops parameter.
2486 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2487 Add target_ops parameter.
2488 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2489 Add target_ops parameter.
2490 * record-full.c (record_full_beneath_to_insert_breakpoint)
2491 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2492 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2493 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2494 (record_full_core_remove_breakpoint): Add target_ops parameter.
2496 (record_full_beneath_to_insert_breakpoint_ops)
2497 (record_full_beneath_to_remove_breakpoint_ops)
2498 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2499 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2500 tmp_to_remove_breakpoint_ops,
2501 record_full_beneath_to_insert_breakpoint_ops, and
2502 record_full_beneath_to_remove_breakpoint_ops.
2503 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2504 (m32r_remove_breakpoint): Add target_ops parameter.
2505 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2506 Add target_ops parameter.
2507 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2508 Add target_ops parameter.
2510 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Markus Metzger <markus.t.metzger@intel.com>
2513 * record-btrace.c: Include frame-unwind.h.
2514 (record_btrace_frame_unwind_stop_reason)
2515 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2516 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2518 (init_record_btrace_ops): Install it.
2520 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2522 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2525 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2527 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2530 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2532 * frame-unwind.c: Include target.h.
2533 (frame_unwind_try_unwinder): New function with code from ...
2534 (frame_unwind_find_by_frame): ... here. New variable
2535 unwinder_from_target, call also target_get_unwinder)
2536 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2537 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2538 * target.h (struct target_ops): New fields to_get_unwinder and
2539 to_get_tailcall_unwinder.
2540 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2544 * record-btrace.c (record_btrace_fetch_registers)
2545 (record_btrace_store_registers)
2546 (record_btrace_to_prepare_to_store): New.
2547 (init_record_btrace_ops): Add the above.
2549 2014-01-16 Tom Tromey <tromey@redhat.com>
2551 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2552 * target.h (struct target_ops) <to_prepare_to_store>: Add
2554 (target_prepare_to_store): Add argument.
2555 * target.c (debug_to_prepare_to_store): Add argument.
2556 (update_current_target): Update.
2557 * remote.c (remote_prepare_to_store): Add 'self' argument.
2558 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2559 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2560 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2561 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2563 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2564 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2565 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2566 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2567 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2571 * btrace.h (replay) <replay>: New.
2572 (btrace_is_replaying): New.
2573 * btrace.c (btrace_clear): Free replay iterator.
2574 (btrace_is_replaying): New.
2575 * record-btrace.c (record_btrace_is_replaying): New.
2576 (record_btrace_info): Print insn number if replaying.
2577 (record_btrace_insn_history): Start at replay position.
2578 (record_btrace_call_history): Start at replay position.
2579 (init_record_btrace_ops): Init to_record_is_replaying.
2581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2583 * record-btrace.c (record_btrace_insn_history_range): Include
2585 (record_btrace_insn_history_from): Adjust range.
2586 (record_btrace_call_history_range): Include
2588 (record_btrace_call_history_from): Adjust range.
2589 * NEWS: Announce changes.
2591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2593 * record.h (enum record_print_flag)
2594 <record_print_indent_calls>: New.
2595 * record.c (get_call_history_modifiers): Recognize /c modifier.
2596 (_initialize_record): Document /c modifier.
2597 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2598 Reorder fields. Optionally indent the function name. Update
2600 * NEWS: Announce changes.
2602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2604 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2608 * btrace.c (ftrace_new_function): Start counting at one.
2609 * record-btrace.c (record_btrace_info): Adjust number of calls
2611 * NEWS: Announce it.
2613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2615 * record-btrace.c (btrace_call_history_insn_range): Print
2616 insn range as [begin, end].
2618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2620 * btrace.h (struct btrace_func_link): New.
2621 (enum btrace_function_flag): New.
2622 (struct btrace_inst): Rename to ...
2623 (struct btrace_insn): ...this. Update all users.
2624 (struct btrace_func) <ibegin, iend>: Remove.
2625 (struct btrace_func_link): New.
2626 (struct btrace_func): Rename to ...
2627 (struct btrace_function): ...this. Update all users.
2628 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2629 (number, level, flags>: New.
2630 (struct btrace_insn_iterator): Rename to ...
2631 (struct btrace_insn_history): ...this.
2633 (struct btrace_insn_iterator, btrace_call_iterator): New.
2634 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2635 (struct btrace_target_info) <begin, end, level>
2636 <insn_history, call_history>: New.
2637 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2638 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2639 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2640 (btrace_call_number, btrace_call_begin, btrace_call_end)
2641 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2642 (btrace_find_function_by_number, btrace_set_insn_history)
2643 (btrace_set_call_history): New.
2644 * btrace.c (btrace_init_insn_iterator)
2645 (btrace_init_func_iterator, compute_itrace): Remove.
2646 (ftrace_print_function_name, ftrace_print_filename)
2647 (ftrace_skip_file): Change
2649 (ftrace_init_func): Remove.
2650 (ftrace_debug): Use new btrace_function fields.
2651 (ftrace_function_switched): Also consider gaining and
2652 losing symbol information).
2653 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2654 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2655 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2657 (ftrace_new_function): Move. Remove debug print.
2658 (ftrace_update_lines, ftrace_update_insns): New.
2659 (ftrace_update_function): Check for call, ret, and jump.
2660 (compute_ftrace): Renamed to ...
2661 (btrace_compute_ftrace): ...this. Rewritten to compute call
2663 (btrace_fetch, btrace_clear): Updated.
2664 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2665 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2666 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2667 (btrace_call_number, btrace_call_begin, btrace_call_end)
2668 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2669 (btrace_find_function_by_number, btrace_set_insn_history)
2670 (btrace_set_call_history): New.
2671 * record-btrace.c (require_btrace): Use new btrace thread
2673 (record_btrace_info, btrace_insn_history)
2674 (record_btrace_insn_history, record_btrace_insn_history_range):
2675 Use new btrace thread info fields and new iterator.
2676 (btrace_func_history_src_line): Rename to ...
2677 (btrace_call_history_src_line): ...this. Use new btrace
2679 (btrace_func_history): Rename to ...
2680 (btrace_call_history): ...this. Use new btrace thread info
2681 fields and new iterator.
2682 (record_btrace_call_history, record_btrace_call_history_range):
2683 Use new btrace thread info fields and new iterator.
2685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2687 * frame.h (frame_id_build_unavailable_stack_special): New.
2688 * frame.c (frame_id_build_unavailable_stack_special): New.
2690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2692 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2693 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2694 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2696 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2697 (i386_insn_is_jump, i386_jmp_p): New.
2698 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2699 insn_is_jump to gdbarch.
2700 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2701 * gdbarch.h: Regenerated.
2702 * gdbarch.c: Regenerated.
2703 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2704 (default_insn_is_jump): New.
2705 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2706 (default_insn_is_jump): New.
2708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2710 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2712 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2713 (btrace_read_type) <btrace_read_new>: Change to ...
2714 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2716 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2718 * common/linux-btrace.c (linux_read_btrace): Free trace from
2721 2014-01-15 Doug Evans <dje@google.com>
2723 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2726 2014-01-15 Tom Tromey <tromey@redhat.com>
2728 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2729 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2730 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2731 (set_objfile_main_name): New function.
2732 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2733 language_of_main>: New fields.
2734 (set_objfile_main_name): Declare.
2735 * symtab.c (find_main_name): Loop over objfiles to find the main
2737 (set_main_name): Now static.
2738 (get_main_info): Add comment.
2739 * symtab.h (set_main_name): Don't declare.
2741 2014-01-15 Tom Tromey <tromey@redhat.com>
2743 * symtab.c (main_progspace_key): New global.
2744 (struct main_info): New.
2745 (name_of_main, language_of_main): Remove.
2746 (get_main_info, main_info_cleanup): New function.
2747 (set_main_name, main_name, main_language): Use get_main_info.
2748 (_initialize_symtab): Initialize main_progspace_key.
2750 2014-01-15 Tom Tromey <tromey@redhat.com>
2752 * dbxread.c (process_one_symbol): Update.
2753 * dwarf2read.c (read_partial_die): Update.
2754 * symfile.c (set_initial_language): Call main_language.
2755 * symtab.c (language_of_main): Now static.
2756 (set_main_name): Add 'lang' parameter.
2757 (find_main_name): Update.
2758 (main_language): New function.
2759 (symtab_observer_executable_changed): Update.
2760 * symtab.h (set_main_name): Update.
2761 (language_of_main): Remove.
2762 (main_language): Declare.
2764 2014-01-15 Tom Tromey <tromey@redhat.com>
2766 * symfile.c (init_entry_point_info): Use new "initialized" field.
2768 * objfiles.h (struct entry_point) <initialized>: New field.
2769 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2770 (struct objfile) <ei>: ...here. Remove.
2771 * objfiles.c (entry_point_address_query): Update.
2773 2014-01-15 Tom Tromey <tromey@redhat.com>
2775 * objfiles.c (entry_point_address_query): Relocate entry point
2777 (objfile_relocate1): Do not relocate entry point address.
2778 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2779 <the_bfd_section_index>: New field.
2780 * symfile.c (init_entry_point_info): Find the entry point's
2783 2014-01-15 Tom Tromey <tromey@redhat.com>
2785 * solib-frv.c (enable_break): Use entry_point_address_query.
2787 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2789 * NEWS: Add note on improved process record-replay on
2790 arm*-linux* targets.
2792 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2794 * arm-tdep.c (enum arm_record_result): New enum.
2795 (arm_record_unsupported_insn): New function.
2796 (arm_record_coproc_data_proc): Removed.
2797 (thumb2_record_ld_st_multiple): New function.
2798 (thumb2_record_ld_st_dual_ex_tbb): New function.
2799 (thumb2_record_data_proc_sreg_mimm): New function.
2800 (thumb2_record_ps_dest_generic): New function.
2801 (thumb2_record_branch_misc_cntrl): New function.
2802 (thumb2_record_str_single_data): New function.
2803 (thumb2_record_ld_mem_hints): New function.
2804 (thumb2_record_ld_word): New function.
2805 (thumb2_record_lmul_lmla_div): New function.
2806 (thumb2_record_decode_insn_handler): New function.
2807 (decode_insn): Add thumb32 instruction handlers.
2809 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2811 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2812 (struct arm_linux_record_tdep): Declare.
2813 (arm_canonicalize_syscall): New function.
2814 (arm_all_but_pc_registers_record): New function.
2815 (arm_linux_syscall_record): New function.
2816 (arm_linux_init_abi): Add syscall recording constructs.
2817 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2818 decoding. (arm_record_coproc_data_proc): Update arm syscall
2820 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2821 <arm_syscall_record>: New field.
2822 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2825 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2827 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2828 register for push instruction recording.
2830 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2832 * arm-tdep.c (thumb_record_misc): Update to correct logical
2833 error while recording ldm, ldmia and pop instructions.
2835 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2837 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2839 2014-01-15 Pedro Alves <palves@redhat.com>
2841 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2842 (go32_resume, go32_fetch_registers, store_register)
2843 (go32_store_registers, go32_prepare_to_store)
2844 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2845 (go32_create_inferior, go32_can_run, go32_terminal_init)
2846 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2849 2014-01-15 Tom Tromey <tromey@redhat.com>
2851 * target.h (async_callback_ftype): New typedef.
2852 (struct target_ops) <to_async>: Use it.
2854 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2856 * python/py-value.c (get_field_type): Remove unnecessary curly
2857 braces for single-statement if block.
2859 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2861 * python/py-type.c (convert_field): Add missing empty line
2864 2014-01-14 Doug Evans <dje@google.com>
2866 * symfile.h (expand_symtabs_matching): Renamed from
2867 expand_partial_symbol_names. Update prototype.
2868 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2869 * symfile.c (expand_symtabs_matching): Renamed from
2870 expand_partial_symbol_names. New args file_matcher, kind.
2871 Rename arg fun to symbol_matcher.
2872 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2873 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2874 ada_expand_partial_symbol_name.
2875 (ada_make_symbol_completion_list): Update to call
2876 expand_symtabs_matching.
2877 (ada_add_global_exceptions): Call expand_symtabs_matching.
2878 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2879 call map_symbol_filenames.
2880 * symtab.c (sources_info): Update to call map_symbol_filenames.
2881 (search_symbols): Call expand_symtabs_matching.
2882 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2883 (default_make_symbol_completion_list_break_on): Update to call
2884 expand_symtabs_matching.
2885 (make_source_files_completion_list): Update to call
2886 map_symbol_filenames.
2888 2014-01-14 Doug Evans <dje@google.com>
2890 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2891 (expand_symtabs_symbol_matcher_ftype): New typedef.
2892 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2893 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2894 * symfile.c (expand_partial_symbol_names): Update to use
2895 expand_symtabs_symbol_matcher_ftype.
2896 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2897 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2898 Arg name_matcher renamed to symbol_matcher.
2899 * psymtab.c (recursively_search_psymtabs): Update to use
2900 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2902 (expand_symtabs_matching_via_partial): Update to use
2903 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2904 Arg name_matcher renamed to symbol_matcher.
2906 2014-01-14 Doug Evans <dje@google.com>
2908 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2909 (map_partial_symbol_filenames): Ditto.
2910 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2911 (map_partial_symbol_filenames): Ditto.
2912 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2913 (map_partial_symbol_filenames): Ditto.
2914 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2915 (map_partial_symbol_filenames): Ditto.
2916 * symtab.c: Delete #include "psymtab.h".
2918 2014-01-14 Pedro Alves <palves@redhat.com>
2919 Tom Tromey <tromey@redhat.com>
2921 * infrun.c (use_displaced_stepping): Use find_record_target
2922 instead of RECORD_IS_USED.
2923 (adjust_pc_after_break): Use record_full_is_used instead of
2925 * record-btrace.c (record_btrace_open): Call record_preopen
2926 instead of checking RECORD_IS_USED.
2927 * record-full.c (record_full_shortname)
2928 (record_full_core_shortname): New globals.
2929 (record_full_is_used): New function.
2930 (find_full_open): Call record_preopen instead of checking
2932 (init_record_full_ops): Set the target's shortname to
2933 record_full_shortname.
2934 (init_record_full_core_ops): Set the target's shortname to
2935 record_full_core_shortname.
2936 * record-full.h (record_full_is_used): Declare.
2937 * record.c (find_record_target): Make extern.
2938 (record_preopen): New function.
2939 * record.h (RECORD_IS_USED): Delete macro.
2940 (find_record_target, record_preopen): Declare functions.
2942 2014-01-14 Yao Qi <yao@codesourcery.com>
2944 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2945 'len''s type to ULONGEST.
2946 (core_xfer_shared_libraries_aix): Likewise.
2947 * gdbarch.c, gdbarch.h: Regenerated.
2948 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2949 Change type of 'len' to ULONGEST.
2950 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2951 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2953 2014-01-14 Yao Qi <yao@codesourcery.com>
2955 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2956 type of 'len' to ULONGEST.
2957 (linux_xfer_osdata_processgroups): Likewise.
2958 (linux_xfer_osdata_threads): Likewise.
2959 (linux_xfer_osdata_fds): Likewise.
2960 (linux_xfer_osdata_isockets): Likewise.
2961 (linux_xfer_osdata_shm): Likewise.
2962 (linux_xfer_osdata_sem): Likewise.
2963 (linux_xfer_osdata_msg): Likewise.
2964 (linux_common_xfer_osdata): Likewise.
2965 (struct osdata_type) <getter>: Likewise.
2966 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2969 2014-01-14 Yao Qi <yao@codesourcery.com>
2971 * target.h (target_xfer_partial_ftype): Update.
2972 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2974 * aix-thread.c (aix_thread_xfer_partial): Change type of
2975 argument 'len' to ULONGEST.
2976 * auxv.c (procfs_xfer_auxv): Likewise.
2977 (ld_so_xfer_auxv): Likewise.
2978 (memory_xfer_auxv): Likewise.
2979 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2980 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2981 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2982 * corelow.c (core_xfer_partial): Likewise.
2983 * ctf.c (ctf_xfer_partial): Likewise.
2984 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2986 (darwin_read_dyld_info): Likewise.
2987 (darwin_xfer_partial): Likewise.
2988 * exec.c (section_table_xfer_memory_partial): Likewise.
2989 (exec_xfer_partial): Likewise.
2990 * exec.h (section_table_xfer_memory_partial): Update
2992 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2993 instead of plongest.
2994 (gnu_xfer_partial): Likewise.
2995 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2996 (ia64_hpux_xfer_solib_got): Likewise.
2997 (ia64_hpux_xfer_partial): Likewise.
2998 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2999 * inf-ptrace.c (inf_ptrace_xfer_partial):
3000 * inf-ttrace.c (inf_ttrace_xfer_partial):
3001 * linux-nat.c (linux_xfer_siginfo): Likewise.
3002 (linux_nat_xfer_partial): Likewise.
3003 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3004 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3005 * monitor.c (monitor_xfer_memory): Likewise.
3006 (monitor_xfer_partial): Likewise.
3007 * procfs.c (procfs_xfer_partial): Likewise.
3008 * record-full.c (record_full_xfer_partial): Likewise.
3009 (record_full_core_xfer_partial): Likewise.
3010 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3011 instead of plongest.
3012 (gdbsim_xfer_partial): Likewise.
3013 * remote.c (remote_xfer_partial): Likewise.
3014 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3015 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3017 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3018 (rs6000_xfer_shared_libraries): Likewise.
3019 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3020 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3021 (sparc_xfer_partial): Likewise.
3022 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3023 (spu_xfer_partial): Likewise.
3024 * spu-multiarch.c (spu_xfer_partial): Likewise.
3025 * target.c (target_read_live_memory): Likewise.
3026 (memory_xfer_live_readonly_partial): Likewise.
3027 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3028 (target_xfer_partial, default_xfer_partial): Likewise.
3029 (current_xfer_partial): Likewise.
3030 * tracepoint.c (tfile_xfer_partial): Likewise.
3031 * windows-nat.c (windows_xfer_memory): Likewise. Call
3032 pulongest instead of plongest.
3033 (windows_xfer_partial): Likewise.
3034 (windows_xfer_shared_libraries): Likewise.
3036 2014-01-14 Yao Qi <yao@codesourcery.com>
3038 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3039 target_xfer_partial_ftype.
3041 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3045 * valops.c (value_struct_elt_bitpos): New function
3046 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3047 object to 'None' if the field name is an empty string ("").
3048 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3049 attribute to look for a field when 'name' is 'None'.
3050 (get_field_type): New function
3052 2014-01-13 Doug Evans <dje@google.com>
3055 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3056 (try_open_dwop_file): Ditto.
3057 * gdb_bfd.c: #include "vec.h".
3058 (bfdp): New typedef.
3059 (struct gdb_bfd_data): New member included_bfds.
3060 (gdb_bfd_unref): Unref all included bfds.
3061 (gdb_bfd_record_inclusion): New function.
3062 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3064 2014-01-13 Tom Tromey <tromey@redhat.com>
3066 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3068 2014-01-13 Tom Tromey <tromey@redhat.com>
3070 * defs.h (use_windows): Remove.
3071 * gdb.c (main): Update.
3072 * main.c (captured_main, gdb_main): Update.
3073 * main.h (struct captured_main_args) <use_windows>: Remove.
3074 * top.c (use_windows): Remove.
3076 2014-01-13 Tom Tromey <tromey@redhat.com>
3078 * defs.h (deprecated_flush_hook): Remove.
3080 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3083 * linux-thread-db.c (try_thread_db_load): Add parameter
3084 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3085 (try_thread_db_load_from_pdir_1): Move it there from here.
3086 (try_thread_db_load_from_sdir): Update caller.
3087 (try_thread_db_load_from_dir): Move it there from here.
3089 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3091 * regformats/regdat.sh: Always rewrite the register file.
3093 2014-01-13 Pedro Alves <palves@redhat.com>
3095 * Makefile.in (CHECK_HEADERS): New variable.
3096 (check-headers:): New rule.
3098 2014-01-13 Tom Tromey <tromey@redhat.com>
3100 * cli/cli-setshow.c (do_set_command): Update.
3101 * defs.h (deprecated_set_hook): Remove.
3102 * top.c (deprecated_set_hook): Remove.
3104 2014-01-13 Pedro Alves <palves@redhat.com>
3106 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3107 the tracepoint if the PC is a pseudo-register.
3109 2014-01-13 Tom Tromey <tromey@redhat.com>
3111 * defs.h (XCALLOC): Remove.
3112 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3113 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3114 * dwarf2loc.c (allocate_piece_closure): Likewise.
3115 * elfread.c (elf_symfile_segments): Likewise.
3116 (elf_symfile_segments): Likewise.
3117 * gdbtypes.c (copy_type_recursive): Likewise.
3118 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3119 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3120 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3122 * mt-tdep.c (mt_gdbarch_init): Likewise.
3123 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3125 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3126 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3127 * registry.c (registry_alloc_data): Likewise.
3128 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3129 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3130 * serial.c (serial_fdopen_ops): Likewise.
3131 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3133 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3134 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3137 2014-01-13 Tom Tromey <tromey@redhat.com>
3139 * defs.h (XMALLOC): Remove.
3140 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3141 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3142 * cli-out.c (struct ui_out *): Likewise.
3143 * cli/cli-dump.c (add_dump_command): Likewise.
3144 (add_dump_command): Likewise.
3145 * complaints.c (get_complaints): Likewise.
3146 (find_complaint): Likewise.
3147 * dwarf2-frame.c (execute_cfa_program): Likewise.
3148 * dwarf2read.c (abbrev_table_read_table): Likewise.
3149 * gdbarch.sh: Likewise.
3150 * gdbarch.c: Rebuild.
3151 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3152 * interps.c (interp_new): Likewise.
3153 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3154 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3155 * mi/mi-console.c (mi_console_file_new): Likewise.
3156 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3157 * mi/mi-out.c (mi_out_new): Likewise.
3158 * mi/mi-parse.c (mi_parse): Likewise.
3159 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3160 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3161 * observer.c (xalloc_observer_list_node): Likewise.
3162 * regcache.c (regcache_xmalloc_1): Likewise.
3163 * reggroups.c (reggroup_new): Likewise.
3164 (_initialize_reggroup): Likewise.
3165 * registry.c (register_data_with_cleanup): Likewise.
3166 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3167 * ser-base.c (serial_ttystate): Likewise.
3168 * ser-mingw.c (make_pipe_state): Likewise.
3169 * ser-pipe.c (pipe_open): Likewise.
3170 * serial.c (serial_open): Likewise.
3171 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3172 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3173 (tui_alloc_win_info): Likewise.
3174 (tui_add_content_elements): Likewise.
3175 * tui/tui-file.c (tui_file_new): Likewise.
3176 * tui/tui-out.c (tui_out_new): Likewise.
3177 * ui-file.c (mem_file_new): Likewise.
3178 * ui-out.c (push_level): Likewise.
3179 (make_cleanup_ui_out_end): Likewise.
3180 (append_header_to_list): Likewise.
3181 (ui_out_new): Likewise.
3182 * user-regs.c (user_reg_add_builtin): Likewise.
3184 2014-01-13 Tom Tromey <tromey@redhat.com>
3186 * defs.h (XZALLOC): Remove.
3187 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3188 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3189 (get_ada_tasks_inferior_data): Likewise.
3190 * auto-load.c (get_auto_load_pspace_data): Likewise.
3191 * auxv.c (get_auxv_inferior_data): Likewise.
3192 * bfd-target.c (target_bfd_reopen): Likewise.
3193 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3194 (deprecated_insert_raw_breakpoint): Likewise.
3195 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3196 * corelow.c (core_open): Likewise.
3197 * darwin-nat.c (darwin_check_new_threads): Likewise.
3198 (darwin_attach_pid): Likewise.
3199 * dummy-frame.c (dummy_frame_push): Likewise.
3200 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3201 * dwarf2loc.c (allocate_piece_closure): Likewise.
3202 * elfread.c (elf_symfile_segments): Likewise.
3203 * eval.c (ptrmath_type_p): Likewise.
3204 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3205 * gdbtypes.c (alloc_type_arch): Likewise.
3206 (alloc_type_instance): Likewise.
3207 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3208 * inf-child.c (inf_child_can_use_agent): Likewise.
3209 * inflow.c (get_inflow_inferior_data): Likewise.
3210 * infrun.c (save_infcall_suspend_state): Likewise.
3211 * jit.c (jit_reader_load): Likewise.
3212 (get_jit_objfile_data): Likewise.
3213 (get_jit_program_space_data): Likewise.
3214 (jit_object_open_impl): Likewise.
3215 (jit_symtab_open_impl): Likewise.
3216 (jit_block_open_impl): Likewise.
3217 (jit_frame_sniffer): Likewise.
3218 * linux-fork.c (add_fork): Likewise.
3219 * maint.c (make_command_stats_cleanup): Likewise.
3220 * objfiles.c (get_objfile_pspace_data): Likewise.
3221 * opencl-lang.c (struct lval_closure): Likewise.
3222 * osdata.c (osdata_start_osdata): Likewise.
3223 * progspace.c (new_address_space): Likewise.
3224 (add_program_space): Likewise.
3225 * remote-sim.c (get_sim_inferior_data): Likewise.
3226 * sh-tdep.c (sh_gdbarch_init): Likewise.
3227 * skip.c (Ignore): Likewise.
3228 (skip_delete_command): Likewise.
3229 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3230 (library_list_start_library): Likewise.
3231 (solib_aix_current_sos): Likewise.
3232 * solib-darwin.c (get_darwin_info): Likewise.
3233 (darwin_current_sos): Likewise.
3234 * solib-dsbt.c (get_dsbt_info): Likewise.
3235 * solib-ia64-hpux.c (new_so_list): Likewise.
3236 (ia64_hpux_get_solib_linkage_addr): Likewise.
3237 * solib-spu.c (append_ocl_sos): Likewise.
3238 (spu_current_sos): Likewise.
3239 * solib-svr4.c (get_svr4_info): Likewise.
3240 (svr4_keep_data_in_core): Likewise.
3241 (library_list_start_library): Likewise.
3242 (svr4_default_sos): Likewise.
3243 (svr4_read_so_list): Likewise.
3244 * solib-target.c (library_list_start_library): Likewise.
3245 (solib_target_current_sos): Likewise.
3246 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3247 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3248 * symfile.c (default_symfile_segments): Likewise.
3249 * target-descriptions.c (tdesc_data_init): Likewise.
3250 (tdesc_create_reg): Likewise.
3251 (struct tdesc_type *): Likewise.
3252 (tdesc_create_vector): Likewise.
3253 (tdesc_set_struct_size): Likewise.
3254 (struct tdesc_type *): Likewise.
3255 (tdesc_free_feature): Likewise.
3256 (tdesc_create_feature): Likewise.
3257 * windows-nat.c (windows_add_thread): Likewise.
3258 (windows_make_so): Likewise.
3259 * xml-support.c (gdb_xml_body_text): Likewise.
3260 (gdb_xml_create_parser_and_cleanup): Likewise.
3261 (xml_process_xincludes): Likewise.
3262 * xml-syscall.c (allocate_syscalls_info): Likewise.
3263 (syscall_create_syscall_desc): Likewise.
3265 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3267 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3268 function, with code from i386_stap_parse_special_token.
3269 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3270 (i386_stap_parse_special_token): Move code to the two functions
3273 2014-01-09 Pedro Alves <palves@redhat.com>
3274 Hui Zhu <hui@codesourcery.com>
3277 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3278 bp_err_string. Don't mark the location shlib_disabled if the
3279 error thrown wasn't a generic or memory error. Catch errors
3280 thrown while inserting breakpoints in overlayed code. Output
3281 error message of software breakpoints.
3282 * remote.c (remote_insert_breakpoint): If this breakpoint has
3283 target-side commands but this stub doesn't support Z0 packets,
3284 throw NOT_SUPPORTED_ERROR error.
3285 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3286 * target.h (target_insert_breakpoint): Extend comment.
3287 (target_insert_hw_breakpoint): Add comment.
3289 2014-01-08 Pedro Alves <palves@redhat.com>
3291 * remote.c (remote_add_thread): Add threads silently if starting
3293 (remote_notice_new_inferior): If in all-stop, and starting up,
3294 don't call notice_new_inferior.
3295 (get_current_thread): New function, factored out from ...
3296 (add_current_inferior_and_thread): ... this. Adjust.
3297 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3298 found any thread, then select the remote's current thread as GDB's
3301 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3303 * NEWS: Create a new section for the next release branch.
3304 Rename the section of the current branch, now that it has
3307 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3309 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3310 * version.in: Bump version to 7.7.50.DATE-cvs.
3312 2014-01-08 Yao Qi <yao@codesourcery.com>
3314 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3315 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3316 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3318 2014-01-08 Yao Qi <yao@codesourcery.com>
3320 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3321 return value of bfd_get_filename to symbol_file_add_from_bfd.
3323 2014-01-08 Pierre Muller <muller@sourceware.org>
3326 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3327 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3328 to prim_record_mininal_symbol_and_info.
3329 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3330 in call to prim_record_minimal_symbol_and_info.
3331 (read_pe_exported_syms): Set index field of section_data.
3333 2014-01-07 Andrew Pinski <apinski@cavium.com>
3335 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3336 * features/aarch64.c: Regenerate.
3338 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3340 * target.c (return_null): Define.
3341 (update_current_target): Use it instead of return_zero for
3342 functions that return a pointer.
3344 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3346 * source.c (add_path): Fix check for duplicated paths in the previously
3349 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3351 * ada-lang.c: Remove duplicated include statements.
3352 * alphabsd-nat.c: Ditto.
3353 * amd64-darwin-tdep.c: Ditto.
3354 * amd64fbsd-nat.c: Ditto.
3355 * auto-load.c: Ditto.
3357 * breakpoint.c: Ditto.
3359 * fork-child.c: Ditto.
3360 * gdb_usleep.c: Ditto.
3361 * i386-darwin-tdep.c: Ditto.
3362 * i386fbsd-nat.c: Ditto.
3364 * inferior.c: Ditto.
3366 * linux-nat.c: Ditto.
3367 * linux-tdep.c: Ditto.
3368 * m68kbsd-nat.c: Ditto.
3369 * m68klinux-nat.c: Ditto.
3370 * microblaze-tdep.c: Ditto.
3371 * mips-linux-tdep.c: Ditto.
3372 * mn10300-tdep.c: Ditto.
3373 * nto-tdep.c: Ditto.
3374 * opencl-lang.c: Ditto.
3376 * printcmd.c: Ditto.
3377 * regcache.c: Ditto.
3378 * remote-m32r-sdi.c: Ditto.
3382 * tilegx-linux-nat.c: Ditto.
3383 * tilegx-tdep.c: Ditto.
3384 * tracepoint.c: Ditto.
3386 * vaxbsd-nat.c: Ditto.
3387 * windows-nat.c: Ditto.
3388 * xtensa-tdep.c: Ditto.
3390 2014-01-07 Yao Qi <yao@codesourcery.com>
3392 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3394 2014-01-07 Yao Qi <yao@codesourcery.com>
3395 Joel Brobecker <brobecker@adacore.com>
3397 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3398 (pdc_write_regs): Likewise.
3399 (fetch_regs_kernel_thread): Likewise.
3400 (store_regs_kernel_thread): Likewise.
3402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3404 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3405 tagged type objects to their actual type.
3407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3409 * ada-valprint.c (print_field_values): Add "language" parameter.
3410 Update calls to print_field_values and print_variant_part.
3411 Pass new parameter "language" in call to val_print instead
3412 of "current_language". Replace call to ada_val_print by call
3414 (print_variant_part): Add "language" parameter.
3415 (ada_val_print_struct_union): Update call to print_field_values.
3417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3419 * ada-valprint.c (ui_memcpy): Delete.
3420 (ada_print_floating): Update documentation. Add empty line
3421 between between function documentation and implementation.
3422 Delete variable "buffer". Use ui_file_xstrdup in place of
3423 ui_file_put. Minor adjustments following this change.
3425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3427 * ada-valprint.c (ada_val_print_string): New function,
3428 extracted from ada_val_print_array.
3429 (ada_val_print_array): Replace extracted code by call
3430 to ada_val_print_string followed by a return. Move
3431 "else" branch to the function's top block.
3433 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3435 * ada-valprint.c (ada_val_print_array): Move implementation
3436 down. Rename parameter "offset" and "val" into "offset_aligned"
3437 and "original_value" respectively. Add parameter "offset".
3439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3441 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3442 re-organizing the code. Change the "???" message printed
3443 when target type is a TYPE_CODE_UNDEF into
3444 "<ref to undefined type>".
3446 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3448 * ada-valprint.c (print_record): Delete, implementation inlined...
3449 (ada_val_print_struct_union): ... here. Remove call to
3450 ada_check_typedef in inlined implementation.
3452 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3454 * ada-valprint.c (ada_val_print_gnat_array): New function,
3455 extracted from ada_val_print_1;
3456 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3457 (ada_val_print_flt, ada_val_print_struct_union)
3458 (ada_val_print_ref): Likewise.
3459 (ada_val_print_1): Delete variables i and elttype.
3460 Replace extracted-out code by call to corresponding
3463 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3465 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3467 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3469 * ada-valprint.c (ada_val_print_1): Replace calls to
3470 ada_val_print_1 by calls to val_print.
3472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3474 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3475 Update calls to self accordingly. Replace calls to c_val_print
3476 by calls to val_print.
3478 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3480 * ada-valprint.c (print_record): Delete declaration.
3481 (adjust_type_signedness, ada_val_print_1): Likewise.
3482 (ada_val_print): Move function implementation down.
3483 (print_variant_part, print_field_values, print_record):
3484 Move function implementation up.
3486 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3488 * python/py-type.c (typy_get_name): New function.
3489 (type_object_getset): Add entry for attribute "name".
3490 * NEWS: Add entry mentioning this new attribute.
3492 2014-01-07 Yao Qi <yao@codesourcery.com>
3494 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3497 2014-01-07 Yao Qi <yao@codesourcery.com>
3499 * gnu-nat.c (info_port_rights): Add qualifier const to
3502 2014-01-07 Yao Qi <yao@codesourcery.com>
3504 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3506 2014-01-07 Yao Qi <yao@codesourcery.com>
3508 * gnu-nat.c (make_inf) Update declaration.
3509 (make_inf): Make it static.
3510 (inf_set_traced): Likewise.
3511 (inf_port_to_thread, inf_task_died_status): Likewise.
3513 2014-01-07 Yao Qi <yao@codesourcery.com>
3515 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3517 2014-01-07 Yao Qi <yao@codesourcery.com>
3519 * gnu-nat.c (_initialize_gnu_nat): Declare.
3521 2014-01-07 Yao Qi <yao@codesourcery.com>
3523 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3525 (struct gdbarch_info) <byte_order>: Change type to
3527 <byte_order_for_code>: Likewise.
3528 * gdbarch.c, gdbarch.h: Regenerated.
3530 2014-01-06 Sasha Smundak <asmundak@google.com>
3532 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3534 2014-01-06 Tom Tromey <tromey@redhat.com>
3536 * doublest.c (convert_doublest_to_floatformat): Use const, not
3538 * somread.c (som_symtab_read): Likewise.
3540 2014-01-07 Hui Zhu <hui@codesourcery.com>
3542 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3543 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3544 (gdb_bfd_fopen): Ditto.
3545 (gdb_bfd_openr): Ditto.
3546 (gdb_bfd_openw): Ditto.
3547 (gdb_bfd_openr_iovec): Ditto.
3548 (gdb_bfd_fdopenr): Ditto.
3549 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3550 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3552 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3554 * symfile-mem.c (symbol_file_add_from_memory): Removed
3555 gdb_bfd_stash_filename.
3557 2014-01-03 Doug Evans <dje@google.com>
3559 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3562 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3564 Update year range in copyright notice of all files.
3566 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3568 * top.c (print_gdb_version): Set copyright year to 2014.
3570 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3572 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3574 For older changes see ChangeLog-2013.
3580 version-control: never