1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_download_trace_state_variable>:
5 (target_download_trace_state_variable): Add argument.
6 * target.c (update_current_target): Update.
7 * remote.c (remote_download_trace_state_variable): Add 'self'
10 2014-02-19 Tom Tromey <tromey@redhat.com>
12 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
14 (target_can_download_tracepoint): Add argument.
15 * target.c (update_current_target): Update.
16 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
18 2014-02-19 Tom Tromey <tromey@redhat.com>
20 * target.h (struct target_ops) <to_download_tracepoint>: Add
22 (target_download_tracepoint): Add argument.
23 * target.c (update_current_target): Update.
24 * remote.c (remote_download_tracepoint): Add 'self' argument.
26 2014-02-19 Tom Tromey <tromey@redhat.com>
28 * target.h (struct target_ops) <to_trace_init>: Add argument.
29 (target_trace_init): Add argument.
30 * target.c (update_current_target): Update.
31 * remote.c (remote_trace_init): Add 'self' argument.
33 2014-02-19 Tom Tromey <tromey@redhat.com>
35 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
36 * target.c (target_fileio_readlink): Add argument.
37 * remote.c (remote_hostio_readlink): Add 'self' argument.
38 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
40 2014-02-19 Tom Tromey <tromey@redhat.com>
42 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
43 * target.c (target_fileio_unlink): Add argument.
44 * remote.c (remote_hostio_unlink): Add 'self' argument.
45 (remote_file_delete): Update.
46 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
48 2014-02-19 Tom Tromey <tromey@redhat.com>
50 * target.h (struct target_ops) <to_fileio_close>: Add argument.
51 * target.c (target_fileio_close): Add argument.
52 * remote.c (remote_hostio_close): Add 'self' argument.
53 (remote_hostio_close_cleanup): Update.
54 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
56 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
58 2014-02-19 Tom Tromey <tromey@redhat.com>
60 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
61 * target.c (target_fileio_pread): Add argument.
62 * remote.c (remote_hostio_pread): Add 'self' argument.
63 (remote_bfd_iovec_pread, remote_file_get): Update.
64 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
66 2014-02-19 Tom Tromey <tromey@redhat.com>
68 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
69 * target.c (target_fileio_pwrite): Add argument.
70 * remote.c (remote_hostio_pwrite): Add 'self' argument.
71 (remote_file_put): Update.
72 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
74 2014-02-19 Tom Tromey <tromey@redhat.com>
76 * target.h (struct target_ops) <to_fileio_open>: Add argument.
77 * target.c (target_fileio_open): Add argument.
78 * remote.c (remote_hostio_open): Add 'self' argument.
79 (remote_bfd_iovec_open): Add 'self' argument.
80 (remote_file_put): Add 'self' argument.
81 (remote_file_get): Add 'self' argument.
82 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
84 2014-02-19 Tom Tromey <tromey@redhat.com>
86 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
88 (target_can_run_breakpoint_commands): Add argument.
89 * target.c (update_current_target): Update.
90 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
92 (remote_insert_breakpoint): Add 'self' argument.
93 (remote_insert_hw_breakpoint): Add 'self' argument.
94 (remote_can_run_breakpoint_commands): Add 'self' argument.
96 2014-02-19 Tom Tromey <tromey@redhat.com>
98 * target.h (struct target_ops)
99 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
100 (target_supports_evaluation_of_breakpoint_conditions): Add
102 * target.c (update_current_target): Update.
103 * remote.c (remote_supports_cond_breakpoints): Add 'self'
105 (remote_insert_breakpoint): Add 'self' argument.
106 (remote_insert_hw_breakpoint): Add 'self' argument.
107 (remote_supports_cond_breakpoints): Add 'self' argument.
109 2014-02-19 Tom Tromey <tromey@redhat.com>
111 * target.h (struct target_ops) <to_supports_string_tracing>: Add
113 (target_supports_string_tracing): Add argument.
114 * target.c (update_current_target): Update.
115 * remote.c (remote_supports_string_tracing): Add 'self' argument.
117 2014-02-19 Tom Tromey <tromey@redhat.com>
119 * target.h (struct target_ops)
120 <to_supports_disable_randomization>: Add argument.
121 * target.c (find_default_supports_disable_randomization): Add
123 (target_supports_disable_randomization): Add argument.
124 (find_default_supports_disable_randomization): Add 'self'
126 * remote.c (extended_remote_supports_disable_randomization): Add
128 (remote_supports_disable_randomization): Add 'self' argument.
129 (extended_remote_create_inferior): Update.
130 * linux-nat.c (linux_nat_supports_disable_randomization): Add
133 2014-02-19 Tom Tromey <tromey@redhat.com>
135 * target.h (struct target_ops)
136 <to_supports_enable_disable_tracepoint>: Add argument.
137 (target_supports_enable_disable_tracepoint): Add argument.
138 * target.c (update_current_target): Update.
139 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
142 2014-02-19 Tom Tromey <tromey@redhat.com>
144 * target.h (struct target_ops) <to_supports_multi_process>: Add
146 (target_supports_multi_process): Add argument.
147 * target.c (update_current_target): Update.
148 * remote.c (remote_supports_multi_process): Add 'self' argument.
149 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
151 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
154 2014-02-19 Tom Tromey <tromey@redhat.com>
156 * target.h (struct target_ops) <to_execution_direction>: Add
158 (target_execution_direction): Add argument.
159 * target.c (default_execution_direction): Add 'self' argument.
160 * record-full.c (record_full_execution_direction): Add 'self'
163 2014-02-19 Tom Tromey <tromey@redhat.com>
165 * target.h (struct target_ops) <to_can_execute_reverse>: Add
167 (target_can_execute_reverse): Add argument.
168 * remote.c (remote_can_execute_reverse): Add 'self' argument.
169 * record-full.c (record_full_can_execute_reverse): Add 'self'
171 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
174 2014-02-19 Tom Tromey <tromey@redhat.com>
176 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
177 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
179 (target_get_ada_task_ptid): Add argument.
180 * target.c (update_current_target): Update.
181 (default_get_ada_task_ptid): Add 'self' argument.
182 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
183 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
184 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
186 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
188 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
190 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
192 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
193 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
196 2014-02-19 Tom Tromey <tromey@redhat.com>
198 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
199 (target_goto_bookmark): Add argument.
200 * target.c (dummy_goto_bookmark): Add 'self' argument.
201 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
203 2014-02-19 Tom Tromey <tromey@redhat.com>
205 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
206 (target_get_bookmark): Add argument.
207 * target.c (dummy_get_bookmark): Add 'self' argument.
208 * record-full.c (record_full_get_bookmark): Add 'self' argument.
210 2014-02-19 Tom Tromey <tromey@redhat.com>
212 * target.h (struct target_ops) <to_make_corefile_notes>: Add
214 (target_make_corefile_notes): Add argument.
215 * target.c (dummy_make_corefile_notes): Add 'self' argument.
216 * procfs.c (procfs_make_note_section): Add 'self' argument.
217 (procfs_make_note_section): Add 'self' argument.
218 (procfs_make_note_section): Add 'self' argument.
219 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
221 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
222 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
223 * exec.c (exec_make_note_section): Add 'self' argument.
224 (exec_make_note_section): Add 'self' argument.
226 2014-02-19 Tom Tromey <tromey@redhat.com>
228 * target.h (struct target_ops) <to_find_memory_regions>: Add
230 (target_find_memory_regions): Add argument.
231 * target.c (dummy_find_memory_regions): Add 'self' argument.
232 * procfs.c (proc_find_memory_regions): Add 'self' argument.
233 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
234 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
235 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
236 * exec. (exec_do_find_memory_regions): New global.
237 (exec_set_find_memory_regions): Rewrite.
238 (exec_find_memory_regions): New function.
239 (init_exec_ops): Use exec_find_memory_regions.
241 2014-02-19 Tom Tromey <tromey@redhat.com>
243 * target.h (struct target_ops) <to_supports_non_stop>: Add
245 * target.c (find_default_supports_non_stop): Add argument.
246 (target_supports_non_stop): Add argument.
247 (find_default_supports_non_stop): Add 'self' argument.
248 * remote.c (remote_supports_non_stop): Add 'self' argument.
249 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
251 2014-02-19 Tom Tromey <tromey@redhat.com>
253 * target.h (struct target_ops) <to_log_command>: Add argument.
254 (target_log_command): Add argument.
255 * serial.h (serial_log_command): Add 'self' argument.
256 * serial.c (serial_log_command): Add 'self' argument.
258 2014-02-19 Tom Tromey <tromey@redhat.com>
260 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
261 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
263 (target_pid_to_exec_file): Add argument.
264 * target.c (debug_to_pid_to_exec_file): Add argument.
265 (update_current_target): Update.
266 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
267 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
268 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
269 (linux_handle_extended_wait): Update.
270 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
271 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
272 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
273 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
275 2014-02-19 Tom Tromey <tromey@redhat.com>
277 * target.h (struct target_ops) <to_rcmd>: Add argument.
278 (target_rcmd): Add argument.
279 * target.c (debug_to_rcmd): Add argument.
280 (update_current_target, do_monitor_command): Update.
281 * remote.c (remote_rcmd): Add 'self' argument.
282 * monitor.c (monitor_rcmd): Add 'self' argument.
284 2014-02-19 Tom Tromey <tromey@redhat.com>
286 * windows-nat.c (windows_stop): Add 'self' argument.
287 * target.h (struct target_ops) <to_stop>: Add argument.
288 * target.c (target_stop): Add argument.
289 (debug_to_stop): Add argument.
290 (update_current_target): Update.
291 * remote.c (remote_stop): Add 'self' argument.
292 * remote-sim.c (gdbsim_stop): Add 'self' argument.
293 (gdbsim_cntrl_c): Update.
294 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
295 * procfs.c (procfs_stop): Add 'self' argument.
296 * nto-procfs.c (procfs_stop): Add 'self' argument.
297 * monitor.c (monitor_stop): Add 'self' argument.
298 (monitor_open): Update.
299 * linux-nat.c (linux_nat_stop): Add argument.
300 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
301 * gnu-nat.c (gnu_stop): Add 'self' argument.
302 * darwin-nat.c (darwin_stop): Add 'self' argument.
304 2014-02-19 Tom Tromey <tromey@redhat.com>
306 * target.h (struct target_ops) <to_thread_name>: Add argument.
307 * target.c (target_thread_name): Add argument.
308 (update_current_target): Update.
309 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
311 2014-02-19 Tom Tromey <tromey@redhat.com>
313 * target.h (struct target_ops) <to_extra_thread_info>: Add
315 (target_extra_thread_info): Add argument.
316 * target.c (update_current_target): Update.
317 * remote.c (remote_threads_extra_info): Add 'self' argument.
318 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
320 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
321 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
322 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
324 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
326 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
328 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
331 2014-02-19 Tom Tromey <tromey@redhat.com>
333 * target.h (struct target_ops) <to_program_signals>: Add argument.
334 * target.c (target_program_signals): Add argument.
335 * remote.c (remote_program_signals): Add 'self' argument.
337 2014-02-19 Tom Tromey <tromey@redhat.com>
339 * target.h (struct target_ops) <to_pass_signals>: Add argument.
340 * target.c (target_pass_signals): Add argument.
341 * remote.c (remote_pass_signals): Add 'self' argument.
342 (remote_start_remote): Update.
343 * procfs.c (procfs_pass_signals): Add 'self' argument.
344 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
345 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
346 (linux_nat_create_inferior, linux_nat_attach): Update.
348 2014-02-19 Tom Tromey <tromey@redhat.com>
350 * windows-nat.c (windows_can_run): Add 'self' argument.
351 * target.h (struct target_ops) <to_can_run>: Add argument.
352 (target_can_run): Add argument.
353 * target.c (debug_to_can_run): Add argument.
354 (update_current_target): Update.
355 * nto-procfs.c (procfs_can_run): Add 'self' argument.
356 * inf-child.c (inf_child_can_run): Add 'self' argument.
357 * go32-nat.c (go32_can_run): Add 'self' argument.
359 2014-02-19 Tom Tromey <tromey@redhat.com>
361 * target.h (struct target_ops) <to_has_exited>: Add argument.
362 (target_has_exited): Add argument.
363 * target.c (debug_to_has_exited): Add argument.
364 (update_current_target): Update.
366 2014-02-19 Tom Tromey <tromey@redhat.com>
368 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
370 (target_set_syscall_catchpoint): Add argument.
371 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
373 * target.c (update_current_target): Update.
375 2014-02-19 Tom Tromey <tromey@redhat.com>
377 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
379 (target_remove_exec_catchpoint): Add argument.
380 * target.c (debug_to_remove_exec_catchpoint): Add argument.
381 (update_current_target): Update.
382 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
385 2014-02-19 Tom Tromey <tromey@redhat.com>
387 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
389 (target_insert_exec_catchpoint): Add argument.
390 * target.c (debug_to_insert_exec_catchpoint): Add argument.
391 (update_current_target): Update.
392 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
395 2014-02-19 Tom Tromey <tromey@redhat.com>
397 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
399 (target_remove_vfork_catchpoint): Add argument.
400 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
401 (update_current_target): Update.
402 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
405 2014-02-19 Tom Tromey <tromey@redhat.com>
407 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
409 (target_insert_vfork_catchpoint): Add argument.
410 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
411 (update_current_target): Update.
412 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
415 2014-02-19 Tom Tromey <tromey@redhat.com>
417 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
419 (target_remove_fork_catchpoint): Add argument.
420 * target.c (debug_to_remove_fork_catchpoint): Add argument.
421 (update_current_target): Update.
422 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
425 2014-02-19 Tom Tromey <tromey@redhat.com>
427 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
429 (target_insert_fork_catchpoint): Add argument.
430 * target.c (debug_to_insert_fork_catchpoint): Add argument.
431 (update_current_target): Update.
432 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
435 2014-02-19 Tom Tromey <tromey@redhat.com>
437 * target.h (struct target_ops) <to_post_startup_inferior>: Add
439 (target_post_startup_inferior): Add argument.
440 * target.c (debug_to_post_startup_inferior): Add argument.
441 (update_current_target): Update.
442 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
444 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
446 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
448 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
450 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
452 (super_post_startup_inferior): Likewise.
453 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
455 (super_post_startup_inferior): Likewise.
456 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
458 (super_post_startup_inferior): Likewise.
460 2014-02-19 Tom Tromey <tromey@redhat.com>
462 * target.h (struct target_ops) <to_load>: Add argument.
463 * target.c (target_load): Add argument.
464 (debug_to_load): Add argument.
465 (update_current_target): Update.
466 * remote.c (remote_load): Add 'self' argument.
467 * remote-sim.c (gdbsim_load): Add 'self' argument.
468 * remote-mips.c (mips_load): Add 'self' argument.
469 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
470 * monitor.c (monitor_load): Add 'self' argument.
471 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
473 2014-02-19 Tom Tromey <tromey@redhat.com>
475 * target.h (struct target_ops) <to_terminal_info>: Add argument.
476 (target_terminal_info): Add argument.
477 * target.c (debug_to_terminal_info): Add argument.
478 (default_terminal_info): Likewise.
479 * inflow.c (child_terminal_info): Add 'self' argument.
480 * inferior.h (child_terminal_info): Add 'self' argument.
481 * go32-nat.c (go32_terminal_info): Add 'self' argument.
483 2014-02-19 Tom Tromey <tromey@redhat.com>
485 * target.h (struct target_ops) <to_terminal_save_ours>: Add
487 (target_terminal_save_ours): Add argument.
488 * target.c (debug_to_terminal_save_ours): Add argument.
489 (update_current_target): Update.
490 * inflow.c (terminal_save_ours): Add 'self' argument.
491 * inferior.h (terminal_save_ours): Add 'self' argument.
493 2014-02-19 Tom Tromey <tromey@redhat.com>
495 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
496 (target_terminal_ours): Add argument.
497 * target.c (debug_to_terminal_ours): Add argument.
498 (update_current_target): Update.
499 * remote.c (remote_terminal_ours): Add 'self' argument.
500 (remote_close): Update.
501 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
502 * inflow.c (terminal_ours): Add 'self' argument.
503 * inferior.h (terminal_ours): Add 'self' argument.
504 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
506 2014-02-19 Pedro Alves <palves@redhat.com>
507 Tom Tromey <tromey@redhat.com>
509 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
511 (target_terminal_ours_for_output): Add argument.
512 * target.c (debug_to_terminal_ours_for_output): Add argument.
513 (update_current_target): Update.
514 * inflow.c (terminal_ours_for_output): Add 'self' argument.
515 * inferior.h (terminal_ours_for_output): Add 'self' argument.
516 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
518 2014-02-19 Tom Tromey <tromey@redhat.com>
520 * target.h (struct target_ops) <to_terminal_inferior>: Add
522 * target.c (target_terminal_inferior): Add argument.
523 (update_current_target): Update.
524 * remote.c (remote_terminal_inferior): Add 'self' argument.
525 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
526 * inflow.c (terminal_inferior): Add 'self' argument.
527 * inferior.h (terminal_inferior): Add 'self' argument.
528 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
529 (go32_terminal_inferior): Add 'self' argument.
531 2014-02-19 Tom Tromey <tromey@redhat.com>
533 * target.h (struct target_ops) <to_terminal_init>: Add argument.
534 (target_terminal_init): Add argument.
535 * target.c (debug_to_terminal_init): Add argument.
536 (update_current_target): Update.
537 * inflow.c (terminal_init_inferior): Add 'self' argument.
538 * inferior.h (terminal_init_inferior): Add 'self' argument.
539 * go32-nat.c (go32_terminal_init): Add 'self' argument.
540 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
542 2014-02-19 Tom Tromey <tromey@redhat.com>
544 * target.h (struct target_ops)
545 <to_can_accel_watchpoint_condition>: Add argument.
546 (target_can_accel_watchpoint_condition): Add argument.
547 * target.c (debug_to_can_accel_watchpoint_condition): Add
549 (update_current_target): Update.
550 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
553 2014-02-19 Tom Tromey <tromey@redhat.com>
555 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
557 (target_region_ok_for_hw_watchpoint): Add argument.
558 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
559 (default_region_ok_for_hw_watchpoint): Add argument.
560 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
561 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
563 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
565 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
567 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
569 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
571 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
573 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
574 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
576 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
579 2014-02-19 Tom Tromey <tromey@redhat.com>
581 * target.h (struct target_ops) <to_insert_watchpoint>: Add
583 (target_insert_watchpoint): Add argument.
584 * target.c (debug_to_insert_watchpoint): Add argument.
585 (update_current_target): Update.
586 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
587 * remote.c (remote_insert_watchpoint): Add 'self' argument.
588 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
589 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
590 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
591 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
593 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
594 (procfs_insert_hw_watchpoint): Add 'self' argument.
595 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
597 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
599 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
601 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
602 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
604 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
607 2014-02-19 Tom Tromey <tromey@redhat.com>
609 * target.h (struct target_ops) <to_remove_watchpoint>: Add
611 (target_remove_watchpoint): Add argument.
612 * target.c (debug_to_remove_watchpoint): Add argument.
613 (update_current_target): Update.
614 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
615 * remote.c (remote_remove_watchpoint): Add 'self' argument.
616 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
617 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
618 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
619 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
621 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
622 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
624 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
626 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
628 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
629 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
631 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
634 2014-02-19 Tom Tromey <tromey@redhat.com>
636 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
638 (target_remove_hw_breakpoint): Add argument.
639 * target.c (debug_to_remove_hw_breakpoint): Add argument.
640 (update_current_target): Update.
641 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
642 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
644 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
645 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
647 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
650 2014-02-19 Tom Tromey <tromey@redhat.com>
652 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
654 (target_insert_hw_breakpoint): Add argument.
655 * target.c (debug_to_insert_hw_breakpoint): Add argument.
656 (update_current_target): Update.
657 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
658 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
660 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
661 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
662 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
664 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
667 2014-02-19 Tom Tromey <tromey@redhat.com>
669 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
671 (target_can_use_hardware_watchpoint): Add argument.
672 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
673 (update_current_target): Update.
674 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
676 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
678 * remote.c (remote_check_watch_resources): Add 'self' argument.
679 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
680 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
682 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
683 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
685 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
687 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
689 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
691 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
693 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
695 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
696 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
698 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
701 2014-02-19 Tom Tromey <tromey@redhat.com>
703 * target.h (struct target_ops) <to_post_attach>: Add argument.
704 (target_post_attach): Add argument.
705 * target.c (debug_to_post_attach): Add argument.
706 (update_current_target): Update.
707 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
708 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
709 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
710 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
711 * inf-child.c (inf_child_post_attach): Add 'self' argument.
713 2014-02-19 Tom Tromey <tromey@redhat.com>
715 * windows-nat.c (windows_close): Add 'self' argument.
716 * tracepoint.c (tfile_close): Add 'self' argument.
717 * target.h (struct target_ops) <to_close>: Add argument.
718 * target.c (target_close): Add argument.
719 (update_current_target): Update.
720 * remote.c (remote_close): Add 'self' argument.
721 * remote-sim.c (gdbsim_close): Add 'self' argument.
722 * remote-mips.c (mips_close): Add 'self' argument.
723 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
724 * record-full.c (record_full_close): Add 'self' argument.
725 * record-btrace.c (record_btrace_close): Add 'self' argument.
726 * monitor.h (monitor_close): Add 'self' argument.
727 * monitor.c (monitor_close): Add 'self' argument.
728 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
729 * linux-nat.c (linux_nat_close): Add argument.
730 * go32-nat.c (go32_close): Add 'self' argument.
731 * exec.c (exec_close_1): Add 'self' argument.
732 * ctf.c (ctf_close): Add 'self' argument.
733 * corelow.c (core_close): Add 'self' argument.
734 (core_close_cleanup): Update.
735 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
736 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
738 2014-02-19 Tom Tromey <tromey@redhat.com>
740 * remote.c (remote_load): New function.
741 (init_remote_ops): Use it.
743 2014-02-19 Tom Tromey <tromey@redhat.com>
745 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
747 * common/linux-btrace.h (linux_supports_btrace): Update.
748 * remote.c (remote_supports_btrace): Add "self" argument.
749 * target-delegates.c: Rebuild.
750 * target.c (target_supports_btrace): Remove.
751 * target.h (struct target_ops) <to_supports_btrace>: Add
753 (target_supports_btrace): New define.
755 2014-02-19 Tom Tromey <tromey@redhat.com>
757 * record-full.c (record_full_beneath_to_resume_ops)
758 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
759 (record_full_beneath_to_wait)
760 (record_full_beneath_to_store_registers_ops)
761 (record_full_beneath_to_store_registers)
762 (record_full_beneath_to_xfer_partial_ops)
763 (record_full_beneath_to_xfer_partial)
764 (record_full_beneath_to_insert_breakpoint_ops)
765 (record_full_beneath_to_insert_breakpoint)
766 (record_full_beneath_to_remove_breakpoint_ops)
767 (record_full_beneath_to_remove_breakpoint)
768 (record_full_beneath_to_stopped_by_watchpoint)
769 (record_full_beneath_to_stopped_data_address)
770 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
771 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
772 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
773 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
774 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
775 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
776 (tmp_to_stopped_data_address, tmp_to_async): Remove.
777 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
778 (record_full_resume, record_full_wait_1)
779 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
780 (record_full_store_registers, record_full_xfer_partial)
781 (record_full_insert_breakpoint, record_full_remove_breakpoint)
782 (record_full_async, record_full_core_xfer_partial): Use target
784 * target-delegates.c: Rebuild.
785 * target.c (current_xfer_partial): Remove.
786 (update_current_target): Do not INHERIT or de_fault
787 to_insert_breakpoint, to_remove_breakpoint,
788 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
789 to_is_async_p, to_async. Do not set to_xfer_partial field.
790 (default_xfer_partial): Simplify.
791 (current_xfer_partial): Remove.
792 (target_wait, target_resume): Simplify.
793 (find_default_can_async_p, find_default_is_async_p): Update.
794 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
795 to_xfer_partial, to_stopped_by_watchpoint,
796 to_stopped_data_address.
797 (target_store_registers): Simplify.
798 (forward_target_remove_breakpoint)
799 (forward_target_insert_breakpoint): Remove.
800 (target_remove_breakpoint, target_insert_breakpoint)
801 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
802 * target.h (struct target_ops) <to_resume, to_wait,
803 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
804 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
805 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
807 (forward_target_remove_breakpoint)
808 (forward_target_insert_breakpoint): Remove.
809 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
811 (record_btrace_insert_breakpoint): Delegate directly.
813 2014-02-19 Tom Tromey <tromey@redhat.com>
816 * target-delegates.c: New file.
817 * target.c: Include target-delegates.c.
818 (init_dummy_target): Call install_dummy_methods.
819 (complete_target_initialization): Call install_delegators.
820 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
821 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
822 * make-target-delegates: New file.
824 2014-02-19 Tom Tromey <tromey@redhat.com>
826 * record.c (find_record_target): Use find_target_at.
827 * target.c (find_target_at): New function.
828 * target.h (find_target_at): Declare.
830 2014-02-19 Tom Tromey <tromey@redhat.com>
832 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
834 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
836 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
837 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
839 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
841 * linux-nat.c (save_sigtrap): Update.
842 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
843 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
844 (linux_nat_close): Update.
845 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
847 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
849 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
850 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
851 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
852 (tmp_to_async): Add 'ops' argument.
853 (record_full_stopped_by_watchpoint, record_full_async)
854 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
856 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
857 (m32r_stopped_by_watchpoint): Add 'ops' argument.
858 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
859 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
860 (remote_is_async_p, remote_async): Add 'ops' argument.
861 (remote_stopped_data_address): Update.
862 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
863 * target.c (update_current_target)
864 (find_default_can_async_p, find_default_is_async_p): Update.
865 (init_dummy_target): Update.
866 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
867 * target.h (struct target_ops) <to_stopped_by_watchpoint,
868 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
869 (target_can_async_p, target_is_async_p, target_async)
870 (target_stopped_by_watchpoint): Update.
872 2014-02-19 Yao Qi <yao@codesourcery.com>
875 * gdbarch.sh: Remove startup_gdbarch.
876 * gdbarch.c: Regenerated.
877 * gdbarch.h: Likewise.
879 2014-02-17 Kevin Buettner <kevinb@redhat.com>
881 * rl78-tdep.c (rl78_g10_register_name): New function.
882 (rl78_return_value): Add g10 support.
883 (rl78_gdbarch_init): Register rl78_g10_register_name for the
886 2014-02-17 Doug Evans <xdje42@gmail.com>
888 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
889 (SUBDIR_GUILE_SRCS): Ditto.
890 (scm-gsmob.o): Ditto.
892 2014-02-17 Yao Qi <yao@codesourcery.com>
894 * gnu-nat.c (ILL_RPC): Declare defined function.
896 2014-02-17 Yao Qi <yao@codesourcery.com>
898 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
899 mach_msg_type_number_t.
900 (gnu_write_inferior): Likewise.
902 2014-02-17 Yao Qi <yao@codesourcery.com>
904 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
906 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
907 (inf_validate_procs, inf_signal): Likewise.
908 (S_exception_raise_request): Likewise.
909 (do_mach_notify_dead_name): Likewise.
910 (steal_exc_port): Likewise.
911 (gnu_read_inferior): Change 'copy_count''s type to
912 mach_msg_type_number_t.
913 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
916 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
918 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
919 flag. Adjust all users; in particular...
920 (gnu_wait): ..., don't decrement its value in here...
921 (gnu_create_inferior): ..., and instead set the flag in here,
922 around the startup_inferior call, and call that one with
923 START_INFERIOR_TRAPS_EXPECTED.
925 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
926 (ILL_RPC): ... new macro.
927 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
928 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
929 (do_mach_notify_send_once, S_proc_setmsgport_reply)
930 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
931 functions with ILL_RPC macro.
932 (S_proc_pid2task_reply, S_proc_task2pid_reply)
933 (S_proc_task2proc_reply, S_proc_proc2task_reply)
934 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
935 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
936 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
937 (S_proc_getlogin_reply, S_proc_getsid_reply)
938 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
939 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
940 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
941 (S_proc_getnports_reply, S_proc_is_important_reply)
942 (S_proc_get_code_reply): New stub functions, generated with
945 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
946 collected the type check structures.
948 * reply_mig_hack.awk: Don't expect to see the auto keyword.
950 2014-02-14 Doug Evans <dje@google.com>
952 * target.c (target_write_partial): Fix result type.
954 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
956 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
957 the proper offsets to access fpregset_t.
959 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
961 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
962 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
963 * h8300-tdep.c (setmachinelist): Remove global.
964 * hppa-tdep.c (hppa_sigtramp): Remove global.
965 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
966 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
967 * ravenscar-thread.c (update_target_observer): Remove global.
968 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
970 2014-02-12 Tom Tromey <tromey@redhat.com>
972 * common/rsp-low.c: Update comments.
973 * common/rsp-low.h: Update comments.
975 2014-02-12 Tom Tromey <tromey@redhat.com>
977 * common/rsp-low.c (convert_ascii_to_int): Remove.
978 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
980 2014-02-12 Tom Tromey <tromey@redhat.com>
982 * common/rsp-low.h (unhexify): Don't declare.
983 * common/rsp-low.c (unhexify): Remove.
985 2014-02-12 Tom Tromey <tromey@redhat.com>
987 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
988 * common/rsp-low.c (convert_int_to_ascii): Remove.
990 2014-02-12 Tom Tromey <tromey@redhat.com>
992 * common/rsp-low.h (hexify): Don't declare.
993 * common/rsp-low.c (hexify): Remove.
995 2014-02-12 Tom Tromey <tromey@redhat.com>
997 * common/rsp-low.c (hexify): Never take strlen of argument.
999 2014-02-12 Tom Tromey <tromey@redhat.com>
1001 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1002 * remote.c (extended_remote_run, remote_rcmd)
1003 (remote_download_trace_state_variable, remote_save_trace_data)
1004 (remote_set_trace_notes): Update.
1005 * tracepoint.c (encode_source_string, tfile_write_status)
1006 (tfile_write_uploaded_tsv): Update.
1008 2014-02-12 Tom Tromey <tromey@redhat.com>
1010 * tracepoint.c: Include rsp-low.h.
1011 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1012 * remote.c: Include rsp-low.h.
1013 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1014 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1015 (remote_unescape_input): Move to common/rsp-low.c.
1016 * common/rsp-low.h: New file.
1017 * common/rsp-low.c: New file.
1018 * Makefile.in (SFILES): Add common/rsp-low.c.
1019 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1020 (COMMON_OBS): Add rsp-low.o.
1021 (rsp-low.o): New target.
1023 2014-02-12 Tom Tromey <tromey@redhat.com>
1025 * utils.h: Include print-utils.h.
1026 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1027 (int_string, core_addr_to_string, core_addr_to_string_nz)
1028 (hex_string, hex_string_custom): Don't declare.
1029 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1030 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1031 (hex_string_custom, int_string, core_addr_to_string)
1032 (core_addr_to_string_nz, host_address_to_string): Move to
1033 common/print-utils.c.
1034 * common/print-utils.h: New file.
1035 * common/print-utils.c: New file
1036 * Makefile.in (SFILES): Add common/print-utils.c.
1037 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1038 (COMMON_OBS): Add print-utils.o.
1039 (print-utils.o): New target.
1041 2014-02-12 Tom Tromey <tromey@redhat.com>
1043 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1045 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1047 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1049 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1051 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1052 if a PT_IO ptrace request returns sucessfully but indicates that 0
1053 bytes were transferred.
1055 2014-02-12 Pedro Alves <palves@redhat.com>
1056 Kevin Buettner <kevinb@redhat.com>
1058 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1059 TYPE_INSTANCE_FLAG_CODE_SPACE.
1061 2014-02-12 Pedro Alves <palves@redhat.com>
1063 * h8300-tdep.c (pseudo_from_raw_register)
1064 (raw_from_pseudo_register): New functions.
1065 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1068 2014-02-12 Pedro Alves <palves@redhat.com>
1070 * h8300-tdep.c (h8300_register_sim_regno): New function.
1071 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1072 gdbarch_register_sim_regno hook.
1074 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1076 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1078 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1080 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1082 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1084 * obsd-tdep.h (obsd_init_abi): New prototype.
1085 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1086 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1087 (obsd_init_abi): New functions.
1088 * i386obsd-tdep.c: Include "obsd-tdep.h".
1089 (i386obsd_init_abi): Call obsd_init_abi.
1090 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1091 (amd64obsd_init_abi): Call obsd_init_abi.
1092 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1093 obsd-tdep.c to gdb_target_obs.
1095 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1097 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1098 double float arguments to 16-byte in the argument slots.
1100 2014-02-11 Doug Evans <xdje42@gmail.com>
1102 * configure.ac: Don't crash if pkg-config is not found and guile
1103 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1105 * configure: Regenerate.
1107 2014-02-11 Yao Qi <yao@codesourcery.com>
1109 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1110 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1111 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1112 * gnu-nat.c (gnu_xfer_memory): Likewise.
1113 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1114 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1115 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1116 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1118 2014-02-11 Yao Qi <yao@codesourcery.com>
1120 * target.h (enum target_xfer_error): Rename to ...
1121 (enum target_xfer_status): ... it. New. All users updated.
1122 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1124 (TARGET_XFER_STATUS_ERROR_P): New macro.
1125 (target_xfer_error_to_string): Remove declaration.
1126 (target_xfer_status_to_string): Declare.
1127 (target_xfer_partial_ftype): Adjust it.
1128 (struct target_ops) <to_xfer_partial>: Return
1129 target_xfer_status. Add argument xfered_len. Update
1131 * target.c (target_xfer_error_to_string): Rename to ...
1132 (target_xfer_status_to_string): ... it. New. All callers
1134 (target_read_live_memory): Likewise. Call target_xfer_partial
1135 instead of target_read.
1136 (memory_xfer_live_readonly_partial): Return
1137 target_xfer_status. Add argument xfered_len.
1138 (raw_memory_xfer_partial): Likewise.
1139 (memory_xfer_partial_1): Likewise.
1140 (memory_xfer_partial): Likewise.
1141 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1142 properly. Update debug message.
1143 (default_xfer_partial, current_xfer_partial): Likewise.
1144 (target_write_partial): Likewise.
1145 (target_read_partial): Likewise. All callers updated.
1146 (read_whatever_is_readable): Likewise.
1147 (target_write_with_progress): Likewise.
1148 (target_read_alloc_1): Likewise.
1150 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1151 * auxv.c (procfs_xfer_auxv): Likewise.
1152 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1153 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1154 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1155 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1156 * corefile.c (read_memory): Adjust.
1157 * corelow.c (core_xfer_partial): Likewise.
1158 * ctf.c (ctf_xfer_partial): Likewise.
1159 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1161 (darwin_xfer_partial): Likewise.
1162 * exec.c (section_table_xfer_memory_partial): Likewise. All
1164 (exec_xfer_partial): Likewise.
1165 * exec.h (section_table_xfer_memory_partial): Update
1167 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1169 (gnu_xfer_partial): Likewise.
1170 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1171 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1172 (ia64_hpux_xfer_solib_got): Likewise.
1173 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1174 type of 'partial_len' to ULONGEST.
1175 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1176 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1177 (linux_nat_xfer_partial): Likewise.
1178 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1179 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1180 * monitor.c (monitor_xfer_memory): Likewise.
1181 (monitor_xfer_partial): Likewise.
1182 * procfs.c (procfs_xfer_partial): Likewise.
1183 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1184 * record-full.c (record_full_xfer_partial): Likewise.
1185 (record_full_core_xfer_partial): Likewise.
1186 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1187 (gdbsim_xfer_partial): Likewise.
1188 * remote.c (remote_write_bytes_aux): Likewise. All callers
1190 (remote_write_bytes, remote_read_bytes): Likewise. All
1192 (remote_flash_erase): Likewise. All callers updated.
1193 (remote_write_qxfer): Likewise. All callers updated.
1194 (remote_read_qxfer): Likewise. All callers updated.
1195 (remote_xfer_partial): Likewise.
1196 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1197 (rs6000_xfer_shared_libraries): Likewise.
1198 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1199 (sol_thread_xfer_partial): Likewise.
1200 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1201 (sparc_xfer_partial): Likewise.
1202 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1204 (spu_xfer_partial): Likewise.
1205 * spu-multiarch.c (spu_xfer_partial): Likewise.
1206 * tracepoint.c (tfile_xfer_partial): Likewise.
1207 * windows-nat.c (windows_xfer_memory): Likewise.
1208 (windows_xfer_shared_libraries): Likewise.
1209 (windows_xfer_partial): Likewise.
1210 * valprint.c: Replace 'target_xfer_error' with
1211 'target_xfer_status' in comments.
1213 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1215 Checked in by Joel Brobecker <brobecker@adacore.com>.
1216 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1218 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1220 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1221 function parameters.
1223 2014-02-10 Will Newton <will.newton@linaro.org>
1225 * elfread.c (elf_rel_plt_read): Look for a .got section if
1226 looking up .got.plt fails.
1227 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1228 on address passed to elf_gnu_ifunc_record_cache.
1229 (elf_gnu_ifunc_resolve_addr): Likewise.
1230 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1232 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1234 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1235 (X_RETTURN): New macro.
1236 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1238 * sparc64-tdep.c (sparc64_init_abi): Hook
1239 sparc_in_function_epilogue_p.
1241 2014-02-10 Gary Benson <gbenson@redhat.com>
1243 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1244 Rename name_matcher to symbol_matcher.
1246 2014-02-10 Gary Benson <gbenson@redhat.com>
1248 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1249 Use expand_symtabs_file_matcher_ftype and
1250 expand_symtabs_symbol_matcher_ftype.
1252 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1254 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1255 (struct ada_symbol_cache): New.
1256 (ada_free_symbol_cache): Forward declare.
1257 (struct ada_pspace_data): New.
1258 (ada_pspace_data_handle): New static global.
1259 (get_ada_pspace_data, ada_pspace_data_cleanup)
1260 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1261 (cache_space, cache): Delete, now folded inside struct
1263 (ada_get_symbol_cache): New function.
1264 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1266 (_initialize_ada_language): Remove initialization of cache_space.
1267 Move call to observer_attach_inferior_exit up, grouping it
1268 with the other observer registrations inside this function.
1269 Rename command to be more general. Add call to
1270 register_program_space_data_with_cleanup.
1272 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1274 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1275 ada_new_objfile_observer.
1276 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1277 (_initialize_tasks): Update uses of ada_new_objfile_observer
1278 and ada_tasks_normal_stop_observer.
1280 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1282 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1283 returned by the 'Length attribute to integer.
1285 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1287 * ada-lang.c (_initialize_ada_language): Initialize
1288 cache_space obstack.
1290 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1292 * ada-lang.c (HASH_SIZE): New macro.
1293 (struct cache_entry): New type.
1294 (cache_space, cache): New static globals.
1295 (ada_clear_symbol_cache, find_entry): New functions.
1296 (lookup_cached_symbol, cache_symbol): Implement.
1297 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1298 (_initialize_ada_language): Attach ada_new_objfile_observer
1299 and ada_free_objfile_observer.
1301 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1303 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1304 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1305 struct block * parameter.
1306 (ada_lookup_symbol_list_worker): Constify local variable "block".
1307 Remove cast which is no longer necessary.
1309 2014-02-10 Doug Evans <xdje42@gmail.com>
1311 Add Guile as an extension language.
1312 * NEWS: Mention Guile scripting.
1313 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1314 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1315 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1316 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1317 (CLIBS): Add GUILE_LIBS.
1318 (install-guile): New rule.
1319 (guile.o): New rule.
1320 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1321 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1322 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1323 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1324 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1325 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1326 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1327 * configure.ac: New option --with-guile.
1328 * configure: Regenerate.
1329 * config.in: Regenerate.
1330 * auto-load.c: Remove #include "python/python.h". Add #include
1331 "gdb/section-scripts.h".
1332 (source_section_scripts): Handle Guile scripts.
1333 (_initialize_auto_load): Add name of Guile objfile script to
1334 scripts-directory help text.
1335 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1336 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1337 (struct breakpoint): New member scm_bp_object.
1338 * defs.h (enum command_control_type): New value guile_control.
1339 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1341 (show_user): Update comment.
1342 (_initialize_cli_cmds): Update help text for "show user". Update help
1343 text for max-user-call-depth.
1344 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1346 (multi_line_command_p): Add guile_control.
1347 (print_command_lines): Handle guile_control.
1348 (execute_control_command, recurse_read_control_structure): Ditto.
1349 (process_next_line): Recognize "guile" commands.
1350 * disasm.c (gdb_disassemble_info): Make non-static.
1351 * disasm.h: #include "dis-asm.h".
1352 (struct gdbarch): Add forward decl.
1353 (gdb_disassemble_info): Declare.
1354 * extension.c: #include "guile/guile.h".
1355 (extension_languages): Add guile.
1356 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1357 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1358 * gdbtypes.c (get_unsigned_type_max): New function.
1359 (get_signed_type_minmax): New function.
1360 * gdbtypes.h (get_unsigned_type_max): Declare.
1361 (get_signed_type_minmax): Declare.
1362 * guile/README: New file.
1363 * guile/guile-internal.h: New file.
1364 * guile/guile.c: New file.
1365 * guile/guile.h: New file.
1366 * guile/scm-arch.c: New file.
1367 * guile/scm-auto-load.c: New file.
1368 * guile/scm-block.c: New file.
1369 * guile/scm-breakpoint.c: New file.
1370 * guile/scm-disasm.c: New file.
1371 * guile/scm-exception.c: New file.
1372 * guile/scm-frame.c: New file.
1373 * guile/scm-gsmob.c: New file.
1374 * guile/scm-iterator.c: New file.
1375 * guile/scm-lazy-string.c: New file.
1376 * guile/scm-math.c: New file.
1377 * guile/scm-objfile.c: New file.
1378 * guile/scm-ports.c: New file.
1379 * guile/scm-pretty-print.c: New file.
1380 * guile/scm-safe-call.c: New file.
1381 * guile/scm-string.c: New file.
1382 * guile/scm-symbol.c: New file.
1383 * guile/scm-symtab.c: New file.
1384 * guile/scm-type.c: New file.
1385 * guile/scm-utils.c: New file.
1386 * guile/scm-value.c: New file.
1387 * guile/lib/gdb.scm: New file.
1388 * guile/lib/gdb/boot.scm: New file.
1389 * guile/lib/gdb/experimental.scm: New file.
1390 * guile/lib/gdb/init.scm: New file.
1391 * guile/lib/gdb/iterator.scm: New file.
1392 * guile/lib/gdb/printing.scm: New file.
1393 * guile/lib/gdb/types.scm: New file.
1394 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1395 (VPATH): Add $(GUILE_SRCDIR).
1396 (GUILE_DIR): New variable.
1397 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1398 (all): Add stamp-guile dependency.
1399 (stamp-guile): New rule.
1400 (clean-guile, install-guile, uninstall-guile): New rules.
1401 (install-only): Add install-guile dependency.
1402 (uninstall): Add uninstall-guile dependency.
1403 (clean): Add clean-guile dependency.
1405 2014-02-09 Doug Evans <xdje42@gmail.com>
1407 Revert this patch (which I approved, mea culpa).
1409 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1411 * Makefile.in (all-lib): Remove.
1412 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1414 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 Fix Python stack corruption.
1417 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1420 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1422 * Makefile.in (all-lib): Remove.
1423 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1425 2014-02-07 Doug Evans <dje@google.com>
1427 * extension-priv.h (extension_language_script_ops): Add comment.
1428 (extension_language_ops): Add comment.
1429 (active_ext_lang_state): Fix typo in comment.
1431 2014-02-07 Pedro Alves <palves@redhat.com>
1433 * infrun.c (handle_signal_stop) <signal arrives while stepping
1434 over a breakpoint>: Switch back to the stepping thread.
1436 2014-02-07 Yao Qi <yao@codesourcery.com>
1438 * target.c (target_xfer_partial): Return zero if LEN is zero.
1440 2014-02-07 Yao Qi <yao@codesourcery.com>
1442 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1443 (ld_so_xfer_auxv): Likewise.
1444 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1445 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1446 * corelow.c (core_xfer_partial): Likewise.
1447 * ctf.c (ctf_xfer_partial): Likewise.
1448 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1449 (darwin_xfer_partial): Likewise.
1450 * exec.c (exec_xfer_partial): Likewise.
1451 * gnu-nat.c (gnu_xfer_partial): Likewise.
1452 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1453 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1454 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1455 * linux-nat.c (linux_xfer_siginfo): Likewise.
1456 (linux_proc_xfer_spu): Likewise.
1457 * procfs.c (procfs_xfer_partial): Likewise.
1458 * record-full.c (record_full_xfer_partial): Likewise.
1459 (record_full_core_xfer_partial): Likewise.
1460 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1461 * remote.c (remote_write_qxfer): Likewise.
1462 (remote_write_qxfer, remote_read_qxfer): Likewise.
1463 (remote_xfer_partial): Likewise.
1464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1465 (rs6000_xfer_shared_libraries): Likewise.
1466 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1467 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1468 (spu_xfer_partial): Likewise.
1469 * target.c (memory_xfer_partial_1): Likewise.
1470 * tracepoint.c (tfile_xfer_partial): Likewise.
1471 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1472 (windows_xfer_partial): Likewise.
1474 2014-02-07 Yao Qi <yao@codesourcery.com>
1476 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1478 (core_xfer_shared_libraries_aix): Likewise.
1479 * gdbarch.c, gdbarch.h: Regenerated.
1480 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1481 ULONGEST. Change 'len_avail' type to ULONGEST.
1482 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1483 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1485 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1487 2014-02-07 Yao Qi <yao@codesourcery.com>
1489 * corefile.c (memory_error): Get 'exception' from ERR and pass
1490 'exception' to throw_error.
1492 2014-02-06 Doug Evans <xdje42@gmail.com>
1494 * configure.ac (libpython checking): Remove all but python.o from
1495 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1496 * configure: Regenerate.
1498 * Makefile.in (SFILES): Add extension.c.
1499 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1500 (COMMON_OBS): Add extension.o.
1501 * extension.h: New file.
1502 * extension-priv.h: New file.
1503 * extension.c: New file.
1505 * python/python-internal.h: #include "extension.h".
1506 (gdbpy_auto_load_enabled): Declare.
1507 (gdbpy_apply_val_pretty_printer): Declare.
1508 (gdbpy_apply_frame_filter): Declare.
1509 (gdbpy_preserve_values): Declare.
1510 (gdbpy_breakpoint_cond_says_stop): Declare.
1511 (gdbpy_breakpoint_has_cond): Declare.
1512 (void source_python_script_for_objfile): Delete.
1513 * python/python.c: #include "extension-priv.h".
1514 Delete inclusion of "observer.h".
1515 (extension_language_python): Moved here and renamed from
1516 script_language_python in py-auto-load.c.
1517 Redefined to be of type extension_language_defn.
1518 (python_extension_script_ops): New global.
1519 (python_extension_ops): New global.
1520 (struct python_env): New member previous_active.
1521 (restore_python_env): Call restore_active_ext_lang.
1522 (ensure_python_env): Call set_active_ext_lang.
1523 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1525 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1527 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1529 (gdbpy_eval_from_control_command): Renamed from
1530 eval_python_from_control_command, made static. New arg extlang.
1531 (gdbpy_source_script) Renamed from source_python_script, made static.
1533 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1534 result to int. New arg extlang.
1535 (gdbpy_source_objfile_script): Renamed from
1536 source_python_script_for_objfile, made static. New arg extlang.
1537 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1538 static. New args extlang, extlang_printers. Change result type to
1540 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1541 static. New arg extlang. Rename arg printers to extlang_printers
1542 and change type to ext_lang_type_printers *.
1543 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1544 static. Replace argument arg with extlang, extlang_printers.
1545 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1546 (!HAVE_PYTHON, source_python_script): Delete.
1547 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1548 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1549 (!HAVE_PYTHON, start_type_printers): Delete.
1550 (!HAVE_PYTHON, apply_type_printers): Delete.
1551 (!HAVE_PYTHON, free_type_printers): Delete.
1552 (_initialize_python): Delete call to observer_attach_before_prompt.
1553 (finalize_python): Set/restore active extension language.
1554 (gdbpy_finish_initialization) Renamed from
1555 finish_python_initialization, made static. New arg extlang.
1556 (gdbpy_initialized): New function.
1557 * python/python.h: #include "extension.h". Delete #include
1558 "value.h", "mi/mi-cmds.h".
1559 (extension_language_python): Declare.
1560 (GDBPY_AUTO_FILE_NAME): Delete.
1561 (enum py_bt_status): Moved to extension.h and renamed to
1563 (enum frame_filter_flags): Moved to extension.h.
1564 (enum py_frame_args): Moved to extension.h and renamed to
1565 ext_lang_frame_args.
1566 (finish_python_initialization): Delete.
1567 (eval_python_from_control_command): Delete.
1568 (source_python_script): Delete.
1569 (apply_val_pretty_printer): Delete.
1570 (apply_frame_filter): Delete.
1571 (preserve_python_values): Delete.
1572 (gdbpy_script_language_defn): Delete.
1573 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1574 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1576 * auto-load.c: #include "extension.h".
1577 (GDB_AUTO_FILE_NAME): Delete.
1578 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1579 (script_language_gdb): Delete, moved to extension.c and renamed to
1580 extension_language_gdb.
1581 (source_gdb_script_for_objfile): Delete.
1582 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1583 (loaded_script): Change type of language member to
1584 struct extension_language_defn *.
1585 (init_loaded_scripts_info): Initialize
1586 unsupported_script_warning_printed.
1587 (maybe_add_script): Make static. Change type of language arg to
1588 struct extension_language_defn *.
1589 (clear_section_scripts): Reset unsupported_script_warning_printed.
1590 (auto_load_objfile_script_1): Rewrite to use extension language API.
1591 (auto_load_objfile_script): Make public. Remove support-compiled-in
1592 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1593 (source_section_scripts): Rewrite to use extension language API.
1594 (load_auto_scripts_for_objfile): Rewrite to use
1595 auto_load_scripts_for_objfile.
1596 (collect_matching_scripts_data): Change type of language member to
1597 struct extension_language_defn *.
1598 (auto_load_info_scripts): Change type of language arg to
1599 struct extension_language_defn *.
1600 (unsupported_script_warning_print): New function.
1601 (script_not_found_warning_print): Make static.
1602 (_initialize_auto_load): Rewrite construction of scripts-directory
1604 * auto-load.h (struct objfile): Add forward decl.
1605 (struct script_language): Delete.
1606 (struct auto_load_pspace_info): Add forward decl.
1607 (struct extension_language_defn): Add forward decl.
1608 (maybe_add_script): Delete.
1609 (auto_load_objfile_script): Declare.
1610 (script_not_found_warning_print): Delete.
1611 (auto_load_info_scripts): Update prototype.
1612 (auto_load_gdb_scripts_enabled): Declare.
1613 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1614 auto_load_python_scripts_enabled and made public.
1615 (script_language_python): Delete, moved to python.c.
1616 (gdbpy_script_language_defn): Delete.
1617 (info_auto_load_python_scripts): Update to use
1618 extension_language_python.
1620 * breakpoint.c (condition_command): Replace call to
1621 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1622 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1623 with call to breakpoint_ext_lang_cond_says_stop.
1624 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1625 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1626 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1627 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1629 (local_setattro): Print name of extension language with existing
1632 * valprint.c (val_print, value_print): Update to call
1633 apply_ext_lang_val_pretty_printer.
1634 * cp-valprint.c (cp_print_value): Update call to
1635 apply_ext_lang_val_pretty_printer.
1636 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1637 (gdbpy_apply_val_pretty_printer): Renamed from
1638 apply_val_pretty_printer. New arg extlang.
1639 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1641 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1642 extension language API.
1643 * cli/cli-script.c (execute_control_command): Update to call
1644 eval_ext_lang_from_control_command.
1646 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1647 enum ext_lang_bt_status values. Update call to
1648 apply_ext_lang_frame_filter.
1649 (mi_cmd_stack_list_locals): Ditto.
1650 (mi_cmd_stack_list_args): Ditto.
1651 (mi_cmd_stack_list_variables): Ditto.
1652 * mi/mi-main.c: Delete #include "python/python-internal.h".
1653 Add #include "extension.h".
1654 (mi_cmd_list_features): Replace reference to python internal variable
1655 gdb_python_initialized with call to ext_lang_initialized_p.
1657 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1658 Update to use enum ext_lang_frame_args. Update to call
1659 apply_ext_lang_frame_filter.
1660 * python/py-framefilter.c (extract_sym): Update to use enum
1662 (extract_value, py_print_type, py_print_value): Ditto.
1663 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1664 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1665 (py_print_frame): Ditto.
1666 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1667 New arg extlang. Update to use enum ext_lang_bt_status.
1669 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1670 finish_python_initialization. Replace with call to
1671 finish_ext_lang_initialization.
1673 * typeprint.c (do_free_global_table): Update to call
1674 free_ext_lang_type_printers.
1675 (create_global_typedef_table): Update to call
1676 start_ext_lang_type_printers.
1677 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1678 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1679 (type_print_options): Change type of global_printers from "void *"
1680 to "struct ext_lang_type_printers *".
1682 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1683 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1684 (gdbpy_preserve_values): Renamed from preserve_python_values.
1686 (!HAVE_PYTHON, preserve_python_values): Delete.
1688 * utils.c (quit_flag): Delete, moved to extension.c.
1689 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1692 * eval.c: Delete #include "python/python.h".
1693 * main.c: Delete #include "python/python.h".
1695 * defs.h: Update comment.
1697 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1701 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1703 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1706 2014-02-05 Yao Qi <yao@codesourcery.com>
1708 * remote.c (remote_pass_signals): Remove local 'buf' and use
1710 (remote_program_signals): Likewise.
1712 2014-02-05 Yao Qi <yao@codesourcery.com>
1714 * ctf.c: Include "inferior.h" and "gdbthread.h".
1715 (CTF_PID): A new macro.
1716 (ctf_open): Call inferior_appeared and add_thread_silent.
1717 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1718 (ctf_thread_alive): New function.
1719 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1721 2014-02-05 Yao Qi <yao@codesourcery.com>
1725 2013-05-24 Yao Qi <yao@codesourcery.com>
1727 * tracepoint.c (TFILE_PID): Remove.
1728 (tfile_open): Don't add thread and inferior.
1729 (tfile_close): Don't set 'inferior_ptid'. Don't call
1730 exit_inferior_silent.
1731 (tfile_thread_alive): Remove.
1732 (init_tfile_ops): Don't set field 'to_thread_alive' of
1735 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1737 * remote.c (remote_start_remote): Call remote_check_symbols even
1738 if only symbol-file (not file) has been given.
1740 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1742 * gdbarch.sh (skip_entrypoint): New callback.
1743 * gdbarch.c, gdbarch.h: Regenerate.
1744 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1745 * infrun.c (fill_in_stop_func): Likewise.
1746 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1747 (ppc_elfv2_elf_make_msymbol_special): New function.
1748 (ppc_elfv2_skip_entrypoint): Likewise.
1749 (ppc_linux_init_abi): Install them for ELFv2.
1751 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1753 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1754 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1755 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1756 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1757 structures returned in GPRs.
1759 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1761 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1762 offset to the stack parameter list for the ELFv2 ABI.
1764 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1766 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1767 set_gdbarch_convert_from_func_ptr_addr and
1768 set_gdbarch_elf_make_msymbol_special for ELFv1.
1769 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1770 function descriptors on ELFv1.
1771 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1772 set up r12 at function entry.
1774 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1776 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1777 (struct gdbarch_tdep): New member elf_abi.
1779 * rs6000-tdep.c: Include "elf/ppc64.h".
1780 (rs6000_gdbarch_init): Detect ELF ABI version.
1782 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1784 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1785 within a register pair holding a DFP 128-bit value on little-endian.
1786 (ppc64_sysv_abi_return_value_base): Likewise.
1787 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1788 (dfp_pseudo_register_write): Likewise.
1790 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1792 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1793 offset on little-endian when passing _Decimal32.
1794 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1796 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1798 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1799 of the overlapped FP register within the VSX register on little-
1801 (efpr_pseudo_register_write): Likewise.
1803 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1806 offset on little-endian when passing small structures.
1808 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1810 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1811 (struct ppc64_sysv_argpos): New data structure.
1812 (ppc64_sysv_abi_push_float): Remove.
1813 (ppc64_sysv_abi_push_val): New function.
1814 (ppc64_sysv_abi_push_integer): Likewise.
1815 (ppc64_sysv_abi_push_freg): Likewise.
1816 (ppc64_sysv_abi_push_vreg): Likewise.
1817 (ppc64_sysv_abi_push_param): Likewise.
1818 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1819 (ppc64_sysv_abi_return_value_base): New function.
1820 (ppc64_sysv_abi_return_value): Refactor to use it.
1822 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1824 * NEWS: Document new target powerpc64le-*-linux*.
1826 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1828 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1829 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1831 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1832 register set used in ELF core dumps. Add floating-point register set.
1834 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1836 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1837 dwarf2_to_gdb[] table using symbolic constants. Adjust
1838 penultimate entry from number representing the PC register
1839 to symbolic constant representing the MDR register. Add
1840 constant for the PC register to the end of the table.
1842 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1844 * bsd-kvm.c: Include <sys/param.h>
1846 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1848 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1850 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1852 * ada-lang.h (clear_ada_sym_cache): Delete.
1854 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1856 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1858 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1860 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1861 the sigreturn register save area only if the syscall is
1864 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1866 * valops.c (value_slice): Minor reformatting.
1868 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1870 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1872 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1874 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1876 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1877 (ada_ignore_descriptive_types_p): New static global.
1878 (find_parallel_type_by_descriptive_type): Return immediately
1879 if ada_ignore_descriptive_types_p is set.
1880 (_initialize_ada_language): Register new commands "maintenance
1881 set ada", "maintenance show ada", "maintenance set ada
1882 ignore-descriptive-types" and "maintenance show ada
1883 ignore-descriptive-types".
1884 * NEWS: Add entry for new "maint ada set/show
1885 ignore-descriptive-types" commands.
1887 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1889 * record-btrace.c (record_btrace_close): Call btrace_teardown
1892 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1894 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1897 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1899 * ada-typeprint (type_is_full_subrange_of_target_type):
1901 (print_range): Add parameter bounds_prefered_p. If not set,
1902 try printing range types using the name of their base type.
1903 (print_range_type): Add parameter bounds_prefered_p.
1904 Use it in call to print_range.
1905 (print_array_type, ada_print_type): Update calls to print_range
1906 and print_range_type.
1908 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1910 * ada-typeprint.c (print_array_type, print_choices, print_range)
1911 (print_range_bound, print_dynamic_range_bound, print_range_type):
1914 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1916 * ada-typeprint.c (print_range): Add missing empty line
1917 after local declaration.
1919 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1921 * ada-valprint.c (print_optional_low_bound): Get index_type's
1922 target type for as long as it is a TYPE_CODE_RANGE.
1924 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1926 * procfs.c (procfs_make_note_section): Remove assertion and
1929 2014-01-24 Yao Qi <yao@codesourcery.com>
1931 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1932 * corelow.c (get_core_siginfo): Likewise.
1934 2014-01-24 Yao Qi <yao@codesourcery.com>
1936 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1937 ULONGEST. Don't check 'len' is negative.
1938 (remote_write_bytes): Change type of 'len' to ULONGEST.
1940 2014-01-23 Tom Tromey <tromey@redhat.com>
1943 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1944 Handle exception from frame.block.
1945 (FrameVars.fetch_frame_locals): Likewise.
1947 2014-01-23 Tom Tromey <tromey@redhat.com>
1950 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1951 on a NULL pointer. Move "goto error" to correct place.
1953 2014-01-23 Tom Tromey <tromey@redhat.com>
1956 * python/py-framefilter.c (apply_frame_filter): Call
1957 ensure_python_env after computing gdbarch.
1959 2014-01-23 Yao Qi <yao@codesourcery.com>
1961 * target.c (raw_memory_xfer_partial): Change argument type
1962 from void * to gdb_byte *.
1963 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1965 2014-01-22 Doug Evans <dje@google.com>
1967 New gdbserver option --debug-format=timestamp.
1970 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1972 * syscalls/s390x-linux.xml: New file.
1973 * syscalls/s390-linux.xml: New file.
1974 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1975 (XML_SYSCALL_FILENAME_S390X): Likewise.
1976 (op_svc): New enum value for SVC opcode.
1977 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1978 (s390_linux_get_syscall_number): New function.
1979 (s390_gdbarch_init): Register '*get_syscall_number' and the
1980 syscall xml file name.
1981 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1982 "s390-linux.xml" and "s390x-linux.xml".
1983 * NEWS: Announce new feature.
1985 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1987 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1989 2014-01-22 Pedro Alves <palves@redhat.com>
1991 * xtensa-config.c: Include defs.h.
1993 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1995 * common/common-utils.h: Add "ARI:" comment beside __func__
1998 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2000 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2001 documentation a bit.
2003 2014-01-21 Roland McGrath <mcgrathr@google.com>
2005 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2006 * configure: Regenerate.
2007 * aclocal.m4: Regenerate.
2008 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2009 New substituted variables.
2010 (install-strip): New target.
2011 (INSTALL_SCRIPT): New substituted variable.
2012 (FLAGS_TO_PASS): Add it.
2013 (install-only): Use $(INSTALL_SCRIPT) rather than
2014 $(INSTALL_PROGRAM) for gcore.
2016 2014-01-20 Tom Tromey <tromey@redhat.com>
2018 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2021 2014-01-20 Tom Tromey <tromey@redhat.com>
2023 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2024 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2025 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2026 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2027 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2028 (struct cmd_list_element) <flags>: Remove.
2029 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2030 doc_allocated>: New fields.
2031 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2033 * maint.c (maintenance_do_deprecate): Update.
2034 * top.c (execute_command): Update.
2036 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2038 * xtensa-linux-nat.c: Include asm/ptrace.h.
2040 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2042 * Makefile.in (SFILES): Add d-support.c.
2043 (COMMON_OBS): Add d-support.o.
2044 * d-lang.h (d_parse_symbol): Add comment, now defined in
2046 * d-lang.c (parse_call_convention)
2047 (parse_attributes, parse_function_types)
2048 (parse_function_args, parse_type, parse_identifier)
2049 (call_convention_p, d_parse_symbol): Move functions to ...
2050 * d-support.c: ... New file.
2052 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2054 * d-lang.h (d_parse_symbol): Add declaration.
2055 * d-lang.c (extract_identifiers)
2056 (extract_type_info): Remove functions.
2057 (parse_call_convention, parse_attributes)
2058 (parse_function_types, parse_function_args)
2059 (parse_type, parse_identifier, call_convention_p)
2060 (d_parse_symbol): New functions.
2061 (d_demangle): Use d_parse_symbol to demangle D symbols.
2063 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2065 * d-lang.h (struct builtin_d_type): New data type.
2066 (builtin_d_type): Add declaration.
2067 * d-lang.c (d_language_arch_info, build_d_types)
2068 (builtin_d_type): New functions.
2069 (enum d_primitive_types): New data type.
2070 (d_language_defn): Change c_language_arch_info to
2071 d_language_arch_info.
2072 (d_type_data): New static variable.
2073 (_initialize_d_language): Initialize d_type_data.
2075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2077 * d-lang.h (d_main_name): Add declaration.
2078 * d-lang.c (d_main_name): New function.
2079 * symtab.c (find_main_name): Add call to d_main_name.
2081 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2083 * d-lang.c (d_language_defn): Change macro_expansion_c to
2086 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2088 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2090 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2092 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2093 gdb_exception" declaration.
2094 * remote.c (getpkt_or_notif_sane): Likewise.
2096 2014-01-17 Doug Evans <dje@google.com>
2098 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2099 function, contents of dirnames_to_char_ptr_vec_append moved here.
2100 (delim_string_to_char_ptr_vec): New function.
2101 (dirnames_to_char_ptr_vec_append): Rewrite.
2102 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2104 2014-01-17 Doug Evans <dje@google.com>
2106 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2108 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2109 #include "common-utils.h".
2110 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2111 * common/vec.h (VEC_ASSERT_PASS): Update.
2112 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2113 (MACH_CHECK_ERROR): Update.
2115 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2117 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2119 * gdbarch.h: Regenerate.
2121 2014-01-16 Tom Tromey <tromey@redhat.com>
2123 * value.c (struct value) <regnum>: Move earlier.
2125 2014-01-16 Tom Tromey <tromey@redhat.com>
2127 * remote.c (extended_remote_create_inferior): Rename from
2128 extended_remote_create_inferior_1. Add "ops" argument. Remove
2131 2014-01-16 Pedro Alves <palves@redhat.com>
2133 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2134 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2137 2014-01-16 Doug Evans <dje@google.com>
2139 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2141 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2143 * btrace.h (btrace_thread_flag): New.
2144 (struct btrace_thread_info) <flags>: New.
2145 * record-btrace.c (record_btrace_resume_thread)
2146 (record_btrace_find_thread_to_move, btrace_step_no_history)
2147 (btrace_step_stopped, record_btrace_start_replaying)
2148 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2149 (record_btrace_find_resume_thread): New.
2150 (record_btrace_resume, record_btrace_wait): Extend.
2151 (record_btrace_can_execute_reverse): New.
2152 (record_btrace_open): Fail in non-stop mode.
2153 (record_btrace_set_replay): Split into this, ...
2154 (record_btrace_stop_replaying): ... this, ...
2155 (record_btrace_clear_histories): ... and this.
2156 (init_record_btrace_ops): Init to_can_execute_reverse.
2157 * NEWS: Announce it.
2159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2161 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2162 (forward_target_decr_pc_after_break)
2163 (target_decr_pc_after_break): New.
2164 * target.c (forward_target_decr_pc_after_break)
2165 (target_decr_pc_after_break): New.
2166 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2167 instead of gdbarch_decr_pc_after_break.
2168 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2169 instead of gdbarch_decr_pc_after_break.
2170 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2171 instead of gdbarch_decr_pc_after_break.
2172 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2173 instead of gdbarch_decr_pc_after_break.
2174 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2175 instead of gdbarch_decr_pc_after_break.
2176 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2177 instead of gdbarch_decr_pc_after_break.
2179 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2181 * btrace.c: Include regcache.h.
2182 (btrace_add_pc): New.
2183 (btrace_enable): Call btrace_add_pc.
2184 (btrace_is_empty): New.
2185 * btrace.h (btrace_is_empty): New.
2186 * record-btrace.c (require_btrace, record_btrace_info): Call
2189 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2191 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2192 Support delta reads.
2193 (linux_disable_btrace): Change return type.
2194 * common/linux-btrace.h (linux_read_btrace): Change parameters
2195 and return type to allow error reporting. Update users.
2196 (linux_disable_btrace): Change return type. Update users.
2197 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2199 (btrace_error): New.
2200 (btrace_block) <begin>: Comment on BEGIN == 0.
2201 * btrace.c (btrace_compute_ftrace): Start from the end of
2203 (btrace_stitch_trace, btrace_clear_history): New.
2204 (btrace_fetch): Read delta trace, return if replaying.
2205 (btrace_clear): Move clear history code to btrace_clear_history.
2206 (parse_xml_btrace): Throw an error if parsing failed.
2207 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2208 and return type to allow error reporting.
2209 (target_read_btrace): Change parameters and return type to allow
2211 * target.c (target_read_btrace): Update.
2212 * remote.c (remote_read_btrace): Support delta reads. Pass
2214 * NEWS: Announce it.
2216 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2218 * record.h (record_btrace_frame_unwind)
2219 (record_btrace_tailcall_frame_unwind): New declarations.
2220 * dwarf2-frame: Include record.h
2221 (dwarf2_frame_cfa): Throw an error for btrace frames.
2222 * record-btrace.c: Include hashtab.h.
2223 (btrace_get_bfun_name): New.
2224 (btrace_call_history): Call btrace_get_bfun_name.
2225 (struct btrace_frame_cache): New.
2227 (bfcache_hash, bfcache_eq, bfcache_new): New.
2228 (btrace_get_frame_function): New.
2229 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2230 (record_btrace_frame_this_id): Compute own id.
2231 (record_btrace_frame_prev_register): Provide PC, throw_error
2232 for all other registers.
2233 (record_btrace_frame_sniffer): Detect btrace frames.
2234 (record_btrace_tailcall_frame_sniffer): New.
2235 (record_btrace_frame_dealloc_cache): New.
2236 (record_btrace_frame_unwind): Add new functions.
2237 (record_btrace_tailcall_frame_unwind): New.
2238 (_initialize_record_btrace): Allocate cache.
2239 * btrace.c (btrace_clear): Call reinit_frame_cache.
2240 * NEWS: Announce it.
2242 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2244 * record-btrace.c (record_btrace_set_replay)
2245 (record_btrace_goto_begin, record_btrace_goto_end)
2246 (record_btrace_goto): New.
2247 (init_record_btrace_ops): Initialize them.
2248 * NEWS: Announce it.
2250 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2252 * record-btrace.c (record_btrace_find_new_threads)
2253 (record_btrace_thread_alive): New.
2254 (init_record_btrace_ops): Initialize to_find_new_threads and
2257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2259 * record-btrace.c (record_btrace_resume): New.
2260 (record_btrace_wait): New.
2261 (init_record_btrace_ops): Initialize to_wait and to_resume.
2263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2265 * record-btrace.c (record_btrace_xfer_partial)
2266 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2267 (record_btrace_allow_memory_access): New.
2268 (init_record_btrace_ops): Initialize new methods.
2269 * target.c (raw_memory_xfer_partial): Bail out if target reports
2270 that this memory is not available.
2272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2274 * target.h (target_ops) <to_insert_breakpoint>
2275 <to_remove_breakpoint>: Add target_ops parameter.
2276 (forward_target_insert_breakpoint): New.
2277 (forward_target_remove_breakpoint): New.
2278 (memory_remove_breakpoint, memory_insert_breakpoint):
2279 Add target_ops parameter.
2280 * target.c (target_insert_breakpoint): Split into this and ...
2281 (forward_target_insert_breakpoint): ... this.
2282 (target_remove_breakpoint): Split into this and ...
2283 (forward_target_remove_breakpoint): ... this.
2284 (debug_to_insert_breakpoint): Add target_ops parameter.
2285 Call forward_target_insert_breakpoint.
2286 (debug_to_remove_breakpoint): Add target_ops parameter.
2287 Call forward_target_remove_breakpoint.
2288 (update_current_target): Do not inherit or default to_insert_breakpoint
2289 and to_remove_breakpoint.
2290 * corelow.c (ignore): Add target_ops parameter.
2291 * exec.c (ignore): Add target_ops parameter.
2292 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2293 Add target_ops parameter.
2294 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2295 Add target_ops parameter.
2296 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2297 Add target_ops parameter.
2298 * record-full.c (record_full_beneath_to_insert_breakpoint)
2299 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2300 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2301 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2302 (record_full_core_remove_breakpoint): Add target_ops parameter.
2304 (record_full_beneath_to_insert_breakpoint_ops)
2305 (record_full_beneath_to_remove_breakpoint_ops)
2306 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2307 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2308 tmp_to_remove_breakpoint_ops,
2309 record_full_beneath_to_insert_breakpoint_ops, and
2310 record_full_beneath_to_remove_breakpoint_ops.
2311 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2312 (m32r_remove_breakpoint): Add target_ops parameter.
2313 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2314 Add target_ops parameter.
2315 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2316 Add target_ops parameter.
2318 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2319 Markus Metzger <markus.t.metzger@intel.com>
2321 * record-btrace.c: Include frame-unwind.h.
2322 (record_btrace_frame_unwind_stop_reason)
2323 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2324 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2326 (init_record_btrace_ops): Install it.
2328 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2333 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2335 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2338 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * frame-unwind.c: Include target.h.
2341 (frame_unwind_try_unwinder): New function with code from ...
2342 (frame_unwind_find_by_frame): ... here. New variable
2343 unwinder_from_target, call also target_get_unwinder)
2344 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2345 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2346 * target.h (struct target_ops): New fields to_get_unwinder and
2347 to_get_tailcall_unwinder.
2348 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2352 * record-btrace.c (record_btrace_fetch_registers)
2353 (record_btrace_store_registers)
2354 (record_btrace_to_prepare_to_store): New.
2355 (init_record_btrace_ops): Add the above.
2357 2014-01-16 Tom Tromey <tromey@redhat.com>
2359 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2360 * target.h (struct target_ops) <to_prepare_to_store>: Add
2362 (target_prepare_to_store): Add argument.
2363 * target.c (debug_to_prepare_to_store): Add argument.
2364 (update_current_target): Update.
2365 * remote.c (remote_prepare_to_store): Add 'self' argument.
2366 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2367 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2368 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2369 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2371 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2372 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2373 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2374 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2375 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2379 * btrace.h (replay) <replay>: New.
2380 (btrace_is_replaying): New.
2381 * btrace.c (btrace_clear): Free replay iterator.
2382 (btrace_is_replaying): New.
2383 * record-btrace.c (record_btrace_is_replaying): New.
2384 (record_btrace_info): Print insn number if replaying.
2385 (record_btrace_insn_history): Start at replay position.
2386 (record_btrace_call_history): Start at replay position.
2387 (init_record_btrace_ops): Init to_record_is_replaying.
2389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2391 * record-btrace.c (record_btrace_insn_history_range): Include
2393 (record_btrace_insn_history_from): Adjust range.
2394 (record_btrace_call_history_range): Include
2396 (record_btrace_call_history_from): Adjust range.
2397 * NEWS: Announce changes.
2399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2401 * record.h (enum record_print_flag)
2402 <record_print_indent_calls>: New.
2403 * record.c (get_call_history_modifiers): Recognize /c modifier.
2404 (_initialize_record): Document /c modifier.
2405 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2406 Reorder fields. Optionally indent the function name. Update
2408 * NEWS: Announce changes.
2410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2412 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2416 * btrace.c (ftrace_new_function): Start counting at one.
2417 * record-btrace.c (record_btrace_info): Adjust number of calls
2419 * NEWS: Announce it.
2421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2423 * record-btrace.c (btrace_call_history_insn_range): Print
2424 insn range as [begin, end].
2426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2428 * btrace.h (struct btrace_func_link): New.
2429 (enum btrace_function_flag): New.
2430 (struct btrace_inst): Rename to ...
2431 (struct btrace_insn): ...this. Update all users.
2432 (struct btrace_func) <ibegin, iend>: Remove.
2433 (struct btrace_func_link): New.
2434 (struct btrace_func): Rename to ...
2435 (struct btrace_function): ...this. Update all users.
2436 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2437 (number, level, flags>: New.
2438 (struct btrace_insn_iterator): Rename to ...
2439 (struct btrace_insn_history): ...this.
2441 (struct btrace_insn_iterator, btrace_call_iterator): New.
2442 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2443 (struct btrace_target_info) <begin, end, level>
2444 <insn_history, call_history>: New.
2445 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2446 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2447 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2448 (btrace_call_number, btrace_call_begin, btrace_call_end)
2449 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2450 (btrace_find_function_by_number, btrace_set_insn_history)
2451 (btrace_set_call_history): New.
2452 * btrace.c (btrace_init_insn_iterator)
2453 (btrace_init_func_iterator, compute_itrace): Remove.
2454 (ftrace_print_function_name, ftrace_print_filename)
2455 (ftrace_skip_file): Change
2457 (ftrace_init_func): Remove.
2458 (ftrace_debug): Use new btrace_function fields.
2459 (ftrace_function_switched): Also consider gaining and
2460 losing symbol information).
2461 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2462 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2463 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2465 (ftrace_new_function): Move. Remove debug print.
2466 (ftrace_update_lines, ftrace_update_insns): New.
2467 (ftrace_update_function): Check for call, ret, and jump.
2468 (compute_ftrace): Renamed to ...
2469 (btrace_compute_ftrace): ...this. Rewritten to compute call
2471 (btrace_fetch, btrace_clear): Updated.
2472 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2473 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2474 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2475 (btrace_call_number, btrace_call_begin, btrace_call_end)
2476 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2477 (btrace_find_function_by_number, btrace_set_insn_history)
2478 (btrace_set_call_history): New.
2479 * record-btrace.c (require_btrace): Use new btrace thread
2481 (record_btrace_info, btrace_insn_history)
2482 (record_btrace_insn_history, record_btrace_insn_history_range):
2483 Use new btrace thread info fields and new iterator.
2484 (btrace_func_history_src_line): Rename to ...
2485 (btrace_call_history_src_line): ...this. Use new btrace
2487 (btrace_func_history): Rename to ...
2488 (btrace_call_history): ...this. Use new btrace thread info
2489 fields and new iterator.
2490 (record_btrace_call_history, record_btrace_call_history_range):
2491 Use new btrace thread info fields and new iterator.
2493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2495 * frame.h (frame_id_build_unavailable_stack_special): New.
2496 * frame.c (frame_id_build_unavailable_stack_special): New.
2498 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2500 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2501 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2502 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2504 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2505 (i386_insn_is_jump, i386_jmp_p): New.
2506 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2507 insn_is_jump to gdbarch.
2508 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2509 * gdbarch.h: Regenerated.
2510 * gdbarch.c: Regenerated.
2511 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2512 (default_insn_is_jump): New.
2513 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2514 (default_insn_is_jump): New.
2516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2518 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2520 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2521 (btrace_read_type) <btrace_read_new>: Change to ...
2522 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2524 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2526 * common/linux-btrace.c (linux_read_btrace): Free trace from
2529 2014-01-15 Doug Evans <dje@google.com>
2531 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2534 2014-01-15 Tom Tromey <tromey@redhat.com>
2536 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2537 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2538 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2539 (set_objfile_main_name): New function.
2540 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2541 language_of_main>: New fields.
2542 (set_objfile_main_name): Declare.
2543 * symtab.c (find_main_name): Loop over objfiles to find the main
2545 (set_main_name): Now static.
2546 (get_main_info): Add comment.
2547 * symtab.h (set_main_name): Don't declare.
2549 2014-01-15 Tom Tromey <tromey@redhat.com>
2551 * symtab.c (main_progspace_key): New global.
2552 (struct main_info): New.
2553 (name_of_main, language_of_main): Remove.
2554 (get_main_info, main_info_cleanup): New function.
2555 (set_main_name, main_name, main_language): Use get_main_info.
2556 (_initialize_symtab): Initialize main_progspace_key.
2558 2014-01-15 Tom Tromey <tromey@redhat.com>
2560 * dbxread.c (process_one_symbol): Update.
2561 * dwarf2read.c (read_partial_die): Update.
2562 * symfile.c (set_initial_language): Call main_language.
2563 * symtab.c (language_of_main): Now static.
2564 (set_main_name): Add 'lang' parameter.
2565 (find_main_name): Update.
2566 (main_language): New function.
2567 (symtab_observer_executable_changed): Update.
2568 * symtab.h (set_main_name): Update.
2569 (language_of_main): Remove.
2570 (main_language): Declare.
2572 2014-01-15 Tom Tromey <tromey@redhat.com>
2574 * symfile.c (init_entry_point_info): Use new "initialized" field.
2576 * objfiles.h (struct entry_point) <initialized>: New field.
2577 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2578 (struct objfile) <ei>: ...here. Remove.
2579 * objfiles.c (entry_point_address_query): Update.
2581 2014-01-15 Tom Tromey <tromey@redhat.com>
2583 * objfiles.c (entry_point_address_query): Relocate entry point
2585 (objfile_relocate1): Do not relocate entry point address.
2586 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2587 <the_bfd_section_index>: New field.
2588 * symfile.c (init_entry_point_info): Find the entry point's
2591 2014-01-15 Tom Tromey <tromey@redhat.com>
2593 * solib-frv.c (enable_break): Use entry_point_address_query.
2595 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2597 * NEWS: Add note on improved process record-replay on
2598 arm*-linux* targets.
2600 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2602 * arm-tdep.c (enum arm_record_result): New enum.
2603 (arm_record_unsupported_insn): New function.
2604 (arm_record_coproc_data_proc): Removed.
2605 (thumb2_record_ld_st_multiple): New function.
2606 (thumb2_record_ld_st_dual_ex_tbb): New function.
2607 (thumb2_record_data_proc_sreg_mimm): New function.
2608 (thumb2_record_ps_dest_generic): New function.
2609 (thumb2_record_branch_misc_cntrl): New function.
2610 (thumb2_record_str_single_data): New function.
2611 (thumb2_record_ld_mem_hints): New function.
2612 (thumb2_record_ld_word): New function.
2613 (thumb2_record_lmul_lmla_div): New function.
2614 (thumb2_record_decode_insn_handler): New function.
2615 (decode_insn): Add thumb32 instruction handlers.
2617 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2619 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2620 (struct arm_linux_record_tdep): Declare.
2621 (arm_canonicalize_syscall): New function.
2622 (arm_all_but_pc_registers_record): New function.
2623 (arm_linux_syscall_record): New function.
2624 (arm_linux_init_abi): Add syscall recording constructs.
2625 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2626 decoding. (arm_record_coproc_data_proc): Update arm syscall
2628 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2629 <arm_syscall_record>: New field.
2630 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2633 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2635 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2636 register for push instruction recording.
2638 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2640 * arm-tdep.c (thumb_record_misc): Update to correct logical
2641 error while recording ldm, ldmia and pop instructions.
2643 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2645 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2647 2014-01-15 Pedro Alves <palves@redhat.com>
2649 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2650 (go32_resume, go32_fetch_registers, store_register)
2651 (go32_store_registers, go32_prepare_to_store)
2652 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2653 (go32_create_inferior, go32_can_run, go32_terminal_init)
2654 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2657 2014-01-15 Tom Tromey <tromey@redhat.com>
2659 * target.h (async_callback_ftype): New typedef.
2660 (struct target_ops) <to_async>: Use it.
2662 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2664 * python/py-value.c (get_field_type): Remove unnecessary curly
2665 braces for single-statement if block.
2667 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2669 * python/py-type.c (convert_field): Add missing empty line
2672 2014-01-14 Doug Evans <dje@google.com>
2674 * symfile.h (expand_symtabs_matching): Renamed from
2675 expand_partial_symbol_names. Update prototype.
2676 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2677 * symfile.c (expand_symtabs_matching): Renamed from
2678 expand_partial_symbol_names. New args file_matcher, kind.
2679 Rename arg fun to symbol_matcher.
2680 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2681 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2682 ada_expand_partial_symbol_name.
2683 (ada_make_symbol_completion_list): Update to call
2684 expand_symtabs_matching.
2685 (ada_add_global_exceptions): Call expand_symtabs_matching.
2686 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2687 call map_symbol_filenames.
2688 * symtab.c (sources_info): Update to call map_symbol_filenames.
2689 (search_symbols): Call expand_symtabs_matching.
2690 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2691 (default_make_symbol_completion_list_break_on): Update to call
2692 expand_symtabs_matching.
2693 (make_source_files_completion_list): Update to call
2694 map_symbol_filenames.
2696 2014-01-14 Doug Evans <dje@google.com>
2698 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2699 (expand_symtabs_symbol_matcher_ftype): New typedef.
2700 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2701 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2702 * symfile.c (expand_partial_symbol_names): Update to use
2703 expand_symtabs_symbol_matcher_ftype.
2704 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2705 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2706 Arg name_matcher renamed to symbol_matcher.
2707 * psymtab.c (recursively_search_psymtabs): Update to use
2708 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2710 (expand_symtabs_matching_via_partial): Update to use
2711 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2712 Arg name_matcher renamed to symbol_matcher.
2714 2014-01-14 Doug Evans <dje@google.com>
2716 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2717 (map_partial_symbol_filenames): Ditto.
2718 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2719 (map_partial_symbol_filenames): Ditto.
2720 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2721 (map_partial_symbol_filenames): Ditto.
2722 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2723 (map_partial_symbol_filenames): Ditto.
2724 * symtab.c: Delete #include "psymtab.h".
2726 2014-01-14 Pedro Alves <palves@redhat.com>
2727 Tom Tromey <tromey@redhat.com>
2729 * infrun.c (use_displaced_stepping): Use find_record_target
2730 instead of RECORD_IS_USED.
2731 (adjust_pc_after_break): Use record_full_is_used instead of
2733 * record-btrace.c (record_btrace_open): Call record_preopen
2734 instead of checking RECORD_IS_USED.
2735 * record-full.c (record_full_shortname)
2736 (record_full_core_shortname): New globals.
2737 (record_full_is_used): New function.
2738 (find_full_open): Call record_preopen instead of checking
2740 (init_record_full_ops): Set the target's shortname to
2741 record_full_shortname.
2742 (init_record_full_core_ops): Set the target's shortname to
2743 record_full_core_shortname.
2744 * record-full.h (record_full_is_used): Declare.
2745 * record.c (find_record_target): Make extern.
2746 (record_preopen): New function.
2747 * record.h (RECORD_IS_USED): Delete macro.
2748 (find_record_target, record_preopen): Declare functions.
2750 2014-01-14 Yao Qi <yao@codesourcery.com>
2752 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2753 'len''s type to ULONGEST.
2754 (core_xfer_shared_libraries_aix): Likewise.
2755 * gdbarch.c, gdbarch.h: Regenerated.
2756 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2757 Change type of 'len' to ULONGEST.
2758 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2759 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2761 2014-01-14 Yao Qi <yao@codesourcery.com>
2763 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2764 type of 'len' to ULONGEST.
2765 (linux_xfer_osdata_processgroups): Likewise.
2766 (linux_xfer_osdata_threads): Likewise.
2767 (linux_xfer_osdata_fds): Likewise.
2768 (linux_xfer_osdata_isockets): Likewise.
2769 (linux_xfer_osdata_shm): Likewise.
2770 (linux_xfer_osdata_sem): Likewise.
2771 (linux_xfer_osdata_msg): Likewise.
2772 (linux_common_xfer_osdata): Likewise.
2773 (struct osdata_type) <getter>: Likewise.
2774 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2777 2014-01-14 Yao Qi <yao@codesourcery.com>
2779 * target.h (target_xfer_partial_ftype): Update.
2780 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2782 * aix-thread.c (aix_thread_xfer_partial): Change type of
2783 argument 'len' to ULONGEST.
2784 * auxv.c (procfs_xfer_auxv): Likewise.
2785 (ld_so_xfer_auxv): Likewise.
2786 (memory_xfer_auxv): Likewise.
2787 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2788 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2789 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2790 * corelow.c (core_xfer_partial): Likewise.
2791 * ctf.c (ctf_xfer_partial): Likewise.
2792 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2794 (darwin_read_dyld_info): Likewise.
2795 (darwin_xfer_partial): Likewise.
2796 * exec.c (section_table_xfer_memory_partial): Likewise.
2797 (exec_xfer_partial): Likewise.
2798 * exec.h (section_table_xfer_memory_partial): Update
2800 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2801 instead of plongest.
2802 (gnu_xfer_partial): Likewise.
2803 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2804 (ia64_hpux_xfer_solib_got): Likewise.
2805 (ia64_hpux_xfer_partial): Likewise.
2806 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2807 * inf-ptrace.c (inf_ptrace_xfer_partial):
2808 * inf-ttrace.c (inf_ttrace_xfer_partial):
2809 * linux-nat.c (linux_xfer_siginfo): Likewise.
2810 (linux_nat_xfer_partial): Likewise.
2811 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2812 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2813 * monitor.c (monitor_xfer_memory): Likewise.
2814 (monitor_xfer_partial): Likewise.
2815 * procfs.c (procfs_xfer_partial): Likewise.
2816 * record-full.c (record_full_xfer_partial): Likewise.
2817 (record_full_core_xfer_partial): Likewise.
2818 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2819 instead of plongest.
2820 (gdbsim_xfer_partial): Likewise.
2821 * remote.c (remote_xfer_partial): Likewise.
2822 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2823 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2825 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2826 (rs6000_xfer_shared_libraries): Likewise.
2827 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2828 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2829 (sparc_xfer_partial): Likewise.
2830 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2831 (spu_xfer_partial): Likewise.
2832 * spu-multiarch.c (spu_xfer_partial): Likewise.
2833 * target.c (target_read_live_memory): Likewise.
2834 (memory_xfer_live_readonly_partial): Likewise.
2835 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2836 (target_xfer_partial, default_xfer_partial): Likewise.
2837 (current_xfer_partial): Likewise.
2838 * tracepoint.c (tfile_xfer_partial): Likewise.
2839 * windows-nat.c (windows_xfer_memory): Likewise. Call
2840 pulongest instead of plongest.
2841 (windows_xfer_partial): Likewise.
2842 (windows_xfer_shared_libraries): Likewise.
2844 2014-01-14 Yao Qi <yao@codesourcery.com>
2846 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2847 target_xfer_partial_ftype.
2849 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2853 * valops.c (value_struct_elt_bitpos): New function
2854 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2855 object to 'None' if the field name is an empty string ("").
2856 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2857 attribute to look for a field when 'name' is 'None'.
2858 (get_field_type): New function
2860 2014-01-13 Doug Evans <dje@google.com>
2863 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2864 (try_open_dwop_file): Ditto.
2865 * gdb_bfd.c: #include "vec.h".
2866 (bfdp): New typedef.
2867 (struct gdb_bfd_data): New member included_bfds.
2868 (gdb_bfd_unref): Unref all included bfds.
2869 (gdb_bfd_record_inclusion): New function.
2870 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2872 2014-01-13 Tom Tromey <tromey@redhat.com>
2874 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2876 2014-01-13 Tom Tromey <tromey@redhat.com>
2878 * defs.h (use_windows): Remove.
2879 * gdb.c (main): Update.
2880 * main.c (captured_main, gdb_main): Update.
2881 * main.h (struct captured_main_args) <use_windows>: Remove.
2882 * top.c (use_windows): Remove.
2884 2014-01-13 Tom Tromey <tromey@redhat.com>
2886 * defs.h (deprecated_flush_hook): Remove.
2888 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2891 * linux-thread-db.c (try_thread_db_load): Add parameter
2892 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2893 (try_thread_db_load_from_pdir_1): Move it there from here.
2894 (try_thread_db_load_from_sdir): Update caller.
2895 (try_thread_db_load_from_dir): Move it there from here.
2897 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2899 * regformats/regdat.sh: Always rewrite the register file.
2901 2014-01-13 Pedro Alves <palves@redhat.com>
2903 * Makefile.in (CHECK_HEADERS): New variable.
2904 (check-headers:): New rule.
2906 2014-01-13 Tom Tromey <tromey@redhat.com>
2908 * cli/cli-setshow.c (do_set_command): Update.
2909 * defs.h (deprecated_set_hook): Remove.
2910 * top.c (deprecated_set_hook): Remove.
2912 2014-01-13 Pedro Alves <palves@redhat.com>
2914 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2915 the tracepoint if the PC is a pseudo-register.
2917 2014-01-13 Tom Tromey <tromey@redhat.com>
2919 * defs.h (XCALLOC): Remove.
2920 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2921 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2922 * dwarf2loc.c (allocate_piece_closure): Likewise.
2923 * elfread.c (elf_symfile_segments): Likewise.
2924 (elf_symfile_segments): Likewise.
2925 * gdbtypes.c (copy_type_recursive): Likewise.
2926 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2927 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2928 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2930 * mt-tdep.c (mt_gdbarch_init): Likewise.
2931 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2933 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2934 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2935 * registry.c (registry_alloc_data): Likewise.
2936 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2937 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2938 * serial.c (serial_fdopen_ops): Likewise.
2939 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2941 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2942 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2945 2014-01-13 Tom Tromey <tromey@redhat.com>
2947 * defs.h (XMALLOC): Remove.
2948 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2949 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2950 * cli-out.c (struct ui_out *): Likewise.
2951 * cli/cli-dump.c (add_dump_command): Likewise.
2952 (add_dump_command): Likewise.
2953 * complaints.c (get_complaints): Likewise.
2954 (find_complaint): Likewise.
2955 * dwarf2-frame.c (execute_cfa_program): Likewise.
2956 * dwarf2read.c (abbrev_table_read_table): Likewise.
2957 * gdbarch.sh: Likewise.
2958 * gdbarch.c: Rebuild.
2959 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2960 * interps.c (interp_new): Likewise.
2961 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2962 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2963 * mi/mi-console.c (mi_console_file_new): Likewise.
2964 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2965 * mi/mi-out.c (mi_out_new): Likewise.
2966 * mi/mi-parse.c (mi_parse): Likewise.
2967 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2968 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2969 * observer.c (xalloc_observer_list_node): Likewise.
2970 * regcache.c (regcache_xmalloc_1): Likewise.
2971 * reggroups.c (reggroup_new): Likewise.
2972 (_initialize_reggroup): Likewise.
2973 * registry.c (register_data_with_cleanup): Likewise.
2974 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2975 * ser-base.c (serial_ttystate): Likewise.
2976 * ser-mingw.c (make_pipe_state): Likewise.
2977 * ser-pipe.c (pipe_open): Likewise.
2978 * serial.c (serial_open): Likewise.
2979 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2980 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2981 (tui_alloc_win_info): Likewise.
2982 (tui_add_content_elements): Likewise.
2983 * tui/tui-file.c (tui_file_new): Likewise.
2984 * tui/tui-out.c (tui_out_new): Likewise.
2985 * ui-file.c (mem_file_new): Likewise.
2986 * ui-out.c (push_level): Likewise.
2987 (make_cleanup_ui_out_end): Likewise.
2988 (append_header_to_list): Likewise.
2989 (ui_out_new): Likewise.
2990 * user-regs.c (user_reg_add_builtin): Likewise.
2992 2014-01-13 Tom Tromey <tromey@redhat.com>
2994 * defs.h (XZALLOC): Remove.
2995 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2996 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2997 (get_ada_tasks_inferior_data): Likewise.
2998 * auto-load.c (get_auto_load_pspace_data): Likewise.
2999 * auxv.c (get_auxv_inferior_data): Likewise.
3000 * bfd-target.c (target_bfd_reopen): Likewise.
3001 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3002 (deprecated_insert_raw_breakpoint): Likewise.
3003 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3004 * corelow.c (core_open): Likewise.
3005 * darwin-nat.c (darwin_check_new_threads): Likewise.
3006 (darwin_attach_pid): Likewise.
3007 * dummy-frame.c (dummy_frame_push): Likewise.
3008 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3009 * dwarf2loc.c (allocate_piece_closure): Likewise.
3010 * elfread.c (elf_symfile_segments): Likewise.
3011 * eval.c (ptrmath_type_p): Likewise.
3012 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3013 * gdbtypes.c (alloc_type_arch): Likewise.
3014 (alloc_type_instance): Likewise.
3015 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3016 * inf-child.c (inf_child_can_use_agent): Likewise.
3017 * inflow.c (get_inflow_inferior_data): Likewise.
3018 * infrun.c (save_infcall_suspend_state): Likewise.
3019 * jit.c (jit_reader_load): Likewise.
3020 (get_jit_objfile_data): Likewise.
3021 (get_jit_program_space_data): Likewise.
3022 (jit_object_open_impl): Likewise.
3023 (jit_symtab_open_impl): Likewise.
3024 (jit_block_open_impl): Likewise.
3025 (jit_frame_sniffer): Likewise.
3026 * linux-fork.c (add_fork): Likewise.
3027 * maint.c (make_command_stats_cleanup): Likewise.
3028 * objfiles.c (get_objfile_pspace_data): Likewise.
3029 * opencl-lang.c (struct lval_closure): Likewise.
3030 * osdata.c (osdata_start_osdata): Likewise.
3031 * progspace.c (new_address_space): Likewise.
3032 (add_program_space): Likewise.
3033 * remote-sim.c (get_sim_inferior_data): Likewise.
3034 * sh-tdep.c (sh_gdbarch_init): Likewise.
3035 * skip.c (Ignore): Likewise.
3036 (skip_delete_command): Likewise.
3037 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3038 (library_list_start_library): Likewise.
3039 (solib_aix_current_sos): Likewise.
3040 * solib-darwin.c (get_darwin_info): Likewise.
3041 (darwin_current_sos): Likewise.
3042 * solib-dsbt.c (get_dsbt_info): Likewise.
3043 * solib-ia64-hpux.c (new_so_list): Likewise.
3044 (ia64_hpux_get_solib_linkage_addr): Likewise.
3045 * solib-spu.c (append_ocl_sos): Likewise.
3046 (spu_current_sos): Likewise.
3047 * solib-svr4.c (get_svr4_info): Likewise.
3048 (svr4_keep_data_in_core): Likewise.
3049 (library_list_start_library): Likewise.
3050 (svr4_default_sos): Likewise.
3051 (svr4_read_so_list): Likewise.
3052 * solib-target.c (library_list_start_library): Likewise.
3053 (solib_target_current_sos): Likewise.
3054 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3055 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3056 * symfile.c (default_symfile_segments): Likewise.
3057 * target-descriptions.c (tdesc_data_init): Likewise.
3058 (tdesc_create_reg): Likewise.
3059 (struct tdesc_type *): Likewise.
3060 (tdesc_create_vector): Likewise.
3061 (tdesc_set_struct_size): Likewise.
3062 (struct tdesc_type *): Likewise.
3063 (tdesc_free_feature): Likewise.
3064 (tdesc_create_feature): Likewise.
3065 * windows-nat.c (windows_add_thread): Likewise.
3066 (windows_make_so): Likewise.
3067 * xml-support.c (gdb_xml_body_text): Likewise.
3068 (gdb_xml_create_parser_and_cleanup): Likewise.
3069 (xml_process_xincludes): Likewise.
3070 * xml-syscall.c (allocate_syscalls_info): Likewise.
3071 (syscall_create_syscall_desc): Likewise.
3073 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3075 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3076 function, with code from i386_stap_parse_special_token.
3077 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3078 (i386_stap_parse_special_token): Move code to the two functions
3081 2014-01-09 Pedro Alves <palves@redhat.com>
3082 Hui Zhu <hui@codesourcery.com>
3085 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3086 bp_err_string. Don't mark the location shlib_disabled if the
3087 error thrown wasn't a generic or memory error. Catch errors
3088 thrown while inserting breakpoints in overlayed code. Output
3089 error message of software breakpoints.
3090 * remote.c (remote_insert_breakpoint): If this breakpoint has
3091 target-side commands but this stub doesn't support Z0 packets,
3092 throw NOT_SUPPORTED_ERROR error.
3093 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3094 * target.h (target_insert_breakpoint): Extend comment.
3095 (target_insert_hw_breakpoint): Add comment.
3097 2014-01-08 Pedro Alves <palves@redhat.com>
3099 * remote.c (remote_add_thread): Add threads silently if starting
3101 (remote_notice_new_inferior): If in all-stop, and starting up,
3102 don't call notice_new_inferior.
3103 (get_current_thread): New function, factored out from ...
3104 (add_current_inferior_and_thread): ... this. Adjust.
3105 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3106 found any thread, then select the remote's current thread as GDB's
3109 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3111 * NEWS: Create a new section for the next release branch.
3112 Rename the section of the current branch, now that it has
3115 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3117 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3118 * version.in: Bump version to 7.7.50.DATE-cvs.
3120 2014-01-08 Yao Qi <yao@codesourcery.com>
3122 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3123 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3124 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3126 2014-01-08 Yao Qi <yao@codesourcery.com>
3128 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3129 return value of bfd_get_filename to symbol_file_add_from_bfd.
3131 2014-01-08 Pierre Muller <muller@sourceware.org>
3134 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3135 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3136 to prim_record_mininal_symbol_and_info.
3137 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3138 in call to prim_record_minimal_symbol_and_info.
3139 (read_pe_exported_syms): Set index field of section_data.
3141 2014-01-07 Andrew Pinski <apinski@cavium.com>
3143 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3144 * features/aarch64.c: Regenerate.
3146 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3148 * target.c (return_null): Define.
3149 (update_current_target): Use it instead of return_zero for
3150 functions that return a pointer.
3152 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3154 * source.c (add_path): Fix check for duplicated paths in the previously
3157 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3159 * ada-lang.c: Remove duplicated include statements.
3160 * alphabsd-nat.c: Ditto.
3161 * amd64-darwin-tdep.c: Ditto.
3162 * amd64fbsd-nat.c: Ditto.
3163 * auto-load.c: Ditto.
3165 * breakpoint.c: Ditto.
3167 * fork-child.c: Ditto.
3168 * gdb_usleep.c: Ditto.
3169 * i386-darwin-tdep.c: Ditto.
3170 * i386fbsd-nat.c: Ditto.
3172 * inferior.c: Ditto.
3174 * linux-nat.c: Ditto.
3175 * linux-tdep.c: Ditto.
3176 * m68kbsd-nat.c: Ditto.
3177 * m68klinux-nat.c: Ditto.
3178 * microblaze-tdep.c: Ditto.
3179 * mips-linux-tdep.c: Ditto.
3180 * mn10300-tdep.c: Ditto.
3181 * nto-tdep.c: Ditto.
3182 * opencl-lang.c: Ditto.
3184 * printcmd.c: Ditto.
3185 * regcache.c: Ditto.
3186 * remote-m32r-sdi.c: Ditto.
3190 * tilegx-linux-nat.c: Ditto.
3191 * tilegx-tdep.c: Ditto.
3192 * tracepoint.c: Ditto.
3194 * vaxbsd-nat.c: Ditto.
3195 * windows-nat.c: Ditto.
3196 * xtensa-tdep.c: Ditto.
3198 2014-01-07 Yao Qi <yao@codesourcery.com>
3200 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3202 2014-01-07 Yao Qi <yao@codesourcery.com>
3203 Joel Brobecker <brobecker@adacore.com>
3205 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3206 (pdc_write_regs): Likewise.
3207 (fetch_regs_kernel_thread): Likewise.
3208 (store_regs_kernel_thread): Likewise.
3210 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3212 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3213 tagged type objects to their actual type.
3215 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3217 * ada-valprint.c (print_field_values): Add "language" parameter.
3218 Update calls to print_field_values and print_variant_part.
3219 Pass new parameter "language" in call to val_print instead
3220 of "current_language". Replace call to ada_val_print by call
3222 (print_variant_part): Add "language" parameter.
3223 (ada_val_print_struct_union): Update call to print_field_values.
3225 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3227 * ada-valprint.c (ui_memcpy): Delete.
3228 (ada_print_floating): Update documentation. Add empty line
3229 between between function documentation and implementation.
3230 Delete variable "buffer". Use ui_file_xstrdup in place of
3231 ui_file_put. Minor adjustments following this change.
3233 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3235 * ada-valprint.c (ada_val_print_string): New function,
3236 extracted from ada_val_print_array.
3237 (ada_val_print_array): Replace extracted code by call
3238 to ada_val_print_string followed by a return. Move
3239 "else" branch to the function's top block.
3241 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3243 * ada-valprint.c (ada_val_print_array): Move implementation
3244 down. Rename parameter "offset" and "val" into "offset_aligned"
3245 and "original_value" respectively. Add parameter "offset".
3247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3249 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3250 re-organizing the code. Change the "???" message printed
3251 when target type is a TYPE_CODE_UNDEF into
3252 "<ref to undefined type>".
3254 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3256 * ada-valprint.c (print_record): Delete, implementation inlined...
3257 (ada_val_print_struct_union): ... here. Remove call to
3258 ada_check_typedef in inlined implementation.
3260 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3262 * ada-valprint.c (ada_val_print_gnat_array): New function,
3263 extracted from ada_val_print_1;
3264 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3265 (ada_val_print_flt, ada_val_print_struct_union)
3266 (ada_val_print_ref): Likewise.
3267 (ada_val_print_1): Delete variables i and elttype.
3268 Replace extracted-out code by call to corresponding
3271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3273 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3275 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3277 * ada-valprint.c (ada_val_print_1): Replace calls to
3278 ada_val_print_1 by calls to val_print.
3280 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3282 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3283 Update calls to self accordingly. Replace calls to c_val_print
3284 by calls to val_print.
3286 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3288 * ada-valprint.c (print_record): Delete declaration.
3289 (adjust_type_signedness, ada_val_print_1): Likewise.
3290 (ada_val_print): Move function implementation down.
3291 (print_variant_part, print_field_values, print_record):
3292 Move function implementation up.
3294 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3296 * python/py-type.c (typy_get_name): New function.
3297 (type_object_getset): Add entry for attribute "name".
3298 * NEWS: Add entry mentioning this new attribute.
3300 2014-01-07 Yao Qi <yao@codesourcery.com>
3302 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3305 2014-01-07 Yao Qi <yao@codesourcery.com>
3307 * gnu-nat.c (info_port_rights): Add qualifier const to
3310 2014-01-07 Yao Qi <yao@codesourcery.com>
3312 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3314 2014-01-07 Yao Qi <yao@codesourcery.com>
3316 * gnu-nat.c (make_inf) Update declaration.
3317 (make_inf): Make it static.
3318 (inf_set_traced): Likewise.
3319 (inf_port_to_thread, inf_task_died_status): Likewise.
3321 2014-01-07 Yao Qi <yao@codesourcery.com>
3323 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3325 2014-01-07 Yao Qi <yao@codesourcery.com>
3327 * gnu-nat.c (_initialize_gnu_nat): Declare.
3329 2014-01-07 Yao Qi <yao@codesourcery.com>
3331 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3333 (struct gdbarch_info) <byte_order>: Change type to
3335 <byte_order_for_code>: Likewise.
3336 * gdbarch.c, gdbarch.h: Regenerated.
3338 2014-01-06 Sasha Smundak <asmundak@google.com>
3340 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3342 2014-01-06 Tom Tromey <tromey@redhat.com>
3344 * doublest.c (convert_doublest_to_floatformat): Use const, not
3346 * somread.c (som_symtab_read): Likewise.
3348 2014-01-07 Hui Zhu <hui@codesourcery.com>
3350 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3351 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3352 (gdb_bfd_fopen): Ditto.
3353 (gdb_bfd_openr): Ditto.
3354 (gdb_bfd_openw): Ditto.
3355 (gdb_bfd_openr_iovec): Ditto.
3356 (gdb_bfd_fdopenr): Ditto.
3357 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3358 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3360 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3362 * symfile-mem.c (symbol_file_add_from_memory): Removed
3363 gdb_bfd_stash_filename.
3365 2014-01-03 Doug Evans <dje@google.com>
3367 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3370 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3372 Update year range in copyright notice of all files.
3374 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3376 * top.c (print_gdb_version): Set copyright year to 2014.
3378 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3380 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3382 For older changes see ChangeLog-2013.
3388 version-control: never