1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4 * target.h (struct target_ops) <to_get_trace_status>: Add
6 (target_get_trace_status): Add argument.
7 * target.c (update_current_target): Update.
8 * remote.c (remote_get_trace_status): Add 'self' argument.
9 (remote_start_remote, remote_can_download_tracepoint): Update.
10 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12 2014-02-19 Tom Tromey <tromey@redhat.com>
14 * target.h (struct target_ops) <to_trace_start>: Add argument.
15 (target_trace_start): Add argument.
16 * target.c (update_current_target): Update.
17 * remote.c (remote_trace_start): Add 'self' argument.
19 2014-02-19 Tom Tromey <tromey@redhat.com>
21 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
23 (target_trace_set_readonly_regions): Add argument.
24 * target.c (update_current_target): Update.
25 * remote.c (remote_trace_set_readonly_regions): Add 'self'
28 2014-02-19 Tom Tromey <tromey@redhat.com>
30 * target.h (struct target_ops) <to_disable_tracepoint>: Add
32 (target_disable_tracepoint): Add argument.
33 * target.c (update_current_target): Update.
34 * remote.c (remote_disable_tracepoint): Add 'self' argument.
36 2014-02-19 Tom Tromey <tromey@redhat.com>
38 * target.h (struct target_ops) <to_enable_tracepoint>: Add
40 (target_enable_tracepoint): Add argument.
41 * target.c (update_current_target): Update.
42 * remote.c (remote_enable_tracepoint): Add 'self' argument.
44 2014-02-19 Tom Tromey <tromey@redhat.com>
46 * target.h (struct target_ops) <to_download_trace_state_variable>:
48 (target_download_trace_state_variable): Add argument.
49 * target.c (update_current_target): Update.
50 * remote.c (remote_download_trace_state_variable): Add 'self'
53 2014-02-19 Tom Tromey <tromey@redhat.com>
55 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
57 (target_can_download_tracepoint): Add argument.
58 * target.c (update_current_target): Update.
59 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
61 2014-02-19 Tom Tromey <tromey@redhat.com>
63 * target.h (struct target_ops) <to_download_tracepoint>: Add
65 (target_download_tracepoint): Add argument.
66 * target.c (update_current_target): Update.
67 * remote.c (remote_download_tracepoint): Add 'self' argument.
69 2014-02-19 Tom Tromey <tromey@redhat.com>
71 * target.h (struct target_ops) <to_trace_init>: Add argument.
72 (target_trace_init): Add argument.
73 * target.c (update_current_target): Update.
74 * remote.c (remote_trace_init): Add 'self' argument.
76 2014-02-19 Tom Tromey <tromey@redhat.com>
78 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
79 * target.c (target_fileio_readlink): Add argument.
80 * remote.c (remote_hostio_readlink): Add 'self' argument.
81 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
83 2014-02-19 Tom Tromey <tromey@redhat.com>
85 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
86 * target.c (target_fileio_unlink): Add argument.
87 * remote.c (remote_hostio_unlink): Add 'self' argument.
88 (remote_file_delete): Update.
89 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
91 2014-02-19 Tom Tromey <tromey@redhat.com>
93 * target.h (struct target_ops) <to_fileio_close>: Add argument.
94 * target.c (target_fileio_close): Add argument.
95 * remote.c (remote_hostio_close): Add 'self' argument.
96 (remote_hostio_close_cleanup): Update.
97 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
99 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
101 2014-02-19 Tom Tromey <tromey@redhat.com>
103 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
104 * target.c (target_fileio_pread): Add argument.
105 * remote.c (remote_hostio_pread): Add 'self' argument.
106 (remote_bfd_iovec_pread, remote_file_get): Update.
107 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
109 2014-02-19 Tom Tromey <tromey@redhat.com>
111 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
112 * target.c (target_fileio_pwrite): Add argument.
113 * remote.c (remote_hostio_pwrite): Add 'self' argument.
114 (remote_file_put): Update.
115 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
117 2014-02-19 Tom Tromey <tromey@redhat.com>
119 * target.h (struct target_ops) <to_fileio_open>: Add argument.
120 * target.c (target_fileio_open): Add argument.
121 * remote.c (remote_hostio_open): Add 'self' argument.
122 (remote_bfd_iovec_open): Add 'self' argument.
123 (remote_file_put): Add 'self' argument.
124 (remote_file_get): Add 'self' argument.
125 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
127 2014-02-19 Tom Tromey <tromey@redhat.com>
129 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
131 (target_can_run_breakpoint_commands): Add argument.
132 * target.c (update_current_target): Update.
133 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
135 (remote_insert_breakpoint): Add 'self' argument.
136 (remote_insert_hw_breakpoint): Add 'self' argument.
137 (remote_can_run_breakpoint_commands): Add 'self' argument.
139 2014-02-19 Tom Tromey <tromey@redhat.com>
141 * target.h (struct target_ops)
142 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
143 (target_supports_evaluation_of_breakpoint_conditions): Add
145 * target.c (update_current_target): Update.
146 * remote.c (remote_supports_cond_breakpoints): Add 'self'
148 (remote_insert_breakpoint): Add 'self' argument.
149 (remote_insert_hw_breakpoint): Add 'self' argument.
150 (remote_supports_cond_breakpoints): Add 'self' argument.
152 2014-02-19 Tom Tromey <tromey@redhat.com>
154 * target.h (struct target_ops) <to_supports_string_tracing>: Add
156 (target_supports_string_tracing): Add argument.
157 * target.c (update_current_target): Update.
158 * remote.c (remote_supports_string_tracing): Add 'self' argument.
160 2014-02-19 Tom Tromey <tromey@redhat.com>
162 * target.h (struct target_ops)
163 <to_supports_disable_randomization>: Add argument.
164 * target.c (find_default_supports_disable_randomization): Add
166 (target_supports_disable_randomization): Add argument.
167 (find_default_supports_disable_randomization): Add 'self'
169 * remote.c (extended_remote_supports_disable_randomization): Add
171 (remote_supports_disable_randomization): Add 'self' argument.
172 (extended_remote_create_inferior): Update.
173 * linux-nat.c (linux_nat_supports_disable_randomization): Add
176 2014-02-19 Tom Tromey <tromey@redhat.com>
178 * target.h (struct target_ops)
179 <to_supports_enable_disable_tracepoint>: Add argument.
180 (target_supports_enable_disable_tracepoint): Add argument.
181 * target.c (update_current_target): Update.
182 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
185 2014-02-19 Tom Tromey <tromey@redhat.com>
187 * target.h (struct target_ops) <to_supports_multi_process>: Add
189 (target_supports_multi_process): Add argument.
190 * target.c (update_current_target): Update.
191 * remote.c (remote_supports_multi_process): Add 'self' argument.
192 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
194 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
197 2014-02-19 Tom Tromey <tromey@redhat.com>
199 * target.h (struct target_ops) <to_execution_direction>: Add
201 (target_execution_direction): Add argument.
202 * target.c (default_execution_direction): Add 'self' argument.
203 * record-full.c (record_full_execution_direction): Add 'self'
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (struct target_ops) <to_can_execute_reverse>: Add
210 (target_can_execute_reverse): Add argument.
211 * remote.c (remote_can_execute_reverse): Add 'self' argument.
212 * record-full.c (record_full_can_execute_reverse): Add 'self'
214 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
217 2014-02-19 Tom Tromey <tromey@redhat.com>
219 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
220 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
222 (target_get_ada_task_ptid): Add argument.
223 * target.c (update_current_target): Update.
224 (default_get_ada_task_ptid): Add 'self' argument.
225 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
226 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
227 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
229 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
231 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
233 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
235 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
236 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
239 2014-02-19 Tom Tromey <tromey@redhat.com>
241 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
242 (target_goto_bookmark): Add argument.
243 * target.c (dummy_goto_bookmark): Add 'self' argument.
244 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
246 2014-02-19 Tom Tromey <tromey@redhat.com>
248 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
249 (target_get_bookmark): Add argument.
250 * target.c (dummy_get_bookmark): Add 'self' argument.
251 * record-full.c (record_full_get_bookmark): Add 'self' argument.
253 2014-02-19 Tom Tromey <tromey@redhat.com>
255 * target.h (struct target_ops) <to_make_corefile_notes>: Add
257 (target_make_corefile_notes): Add argument.
258 * target.c (dummy_make_corefile_notes): Add 'self' argument.
259 * procfs.c (procfs_make_note_section): Add 'self' argument.
260 (procfs_make_note_section): Add 'self' argument.
261 (procfs_make_note_section): Add 'self' argument.
262 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
264 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
265 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
266 * exec.c (exec_make_note_section): Add 'self' argument.
267 (exec_make_note_section): Add 'self' argument.
269 2014-02-19 Tom Tromey <tromey@redhat.com>
271 * target.h (struct target_ops) <to_find_memory_regions>: Add
273 (target_find_memory_regions): Add argument.
274 * target.c (dummy_find_memory_regions): Add 'self' argument.
275 * procfs.c (proc_find_memory_regions): Add 'self' argument.
276 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
277 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
278 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
279 * exec. (exec_do_find_memory_regions): New global.
280 (exec_set_find_memory_regions): Rewrite.
281 (exec_find_memory_regions): New function.
282 (init_exec_ops): Use exec_find_memory_regions.
284 2014-02-19 Tom Tromey <tromey@redhat.com>
286 * target.h (struct target_ops) <to_supports_non_stop>: Add
288 * target.c (find_default_supports_non_stop): Add argument.
289 (target_supports_non_stop): Add argument.
290 (find_default_supports_non_stop): Add 'self' argument.
291 * remote.c (remote_supports_non_stop): Add 'self' argument.
292 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
294 2014-02-19 Tom Tromey <tromey@redhat.com>
296 * target.h (struct target_ops) <to_log_command>: Add argument.
297 (target_log_command): Add argument.
298 * serial.h (serial_log_command): Add 'self' argument.
299 * serial.c (serial_log_command): Add 'self' argument.
301 2014-02-19 Tom Tromey <tromey@redhat.com>
303 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
304 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
306 (target_pid_to_exec_file): Add argument.
307 * target.c (debug_to_pid_to_exec_file): Add argument.
308 (update_current_target): Update.
309 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
310 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
311 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
312 (linux_handle_extended_wait): Update.
313 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
314 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
315 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
316 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
318 2014-02-19 Tom Tromey <tromey@redhat.com>
320 * target.h (struct target_ops) <to_rcmd>: Add argument.
321 (target_rcmd): Add argument.
322 * target.c (debug_to_rcmd): Add argument.
323 (update_current_target, do_monitor_command): Update.
324 * remote.c (remote_rcmd): Add 'self' argument.
325 * monitor.c (monitor_rcmd): Add 'self' argument.
327 2014-02-19 Tom Tromey <tromey@redhat.com>
329 * windows-nat.c (windows_stop): Add 'self' argument.
330 * target.h (struct target_ops) <to_stop>: Add argument.
331 * target.c (target_stop): Add argument.
332 (debug_to_stop): Add argument.
333 (update_current_target): Update.
334 * remote.c (remote_stop): Add 'self' argument.
335 * remote-sim.c (gdbsim_stop): Add 'self' argument.
336 (gdbsim_cntrl_c): Update.
337 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
338 * procfs.c (procfs_stop): Add 'self' argument.
339 * nto-procfs.c (procfs_stop): Add 'self' argument.
340 * monitor.c (monitor_stop): Add 'self' argument.
341 (monitor_open): Update.
342 * linux-nat.c (linux_nat_stop): Add argument.
343 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
344 * gnu-nat.c (gnu_stop): Add 'self' argument.
345 * darwin-nat.c (darwin_stop): Add 'self' argument.
347 2014-02-19 Tom Tromey <tromey@redhat.com>
349 * target.h (struct target_ops) <to_thread_name>: Add argument.
350 * target.c (target_thread_name): Add argument.
351 (update_current_target): Update.
352 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
354 2014-02-19 Tom Tromey <tromey@redhat.com>
356 * target.h (struct target_ops) <to_extra_thread_info>: Add
358 (target_extra_thread_info): Add argument.
359 * target.c (update_current_target): Update.
360 * remote.c (remote_threads_extra_info): Add 'self' argument.
361 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
363 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
364 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
365 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
367 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
369 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
371 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
374 2014-02-19 Tom Tromey <tromey@redhat.com>
376 * target.h (struct target_ops) <to_program_signals>: Add argument.
377 * target.c (target_program_signals): Add argument.
378 * remote.c (remote_program_signals): Add 'self' argument.
380 2014-02-19 Tom Tromey <tromey@redhat.com>
382 * target.h (struct target_ops) <to_pass_signals>: Add argument.
383 * target.c (target_pass_signals): Add argument.
384 * remote.c (remote_pass_signals): Add 'self' argument.
385 (remote_start_remote): Update.
386 * procfs.c (procfs_pass_signals): Add 'self' argument.
387 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
388 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
389 (linux_nat_create_inferior, linux_nat_attach): Update.
391 2014-02-19 Tom Tromey <tromey@redhat.com>
393 * windows-nat.c (windows_can_run): Add 'self' argument.
394 * target.h (struct target_ops) <to_can_run>: Add argument.
395 (target_can_run): Add argument.
396 * target.c (debug_to_can_run): Add argument.
397 (update_current_target): Update.
398 * nto-procfs.c (procfs_can_run): Add 'self' argument.
399 * inf-child.c (inf_child_can_run): Add 'self' argument.
400 * go32-nat.c (go32_can_run): Add 'self' argument.
402 2014-02-19 Tom Tromey <tromey@redhat.com>
404 * target.h (struct target_ops) <to_has_exited>: Add argument.
405 (target_has_exited): Add argument.
406 * target.c (debug_to_has_exited): Add argument.
407 (update_current_target): Update.
409 2014-02-19 Tom Tromey <tromey@redhat.com>
411 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
413 (target_set_syscall_catchpoint): Add argument.
414 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
416 * target.c (update_current_target): Update.
418 2014-02-19 Tom Tromey <tromey@redhat.com>
420 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
422 (target_remove_exec_catchpoint): Add argument.
423 * target.c (debug_to_remove_exec_catchpoint): Add argument.
424 (update_current_target): Update.
425 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
428 2014-02-19 Tom Tromey <tromey@redhat.com>
430 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
432 (target_insert_exec_catchpoint): Add argument.
433 * target.c (debug_to_insert_exec_catchpoint): Add argument.
434 (update_current_target): Update.
435 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
438 2014-02-19 Tom Tromey <tromey@redhat.com>
440 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
442 (target_remove_vfork_catchpoint): Add argument.
443 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
444 (update_current_target): Update.
445 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
448 2014-02-19 Tom Tromey <tromey@redhat.com>
450 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
452 (target_insert_vfork_catchpoint): Add argument.
453 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
454 (update_current_target): Update.
455 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
458 2014-02-19 Tom Tromey <tromey@redhat.com>
460 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
462 (target_remove_fork_catchpoint): Add argument.
463 * target.c (debug_to_remove_fork_catchpoint): Add argument.
464 (update_current_target): Update.
465 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
468 2014-02-19 Tom Tromey <tromey@redhat.com>
470 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
472 (target_insert_fork_catchpoint): Add argument.
473 * target.c (debug_to_insert_fork_catchpoint): Add argument.
474 (update_current_target): Update.
475 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
478 2014-02-19 Tom Tromey <tromey@redhat.com>
480 * target.h (struct target_ops) <to_post_startup_inferior>: Add
482 (target_post_startup_inferior): Add argument.
483 * target.c (debug_to_post_startup_inferior): Add argument.
484 (update_current_target): Update.
485 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
487 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
489 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
491 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
493 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
495 (super_post_startup_inferior): Likewise.
496 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
498 (super_post_startup_inferior): Likewise.
499 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
501 (super_post_startup_inferior): Likewise.
503 2014-02-19 Tom Tromey <tromey@redhat.com>
505 * target.h (struct target_ops) <to_load>: Add argument.
506 * target.c (target_load): Add argument.
507 (debug_to_load): Add argument.
508 (update_current_target): Update.
509 * remote.c (remote_load): Add 'self' argument.
510 * remote-sim.c (gdbsim_load): Add 'self' argument.
511 * remote-mips.c (mips_load): Add 'self' argument.
512 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
513 * monitor.c (monitor_load): Add 'self' argument.
514 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
516 2014-02-19 Tom Tromey <tromey@redhat.com>
518 * target.h (struct target_ops) <to_terminal_info>: Add argument.
519 (target_terminal_info): Add argument.
520 * target.c (debug_to_terminal_info): Add argument.
521 (default_terminal_info): Likewise.
522 * inflow.c (child_terminal_info): Add 'self' argument.
523 * inferior.h (child_terminal_info): Add 'self' argument.
524 * go32-nat.c (go32_terminal_info): Add 'self' argument.
526 2014-02-19 Tom Tromey <tromey@redhat.com>
528 * target.h (struct target_ops) <to_terminal_save_ours>: Add
530 (target_terminal_save_ours): Add argument.
531 * target.c (debug_to_terminal_save_ours): Add argument.
532 (update_current_target): Update.
533 * inflow.c (terminal_save_ours): Add 'self' argument.
534 * inferior.h (terminal_save_ours): Add 'self' argument.
536 2014-02-19 Tom Tromey <tromey@redhat.com>
538 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
539 (target_terminal_ours): Add argument.
540 * target.c (debug_to_terminal_ours): Add argument.
541 (update_current_target): Update.
542 * remote.c (remote_terminal_ours): Add 'self' argument.
543 (remote_close): Update.
544 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
545 * inflow.c (terminal_ours): Add 'self' argument.
546 * inferior.h (terminal_ours): Add 'self' argument.
547 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
549 2014-02-19 Pedro Alves <palves@redhat.com>
550 Tom Tromey <tromey@redhat.com>
552 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
554 (target_terminal_ours_for_output): Add argument.
555 * target.c (debug_to_terminal_ours_for_output): Add argument.
556 (update_current_target): Update.
557 * inflow.c (terminal_ours_for_output): Add 'self' argument.
558 * inferior.h (terminal_ours_for_output): Add 'self' argument.
559 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
561 2014-02-19 Tom Tromey <tromey@redhat.com>
563 * target.h (struct target_ops) <to_terminal_inferior>: Add
565 * target.c (target_terminal_inferior): Add argument.
566 (update_current_target): Update.
567 * remote.c (remote_terminal_inferior): Add 'self' argument.
568 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
569 * inflow.c (terminal_inferior): Add 'self' argument.
570 * inferior.h (terminal_inferior): Add 'self' argument.
571 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
572 (go32_terminal_inferior): Add 'self' argument.
574 2014-02-19 Tom Tromey <tromey@redhat.com>
576 * target.h (struct target_ops) <to_terminal_init>: Add argument.
577 (target_terminal_init): Add argument.
578 * target.c (debug_to_terminal_init): Add argument.
579 (update_current_target): Update.
580 * inflow.c (terminal_init_inferior): Add 'self' argument.
581 * inferior.h (terminal_init_inferior): Add 'self' argument.
582 * go32-nat.c (go32_terminal_init): Add 'self' argument.
583 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
585 2014-02-19 Tom Tromey <tromey@redhat.com>
587 * target.h (struct target_ops)
588 <to_can_accel_watchpoint_condition>: Add argument.
589 (target_can_accel_watchpoint_condition): Add argument.
590 * target.c (debug_to_can_accel_watchpoint_condition): Add
592 (update_current_target): Update.
593 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
596 2014-02-19 Tom Tromey <tromey@redhat.com>
598 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
600 (target_region_ok_for_hw_watchpoint): Add argument.
601 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
602 (default_region_ok_for_hw_watchpoint): Add argument.
603 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
604 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
606 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
608 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
610 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
612 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
614 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
616 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
617 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
619 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
622 2014-02-19 Tom Tromey <tromey@redhat.com>
624 * target.h (struct target_ops) <to_insert_watchpoint>: Add
626 (target_insert_watchpoint): Add argument.
627 * target.c (debug_to_insert_watchpoint): Add argument.
628 (update_current_target): Update.
629 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
630 * remote.c (remote_insert_watchpoint): Add 'self' argument.
631 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
632 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
633 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
634 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
636 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
637 (procfs_insert_hw_watchpoint): Add 'self' argument.
638 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
640 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
642 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
644 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
645 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
647 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
650 2014-02-19 Tom Tromey <tromey@redhat.com>
652 * target.h (struct target_ops) <to_remove_watchpoint>: Add
654 (target_remove_watchpoint): Add argument.
655 * target.c (debug_to_remove_watchpoint): Add argument.
656 (update_current_target): Update.
657 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
658 * remote.c (remote_remove_watchpoint): Add 'self' argument.
659 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
660 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
661 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
662 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
664 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
665 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
667 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
669 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
671 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
672 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
674 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
677 2014-02-19 Tom Tromey <tromey@redhat.com>
679 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
681 (target_remove_hw_breakpoint): Add argument.
682 * target.c (debug_to_remove_hw_breakpoint): Add argument.
683 (update_current_target): Update.
684 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
685 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
687 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
688 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
690 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
693 2014-02-19 Tom Tromey <tromey@redhat.com>
695 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
697 (target_insert_hw_breakpoint): Add argument.
698 * target.c (debug_to_insert_hw_breakpoint): Add argument.
699 (update_current_target): Update.
700 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
701 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
703 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
704 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
705 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
707 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
710 2014-02-19 Tom Tromey <tromey@redhat.com>
712 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
714 (target_can_use_hardware_watchpoint): Add argument.
715 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
716 (update_current_target): Update.
717 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
719 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
721 * remote.c (remote_check_watch_resources): Add 'self' argument.
722 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
723 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
725 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
726 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
728 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
730 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
732 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
734 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
736 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
738 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
739 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
741 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
744 2014-02-19 Tom Tromey <tromey@redhat.com>
746 * target.h (struct target_ops) <to_post_attach>: Add argument.
747 (target_post_attach): Add argument.
748 * target.c (debug_to_post_attach): Add argument.
749 (update_current_target): Update.
750 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
751 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
752 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
753 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
754 * inf-child.c (inf_child_post_attach): Add 'self' argument.
756 2014-02-19 Tom Tromey <tromey@redhat.com>
758 * windows-nat.c (windows_close): Add 'self' argument.
759 * tracepoint.c (tfile_close): Add 'self' argument.
760 * target.h (struct target_ops) <to_close>: Add argument.
761 * target.c (target_close): Add argument.
762 (update_current_target): Update.
763 * remote.c (remote_close): Add 'self' argument.
764 * remote-sim.c (gdbsim_close): Add 'self' argument.
765 * remote-mips.c (mips_close): Add 'self' argument.
766 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
767 * record-full.c (record_full_close): Add 'self' argument.
768 * record-btrace.c (record_btrace_close): Add 'self' argument.
769 * monitor.h (monitor_close): Add 'self' argument.
770 * monitor.c (monitor_close): Add 'self' argument.
771 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
772 * linux-nat.c (linux_nat_close): Add argument.
773 * go32-nat.c (go32_close): Add 'self' argument.
774 * exec.c (exec_close_1): Add 'self' argument.
775 * ctf.c (ctf_close): Add 'self' argument.
776 * corelow.c (core_close): Add 'self' argument.
777 (core_close_cleanup): Update.
778 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
779 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
781 2014-02-19 Tom Tromey <tromey@redhat.com>
783 * remote.c (remote_load): New function.
784 (init_remote_ops): Use it.
786 2014-02-19 Tom Tromey <tromey@redhat.com>
788 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
790 * common/linux-btrace.h (linux_supports_btrace): Update.
791 * remote.c (remote_supports_btrace): Add "self" argument.
792 * target-delegates.c: Rebuild.
793 * target.c (target_supports_btrace): Remove.
794 * target.h (struct target_ops) <to_supports_btrace>: Add
796 (target_supports_btrace): New define.
798 2014-02-19 Tom Tromey <tromey@redhat.com>
800 * record-full.c (record_full_beneath_to_resume_ops)
801 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
802 (record_full_beneath_to_wait)
803 (record_full_beneath_to_store_registers_ops)
804 (record_full_beneath_to_store_registers)
805 (record_full_beneath_to_xfer_partial_ops)
806 (record_full_beneath_to_xfer_partial)
807 (record_full_beneath_to_insert_breakpoint_ops)
808 (record_full_beneath_to_insert_breakpoint)
809 (record_full_beneath_to_remove_breakpoint_ops)
810 (record_full_beneath_to_remove_breakpoint)
811 (record_full_beneath_to_stopped_by_watchpoint)
812 (record_full_beneath_to_stopped_data_address)
813 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
814 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
815 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
816 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
817 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
818 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
819 (tmp_to_stopped_data_address, tmp_to_async): Remove.
820 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
821 (record_full_resume, record_full_wait_1)
822 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
823 (record_full_store_registers, record_full_xfer_partial)
824 (record_full_insert_breakpoint, record_full_remove_breakpoint)
825 (record_full_async, record_full_core_xfer_partial): Use target
827 * target-delegates.c: Rebuild.
828 * target.c (current_xfer_partial): Remove.
829 (update_current_target): Do not INHERIT or de_fault
830 to_insert_breakpoint, to_remove_breakpoint,
831 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
832 to_is_async_p, to_async. Do not set to_xfer_partial field.
833 (default_xfer_partial): Simplify.
834 (current_xfer_partial): Remove.
835 (target_wait, target_resume): Simplify.
836 (find_default_can_async_p, find_default_is_async_p): Update.
837 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
838 to_xfer_partial, to_stopped_by_watchpoint,
839 to_stopped_data_address.
840 (target_store_registers): Simplify.
841 (forward_target_remove_breakpoint)
842 (forward_target_insert_breakpoint): Remove.
843 (target_remove_breakpoint, target_insert_breakpoint)
844 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
845 * target.h (struct target_ops) <to_resume, to_wait,
846 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
847 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
848 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
850 (forward_target_remove_breakpoint)
851 (forward_target_insert_breakpoint): Remove.
852 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
854 (record_btrace_insert_breakpoint): Delegate directly.
856 2014-02-19 Tom Tromey <tromey@redhat.com>
859 * target-delegates.c: New file.
860 * target.c: Include target-delegates.c.
861 (init_dummy_target): Call install_dummy_methods.
862 (complete_target_initialization): Call install_delegators.
863 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
864 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
865 * make-target-delegates: New file.
867 2014-02-19 Tom Tromey <tromey@redhat.com>
869 * record.c (find_record_target): Use find_target_at.
870 * target.c (find_target_at): New function.
871 * target.h (find_target_at): Declare.
873 2014-02-19 Tom Tromey <tromey@redhat.com>
875 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
877 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
879 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
880 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
882 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
884 * linux-nat.c (save_sigtrap): Update.
885 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
886 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
887 (linux_nat_close): Update.
888 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
890 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
892 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
893 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
894 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
895 (tmp_to_async): Add 'ops' argument.
896 (record_full_stopped_by_watchpoint, record_full_async)
897 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
899 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
900 (m32r_stopped_by_watchpoint): Add 'ops' argument.
901 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
902 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
903 (remote_is_async_p, remote_async): Add 'ops' argument.
904 (remote_stopped_data_address): Update.
905 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
906 * target.c (update_current_target)
907 (find_default_can_async_p, find_default_is_async_p): Update.
908 (init_dummy_target): Update.
909 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
910 * target.h (struct target_ops) <to_stopped_by_watchpoint,
911 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
912 (target_can_async_p, target_is_async_p, target_async)
913 (target_stopped_by_watchpoint): Update.
915 2014-02-19 Yao Qi <yao@codesourcery.com>
918 * gdbarch.sh: Remove startup_gdbarch.
919 * gdbarch.c: Regenerated.
920 * gdbarch.h: Likewise.
922 2014-02-17 Kevin Buettner <kevinb@redhat.com>
924 * rl78-tdep.c (rl78_g10_register_name): New function.
925 (rl78_return_value): Add g10 support.
926 (rl78_gdbarch_init): Register rl78_g10_register_name for the
929 2014-02-17 Doug Evans <xdje42@gmail.com>
931 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
932 (SUBDIR_GUILE_SRCS): Ditto.
933 (scm-gsmob.o): Ditto.
935 2014-02-17 Yao Qi <yao@codesourcery.com>
937 * gnu-nat.c (ILL_RPC): Declare defined function.
939 2014-02-17 Yao Qi <yao@codesourcery.com>
941 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
942 mach_msg_type_number_t.
943 (gnu_write_inferior): Likewise.
945 2014-02-17 Yao Qi <yao@codesourcery.com>
947 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
949 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
950 (inf_validate_procs, inf_signal): Likewise.
951 (S_exception_raise_request): Likewise.
952 (do_mach_notify_dead_name): Likewise.
953 (steal_exc_port): Likewise.
954 (gnu_read_inferior): Change 'copy_count''s type to
955 mach_msg_type_number_t.
956 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
959 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
961 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
962 flag. Adjust all users; in particular...
963 (gnu_wait): ..., don't decrement its value in here...
964 (gnu_create_inferior): ..., and instead set the flag in here,
965 around the startup_inferior call, and call that one with
966 START_INFERIOR_TRAPS_EXPECTED.
968 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
969 (ILL_RPC): ... new macro.
970 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
971 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
972 (do_mach_notify_send_once, S_proc_setmsgport_reply)
973 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
974 functions with ILL_RPC macro.
975 (S_proc_pid2task_reply, S_proc_task2pid_reply)
976 (S_proc_task2proc_reply, S_proc_proc2task_reply)
977 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
978 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
979 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
980 (S_proc_getlogin_reply, S_proc_getsid_reply)
981 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
982 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
983 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
984 (S_proc_getnports_reply, S_proc_is_important_reply)
985 (S_proc_get_code_reply): New stub functions, generated with
988 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
989 collected the type check structures.
991 * reply_mig_hack.awk: Don't expect to see the auto keyword.
993 2014-02-14 Doug Evans <dje@google.com>
995 * target.c (target_write_partial): Fix result type.
997 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
999 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1000 the proper offsets to access fpregset_t.
1002 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1004 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1005 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1006 * h8300-tdep.c (setmachinelist): Remove global.
1007 * hppa-tdep.c (hppa_sigtramp): Remove global.
1008 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1009 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1010 * ravenscar-thread.c (update_target_observer): Remove global.
1011 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1013 2014-02-12 Tom Tromey <tromey@redhat.com>
1015 * common/rsp-low.c: Update comments.
1016 * common/rsp-low.h: Update comments.
1018 2014-02-12 Tom Tromey <tromey@redhat.com>
1020 * common/rsp-low.c (convert_ascii_to_int): Remove.
1021 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1023 2014-02-12 Tom Tromey <tromey@redhat.com>
1025 * common/rsp-low.h (unhexify): Don't declare.
1026 * common/rsp-low.c (unhexify): Remove.
1028 2014-02-12 Tom Tromey <tromey@redhat.com>
1030 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1031 * common/rsp-low.c (convert_int_to_ascii): Remove.
1033 2014-02-12 Tom Tromey <tromey@redhat.com>
1035 * common/rsp-low.h (hexify): Don't declare.
1036 * common/rsp-low.c (hexify): Remove.
1038 2014-02-12 Tom Tromey <tromey@redhat.com>
1040 * common/rsp-low.c (hexify): Never take strlen of argument.
1042 2014-02-12 Tom Tromey <tromey@redhat.com>
1044 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1045 * remote.c (extended_remote_run, remote_rcmd)
1046 (remote_download_trace_state_variable, remote_save_trace_data)
1047 (remote_set_trace_notes): Update.
1048 * tracepoint.c (encode_source_string, tfile_write_status)
1049 (tfile_write_uploaded_tsv): Update.
1051 2014-02-12 Tom Tromey <tromey@redhat.com>
1053 * tracepoint.c: Include rsp-low.h.
1054 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1055 * remote.c: Include rsp-low.h.
1056 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1057 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1058 (remote_unescape_input): Move to common/rsp-low.c.
1059 * common/rsp-low.h: New file.
1060 * common/rsp-low.c: New file.
1061 * Makefile.in (SFILES): Add common/rsp-low.c.
1062 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1063 (COMMON_OBS): Add rsp-low.o.
1064 (rsp-low.o): New target.
1066 2014-02-12 Tom Tromey <tromey@redhat.com>
1068 * utils.h: Include print-utils.h.
1069 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1070 (int_string, core_addr_to_string, core_addr_to_string_nz)
1071 (hex_string, hex_string_custom): Don't declare.
1072 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1073 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1074 (hex_string_custom, int_string, core_addr_to_string)
1075 (core_addr_to_string_nz, host_address_to_string): Move to
1076 common/print-utils.c.
1077 * common/print-utils.h: New file.
1078 * common/print-utils.c: New file
1079 * Makefile.in (SFILES): Add common/print-utils.c.
1080 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1081 (COMMON_OBS): Add print-utils.o.
1082 (print-utils.o): New target.
1084 2014-02-12 Tom Tromey <tromey@redhat.com>
1086 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1088 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1090 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1092 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1094 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1095 if a PT_IO ptrace request returns sucessfully but indicates that 0
1096 bytes were transferred.
1098 2014-02-12 Pedro Alves <palves@redhat.com>
1099 Kevin Buettner <kevinb@redhat.com>
1101 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1102 TYPE_INSTANCE_FLAG_CODE_SPACE.
1104 2014-02-12 Pedro Alves <palves@redhat.com>
1106 * h8300-tdep.c (pseudo_from_raw_register)
1107 (raw_from_pseudo_register): New functions.
1108 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1111 2014-02-12 Pedro Alves <palves@redhat.com>
1113 * h8300-tdep.c (h8300_register_sim_regno): New function.
1114 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1115 gdbarch_register_sim_regno hook.
1117 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1119 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1121 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1123 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1125 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1127 * obsd-tdep.h (obsd_init_abi): New prototype.
1128 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1129 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1130 (obsd_init_abi): New functions.
1131 * i386obsd-tdep.c: Include "obsd-tdep.h".
1132 (i386obsd_init_abi): Call obsd_init_abi.
1133 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1134 (amd64obsd_init_abi): Call obsd_init_abi.
1135 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1136 obsd-tdep.c to gdb_target_obs.
1138 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1140 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1141 double float arguments to 16-byte in the argument slots.
1143 2014-02-11 Doug Evans <xdje42@gmail.com>
1145 * configure.ac: Don't crash if pkg-config is not found and guile
1146 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1148 * configure: Regenerate.
1150 2014-02-11 Yao Qi <yao@codesourcery.com>
1152 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1153 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1154 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1155 * gnu-nat.c (gnu_xfer_memory): Likewise.
1156 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1157 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1161 2014-02-11 Yao Qi <yao@codesourcery.com>
1163 * target.h (enum target_xfer_error): Rename to ...
1164 (enum target_xfer_status): ... it. New. All users updated.
1165 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1167 (TARGET_XFER_STATUS_ERROR_P): New macro.
1168 (target_xfer_error_to_string): Remove declaration.
1169 (target_xfer_status_to_string): Declare.
1170 (target_xfer_partial_ftype): Adjust it.
1171 (struct target_ops) <to_xfer_partial>: Return
1172 target_xfer_status. Add argument xfered_len. Update
1174 * target.c (target_xfer_error_to_string): Rename to ...
1175 (target_xfer_status_to_string): ... it. New. All callers
1177 (target_read_live_memory): Likewise. Call target_xfer_partial
1178 instead of target_read.
1179 (memory_xfer_live_readonly_partial): Return
1180 target_xfer_status. Add argument xfered_len.
1181 (raw_memory_xfer_partial): Likewise.
1182 (memory_xfer_partial_1): Likewise.
1183 (memory_xfer_partial): Likewise.
1184 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1185 properly. Update debug message.
1186 (default_xfer_partial, current_xfer_partial): Likewise.
1187 (target_write_partial): Likewise.
1188 (target_read_partial): Likewise. All callers updated.
1189 (read_whatever_is_readable): Likewise.
1190 (target_write_with_progress): Likewise.
1191 (target_read_alloc_1): Likewise.
1193 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1194 * auxv.c (procfs_xfer_auxv): Likewise.
1195 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1196 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1197 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1198 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1199 * corefile.c (read_memory): Adjust.
1200 * corelow.c (core_xfer_partial): Likewise.
1201 * ctf.c (ctf_xfer_partial): Likewise.
1202 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1204 (darwin_xfer_partial): Likewise.
1205 * exec.c (section_table_xfer_memory_partial): Likewise. All
1207 (exec_xfer_partial): Likewise.
1208 * exec.h (section_table_xfer_memory_partial): Update
1210 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1212 (gnu_xfer_partial): Likewise.
1213 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1214 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1215 (ia64_hpux_xfer_solib_got): Likewise.
1216 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1217 type of 'partial_len' to ULONGEST.
1218 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1219 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1220 (linux_nat_xfer_partial): Likewise.
1221 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1222 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1223 * monitor.c (monitor_xfer_memory): Likewise.
1224 (monitor_xfer_partial): Likewise.
1225 * procfs.c (procfs_xfer_partial): Likewise.
1226 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1227 * record-full.c (record_full_xfer_partial): Likewise.
1228 (record_full_core_xfer_partial): Likewise.
1229 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1230 (gdbsim_xfer_partial): Likewise.
1231 * remote.c (remote_write_bytes_aux): Likewise. All callers
1233 (remote_write_bytes, remote_read_bytes): Likewise. All
1235 (remote_flash_erase): Likewise. All callers updated.
1236 (remote_write_qxfer): Likewise. All callers updated.
1237 (remote_read_qxfer): Likewise. All callers updated.
1238 (remote_xfer_partial): Likewise.
1239 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1240 (rs6000_xfer_shared_libraries): Likewise.
1241 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1242 (sol_thread_xfer_partial): Likewise.
1243 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1244 (sparc_xfer_partial): Likewise.
1245 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1247 (spu_xfer_partial): Likewise.
1248 * spu-multiarch.c (spu_xfer_partial): Likewise.
1249 * tracepoint.c (tfile_xfer_partial): Likewise.
1250 * windows-nat.c (windows_xfer_memory): Likewise.
1251 (windows_xfer_shared_libraries): Likewise.
1252 (windows_xfer_partial): Likewise.
1253 * valprint.c: Replace 'target_xfer_error' with
1254 'target_xfer_status' in comments.
1256 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1258 Checked in by Joel Brobecker <brobecker@adacore.com>.
1259 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1261 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1263 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1264 function parameters.
1266 2014-02-10 Will Newton <will.newton@linaro.org>
1268 * elfread.c (elf_rel_plt_read): Look for a .got section if
1269 looking up .got.plt fails.
1270 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1271 on address passed to elf_gnu_ifunc_record_cache.
1272 (elf_gnu_ifunc_resolve_addr): Likewise.
1273 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1275 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1277 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1278 (X_RETTURN): New macro.
1279 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1281 * sparc64-tdep.c (sparc64_init_abi): Hook
1282 sparc_in_function_epilogue_p.
1284 2014-02-10 Gary Benson <gbenson@redhat.com>
1286 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1287 Rename name_matcher to symbol_matcher.
1289 2014-02-10 Gary Benson <gbenson@redhat.com>
1291 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1292 Use expand_symtabs_file_matcher_ftype and
1293 expand_symtabs_symbol_matcher_ftype.
1295 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1297 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1298 (struct ada_symbol_cache): New.
1299 (ada_free_symbol_cache): Forward declare.
1300 (struct ada_pspace_data): New.
1301 (ada_pspace_data_handle): New static global.
1302 (get_ada_pspace_data, ada_pspace_data_cleanup)
1303 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1304 (cache_space, cache): Delete, now folded inside struct
1306 (ada_get_symbol_cache): New function.
1307 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1309 (_initialize_ada_language): Remove initialization of cache_space.
1310 Move call to observer_attach_inferior_exit up, grouping it
1311 with the other observer registrations inside this function.
1312 Rename command to be more general. Add call to
1313 register_program_space_data_with_cleanup.
1315 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1317 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1318 ada_new_objfile_observer.
1319 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1320 (_initialize_tasks): Update uses of ada_new_objfile_observer
1321 and ada_tasks_normal_stop_observer.
1323 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1325 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1326 returned by the 'Length attribute to integer.
1328 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1330 * ada-lang.c (_initialize_ada_language): Initialize
1331 cache_space obstack.
1333 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1335 * ada-lang.c (HASH_SIZE): New macro.
1336 (struct cache_entry): New type.
1337 (cache_space, cache): New static globals.
1338 (ada_clear_symbol_cache, find_entry): New functions.
1339 (lookup_cached_symbol, cache_symbol): Implement.
1340 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1341 (_initialize_ada_language): Attach ada_new_objfile_observer
1342 and ada_free_objfile_observer.
1344 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1346 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1347 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1348 struct block * parameter.
1349 (ada_lookup_symbol_list_worker): Constify local variable "block".
1350 Remove cast which is no longer necessary.
1352 2014-02-10 Doug Evans <xdje42@gmail.com>
1354 Add Guile as an extension language.
1355 * NEWS: Mention Guile scripting.
1356 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1357 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1358 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1359 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1360 (CLIBS): Add GUILE_LIBS.
1361 (install-guile): New rule.
1362 (guile.o): New rule.
1363 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1364 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1365 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1366 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1367 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1368 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1369 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1370 * configure.ac: New option --with-guile.
1371 * configure: Regenerate.
1372 * config.in: Regenerate.
1373 * auto-load.c: Remove #include "python/python.h". Add #include
1374 "gdb/section-scripts.h".
1375 (source_section_scripts): Handle Guile scripts.
1376 (_initialize_auto_load): Add name of Guile objfile script to
1377 scripts-directory help text.
1378 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1379 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1380 (struct breakpoint): New member scm_bp_object.
1381 * defs.h (enum command_control_type): New value guile_control.
1382 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1384 (show_user): Update comment.
1385 (_initialize_cli_cmds): Update help text for "show user". Update help
1386 text for max-user-call-depth.
1387 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1389 (multi_line_command_p): Add guile_control.
1390 (print_command_lines): Handle guile_control.
1391 (execute_control_command, recurse_read_control_structure): Ditto.
1392 (process_next_line): Recognize "guile" commands.
1393 * disasm.c (gdb_disassemble_info): Make non-static.
1394 * disasm.h: #include "dis-asm.h".
1395 (struct gdbarch): Add forward decl.
1396 (gdb_disassemble_info): Declare.
1397 * extension.c: #include "guile/guile.h".
1398 (extension_languages): Add guile.
1399 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1400 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1401 * gdbtypes.c (get_unsigned_type_max): New function.
1402 (get_signed_type_minmax): New function.
1403 * gdbtypes.h (get_unsigned_type_max): Declare.
1404 (get_signed_type_minmax): Declare.
1405 * guile/README: New file.
1406 * guile/guile-internal.h: New file.
1407 * guile/guile.c: New file.
1408 * guile/guile.h: New file.
1409 * guile/scm-arch.c: New file.
1410 * guile/scm-auto-load.c: New file.
1411 * guile/scm-block.c: New file.
1412 * guile/scm-breakpoint.c: New file.
1413 * guile/scm-disasm.c: New file.
1414 * guile/scm-exception.c: New file.
1415 * guile/scm-frame.c: New file.
1416 * guile/scm-gsmob.c: New file.
1417 * guile/scm-iterator.c: New file.
1418 * guile/scm-lazy-string.c: New file.
1419 * guile/scm-math.c: New file.
1420 * guile/scm-objfile.c: New file.
1421 * guile/scm-ports.c: New file.
1422 * guile/scm-pretty-print.c: New file.
1423 * guile/scm-safe-call.c: New file.
1424 * guile/scm-string.c: New file.
1425 * guile/scm-symbol.c: New file.
1426 * guile/scm-symtab.c: New file.
1427 * guile/scm-type.c: New file.
1428 * guile/scm-utils.c: New file.
1429 * guile/scm-value.c: New file.
1430 * guile/lib/gdb.scm: New file.
1431 * guile/lib/gdb/boot.scm: New file.
1432 * guile/lib/gdb/experimental.scm: New file.
1433 * guile/lib/gdb/init.scm: New file.
1434 * guile/lib/gdb/iterator.scm: New file.
1435 * guile/lib/gdb/printing.scm: New file.
1436 * guile/lib/gdb/types.scm: New file.
1437 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1438 (VPATH): Add $(GUILE_SRCDIR).
1439 (GUILE_DIR): New variable.
1440 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1441 (all): Add stamp-guile dependency.
1442 (stamp-guile): New rule.
1443 (clean-guile, install-guile, uninstall-guile): New rules.
1444 (install-only): Add install-guile dependency.
1445 (uninstall): Add uninstall-guile dependency.
1446 (clean): Add clean-guile dependency.
1448 2014-02-09 Doug Evans <xdje42@gmail.com>
1450 Revert this patch (which I approved, mea culpa).
1452 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1454 * Makefile.in (all-lib): Remove.
1455 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1457 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1459 Fix Python stack corruption.
1460 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1463 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1465 * Makefile.in (all-lib): Remove.
1466 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1468 2014-02-07 Doug Evans <dje@google.com>
1470 * extension-priv.h (extension_language_script_ops): Add comment.
1471 (extension_language_ops): Add comment.
1472 (active_ext_lang_state): Fix typo in comment.
1474 2014-02-07 Pedro Alves <palves@redhat.com>
1476 * infrun.c (handle_signal_stop) <signal arrives while stepping
1477 over a breakpoint>: Switch back to the stepping thread.
1479 2014-02-07 Yao Qi <yao@codesourcery.com>
1481 * target.c (target_xfer_partial): Return zero if LEN is zero.
1483 2014-02-07 Yao Qi <yao@codesourcery.com>
1485 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1486 (ld_so_xfer_auxv): Likewise.
1487 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1488 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1489 * corelow.c (core_xfer_partial): Likewise.
1490 * ctf.c (ctf_xfer_partial): Likewise.
1491 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1492 (darwin_xfer_partial): Likewise.
1493 * exec.c (exec_xfer_partial): Likewise.
1494 * gnu-nat.c (gnu_xfer_partial): Likewise.
1495 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1496 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1497 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1498 * linux-nat.c (linux_xfer_siginfo): Likewise.
1499 (linux_proc_xfer_spu): Likewise.
1500 * procfs.c (procfs_xfer_partial): Likewise.
1501 * record-full.c (record_full_xfer_partial): Likewise.
1502 (record_full_core_xfer_partial): Likewise.
1503 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1504 * remote.c (remote_write_qxfer): Likewise.
1505 (remote_write_qxfer, remote_read_qxfer): Likewise.
1506 (remote_xfer_partial): Likewise.
1507 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1508 (rs6000_xfer_shared_libraries): Likewise.
1509 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1510 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1511 (spu_xfer_partial): Likewise.
1512 * target.c (memory_xfer_partial_1): Likewise.
1513 * tracepoint.c (tfile_xfer_partial): Likewise.
1514 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1515 (windows_xfer_partial): Likewise.
1517 2014-02-07 Yao Qi <yao@codesourcery.com>
1519 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1521 (core_xfer_shared_libraries_aix): Likewise.
1522 * gdbarch.c, gdbarch.h: Regenerated.
1523 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1524 ULONGEST. Change 'len_avail' type to ULONGEST.
1525 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1526 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1528 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1530 2014-02-07 Yao Qi <yao@codesourcery.com>
1532 * corefile.c (memory_error): Get 'exception' from ERR and pass
1533 'exception' to throw_error.
1535 2014-02-06 Doug Evans <xdje42@gmail.com>
1537 * configure.ac (libpython checking): Remove all but python.o from
1538 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1539 * configure: Regenerate.
1541 * Makefile.in (SFILES): Add extension.c.
1542 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1543 (COMMON_OBS): Add extension.o.
1544 * extension.h: New file.
1545 * extension-priv.h: New file.
1546 * extension.c: New file.
1548 * python/python-internal.h: #include "extension.h".
1549 (gdbpy_auto_load_enabled): Declare.
1550 (gdbpy_apply_val_pretty_printer): Declare.
1551 (gdbpy_apply_frame_filter): Declare.
1552 (gdbpy_preserve_values): Declare.
1553 (gdbpy_breakpoint_cond_says_stop): Declare.
1554 (gdbpy_breakpoint_has_cond): Declare.
1555 (void source_python_script_for_objfile): Delete.
1556 * python/python.c: #include "extension-priv.h".
1557 Delete inclusion of "observer.h".
1558 (extension_language_python): Moved here and renamed from
1559 script_language_python in py-auto-load.c.
1560 Redefined to be of type extension_language_defn.
1561 (python_extension_script_ops): New global.
1562 (python_extension_ops): New global.
1563 (struct python_env): New member previous_active.
1564 (restore_python_env): Call restore_active_ext_lang.
1565 (ensure_python_env): Call set_active_ext_lang.
1566 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1568 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1570 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1572 (gdbpy_eval_from_control_command): Renamed from
1573 eval_python_from_control_command, made static. New arg extlang.
1574 (gdbpy_source_script) Renamed from source_python_script, made static.
1576 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1577 result to int. New arg extlang.
1578 (gdbpy_source_objfile_script): Renamed from
1579 source_python_script_for_objfile, made static. New arg extlang.
1580 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1581 static. New args extlang, extlang_printers. Change result type to
1583 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1584 static. New arg extlang. Rename arg printers to extlang_printers
1585 and change type to ext_lang_type_printers *.
1586 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1587 static. Replace argument arg with extlang, extlang_printers.
1588 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1589 (!HAVE_PYTHON, source_python_script): Delete.
1590 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1591 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1592 (!HAVE_PYTHON, start_type_printers): Delete.
1593 (!HAVE_PYTHON, apply_type_printers): Delete.
1594 (!HAVE_PYTHON, free_type_printers): Delete.
1595 (_initialize_python): Delete call to observer_attach_before_prompt.
1596 (finalize_python): Set/restore active extension language.
1597 (gdbpy_finish_initialization) Renamed from
1598 finish_python_initialization, made static. New arg extlang.
1599 (gdbpy_initialized): New function.
1600 * python/python.h: #include "extension.h". Delete #include
1601 "value.h", "mi/mi-cmds.h".
1602 (extension_language_python): Declare.
1603 (GDBPY_AUTO_FILE_NAME): Delete.
1604 (enum py_bt_status): Moved to extension.h and renamed to
1606 (enum frame_filter_flags): Moved to extension.h.
1607 (enum py_frame_args): Moved to extension.h and renamed to
1608 ext_lang_frame_args.
1609 (finish_python_initialization): Delete.
1610 (eval_python_from_control_command): Delete.
1611 (source_python_script): Delete.
1612 (apply_val_pretty_printer): Delete.
1613 (apply_frame_filter): Delete.
1614 (preserve_python_values): Delete.
1615 (gdbpy_script_language_defn): Delete.
1616 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1617 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1619 * auto-load.c: #include "extension.h".
1620 (GDB_AUTO_FILE_NAME): Delete.
1621 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1622 (script_language_gdb): Delete, moved to extension.c and renamed to
1623 extension_language_gdb.
1624 (source_gdb_script_for_objfile): Delete.
1625 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1626 (loaded_script): Change type of language member to
1627 struct extension_language_defn *.
1628 (init_loaded_scripts_info): Initialize
1629 unsupported_script_warning_printed.
1630 (maybe_add_script): Make static. Change type of language arg to
1631 struct extension_language_defn *.
1632 (clear_section_scripts): Reset unsupported_script_warning_printed.
1633 (auto_load_objfile_script_1): Rewrite to use extension language API.
1634 (auto_load_objfile_script): Make public. Remove support-compiled-in
1635 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1636 (source_section_scripts): Rewrite to use extension language API.
1637 (load_auto_scripts_for_objfile): Rewrite to use
1638 auto_load_scripts_for_objfile.
1639 (collect_matching_scripts_data): Change type of language member to
1640 struct extension_language_defn *.
1641 (auto_load_info_scripts): Change type of language arg to
1642 struct extension_language_defn *.
1643 (unsupported_script_warning_print): New function.
1644 (script_not_found_warning_print): Make static.
1645 (_initialize_auto_load): Rewrite construction of scripts-directory
1647 * auto-load.h (struct objfile): Add forward decl.
1648 (struct script_language): Delete.
1649 (struct auto_load_pspace_info): Add forward decl.
1650 (struct extension_language_defn): Add forward decl.
1651 (maybe_add_script): Delete.
1652 (auto_load_objfile_script): Declare.
1653 (script_not_found_warning_print): Delete.
1654 (auto_load_info_scripts): Update prototype.
1655 (auto_load_gdb_scripts_enabled): Declare.
1656 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1657 auto_load_python_scripts_enabled and made public.
1658 (script_language_python): Delete, moved to python.c.
1659 (gdbpy_script_language_defn): Delete.
1660 (info_auto_load_python_scripts): Update to use
1661 extension_language_python.
1663 * breakpoint.c (condition_command): Replace call to
1664 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1665 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1666 with call to breakpoint_ext_lang_cond_says_stop.
1667 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1668 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1669 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1670 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1672 (local_setattro): Print name of extension language with existing
1675 * valprint.c (val_print, value_print): Update to call
1676 apply_ext_lang_val_pretty_printer.
1677 * cp-valprint.c (cp_print_value): Update call to
1678 apply_ext_lang_val_pretty_printer.
1679 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1680 (gdbpy_apply_val_pretty_printer): Renamed from
1681 apply_val_pretty_printer. New arg extlang.
1682 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1684 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1685 extension language API.
1686 * cli/cli-script.c (execute_control_command): Update to call
1687 eval_ext_lang_from_control_command.
1689 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1690 enum ext_lang_bt_status values. Update call to
1691 apply_ext_lang_frame_filter.
1692 (mi_cmd_stack_list_locals): Ditto.
1693 (mi_cmd_stack_list_args): Ditto.
1694 (mi_cmd_stack_list_variables): Ditto.
1695 * mi/mi-main.c: Delete #include "python/python-internal.h".
1696 Add #include "extension.h".
1697 (mi_cmd_list_features): Replace reference to python internal variable
1698 gdb_python_initialized with call to ext_lang_initialized_p.
1700 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1701 Update to use enum ext_lang_frame_args. Update to call
1702 apply_ext_lang_frame_filter.
1703 * python/py-framefilter.c (extract_sym): Update to use enum
1705 (extract_value, py_print_type, py_print_value): Ditto.
1706 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1707 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1708 (py_print_frame): Ditto.
1709 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1710 New arg extlang. Update to use enum ext_lang_bt_status.
1712 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1713 finish_python_initialization. Replace with call to
1714 finish_ext_lang_initialization.
1716 * typeprint.c (do_free_global_table): Update to call
1717 free_ext_lang_type_printers.
1718 (create_global_typedef_table): Update to call
1719 start_ext_lang_type_printers.
1720 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1721 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1722 (type_print_options): Change type of global_printers from "void *"
1723 to "struct ext_lang_type_printers *".
1725 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1726 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1727 (gdbpy_preserve_values): Renamed from preserve_python_values.
1729 (!HAVE_PYTHON, preserve_python_values): Delete.
1731 * utils.c (quit_flag): Delete, moved to extension.c.
1732 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1735 * eval.c: Delete #include "python/python.h".
1736 * main.c: Delete #include "python/python.h".
1738 * defs.h: Update comment.
1740 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1744 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1746 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1749 2014-02-05 Yao Qi <yao@codesourcery.com>
1751 * remote.c (remote_pass_signals): Remove local 'buf' and use
1753 (remote_program_signals): Likewise.
1755 2014-02-05 Yao Qi <yao@codesourcery.com>
1757 * ctf.c: Include "inferior.h" and "gdbthread.h".
1758 (CTF_PID): A new macro.
1759 (ctf_open): Call inferior_appeared and add_thread_silent.
1760 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1761 (ctf_thread_alive): New function.
1762 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1764 2014-02-05 Yao Qi <yao@codesourcery.com>
1768 2013-05-24 Yao Qi <yao@codesourcery.com>
1770 * tracepoint.c (TFILE_PID): Remove.
1771 (tfile_open): Don't add thread and inferior.
1772 (tfile_close): Don't set 'inferior_ptid'. Don't call
1773 exit_inferior_silent.
1774 (tfile_thread_alive): Remove.
1775 (init_tfile_ops): Don't set field 'to_thread_alive' of
1778 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1780 * remote.c (remote_start_remote): Call remote_check_symbols even
1781 if only symbol-file (not file) has been given.
1783 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1785 * gdbarch.sh (skip_entrypoint): New callback.
1786 * gdbarch.c, gdbarch.h: Regenerate.
1787 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1788 * infrun.c (fill_in_stop_func): Likewise.
1789 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1790 (ppc_elfv2_elf_make_msymbol_special): New function.
1791 (ppc_elfv2_skip_entrypoint): Likewise.
1792 (ppc_linux_init_abi): Install them for ELFv2.
1794 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1796 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1797 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1798 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1799 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1800 structures returned in GPRs.
1802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1804 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1805 offset to the stack parameter list for the ELFv2 ABI.
1807 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1809 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1810 set_gdbarch_convert_from_func_ptr_addr and
1811 set_gdbarch_elf_make_msymbol_special for ELFv1.
1812 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1813 function descriptors on ELFv1.
1814 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1815 set up r12 at function entry.
1817 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1819 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1820 (struct gdbarch_tdep): New member elf_abi.
1822 * rs6000-tdep.c: Include "elf/ppc64.h".
1823 (rs6000_gdbarch_init): Detect ELF ABI version.
1825 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1827 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1828 within a register pair holding a DFP 128-bit value on little-endian.
1829 (ppc64_sysv_abi_return_value_base): Likewise.
1830 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1831 (dfp_pseudo_register_write): Likewise.
1833 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1835 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1836 offset on little-endian when passing _Decimal32.
1837 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1839 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1841 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1842 of the overlapped FP register within the VSX register on little-
1844 (efpr_pseudo_register_write): Likewise.
1846 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1848 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1849 offset on little-endian when passing small structures.
1851 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1853 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1854 (struct ppc64_sysv_argpos): New data structure.
1855 (ppc64_sysv_abi_push_float): Remove.
1856 (ppc64_sysv_abi_push_val): New function.
1857 (ppc64_sysv_abi_push_integer): Likewise.
1858 (ppc64_sysv_abi_push_freg): Likewise.
1859 (ppc64_sysv_abi_push_vreg): Likewise.
1860 (ppc64_sysv_abi_push_param): Likewise.
1861 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1862 (ppc64_sysv_abi_return_value_base): New function.
1863 (ppc64_sysv_abi_return_value): Refactor to use it.
1865 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1867 * NEWS: Document new target powerpc64le-*-linux*.
1869 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1871 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1872 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1874 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1875 register set used in ELF core dumps. Add floating-point register set.
1877 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1879 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1880 dwarf2_to_gdb[] table using symbolic constants. Adjust
1881 penultimate entry from number representing the PC register
1882 to symbolic constant representing the MDR register. Add
1883 constant for the PC register to the end of the table.
1885 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1887 * bsd-kvm.c: Include <sys/param.h>
1889 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1891 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1893 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1895 * ada-lang.h (clear_ada_sym_cache): Delete.
1897 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1899 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1901 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1903 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1904 the sigreturn register save area only if the syscall is
1907 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1909 * valops.c (value_slice): Minor reformatting.
1911 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1913 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1915 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1917 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1919 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1920 (ada_ignore_descriptive_types_p): New static global.
1921 (find_parallel_type_by_descriptive_type): Return immediately
1922 if ada_ignore_descriptive_types_p is set.
1923 (_initialize_ada_language): Register new commands "maintenance
1924 set ada", "maintenance show ada", "maintenance set ada
1925 ignore-descriptive-types" and "maintenance show ada
1926 ignore-descriptive-types".
1927 * NEWS: Add entry for new "maint ada set/show
1928 ignore-descriptive-types" commands.
1930 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1932 * record-btrace.c (record_btrace_close): Call btrace_teardown
1935 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1937 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1940 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1942 * ada-typeprint (type_is_full_subrange_of_target_type):
1944 (print_range): Add parameter bounds_prefered_p. If not set,
1945 try printing range types using the name of their base type.
1946 (print_range_type): Add parameter bounds_prefered_p.
1947 Use it in call to print_range.
1948 (print_array_type, ada_print_type): Update calls to print_range
1949 and print_range_type.
1951 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1953 * ada-typeprint.c (print_array_type, print_choices, print_range)
1954 (print_range_bound, print_dynamic_range_bound, print_range_type):
1957 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1959 * ada-typeprint.c (print_range): Add missing empty line
1960 after local declaration.
1962 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1964 * ada-valprint.c (print_optional_low_bound): Get index_type's
1965 target type for as long as it is a TYPE_CODE_RANGE.
1967 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1969 * procfs.c (procfs_make_note_section): Remove assertion and
1972 2014-01-24 Yao Qi <yao@codesourcery.com>
1974 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1975 * corelow.c (get_core_siginfo): Likewise.
1977 2014-01-24 Yao Qi <yao@codesourcery.com>
1979 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1980 ULONGEST. Don't check 'len' is negative.
1981 (remote_write_bytes): Change type of 'len' to ULONGEST.
1983 2014-01-23 Tom Tromey <tromey@redhat.com>
1986 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1987 Handle exception from frame.block.
1988 (FrameVars.fetch_frame_locals): Likewise.
1990 2014-01-23 Tom Tromey <tromey@redhat.com>
1993 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1994 on a NULL pointer. Move "goto error" to correct place.
1996 2014-01-23 Tom Tromey <tromey@redhat.com>
1999 * python/py-framefilter.c (apply_frame_filter): Call
2000 ensure_python_env after computing gdbarch.
2002 2014-01-23 Yao Qi <yao@codesourcery.com>
2004 * target.c (raw_memory_xfer_partial): Change argument type
2005 from void * to gdb_byte *.
2006 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2008 2014-01-22 Doug Evans <dje@google.com>
2010 New gdbserver option --debug-format=timestamp.
2013 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2015 * syscalls/s390x-linux.xml: New file.
2016 * syscalls/s390-linux.xml: New file.
2017 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2018 (XML_SYSCALL_FILENAME_S390X): Likewise.
2019 (op_svc): New enum value for SVC opcode.
2020 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2021 (s390_linux_get_syscall_number): New function.
2022 (s390_gdbarch_init): Register '*get_syscall_number' and the
2023 syscall xml file name.
2024 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2025 "s390-linux.xml" and "s390x-linux.xml".
2026 * NEWS: Announce new feature.
2028 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2030 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2032 2014-01-22 Pedro Alves <palves@redhat.com>
2034 * xtensa-config.c: Include defs.h.
2036 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2038 * common/common-utils.h: Add "ARI:" comment beside __func__
2041 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2043 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2044 documentation a bit.
2046 2014-01-21 Roland McGrath <mcgrathr@google.com>
2048 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2049 * configure: Regenerate.
2050 * aclocal.m4: Regenerate.
2051 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2052 New substituted variables.
2053 (install-strip): New target.
2054 (INSTALL_SCRIPT): New substituted variable.
2055 (FLAGS_TO_PASS): Add it.
2056 (install-only): Use $(INSTALL_SCRIPT) rather than
2057 $(INSTALL_PROGRAM) for gcore.
2059 2014-01-20 Tom Tromey <tromey@redhat.com>
2061 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2064 2014-01-20 Tom Tromey <tromey@redhat.com>
2066 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2067 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2068 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2069 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2070 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2071 (struct cmd_list_element) <flags>: Remove.
2072 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2073 doc_allocated>: New fields.
2074 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2076 * maint.c (maintenance_do_deprecate): Update.
2077 * top.c (execute_command): Update.
2079 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2081 * xtensa-linux-nat.c: Include asm/ptrace.h.
2083 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2085 * Makefile.in (SFILES): Add d-support.c.
2086 (COMMON_OBS): Add d-support.o.
2087 * d-lang.h (d_parse_symbol): Add comment, now defined in
2089 * d-lang.c (parse_call_convention)
2090 (parse_attributes, parse_function_types)
2091 (parse_function_args, parse_type, parse_identifier)
2092 (call_convention_p, d_parse_symbol): Move functions to ...
2093 * d-support.c: ... New file.
2095 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2097 * d-lang.h (d_parse_symbol): Add declaration.
2098 * d-lang.c (extract_identifiers)
2099 (extract_type_info): Remove functions.
2100 (parse_call_convention, parse_attributes)
2101 (parse_function_types, parse_function_args)
2102 (parse_type, parse_identifier, call_convention_p)
2103 (d_parse_symbol): New functions.
2104 (d_demangle): Use d_parse_symbol to demangle D symbols.
2106 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2108 * d-lang.h (struct builtin_d_type): New data type.
2109 (builtin_d_type): Add declaration.
2110 * d-lang.c (d_language_arch_info, build_d_types)
2111 (builtin_d_type): New functions.
2112 (enum d_primitive_types): New data type.
2113 (d_language_defn): Change c_language_arch_info to
2114 d_language_arch_info.
2115 (d_type_data): New static variable.
2116 (_initialize_d_language): Initialize d_type_data.
2118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2120 * d-lang.h (d_main_name): Add declaration.
2121 * d-lang.c (d_main_name): New function.
2122 * symtab.c (find_main_name): Add call to d_main_name.
2124 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2126 * d-lang.c (d_language_defn): Change macro_expansion_c to
2129 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2131 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2133 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2135 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2136 gdb_exception" declaration.
2137 * remote.c (getpkt_or_notif_sane): Likewise.
2139 2014-01-17 Doug Evans <dje@google.com>
2141 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2142 function, contents of dirnames_to_char_ptr_vec_append moved here.
2143 (delim_string_to_char_ptr_vec): New function.
2144 (dirnames_to_char_ptr_vec_append): Rewrite.
2145 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2147 2014-01-17 Doug Evans <dje@google.com>
2149 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2151 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2152 #include "common-utils.h".
2153 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2154 * common/vec.h (VEC_ASSERT_PASS): Update.
2155 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2156 (MACH_CHECK_ERROR): Update.
2158 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2160 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2162 * gdbarch.h: Regenerate.
2164 2014-01-16 Tom Tromey <tromey@redhat.com>
2166 * value.c (struct value) <regnum>: Move earlier.
2168 2014-01-16 Tom Tromey <tromey@redhat.com>
2170 * remote.c (extended_remote_create_inferior): Rename from
2171 extended_remote_create_inferior_1. Add "ops" argument. Remove
2174 2014-01-16 Pedro Alves <palves@redhat.com>
2176 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2177 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2180 2014-01-16 Doug Evans <dje@google.com>
2182 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2184 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2186 * btrace.h (btrace_thread_flag): New.
2187 (struct btrace_thread_info) <flags>: New.
2188 * record-btrace.c (record_btrace_resume_thread)
2189 (record_btrace_find_thread_to_move, btrace_step_no_history)
2190 (btrace_step_stopped, record_btrace_start_replaying)
2191 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2192 (record_btrace_find_resume_thread): New.
2193 (record_btrace_resume, record_btrace_wait): Extend.
2194 (record_btrace_can_execute_reverse): New.
2195 (record_btrace_open): Fail in non-stop mode.
2196 (record_btrace_set_replay): Split into this, ...
2197 (record_btrace_stop_replaying): ... this, ...
2198 (record_btrace_clear_histories): ... and this.
2199 (init_record_btrace_ops): Init to_can_execute_reverse.
2200 * NEWS: Announce it.
2202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2204 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2205 (forward_target_decr_pc_after_break)
2206 (target_decr_pc_after_break): New.
2207 * target.c (forward_target_decr_pc_after_break)
2208 (target_decr_pc_after_break): New.
2209 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2210 instead of gdbarch_decr_pc_after_break.
2211 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2212 instead of gdbarch_decr_pc_after_break.
2213 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2214 instead of gdbarch_decr_pc_after_break.
2215 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2216 instead of gdbarch_decr_pc_after_break.
2217 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2218 instead of gdbarch_decr_pc_after_break.
2219 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2220 instead of gdbarch_decr_pc_after_break.
2222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2224 * btrace.c: Include regcache.h.
2225 (btrace_add_pc): New.
2226 (btrace_enable): Call btrace_add_pc.
2227 (btrace_is_empty): New.
2228 * btrace.h (btrace_is_empty): New.
2229 * record-btrace.c (require_btrace, record_btrace_info): Call
2232 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2234 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2235 Support delta reads.
2236 (linux_disable_btrace): Change return type.
2237 * common/linux-btrace.h (linux_read_btrace): Change parameters
2238 and return type to allow error reporting. Update users.
2239 (linux_disable_btrace): Change return type. Update users.
2240 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2242 (btrace_error): New.
2243 (btrace_block) <begin>: Comment on BEGIN == 0.
2244 * btrace.c (btrace_compute_ftrace): Start from the end of
2246 (btrace_stitch_trace, btrace_clear_history): New.
2247 (btrace_fetch): Read delta trace, return if replaying.
2248 (btrace_clear): Move clear history code to btrace_clear_history.
2249 (parse_xml_btrace): Throw an error if parsing failed.
2250 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2251 and return type to allow error reporting.
2252 (target_read_btrace): Change parameters and return type to allow
2254 * target.c (target_read_btrace): Update.
2255 * remote.c (remote_read_btrace): Support delta reads. Pass
2257 * NEWS: Announce it.
2259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2261 * record.h (record_btrace_frame_unwind)
2262 (record_btrace_tailcall_frame_unwind): New declarations.
2263 * dwarf2-frame: Include record.h
2264 (dwarf2_frame_cfa): Throw an error for btrace frames.
2265 * record-btrace.c: Include hashtab.h.
2266 (btrace_get_bfun_name): New.
2267 (btrace_call_history): Call btrace_get_bfun_name.
2268 (struct btrace_frame_cache): New.
2270 (bfcache_hash, bfcache_eq, bfcache_new): New.
2271 (btrace_get_frame_function): New.
2272 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2273 (record_btrace_frame_this_id): Compute own id.
2274 (record_btrace_frame_prev_register): Provide PC, throw_error
2275 for all other registers.
2276 (record_btrace_frame_sniffer): Detect btrace frames.
2277 (record_btrace_tailcall_frame_sniffer): New.
2278 (record_btrace_frame_dealloc_cache): New.
2279 (record_btrace_frame_unwind): Add new functions.
2280 (record_btrace_tailcall_frame_unwind): New.
2281 (_initialize_record_btrace): Allocate cache.
2282 * btrace.c (btrace_clear): Call reinit_frame_cache.
2283 * NEWS: Announce it.
2285 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2287 * record-btrace.c (record_btrace_set_replay)
2288 (record_btrace_goto_begin, record_btrace_goto_end)
2289 (record_btrace_goto): New.
2290 (init_record_btrace_ops): Initialize them.
2291 * NEWS: Announce it.
2293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2295 * record-btrace.c (record_btrace_find_new_threads)
2296 (record_btrace_thread_alive): New.
2297 (init_record_btrace_ops): Initialize to_find_new_threads and
2300 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2302 * record-btrace.c (record_btrace_resume): New.
2303 (record_btrace_wait): New.
2304 (init_record_btrace_ops): Initialize to_wait and to_resume.
2306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2308 * record-btrace.c (record_btrace_xfer_partial)
2309 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2310 (record_btrace_allow_memory_access): New.
2311 (init_record_btrace_ops): Initialize new methods.
2312 * target.c (raw_memory_xfer_partial): Bail out if target reports
2313 that this memory is not available.
2315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2317 * target.h (target_ops) <to_insert_breakpoint>
2318 <to_remove_breakpoint>: Add target_ops parameter.
2319 (forward_target_insert_breakpoint): New.
2320 (forward_target_remove_breakpoint): New.
2321 (memory_remove_breakpoint, memory_insert_breakpoint):
2322 Add target_ops parameter.
2323 * target.c (target_insert_breakpoint): Split into this and ...
2324 (forward_target_insert_breakpoint): ... this.
2325 (target_remove_breakpoint): Split into this and ...
2326 (forward_target_remove_breakpoint): ... this.
2327 (debug_to_insert_breakpoint): Add target_ops parameter.
2328 Call forward_target_insert_breakpoint.
2329 (debug_to_remove_breakpoint): Add target_ops parameter.
2330 Call forward_target_remove_breakpoint.
2331 (update_current_target): Do not inherit or default to_insert_breakpoint
2332 and to_remove_breakpoint.
2333 * corelow.c (ignore): Add target_ops parameter.
2334 * exec.c (ignore): Add target_ops parameter.
2335 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2336 Add target_ops parameter.
2337 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2338 Add target_ops parameter.
2339 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2340 Add target_ops parameter.
2341 * record-full.c (record_full_beneath_to_insert_breakpoint)
2342 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2343 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2344 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2345 (record_full_core_remove_breakpoint): Add target_ops parameter.
2347 (record_full_beneath_to_insert_breakpoint_ops)
2348 (record_full_beneath_to_remove_breakpoint_ops)
2349 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2350 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2351 tmp_to_remove_breakpoint_ops,
2352 record_full_beneath_to_insert_breakpoint_ops, and
2353 record_full_beneath_to_remove_breakpoint_ops.
2354 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2355 (m32r_remove_breakpoint): Add target_ops parameter.
2356 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2357 Add target_ops parameter.
2358 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2359 Add target_ops parameter.
2361 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Markus Metzger <markus.t.metzger@intel.com>
2364 * record-btrace.c: Include frame-unwind.h.
2365 (record_btrace_frame_unwind_stop_reason)
2366 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2367 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2369 (init_record_btrace_ops): Install it.
2371 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2376 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2378 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2381 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 * frame-unwind.c: Include target.h.
2384 (frame_unwind_try_unwinder): New function with code from ...
2385 (frame_unwind_find_by_frame): ... here. New variable
2386 unwinder_from_target, call also target_get_unwinder)
2387 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2388 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2389 * target.h (struct target_ops): New fields to_get_unwinder and
2390 to_get_tailcall_unwinder.
2391 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2395 * record-btrace.c (record_btrace_fetch_registers)
2396 (record_btrace_store_registers)
2397 (record_btrace_to_prepare_to_store): New.
2398 (init_record_btrace_ops): Add the above.
2400 2014-01-16 Tom Tromey <tromey@redhat.com>
2402 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2403 * target.h (struct target_ops) <to_prepare_to_store>: Add
2405 (target_prepare_to_store): Add argument.
2406 * target.c (debug_to_prepare_to_store): Add argument.
2407 (update_current_target): Update.
2408 * remote.c (remote_prepare_to_store): Add 'self' argument.
2409 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2410 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2411 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2412 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2414 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2415 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2416 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2417 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2418 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2422 * btrace.h (replay) <replay>: New.
2423 (btrace_is_replaying): New.
2424 * btrace.c (btrace_clear): Free replay iterator.
2425 (btrace_is_replaying): New.
2426 * record-btrace.c (record_btrace_is_replaying): New.
2427 (record_btrace_info): Print insn number if replaying.
2428 (record_btrace_insn_history): Start at replay position.
2429 (record_btrace_call_history): Start at replay position.
2430 (init_record_btrace_ops): Init to_record_is_replaying.
2432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2434 * record-btrace.c (record_btrace_insn_history_range): Include
2436 (record_btrace_insn_history_from): Adjust range.
2437 (record_btrace_call_history_range): Include
2439 (record_btrace_call_history_from): Adjust range.
2440 * NEWS: Announce changes.
2442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2444 * record.h (enum record_print_flag)
2445 <record_print_indent_calls>: New.
2446 * record.c (get_call_history_modifiers): Recognize /c modifier.
2447 (_initialize_record): Document /c modifier.
2448 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2449 Reorder fields. Optionally indent the function name. Update
2451 * NEWS: Announce changes.
2453 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2455 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2459 * btrace.c (ftrace_new_function): Start counting at one.
2460 * record-btrace.c (record_btrace_info): Adjust number of calls
2462 * NEWS: Announce it.
2464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2466 * record-btrace.c (btrace_call_history_insn_range): Print
2467 insn range as [begin, end].
2469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2471 * btrace.h (struct btrace_func_link): New.
2472 (enum btrace_function_flag): New.
2473 (struct btrace_inst): Rename to ...
2474 (struct btrace_insn): ...this. Update all users.
2475 (struct btrace_func) <ibegin, iend>: Remove.
2476 (struct btrace_func_link): New.
2477 (struct btrace_func): Rename to ...
2478 (struct btrace_function): ...this. Update all users.
2479 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2480 (number, level, flags>: New.
2481 (struct btrace_insn_iterator): Rename to ...
2482 (struct btrace_insn_history): ...this.
2484 (struct btrace_insn_iterator, btrace_call_iterator): New.
2485 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2486 (struct btrace_target_info) <begin, end, level>
2487 <insn_history, call_history>: New.
2488 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2489 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2490 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2491 (btrace_call_number, btrace_call_begin, btrace_call_end)
2492 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2493 (btrace_find_function_by_number, btrace_set_insn_history)
2494 (btrace_set_call_history): New.
2495 * btrace.c (btrace_init_insn_iterator)
2496 (btrace_init_func_iterator, compute_itrace): Remove.
2497 (ftrace_print_function_name, ftrace_print_filename)
2498 (ftrace_skip_file): Change
2500 (ftrace_init_func): Remove.
2501 (ftrace_debug): Use new btrace_function fields.
2502 (ftrace_function_switched): Also consider gaining and
2503 losing symbol information).
2504 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2505 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2506 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2508 (ftrace_new_function): Move. Remove debug print.
2509 (ftrace_update_lines, ftrace_update_insns): New.
2510 (ftrace_update_function): Check for call, ret, and jump.
2511 (compute_ftrace): Renamed to ...
2512 (btrace_compute_ftrace): ...this. Rewritten to compute call
2514 (btrace_fetch, btrace_clear): Updated.
2515 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2516 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2517 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2518 (btrace_call_number, btrace_call_begin, btrace_call_end)
2519 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2520 (btrace_find_function_by_number, btrace_set_insn_history)
2521 (btrace_set_call_history): New.
2522 * record-btrace.c (require_btrace): Use new btrace thread
2524 (record_btrace_info, btrace_insn_history)
2525 (record_btrace_insn_history, record_btrace_insn_history_range):
2526 Use new btrace thread info fields and new iterator.
2527 (btrace_func_history_src_line): Rename to ...
2528 (btrace_call_history_src_line): ...this. Use new btrace
2530 (btrace_func_history): Rename to ...
2531 (btrace_call_history): ...this. Use new btrace thread info
2532 fields and new iterator.
2533 (record_btrace_call_history, record_btrace_call_history_range):
2534 Use new btrace thread info fields and new iterator.
2536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2538 * frame.h (frame_id_build_unavailable_stack_special): New.
2539 * frame.c (frame_id_build_unavailable_stack_special): New.
2541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2543 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2544 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2545 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2547 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2548 (i386_insn_is_jump, i386_jmp_p): New.
2549 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2550 insn_is_jump to gdbarch.
2551 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2552 * gdbarch.h: Regenerated.
2553 * gdbarch.c: Regenerated.
2554 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2555 (default_insn_is_jump): New.
2556 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2557 (default_insn_is_jump): New.
2559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2561 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2563 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2564 (btrace_read_type) <btrace_read_new>: Change to ...
2565 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2569 * common/linux-btrace.c (linux_read_btrace): Free trace from
2572 2014-01-15 Doug Evans <dje@google.com>
2574 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2577 2014-01-15 Tom Tromey <tromey@redhat.com>
2579 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2580 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2581 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2582 (set_objfile_main_name): New function.
2583 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2584 language_of_main>: New fields.
2585 (set_objfile_main_name): Declare.
2586 * symtab.c (find_main_name): Loop over objfiles to find the main
2588 (set_main_name): Now static.
2589 (get_main_info): Add comment.
2590 * symtab.h (set_main_name): Don't declare.
2592 2014-01-15 Tom Tromey <tromey@redhat.com>
2594 * symtab.c (main_progspace_key): New global.
2595 (struct main_info): New.
2596 (name_of_main, language_of_main): Remove.
2597 (get_main_info, main_info_cleanup): New function.
2598 (set_main_name, main_name, main_language): Use get_main_info.
2599 (_initialize_symtab): Initialize main_progspace_key.
2601 2014-01-15 Tom Tromey <tromey@redhat.com>
2603 * dbxread.c (process_one_symbol): Update.
2604 * dwarf2read.c (read_partial_die): Update.
2605 * symfile.c (set_initial_language): Call main_language.
2606 * symtab.c (language_of_main): Now static.
2607 (set_main_name): Add 'lang' parameter.
2608 (find_main_name): Update.
2609 (main_language): New function.
2610 (symtab_observer_executable_changed): Update.
2611 * symtab.h (set_main_name): Update.
2612 (language_of_main): Remove.
2613 (main_language): Declare.
2615 2014-01-15 Tom Tromey <tromey@redhat.com>
2617 * symfile.c (init_entry_point_info): Use new "initialized" field.
2619 * objfiles.h (struct entry_point) <initialized>: New field.
2620 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2621 (struct objfile) <ei>: ...here. Remove.
2622 * objfiles.c (entry_point_address_query): Update.
2624 2014-01-15 Tom Tromey <tromey@redhat.com>
2626 * objfiles.c (entry_point_address_query): Relocate entry point
2628 (objfile_relocate1): Do not relocate entry point address.
2629 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2630 <the_bfd_section_index>: New field.
2631 * symfile.c (init_entry_point_info): Find the entry point's
2634 2014-01-15 Tom Tromey <tromey@redhat.com>
2636 * solib-frv.c (enable_break): Use entry_point_address_query.
2638 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2640 * NEWS: Add note on improved process record-replay on
2641 arm*-linux* targets.
2643 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2645 * arm-tdep.c (enum arm_record_result): New enum.
2646 (arm_record_unsupported_insn): New function.
2647 (arm_record_coproc_data_proc): Removed.
2648 (thumb2_record_ld_st_multiple): New function.
2649 (thumb2_record_ld_st_dual_ex_tbb): New function.
2650 (thumb2_record_data_proc_sreg_mimm): New function.
2651 (thumb2_record_ps_dest_generic): New function.
2652 (thumb2_record_branch_misc_cntrl): New function.
2653 (thumb2_record_str_single_data): New function.
2654 (thumb2_record_ld_mem_hints): New function.
2655 (thumb2_record_ld_word): New function.
2656 (thumb2_record_lmul_lmla_div): New function.
2657 (thumb2_record_decode_insn_handler): New function.
2658 (decode_insn): Add thumb32 instruction handlers.
2660 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2662 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2663 (struct arm_linux_record_tdep): Declare.
2664 (arm_canonicalize_syscall): New function.
2665 (arm_all_but_pc_registers_record): New function.
2666 (arm_linux_syscall_record): New function.
2667 (arm_linux_init_abi): Add syscall recording constructs.
2668 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2669 decoding. (arm_record_coproc_data_proc): Update arm syscall
2671 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2672 <arm_syscall_record>: New field.
2673 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2676 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2678 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2679 register for push instruction recording.
2681 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2683 * arm-tdep.c (thumb_record_misc): Update to correct logical
2684 error while recording ldm, ldmia and pop instructions.
2686 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2688 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2690 2014-01-15 Pedro Alves <palves@redhat.com>
2692 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2693 (go32_resume, go32_fetch_registers, store_register)
2694 (go32_store_registers, go32_prepare_to_store)
2695 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2696 (go32_create_inferior, go32_can_run, go32_terminal_init)
2697 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2700 2014-01-15 Tom Tromey <tromey@redhat.com>
2702 * target.h (async_callback_ftype): New typedef.
2703 (struct target_ops) <to_async>: Use it.
2705 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2707 * python/py-value.c (get_field_type): Remove unnecessary curly
2708 braces for single-statement if block.
2710 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2712 * python/py-type.c (convert_field): Add missing empty line
2715 2014-01-14 Doug Evans <dje@google.com>
2717 * symfile.h (expand_symtabs_matching): Renamed from
2718 expand_partial_symbol_names. Update prototype.
2719 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2720 * symfile.c (expand_symtabs_matching): Renamed from
2721 expand_partial_symbol_names. New args file_matcher, kind.
2722 Rename arg fun to symbol_matcher.
2723 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2724 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2725 ada_expand_partial_symbol_name.
2726 (ada_make_symbol_completion_list): Update to call
2727 expand_symtabs_matching.
2728 (ada_add_global_exceptions): Call expand_symtabs_matching.
2729 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2730 call map_symbol_filenames.
2731 * symtab.c (sources_info): Update to call map_symbol_filenames.
2732 (search_symbols): Call expand_symtabs_matching.
2733 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2734 (default_make_symbol_completion_list_break_on): Update to call
2735 expand_symtabs_matching.
2736 (make_source_files_completion_list): Update to call
2737 map_symbol_filenames.
2739 2014-01-14 Doug Evans <dje@google.com>
2741 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2742 (expand_symtabs_symbol_matcher_ftype): New typedef.
2743 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2744 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2745 * symfile.c (expand_partial_symbol_names): Update to use
2746 expand_symtabs_symbol_matcher_ftype.
2747 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2748 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2749 Arg name_matcher renamed to symbol_matcher.
2750 * psymtab.c (recursively_search_psymtabs): Update to use
2751 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2753 (expand_symtabs_matching_via_partial): Update to use
2754 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2755 Arg name_matcher renamed to symbol_matcher.
2757 2014-01-14 Doug Evans <dje@google.com>
2759 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2760 (map_partial_symbol_filenames): Ditto.
2761 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2762 (map_partial_symbol_filenames): Ditto.
2763 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2764 (map_partial_symbol_filenames): Ditto.
2765 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2766 (map_partial_symbol_filenames): Ditto.
2767 * symtab.c: Delete #include "psymtab.h".
2769 2014-01-14 Pedro Alves <palves@redhat.com>
2770 Tom Tromey <tromey@redhat.com>
2772 * infrun.c (use_displaced_stepping): Use find_record_target
2773 instead of RECORD_IS_USED.
2774 (adjust_pc_after_break): Use record_full_is_used instead of
2776 * record-btrace.c (record_btrace_open): Call record_preopen
2777 instead of checking RECORD_IS_USED.
2778 * record-full.c (record_full_shortname)
2779 (record_full_core_shortname): New globals.
2780 (record_full_is_used): New function.
2781 (find_full_open): Call record_preopen instead of checking
2783 (init_record_full_ops): Set the target's shortname to
2784 record_full_shortname.
2785 (init_record_full_core_ops): Set the target's shortname to
2786 record_full_core_shortname.
2787 * record-full.h (record_full_is_used): Declare.
2788 * record.c (find_record_target): Make extern.
2789 (record_preopen): New function.
2790 * record.h (RECORD_IS_USED): Delete macro.
2791 (find_record_target, record_preopen): Declare functions.
2793 2014-01-14 Yao Qi <yao@codesourcery.com>
2795 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2796 'len''s type to ULONGEST.
2797 (core_xfer_shared_libraries_aix): Likewise.
2798 * gdbarch.c, gdbarch.h: Regenerated.
2799 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2800 Change type of 'len' to ULONGEST.
2801 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2802 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2804 2014-01-14 Yao Qi <yao@codesourcery.com>
2806 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2807 type of 'len' to ULONGEST.
2808 (linux_xfer_osdata_processgroups): Likewise.
2809 (linux_xfer_osdata_threads): Likewise.
2810 (linux_xfer_osdata_fds): Likewise.
2811 (linux_xfer_osdata_isockets): Likewise.
2812 (linux_xfer_osdata_shm): Likewise.
2813 (linux_xfer_osdata_sem): Likewise.
2814 (linux_xfer_osdata_msg): Likewise.
2815 (linux_common_xfer_osdata): Likewise.
2816 (struct osdata_type) <getter>: Likewise.
2817 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2820 2014-01-14 Yao Qi <yao@codesourcery.com>
2822 * target.h (target_xfer_partial_ftype): Update.
2823 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2825 * aix-thread.c (aix_thread_xfer_partial): Change type of
2826 argument 'len' to ULONGEST.
2827 * auxv.c (procfs_xfer_auxv): Likewise.
2828 (ld_so_xfer_auxv): Likewise.
2829 (memory_xfer_auxv): Likewise.
2830 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2831 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2832 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2833 * corelow.c (core_xfer_partial): Likewise.
2834 * ctf.c (ctf_xfer_partial): Likewise.
2835 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2837 (darwin_read_dyld_info): Likewise.
2838 (darwin_xfer_partial): Likewise.
2839 * exec.c (section_table_xfer_memory_partial): Likewise.
2840 (exec_xfer_partial): Likewise.
2841 * exec.h (section_table_xfer_memory_partial): Update
2843 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2844 instead of plongest.
2845 (gnu_xfer_partial): Likewise.
2846 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2847 (ia64_hpux_xfer_solib_got): Likewise.
2848 (ia64_hpux_xfer_partial): Likewise.
2849 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2850 * inf-ptrace.c (inf_ptrace_xfer_partial):
2851 * inf-ttrace.c (inf_ttrace_xfer_partial):
2852 * linux-nat.c (linux_xfer_siginfo): Likewise.
2853 (linux_nat_xfer_partial): Likewise.
2854 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2855 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2856 * monitor.c (monitor_xfer_memory): Likewise.
2857 (monitor_xfer_partial): Likewise.
2858 * procfs.c (procfs_xfer_partial): Likewise.
2859 * record-full.c (record_full_xfer_partial): Likewise.
2860 (record_full_core_xfer_partial): Likewise.
2861 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2862 instead of plongest.
2863 (gdbsim_xfer_partial): Likewise.
2864 * remote.c (remote_xfer_partial): Likewise.
2865 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2866 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2868 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2869 (rs6000_xfer_shared_libraries): Likewise.
2870 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2871 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2872 (sparc_xfer_partial): Likewise.
2873 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2874 (spu_xfer_partial): Likewise.
2875 * spu-multiarch.c (spu_xfer_partial): Likewise.
2876 * target.c (target_read_live_memory): Likewise.
2877 (memory_xfer_live_readonly_partial): Likewise.
2878 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2879 (target_xfer_partial, default_xfer_partial): Likewise.
2880 (current_xfer_partial): Likewise.
2881 * tracepoint.c (tfile_xfer_partial): Likewise.
2882 * windows-nat.c (windows_xfer_memory): Likewise. Call
2883 pulongest instead of plongest.
2884 (windows_xfer_partial): Likewise.
2885 (windows_xfer_shared_libraries): Likewise.
2887 2014-01-14 Yao Qi <yao@codesourcery.com>
2889 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2890 target_xfer_partial_ftype.
2892 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2896 * valops.c (value_struct_elt_bitpos): New function
2897 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2898 object to 'None' if the field name is an empty string ("").
2899 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2900 attribute to look for a field when 'name' is 'None'.
2901 (get_field_type): New function
2903 2014-01-13 Doug Evans <dje@google.com>
2906 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2907 (try_open_dwop_file): Ditto.
2908 * gdb_bfd.c: #include "vec.h".
2909 (bfdp): New typedef.
2910 (struct gdb_bfd_data): New member included_bfds.
2911 (gdb_bfd_unref): Unref all included bfds.
2912 (gdb_bfd_record_inclusion): New function.
2913 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2915 2014-01-13 Tom Tromey <tromey@redhat.com>
2917 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2919 2014-01-13 Tom Tromey <tromey@redhat.com>
2921 * defs.h (use_windows): Remove.
2922 * gdb.c (main): Update.
2923 * main.c (captured_main, gdb_main): Update.
2924 * main.h (struct captured_main_args) <use_windows>: Remove.
2925 * top.c (use_windows): Remove.
2927 2014-01-13 Tom Tromey <tromey@redhat.com>
2929 * defs.h (deprecated_flush_hook): Remove.
2931 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2934 * linux-thread-db.c (try_thread_db_load): Add parameter
2935 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2936 (try_thread_db_load_from_pdir_1): Move it there from here.
2937 (try_thread_db_load_from_sdir): Update caller.
2938 (try_thread_db_load_from_dir): Move it there from here.
2940 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2942 * regformats/regdat.sh: Always rewrite the register file.
2944 2014-01-13 Pedro Alves <palves@redhat.com>
2946 * Makefile.in (CHECK_HEADERS): New variable.
2947 (check-headers:): New rule.
2949 2014-01-13 Tom Tromey <tromey@redhat.com>
2951 * cli/cli-setshow.c (do_set_command): Update.
2952 * defs.h (deprecated_set_hook): Remove.
2953 * top.c (deprecated_set_hook): Remove.
2955 2014-01-13 Pedro Alves <palves@redhat.com>
2957 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2958 the tracepoint if the PC is a pseudo-register.
2960 2014-01-13 Tom Tromey <tromey@redhat.com>
2962 * defs.h (XCALLOC): Remove.
2963 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2964 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2965 * dwarf2loc.c (allocate_piece_closure): Likewise.
2966 * elfread.c (elf_symfile_segments): Likewise.
2967 (elf_symfile_segments): Likewise.
2968 * gdbtypes.c (copy_type_recursive): Likewise.
2969 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2970 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2971 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2973 * mt-tdep.c (mt_gdbarch_init): Likewise.
2974 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2976 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2977 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2978 * registry.c (registry_alloc_data): Likewise.
2979 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2980 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2981 * serial.c (serial_fdopen_ops): Likewise.
2982 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2984 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2985 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2988 2014-01-13 Tom Tromey <tromey@redhat.com>
2990 * defs.h (XMALLOC): Remove.
2991 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2992 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2993 * cli-out.c (struct ui_out *): Likewise.
2994 * cli/cli-dump.c (add_dump_command): Likewise.
2995 (add_dump_command): Likewise.
2996 * complaints.c (get_complaints): Likewise.
2997 (find_complaint): Likewise.
2998 * dwarf2-frame.c (execute_cfa_program): Likewise.
2999 * dwarf2read.c (abbrev_table_read_table): Likewise.
3000 * gdbarch.sh: Likewise.
3001 * gdbarch.c: Rebuild.
3002 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3003 * interps.c (interp_new): Likewise.
3004 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3005 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3006 * mi/mi-console.c (mi_console_file_new): Likewise.
3007 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3008 * mi/mi-out.c (mi_out_new): Likewise.
3009 * mi/mi-parse.c (mi_parse): Likewise.
3010 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3011 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3012 * observer.c (xalloc_observer_list_node): Likewise.
3013 * regcache.c (regcache_xmalloc_1): Likewise.
3014 * reggroups.c (reggroup_new): Likewise.
3015 (_initialize_reggroup): Likewise.
3016 * registry.c (register_data_with_cleanup): Likewise.
3017 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3018 * ser-base.c (serial_ttystate): Likewise.
3019 * ser-mingw.c (make_pipe_state): Likewise.
3020 * ser-pipe.c (pipe_open): Likewise.
3021 * serial.c (serial_open): Likewise.
3022 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3023 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3024 (tui_alloc_win_info): Likewise.
3025 (tui_add_content_elements): Likewise.
3026 * tui/tui-file.c (tui_file_new): Likewise.
3027 * tui/tui-out.c (tui_out_new): Likewise.
3028 * ui-file.c (mem_file_new): Likewise.
3029 * ui-out.c (push_level): Likewise.
3030 (make_cleanup_ui_out_end): Likewise.
3031 (append_header_to_list): Likewise.
3032 (ui_out_new): Likewise.
3033 * user-regs.c (user_reg_add_builtin): Likewise.
3035 2014-01-13 Tom Tromey <tromey@redhat.com>
3037 * defs.h (XZALLOC): Remove.
3038 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3039 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3040 (get_ada_tasks_inferior_data): Likewise.
3041 * auto-load.c (get_auto_load_pspace_data): Likewise.
3042 * auxv.c (get_auxv_inferior_data): Likewise.
3043 * bfd-target.c (target_bfd_reopen): Likewise.
3044 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3045 (deprecated_insert_raw_breakpoint): Likewise.
3046 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3047 * corelow.c (core_open): Likewise.
3048 * darwin-nat.c (darwin_check_new_threads): Likewise.
3049 (darwin_attach_pid): Likewise.
3050 * dummy-frame.c (dummy_frame_push): Likewise.
3051 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3052 * dwarf2loc.c (allocate_piece_closure): Likewise.
3053 * elfread.c (elf_symfile_segments): Likewise.
3054 * eval.c (ptrmath_type_p): Likewise.
3055 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3056 * gdbtypes.c (alloc_type_arch): Likewise.
3057 (alloc_type_instance): Likewise.
3058 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3059 * inf-child.c (inf_child_can_use_agent): Likewise.
3060 * inflow.c (get_inflow_inferior_data): Likewise.
3061 * infrun.c (save_infcall_suspend_state): Likewise.
3062 * jit.c (jit_reader_load): Likewise.
3063 (get_jit_objfile_data): Likewise.
3064 (get_jit_program_space_data): Likewise.
3065 (jit_object_open_impl): Likewise.
3066 (jit_symtab_open_impl): Likewise.
3067 (jit_block_open_impl): Likewise.
3068 (jit_frame_sniffer): Likewise.
3069 * linux-fork.c (add_fork): Likewise.
3070 * maint.c (make_command_stats_cleanup): Likewise.
3071 * objfiles.c (get_objfile_pspace_data): Likewise.
3072 * opencl-lang.c (struct lval_closure): Likewise.
3073 * osdata.c (osdata_start_osdata): Likewise.
3074 * progspace.c (new_address_space): Likewise.
3075 (add_program_space): Likewise.
3076 * remote-sim.c (get_sim_inferior_data): Likewise.
3077 * sh-tdep.c (sh_gdbarch_init): Likewise.
3078 * skip.c (Ignore): Likewise.
3079 (skip_delete_command): Likewise.
3080 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3081 (library_list_start_library): Likewise.
3082 (solib_aix_current_sos): Likewise.
3083 * solib-darwin.c (get_darwin_info): Likewise.
3084 (darwin_current_sos): Likewise.
3085 * solib-dsbt.c (get_dsbt_info): Likewise.
3086 * solib-ia64-hpux.c (new_so_list): Likewise.
3087 (ia64_hpux_get_solib_linkage_addr): Likewise.
3088 * solib-spu.c (append_ocl_sos): Likewise.
3089 (spu_current_sos): Likewise.
3090 * solib-svr4.c (get_svr4_info): Likewise.
3091 (svr4_keep_data_in_core): Likewise.
3092 (library_list_start_library): Likewise.
3093 (svr4_default_sos): Likewise.
3094 (svr4_read_so_list): Likewise.
3095 * solib-target.c (library_list_start_library): Likewise.
3096 (solib_target_current_sos): Likewise.
3097 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3098 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3099 * symfile.c (default_symfile_segments): Likewise.
3100 * target-descriptions.c (tdesc_data_init): Likewise.
3101 (tdesc_create_reg): Likewise.
3102 (struct tdesc_type *): Likewise.
3103 (tdesc_create_vector): Likewise.
3104 (tdesc_set_struct_size): Likewise.
3105 (struct tdesc_type *): Likewise.
3106 (tdesc_free_feature): Likewise.
3107 (tdesc_create_feature): Likewise.
3108 * windows-nat.c (windows_add_thread): Likewise.
3109 (windows_make_so): Likewise.
3110 * xml-support.c (gdb_xml_body_text): Likewise.
3111 (gdb_xml_create_parser_and_cleanup): Likewise.
3112 (xml_process_xincludes): Likewise.
3113 * xml-syscall.c (allocate_syscalls_info): Likewise.
3114 (syscall_create_syscall_desc): Likewise.
3116 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3118 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3119 function, with code from i386_stap_parse_special_token.
3120 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3121 (i386_stap_parse_special_token): Move code to the two functions
3124 2014-01-09 Pedro Alves <palves@redhat.com>
3125 Hui Zhu <hui@codesourcery.com>
3128 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3129 bp_err_string. Don't mark the location shlib_disabled if the
3130 error thrown wasn't a generic or memory error. Catch errors
3131 thrown while inserting breakpoints in overlayed code. Output
3132 error message of software breakpoints.
3133 * remote.c (remote_insert_breakpoint): If this breakpoint has
3134 target-side commands but this stub doesn't support Z0 packets,
3135 throw NOT_SUPPORTED_ERROR error.
3136 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3137 * target.h (target_insert_breakpoint): Extend comment.
3138 (target_insert_hw_breakpoint): Add comment.
3140 2014-01-08 Pedro Alves <palves@redhat.com>
3142 * remote.c (remote_add_thread): Add threads silently if starting
3144 (remote_notice_new_inferior): If in all-stop, and starting up,
3145 don't call notice_new_inferior.
3146 (get_current_thread): New function, factored out from ...
3147 (add_current_inferior_and_thread): ... this. Adjust.
3148 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3149 found any thread, then select the remote's current thread as GDB's
3152 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3154 * NEWS: Create a new section for the next release branch.
3155 Rename the section of the current branch, now that it has
3158 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3160 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3161 * version.in: Bump version to 7.7.50.DATE-cvs.
3163 2014-01-08 Yao Qi <yao@codesourcery.com>
3165 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3166 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3167 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3169 2014-01-08 Yao Qi <yao@codesourcery.com>
3171 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3172 return value of bfd_get_filename to symbol_file_add_from_bfd.
3174 2014-01-08 Pierre Muller <muller@sourceware.org>
3177 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3178 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3179 to prim_record_mininal_symbol_and_info.
3180 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3181 in call to prim_record_minimal_symbol_and_info.
3182 (read_pe_exported_syms): Set index field of section_data.
3184 2014-01-07 Andrew Pinski <apinski@cavium.com>
3186 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3187 * features/aarch64.c: Regenerate.
3189 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3191 * target.c (return_null): Define.
3192 (update_current_target): Use it instead of return_zero for
3193 functions that return a pointer.
3195 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3197 * source.c (add_path): Fix check for duplicated paths in the previously
3200 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3202 * ada-lang.c: Remove duplicated include statements.
3203 * alphabsd-nat.c: Ditto.
3204 * amd64-darwin-tdep.c: Ditto.
3205 * amd64fbsd-nat.c: Ditto.
3206 * auto-load.c: Ditto.
3208 * breakpoint.c: Ditto.
3210 * fork-child.c: Ditto.
3211 * gdb_usleep.c: Ditto.
3212 * i386-darwin-tdep.c: Ditto.
3213 * i386fbsd-nat.c: Ditto.
3215 * inferior.c: Ditto.
3217 * linux-nat.c: Ditto.
3218 * linux-tdep.c: Ditto.
3219 * m68kbsd-nat.c: Ditto.
3220 * m68klinux-nat.c: Ditto.
3221 * microblaze-tdep.c: Ditto.
3222 * mips-linux-tdep.c: Ditto.
3223 * mn10300-tdep.c: Ditto.
3224 * nto-tdep.c: Ditto.
3225 * opencl-lang.c: Ditto.
3227 * printcmd.c: Ditto.
3228 * regcache.c: Ditto.
3229 * remote-m32r-sdi.c: Ditto.
3233 * tilegx-linux-nat.c: Ditto.
3234 * tilegx-tdep.c: Ditto.
3235 * tracepoint.c: Ditto.
3237 * vaxbsd-nat.c: Ditto.
3238 * windows-nat.c: Ditto.
3239 * xtensa-tdep.c: Ditto.
3241 2014-01-07 Yao Qi <yao@codesourcery.com>
3243 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3245 2014-01-07 Yao Qi <yao@codesourcery.com>
3246 Joel Brobecker <brobecker@adacore.com>
3248 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3249 (pdc_write_regs): Likewise.
3250 (fetch_regs_kernel_thread): Likewise.
3251 (store_regs_kernel_thread): Likewise.
3253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3255 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3256 tagged type objects to their actual type.
3258 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3260 * ada-valprint.c (print_field_values): Add "language" parameter.
3261 Update calls to print_field_values and print_variant_part.
3262 Pass new parameter "language" in call to val_print instead
3263 of "current_language". Replace call to ada_val_print by call
3265 (print_variant_part): Add "language" parameter.
3266 (ada_val_print_struct_union): Update call to print_field_values.
3268 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3270 * ada-valprint.c (ui_memcpy): Delete.
3271 (ada_print_floating): Update documentation. Add empty line
3272 between between function documentation and implementation.
3273 Delete variable "buffer". Use ui_file_xstrdup in place of
3274 ui_file_put. Minor adjustments following this change.
3276 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3278 * ada-valprint.c (ada_val_print_string): New function,
3279 extracted from ada_val_print_array.
3280 (ada_val_print_array): Replace extracted code by call
3281 to ada_val_print_string followed by a return. Move
3282 "else" branch to the function's top block.
3284 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3286 * ada-valprint.c (ada_val_print_array): Move implementation
3287 down. Rename parameter "offset" and "val" into "offset_aligned"
3288 and "original_value" respectively. Add parameter "offset".
3290 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3292 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3293 re-organizing the code. Change the "???" message printed
3294 when target type is a TYPE_CODE_UNDEF into
3295 "<ref to undefined type>".
3297 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3299 * ada-valprint.c (print_record): Delete, implementation inlined...
3300 (ada_val_print_struct_union): ... here. Remove call to
3301 ada_check_typedef in inlined implementation.
3303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3305 * ada-valprint.c (ada_val_print_gnat_array): New function,
3306 extracted from ada_val_print_1;
3307 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3308 (ada_val_print_flt, ada_val_print_struct_union)
3309 (ada_val_print_ref): Likewise.
3310 (ada_val_print_1): Delete variables i and elttype.
3311 Replace extracted-out code by call to corresponding
3314 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3316 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3318 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3320 * ada-valprint.c (ada_val_print_1): Replace calls to
3321 ada_val_print_1 by calls to val_print.
3323 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3325 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3326 Update calls to self accordingly. Replace calls to c_val_print
3327 by calls to val_print.
3329 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3331 * ada-valprint.c (print_record): Delete declaration.
3332 (adjust_type_signedness, ada_val_print_1): Likewise.
3333 (ada_val_print): Move function implementation down.
3334 (print_variant_part, print_field_values, print_record):
3335 Move function implementation up.
3337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3339 * python/py-type.c (typy_get_name): New function.
3340 (type_object_getset): Add entry for attribute "name".
3341 * NEWS: Add entry mentioning this new attribute.
3343 2014-01-07 Yao Qi <yao@codesourcery.com>
3345 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3348 2014-01-07 Yao Qi <yao@codesourcery.com>
3350 * gnu-nat.c (info_port_rights): Add qualifier const to
3353 2014-01-07 Yao Qi <yao@codesourcery.com>
3355 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3357 2014-01-07 Yao Qi <yao@codesourcery.com>
3359 * gnu-nat.c (make_inf) Update declaration.
3360 (make_inf): Make it static.
3361 (inf_set_traced): Likewise.
3362 (inf_port_to_thread, inf_task_died_status): Likewise.
3364 2014-01-07 Yao Qi <yao@codesourcery.com>
3366 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3368 2014-01-07 Yao Qi <yao@codesourcery.com>
3370 * gnu-nat.c (_initialize_gnu_nat): Declare.
3372 2014-01-07 Yao Qi <yao@codesourcery.com>
3374 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3376 (struct gdbarch_info) <byte_order>: Change type to
3378 <byte_order_for_code>: Likewise.
3379 * gdbarch.c, gdbarch.h: Regenerated.
3381 2014-01-06 Sasha Smundak <asmundak@google.com>
3383 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3385 2014-01-06 Tom Tromey <tromey@redhat.com>
3387 * doublest.c (convert_doublest_to_floatformat): Use const, not
3389 * somread.c (som_symtab_read): Likewise.
3391 2014-01-07 Hui Zhu <hui@codesourcery.com>
3393 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3394 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3395 (gdb_bfd_fopen): Ditto.
3396 (gdb_bfd_openr): Ditto.
3397 (gdb_bfd_openw): Ditto.
3398 (gdb_bfd_openr_iovec): Ditto.
3399 (gdb_bfd_fdopenr): Ditto.
3400 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3401 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3403 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3405 * symfile-mem.c (symbol_file_add_from_memory): Removed
3406 gdb_bfd_stash_filename.
3408 2014-01-03 Doug Evans <dje@google.com>
3410 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3413 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3415 Update year range in copyright notice of all files.
3417 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3419 * top.c (print_gdb_version): Set copyright year to 2014.
3421 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3423 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3425 For older changes see ChangeLog-2013.
3431 version-control: never