1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6 (target_get_ada_task_ptid): Add argument.
7 * target.c (update_current_target): Update.
8 (default_get_ada_task_ptid): Add 'self' argument.
9 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
15 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
17 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
19 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
20 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
23 2014-02-19 Tom Tromey <tromey@redhat.com>
25 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
26 (target_goto_bookmark): Add argument.
27 * target.c (dummy_goto_bookmark): Add 'self' argument.
28 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
30 2014-02-19 Tom Tromey <tromey@redhat.com>
32 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
33 (target_get_bookmark): Add argument.
34 * target.c (dummy_get_bookmark): Add 'self' argument.
35 * record-full.c (record_full_get_bookmark): Add 'self' argument.
37 2014-02-19 Tom Tromey <tromey@redhat.com>
39 * target.h (struct target_ops) <to_make_corefile_notes>: Add
41 (target_make_corefile_notes): Add argument.
42 * target.c (dummy_make_corefile_notes): Add 'self' argument.
43 * procfs.c (procfs_make_note_section): Add 'self' argument.
44 (procfs_make_note_section): Add 'self' argument.
45 (procfs_make_note_section): Add 'self' argument.
46 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
48 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
49 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
50 * exec.c (exec_make_note_section): Add 'self' argument.
51 (exec_make_note_section): Add 'self' argument.
53 2014-02-19 Tom Tromey <tromey@redhat.com>
55 * target.h (struct target_ops) <to_find_memory_regions>: Add
57 (target_find_memory_regions): Add argument.
58 * target.c (dummy_find_memory_regions): Add 'self' argument.
59 * procfs.c (proc_find_memory_regions): Add 'self' argument.
60 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
61 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
62 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
63 * exec. (exec_do_find_memory_regions): New global.
64 (exec_set_find_memory_regions): Rewrite.
65 (exec_find_memory_regions): New function.
66 (init_exec_ops): Use exec_find_memory_regions.
68 2014-02-19 Tom Tromey <tromey@redhat.com>
70 * target.h (struct target_ops) <to_supports_non_stop>: Add
72 * target.c (find_default_supports_non_stop): Add argument.
73 (target_supports_non_stop): Add argument.
74 (find_default_supports_non_stop): Add 'self' argument.
75 * remote.c (remote_supports_non_stop): Add 'self' argument.
76 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
78 2014-02-19 Tom Tromey <tromey@redhat.com>
80 * target.h (struct target_ops) <to_log_command>: Add argument.
81 (target_log_command): Add argument.
82 * serial.h (serial_log_command): Add 'self' argument.
83 * serial.c (serial_log_command): Add 'self' argument.
85 2014-02-19 Tom Tromey <tromey@redhat.com>
87 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
88 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
90 (target_pid_to_exec_file): Add argument.
91 * target.c (debug_to_pid_to_exec_file): Add argument.
92 (update_current_target): Update.
93 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
94 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
95 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
96 (linux_handle_extended_wait): Update.
97 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
98 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
99 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
100 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
102 2014-02-19 Tom Tromey <tromey@redhat.com>
104 * target.h (struct target_ops) <to_rcmd>: Add argument.
105 (target_rcmd): Add argument.
106 * target.c (debug_to_rcmd): Add argument.
107 (update_current_target, do_monitor_command): Update.
108 * remote.c (remote_rcmd): Add 'self' argument.
109 * monitor.c (monitor_rcmd): Add 'self' argument.
111 2014-02-19 Tom Tromey <tromey@redhat.com>
113 * windows-nat.c (windows_stop): Add 'self' argument.
114 * target.h (struct target_ops) <to_stop>: Add argument.
115 * target.c (target_stop): Add argument.
116 (debug_to_stop): Add argument.
117 (update_current_target): Update.
118 * remote.c (remote_stop): Add 'self' argument.
119 * remote-sim.c (gdbsim_stop): Add 'self' argument.
120 (gdbsim_cntrl_c): Update.
121 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
122 * procfs.c (procfs_stop): Add 'self' argument.
123 * nto-procfs.c (procfs_stop): Add 'self' argument.
124 * monitor.c (monitor_stop): Add 'self' argument.
125 (monitor_open): Update.
126 * linux-nat.c (linux_nat_stop): Add argument.
127 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
128 * gnu-nat.c (gnu_stop): Add 'self' argument.
129 * darwin-nat.c (darwin_stop): Add 'self' argument.
131 2014-02-19 Tom Tromey <tromey@redhat.com>
133 * target.h (struct target_ops) <to_thread_name>: Add argument.
134 * target.c (target_thread_name): Add argument.
135 (update_current_target): Update.
136 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
138 2014-02-19 Tom Tromey <tromey@redhat.com>
140 * target.h (struct target_ops) <to_extra_thread_info>: Add
142 (target_extra_thread_info): Add argument.
143 * target.c (update_current_target): Update.
144 * remote.c (remote_threads_extra_info): Add 'self' argument.
145 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
147 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
148 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
149 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
151 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
153 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
155 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
158 2014-02-19 Tom Tromey <tromey@redhat.com>
160 * target.h (struct target_ops) <to_program_signals>: Add argument.
161 * target.c (target_program_signals): Add argument.
162 * remote.c (remote_program_signals): Add 'self' argument.
164 2014-02-19 Tom Tromey <tromey@redhat.com>
166 * target.h (struct target_ops) <to_pass_signals>: Add argument.
167 * target.c (target_pass_signals): Add argument.
168 * remote.c (remote_pass_signals): Add 'self' argument.
169 (remote_start_remote): Update.
170 * procfs.c (procfs_pass_signals): Add 'self' argument.
171 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
172 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
173 (linux_nat_create_inferior, linux_nat_attach): Update.
175 2014-02-19 Tom Tromey <tromey@redhat.com>
177 * windows-nat.c (windows_can_run): Add 'self' argument.
178 * target.h (struct target_ops) <to_can_run>: Add argument.
179 (target_can_run): Add argument.
180 * target.c (debug_to_can_run): Add argument.
181 (update_current_target): Update.
182 * nto-procfs.c (procfs_can_run): Add 'self' argument.
183 * inf-child.c (inf_child_can_run): Add 'self' argument.
184 * go32-nat.c (go32_can_run): Add 'self' argument.
186 2014-02-19 Tom Tromey <tromey@redhat.com>
188 * target.h (struct target_ops) <to_has_exited>: Add argument.
189 (target_has_exited): Add argument.
190 * target.c (debug_to_has_exited): Add argument.
191 (update_current_target): Update.
193 2014-02-19 Tom Tromey <tromey@redhat.com>
195 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
197 (target_set_syscall_catchpoint): Add argument.
198 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
200 * target.c (update_current_target): Update.
202 2014-02-19 Tom Tromey <tromey@redhat.com>
204 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
206 (target_remove_exec_catchpoint): Add argument.
207 * target.c (debug_to_remove_exec_catchpoint): Add argument.
208 (update_current_target): Update.
209 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
212 2014-02-19 Tom Tromey <tromey@redhat.com>
214 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
216 (target_insert_exec_catchpoint): Add argument.
217 * target.c (debug_to_insert_exec_catchpoint): Add argument.
218 (update_current_target): Update.
219 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
222 2014-02-19 Tom Tromey <tromey@redhat.com>
224 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
226 (target_remove_vfork_catchpoint): Add argument.
227 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
228 (update_current_target): Update.
229 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
232 2014-02-19 Tom Tromey <tromey@redhat.com>
234 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
236 (target_insert_vfork_catchpoint): Add argument.
237 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
238 (update_current_target): Update.
239 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
242 2014-02-19 Tom Tromey <tromey@redhat.com>
244 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
246 (target_remove_fork_catchpoint): Add argument.
247 * target.c (debug_to_remove_fork_catchpoint): Add argument.
248 (update_current_target): Update.
249 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
252 2014-02-19 Tom Tromey <tromey@redhat.com>
254 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
256 (target_insert_fork_catchpoint): Add argument.
257 * target.c (debug_to_insert_fork_catchpoint): Add argument.
258 (update_current_target): Update.
259 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
262 2014-02-19 Tom Tromey <tromey@redhat.com>
264 * target.h (struct target_ops) <to_post_startup_inferior>: Add
266 (target_post_startup_inferior): Add argument.
267 * target.c (debug_to_post_startup_inferior): Add argument.
268 (update_current_target): Update.
269 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
271 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
273 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
275 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
277 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
279 (super_post_startup_inferior): Likewise.
280 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
282 (super_post_startup_inferior): Likewise.
283 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
285 (super_post_startup_inferior): Likewise.
287 2014-02-19 Tom Tromey <tromey@redhat.com>
289 * target.h (struct target_ops) <to_load>: Add argument.
290 * target.c (target_load): Add argument.
291 (debug_to_load): Add argument.
292 (update_current_target): Update.
293 * remote.c (remote_load): Add 'self' argument.
294 * remote-sim.c (gdbsim_load): Add 'self' argument.
295 * remote-mips.c (mips_load): Add 'self' argument.
296 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
297 * monitor.c (monitor_load): Add 'self' argument.
298 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
300 2014-02-19 Tom Tromey <tromey@redhat.com>
302 * target.h (struct target_ops) <to_terminal_info>: Add argument.
303 (target_terminal_info): Add argument.
304 * target.c (debug_to_terminal_info): Add argument.
305 (default_terminal_info): Likewise.
306 * inflow.c (child_terminal_info): Add 'self' argument.
307 * inferior.h (child_terminal_info): Add 'self' argument.
308 * go32-nat.c (go32_terminal_info): Add 'self' argument.
310 2014-02-19 Tom Tromey <tromey@redhat.com>
312 * target.h (struct target_ops) <to_terminal_save_ours>: Add
314 (target_terminal_save_ours): Add argument.
315 * target.c (debug_to_terminal_save_ours): Add argument.
316 (update_current_target): Update.
317 * inflow.c (terminal_save_ours): Add 'self' argument.
318 * inferior.h (terminal_save_ours): Add 'self' argument.
320 2014-02-19 Tom Tromey <tromey@redhat.com>
322 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
323 (target_terminal_ours): Add argument.
324 * target.c (debug_to_terminal_ours): Add argument.
325 (update_current_target): Update.
326 * remote.c (remote_terminal_ours): Add 'self' argument.
327 (remote_close): Update.
328 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
329 * inflow.c (terminal_ours): Add 'self' argument.
330 * inferior.h (terminal_ours): Add 'self' argument.
331 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
333 2014-02-19 Pedro Alves <palves@redhat.com>
334 Tom Tromey <tromey@redhat.com>
336 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
338 (target_terminal_ours_for_output): Add argument.
339 * target.c (debug_to_terminal_ours_for_output): Add argument.
340 (update_current_target): Update.
341 * inflow.c (terminal_ours_for_output): Add 'self' argument.
342 * inferior.h (terminal_ours_for_output): Add 'self' argument.
343 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
345 2014-02-19 Tom Tromey <tromey@redhat.com>
347 * target.h (struct target_ops) <to_terminal_inferior>: Add
349 * target.c (target_terminal_inferior): Add argument.
350 (update_current_target): Update.
351 * remote.c (remote_terminal_inferior): Add 'self' argument.
352 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
353 * inflow.c (terminal_inferior): Add 'self' argument.
354 * inferior.h (terminal_inferior): Add 'self' argument.
355 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
356 (go32_terminal_inferior): Add 'self' argument.
358 2014-02-19 Tom Tromey <tromey@redhat.com>
360 * target.h (struct target_ops) <to_terminal_init>: Add argument.
361 (target_terminal_init): Add argument.
362 * target.c (debug_to_terminal_init): Add argument.
363 (update_current_target): Update.
364 * inflow.c (terminal_init_inferior): Add 'self' argument.
365 * inferior.h (terminal_init_inferior): Add 'self' argument.
366 * go32-nat.c (go32_terminal_init): Add 'self' argument.
367 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
369 2014-02-19 Tom Tromey <tromey@redhat.com>
371 * target.h (struct target_ops)
372 <to_can_accel_watchpoint_condition>: Add argument.
373 (target_can_accel_watchpoint_condition): Add argument.
374 * target.c (debug_to_can_accel_watchpoint_condition): Add
376 (update_current_target): Update.
377 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
380 2014-02-19 Tom Tromey <tromey@redhat.com>
382 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
384 (target_region_ok_for_hw_watchpoint): Add argument.
385 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
386 (default_region_ok_for_hw_watchpoint): Add argument.
387 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
388 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
390 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
392 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
394 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
396 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
398 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
400 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
401 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
403 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
406 2014-02-19 Tom Tromey <tromey@redhat.com>
408 * target.h (struct target_ops) <to_insert_watchpoint>: Add
410 (target_insert_watchpoint): Add argument.
411 * target.c (debug_to_insert_watchpoint): Add argument.
412 (update_current_target): Update.
413 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
414 * remote.c (remote_insert_watchpoint): Add 'self' argument.
415 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
416 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
417 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
418 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
420 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
421 (procfs_insert_hw_watchpoint): Add 'self' argument.
422 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
424 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
426 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
428 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
429 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
431 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
434 2014-02-19 Tom Tromey <tromey@redhat.com>
436 * target.h (struct target_ops) <to_remove_watchpoint>: Add
438 (target_remove_watchpoint): Add argument.
439 * target.c (debug_to_remove_watchpoint): Add argument.
440 (update_current_target): Update.
441 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
442 * remote.c (remote_remove_watchpoint): Add 'self' argument.
443 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
444 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
445 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
446 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
448 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
449 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
451 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
453 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
455 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
456 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
458 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
461 2014-02-19 Tom Tromey <tromey@redhat.com>
463 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
465 (target_remove_hw_breakpoint): Add argument.
466 * target.c (debug_to_remove_hw_breakpoint): Add argument.
467 (update_current_target): Update.
468 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
469 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
471 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
472 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
474 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
477 2014-02-19 Tom Tromey <tromey@redhat.com>
479 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
481 (target_insert_hw_breakpoint): Add argument.
482 * target.c (debug_to_insert_hw_breakpoint): Add argument.
483 (update_current_target): Update.
484 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
485 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
487 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
488 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
489 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
491 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
494 2014-02-19 Tom Tromey <tromey@redhat.com>
496 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
498 (target_can_use_hardware_watchpoint): Add argument.
499 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
500 (update_current_target): Update.
501 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
503 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
505 * remote.c (remote_check_watch_resources): Add 'self' argument.
506 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
507 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
509 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
510 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
512 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
514 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
516 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
518 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
520 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
522 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
523 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
525 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
528 2014-02-19 Tom Tromey <tromey@redhat.com>
530 * target.h (struct target_ops) <to_post_attach>: Add argument.
531 (target_post_attach): Add argument.
532 * target.c (debug_to_post_attach): Add argument.
533 (update_current_target): Update.
534 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
535 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
536 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
537 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
538 * inf-child.c (inf_child_post_attach): Add 'self' argument.
540 2014-02-19 Tom Tromey <tromey@redhat.com>
542 * windows-nat.c (windows_close): Add 'self' argument.
543 * tracepoint.c (tfile_close): Add 'self' argument.
544 * target.h (struct target_ops) <to_close>: Add argument.
545 * target.c (target_close): Add argument.
546 (update_current_target): Update.
547 * remote.c (remote_close): Add 'self' argument.
548 * remote-sim.c (gdbsim_close): Add 'self' argument.
549 * remote-mips.c (mips_close): Add 'self' argument.
550 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
551 * record-full.c (record_full_close): Add 'self' argument.
552 * record-btrace.c (record_btrace_close): Add 'self' argument.
553 * monitor.h (monitor_close): Add 'self' argument.
554 * monitor.c (monitor_close): Add 'self' argument.
555 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
556 * linux-nat.c (linux_nat_close): Add argument.
557 * go32-nat.c (go32_close): Add 'self' argument.
558 * exec.c (exec_close_1): Add 'self' argument.
559 * ctf.c (ctf_close): Add 'self' argument.
560 * corelow.c (core_close): Add 'self' argument.
561 (core_close_cleanup): Update.
562 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
563 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
565 2014-02-19 Tom Tromey <tromey@redhat.com>
567 * remote.c (remote_load): New function.
568 (init_remote_ops): Use it.
570 2014-02-19 Tom Tromey <tromey@redhat.com>
572 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
574 * common/linux-btrace.h (linux_supports_btrace): Update.
575 * remote.c (remote_supports_btrace): Add "self" argument.
576 * target-delegates.c: Rebuild.
577 * target.c (target_supports_btrace): Remove.
578 * target.h (struct target_ops) <to_supports_btrace>: Add
580 (target_supports_btrace): New define.
582 2014-02-19 Tom Tromey <tromey@redhat.com>
584 * record-full.c (record_full_beneath_to_resume_ops)
585 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
586 (record_full_beneath_to_wait)
587 (record_full_beneath_to_store_registers_ops)
588 (record_full_beneath_to_store_registers)
589 (record_full_beneath_to_xfer_partial_ops)
590 (record_full_beneath_to_xfer_partial)
591 (record_full_beneath_to_insert_breakpoint_ops)
592 (record_full_beneath_to_insert_breakpoint)
593 (record_full_beneath_to_remove_breakpoint_ops)
594 (record_full_beneath_to_remove_breakpoint)
595 (record_full_beneath_to_stopped_by_watchpoint)
596 (record_full_beneath_to_stopped_data_address)
597 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
598 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
599 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
600 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
601 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
602 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
603 (tmp_to_stopped_data_address, tmp_to_async): Remove.
604 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
605 (record_full_resume, record_full_wait_1)
606 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
607 (record_full_store_registers, record_full_xfer_partial)
608 (record_full_insert_breakpoint, record_full_remove_breakpoint)
609 (record_full_async, record_full_core_xfer_partial): Use target
611 * target-delegates.c: Rebuild.
612 * target.c (current_xfer_partial): Remove.
613 (update_current_target): Do not INHERIT or de_fault
614 to_insert_breakpoint, to_remove_breakpoint,
615 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
616 to_is_async_p, to_async. Do not set to_xfer_partial field.
617 (default_xfer_partial): Simplify.
618 (current_xfer_partial): Remove.
619 (target_wait, target_resume): Simplify.
620 (find_default_can_async_p, find_default_is_async_p): Update.
621 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
622 to_xfer_partial, to_stopped_by_watchpoint,
623 to_stopped_data_address.
624 (target_store_registers): Simplify.
625 (forward_target_remove_breakpoint)
626 (forward_target_insert_breakpoint): Remove.
627 (target_remove_breakpoint, target_insert_breakpoint)
628 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
629 * target.h (struct target_ops) <to_resume, to_wait,
630 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
631 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
632 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
634 (forward_target_remove_breakpoint)
635 (forward_target_insert_breakpoint): Remove.
636 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
638 (record_btrace_insert_breakpoint): Delegate directly.
640 2014-02-19 Tom Tromey <tromey@redhat.com>
643 * target-delegates.c: New file.
644 * target.c: Include target-delegates.c.
645 (init_dummy_target): Call install_dummy_methods.
646 (complete_target_initialization): Call install_delegators.
647 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
648 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
649 * make-target-delegates: New file.
651 2014-02-19 Tom Tromey <tromey@redhat.com>
653 * record.c (find_record_target): Use find_target_at.
654 * target.c (find_target_at): New function.
655 * target.h (find_target_at): Declare.
657 2014-02-19 Tom Tromey <tromey@redhat.com>
659 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
661 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
663 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
664 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
666 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
668 * linux-nat.c (save_sigtrap): Update.
669 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
670 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
671 (linux_nat_close): Update.
672 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
674 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
676 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
677 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
678 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
679 (tmp_to_async): Add 'ops' argument.
680 (record_full_stopped_by_watchpoint, record_full_async)
681 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
683 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
684 (m32r_stopped_by_watchpoint): Add 'ops' argument.
685 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
686 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
687 (remote_is_async_p, remote_async): Add 'ops' argument.
688 (remote_stopped_data_address): Update.
689 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
690 * target.c (update_current_target)
691 (find_default_can_async_p, find_default_is_async_p): Update.
692 (init_dummy_target): Update.
693 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
694 * target.h (struct target_ops) <to_stopped_by_watchpoint,
695 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
696 (target_can_async_p, target_is_async_p, target_async)
697 (target_stopped_by_watchpoint): Update.
699 2014-02-19 Yao Qi <yao@codesourcery.com>
702 * gdbarch.sh: Remove startup_gdbarch.
703 * gdbarch.c: Regenerated.
704 * gdbarch.h: Likewise.
706 2014-02-17 Kevin Buettner <kevinb@redhat.com>
708 * rl78-tdep.c (rl78_g10_register_name): New function.
709 (rl78_return_value): Add g10 support.
710 (rl78_gdbarch_init): Register rl78_g10_register_name for the
713 2014-02-17 Doug Evans <xdje42@gmail.com>
715 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
716 (SUBDIR_GUILE_SRCS): Ditto.
717 (scm-gsmob.o): Ditto.
719 2014-02-17 Yao Qi <yao@codesourcery.com>
721 * gnu-nat.c (ILL_RPC): Declare defined function.
723 2014-02-17 Yao Qi <yao@codesourcery.com>
725 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
726 mach_msg_type_number_t.
727 (gnu_write_inferior): Likewise.
729 2014-02-17 Yao Qi <yao@codesourcery.com>
731 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
733 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
734 (inf_validate_procs, inf_signal): Likewise.
735 (S_exception_raise_request): Likewise.
736 (do_mach_notify_dead_name): Likewise.
737 (steal_exc_port): Likewise.
738 (gnu_read_inferior): Change 'copy_count''s type to
739 mach_msg_type_number_t.
740 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
743 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
745 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
746 flag. Adjust all users; in particular...
747 (gnu_wait): ..., don't decrement its value in here...
748 (gnu_create_inferior): ..., and instead set the flag in here,
749 around the startup_inferior call, and call that one with
750 START_INFERIOR_TRAPS_EXPECTED.
752 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
753 (ILL_RPC): ... new macro.
754 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
755 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
756 (do_mach_notify_send_once, S_proc_setmsgport_reply)
757 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
758 functions with ILL_RPC macro.
759 (S_proc_pid2task_reply, S_proc_task2pid_reply)
760 (S_proc_task2proc_reply, S_proc_proc2task_reply)
761 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
762 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
763 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
764 (S_proc_getlogin_reply, S_proc_getsid_reply)
765 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
766 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
767 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
768 (S_proc_getnports_reply, S_proc_is_important_reply)
769 (S_proc_get_code_reply): New stub functions, generated with
772 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
773 collected the type check structures.
775 * reply_mig_hack.awk: Don't expect to see the auto keyword.
777 2014-02-14 Doug Evans <dje@google.com>
779 * target.c (target_write_partial): Fix result type.
781 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
783 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
784 the proper offsets to access fpregset_t.
786 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
788 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
789 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
790 * h8300-tdep.c (setmachinelist): Remove global.
791 * hppa-tdep.c (hppa_sigtramp): Remove global.
792 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
793 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
794 * ravenscar-thread.c (update_target_observer): Remove global.
795 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
797 2014-02-12 Tom Tromey <tromey@redhat.com>
799 * common/rsp-low.c: Update comments.
800 * common/rsp-low.h: Update comments.
802 2014-02-12 Tom Tromey <tromey@redhat.com>
804 * common/rsp-low.c (convert_ascii_to_int): Remove.
805 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
807 2014-02-12 Tom Tromey <tromey@redhat.com>
809 * common/rsp-low.h (unhexify): Don't declare.
810 * common/rsp-low.c (unhexify): Remove.
812 2014-02-12 Tom Tromey <tromey@redhat.com>
814 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
815 * common/rsp-low.c (convert_int_to_ascii): Remove.
817 2014-02-12 Tom Tromey <tromey@redhat.com>
819 * common/rsp-low.h (hexify): Don't declare.
820 * common/rsp-low.c (hexify): Remove.
822 2014-02-12 Tom Tromey <tromey@redhat.com>
824 * common/rsp-low.c (hexify): Never take strlen of argument.
826 2014-02-12 Tom Tromey <tromey@redhat.com>
828 * common/rsp-low.c (bin2hex): Never take strlen of argument.
829 * remote.c (extended_remote_run, remote_rcmd)
830 (remote_download_trace_state_variable, remote_save_trace_data)
831 (remote_set_trace_notes): Update.
832 * tracepoint.c (encode_source_string, tfile_write_status)
833 (tfile_write_uploaded_tsv): Update.
835 2014-02-12 Tom Tromey <tromey@redhat.com>
837 * tracepoint.c: Include rsp-low.h.
838 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
839 * remote.c: Include rsp-low.h.
840 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
841 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
842 (remote_unescape_input): Move to common/rsp-low.c.
843 * common/rsp-low.h: New file.
844 * common/rsp-low.c: New file.
845 * Makefile.in (SFILES): Add common/rsp-low.c.
846 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
847 (COMMON_OBS): Add rsp-low.o.
848 (rsp-low.o): New target.
850 2014-02-12 Tom Tromey <tromey@redhat.com>
852 * utils.h: Include print-utils.h.
853 (host_address_to_string, plongest, pulongest, phex, phex_nz)
854 (int_string, core_addr_to_string, core_addr_to_string_nz)
855 (hex_string, hex_string_custom): Don't declare.
856 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
857 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
858 (hex_string_custom, int_string, core_addr_to_string)
859 (core_addr_to_string_nz, host_address_to_string): Move to
860 common/print-utils.c.
861 * common/print-utils.h: New file.
862 * common/print-utils.c: New file
863 * Makefile.in (SFILES): Add common/print-utils.c.
864 (HFILES_NO_SRCDIR): Add common/print-utils.h.
865 (COMMON_OBS): Add print-utils.o.
866 (print-utils.o): New target.
868 2014-02-12 Tom Tromey <tromey@redhat.com>
870 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
872 2014-02-12 Mark Kettenis <kettenis@gnu.org>
874 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
876 2014-02-12 Mark Kettenis <kettenis@gnu.org>
878 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
879 if a PT_IO ptrace request returns sucessfully but indicates that 0
880 bytes were transferred.
882 2014-02-12 Pedro Alves <palves@redhat.com>
883 Kevin Buettner <kevinb@redhat.com>
885 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
886 TYPE_INSTANCE_FLAG_CODE_SPACE.
888 2014-02-12 Pedro Alves <palves@redhat.com>
890 * h8300-tdep.c (pseudo_from_raw_register)
891 (raw_from_pseudo_register): New functions.
892 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
895 2014-02-12 Pedro Alves <palves@redhat.com>
897 * h8300-tdep.c (h8300_register_sim_regno): New function.
898 (h8300_gdbarch_init): Install h8300_register_sim_regno as
899 gdbarch_register_sim_regno hook.
901 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
903 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
905 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
907 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
909 2014-02-12 Mark Kettenis <kettenis@gnu.org>
911 * obsd-tdep.h (obsd_init_abi): New prototype.
912 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
913 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
914 (obsd_init_abi): New functions.
915 * i386obsd-tdep.c: Include "obsd-tdep.h".
916 (i386obsd_init_abi): Call obsd_init_abi.
917 * amd64obsd-tdep.c: Include "obsd-tdep.h".
918 (amd64obsd_init_abi): Call obsd_init_abi.
919 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
920 obsd-tdep.c to gdb_target_obs.
922 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
924 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
925 double float arguments to 16-byte in the argument slots.
927 2014-02-11 Doug Evans <xdje42@gmail.com>
929 * configure.ac: Don't crash if pkg-config is not found and guile
930 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
932 * configure: Regenerate.
934 2014-02-11 Yao Qi <yao@codesourcery.com>
936 * aix-thread.c (aix_thread_xfer_partial): Update comments.
937 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
938 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
939 * gnu-nat.c (gnu_xfer_memory): Likewise.
940 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
941 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
942 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
943 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
945 2014-02-11 Yao Qi <yao@codesourcery.com>
947 * target.h (enum target_xfer_error): Rename to ...
948 (enum target_xfer_status): ... it. New. All users updated.
949 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
951 (TARGET_XFER_STATUS_ERROR_P): New macro.
952 (target_xfer_error_to_string): Remove declaration.
953 (target_xfer_status_to_string): Declare.
954 (target_xfer_partial_ftype): Adjust it.
955 (struct target_ops) <to_xfer_partial>: Return
956 target_xfer_status. Add argument xfered_len. Update
958 * target.c (target_xfer_error_to_string): Rename to ...
959 (target_xfer_status_to_string): ... it. New. All callers
961 (target_read_live_memory): Likewise. Call target_xfer_partial
962 instead of target_read.
963 (memory_xfer_live_readonly_partial): Return
964 target_xfer_status. Add argument xfered_len.
965 (raw_memory_xfer_partial): Likewise.
966 (memory_xfer_partial_1): Likewise.
967 (memory_xfer_partial): Likewise.
968 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
969 properly. Update debug message.
970 (default_xfer_partial, current_xfer_partial): Likewise.
971 (target_write_partial): Likewise.
972 (target_read_partial): Likewise. All callers updated.
973 (read_whatever_is_readable): Likewise.
974 (target_write_with_progress): Likewise.
975 (target_read_alloc_1): Likewise.
977 * aix-thread.c (aix_thread_xfer_partial): Likewise.
978 * auxv.c (procfs_xfer_auxv): Likewise.
979 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
980 * bfd-target.c (target_bfd_xfer_partial): Likewise.
981 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
982 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
983 * corefile.c (read_memory): Adjust.
984 * corelow.c (core_xfer_partial): Likewise.
985 * ctf.c (ctf_xfer_partial): Likewise.
986 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
988 (darwin_xfer_partial): Likewise.
989 * exec.c (section_table_xfer_memory_partial): Likewise. All
991 (exec_xfer_partial): Likewise.
992 * exec.h (section_table_xfer_memory_partial): Update
994 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
996 (gnu_xfer_partial): Likewise.
997 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
998 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
999 (ia64_hpux_xfer_solib_got): Likewise.
1000 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1001 type of 'partial_len' to ULONGEST.
1002 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1003 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1004 (linux_nat_xfer_partial): Likewise.
1005 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1006 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1007 * monitor.c (monitor_xfer_memory): Likewise.
1008 (monitor_xfer_partial): Likewise.
1009 * procfs.c (procfs_xfer_partial): Likewise.
1010 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1011 * record-full.c (record_full_xfer_partial): Likewise.
1012 (record_full_core_xfer_partial): Likewise.
1013 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1014 (gdbsim_xfer_partial): Likewise.
1015 * remote.c (remote_write_bytes_aux): Likewise. All callers
1017 (remote_write_bytes, remote_read_bytes): Likewise. All
1019 (remote_flash_erase): Likewise. All callers updated.
1020 (remote_write_qxfer): Likewise. All callers updated.
1021 (remote_read_qxfer): Likewise. All callers updated.
1022 (remote_xfer_partial): Likewise.
1023 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1024 (rs6000_xfer_shared_libraries): Likewise.
1025 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1026 (sol_thread_xfer_partial): Likewise.
1027 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1028 (sparc_xfer_partial): Likewise.
1029 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1031 (spu_xfer_partial): Likewise.
1032 * spu-multiarch.c (spu_xfer_partial): Likewise.
1033 * tracepoint.c (tfile_xfer_partial): Likewise.
1034 * windows-nat.c (windows_xfer_memory): Likewise.
1035 (windows_xfer_shared_libraries): Likewise.
1036 (windows_xfer_partial): Likewise.
1037 * valprint.c: Replace 'target_xfer_error' with
1038 'target_xfer_status' in comments.
1040 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1042 Checked in by Joel Brobecker <brobecker@adacore.com>.
1043 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1045 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1047 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1048 function parameters.
1050 2014-02-10 Will Newton <will.newton@linaro.org>
1052 * elfread.c (elf_rel_plt_read): Look for a .got section if
1053 looking up .got.plt fails.
1054 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1055 on address passed to elf_gnu_ifunc_record_cache.
1056 (elf_gnu_ifunc_resolve_addr): Likewise.
1057 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1059 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1061 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1062 (X_RETTURN): New macro.
1063 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1065 * sparc64-tdep.c (sparc64_init_abi): Hook
1066 sparc_in_function_epilogue_p.
1068 2014-02-10 Gary Benson <gbenson@redhat.com>
1070 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1071 Rename name_matcher to symbol_matcher.
1073 2014-02-10 Gary Benson <gbenson@redhat.com>
1075 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1076 Use expand_symtabs_file_matcher_ftype and
1077 expand_symtabs_symbol_matcher_ftype.
1079 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1081 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
1082 (struct ada_symbol_cache): New.
1083 (ada_free_symbol_cache): Forward declare.
1084 (struct ada_pspace_data): New.
1085 (ada_pspace_data_handle): New static global.
1086 (get_ada_pspace_data, ada_pspace_data_cleanup)
1087 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
1088 (cache_space, cache): Delete, now folded inside struct
1090 (ada_get_symbol_cache): New function.
1091 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
1093 (_initialize_ada_language): Remove initialization of cache_space.
1094 Move call to observer_attach_inferior_exit up, grouping it
1095 with the other observer registrations inside this function.
1096 Rename command to be more general. Add call to
1097 register_program_space_data_with_cleanup.
1099 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1101 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
1102 ada_new_objfile_observer.
1103 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
1104 (_initialize_tasks): Update uses of ada_new_objfile_observer
1105 and ada_tasks_normal_stop_observer.
1107 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1109 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
1110 returned by the 'Length attribute to integer.
1112 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1114 * ada-lang.c (_initialize_ada_language): Initialize
1115 cache_space obstack.
1117 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1119 * ada-lang.c (HASH_SIZE): New macro.
1120 (struct cache_entry): New type.
1121 (cache_space, cache): New static globals.
1122 (ada_clear_symbol_cache, find_entry): New functions.
1123 (lookup_cached_symbol, cache_symbol): Implement.
1124 (ada_new_objfile_observer, ada_free_objfile_observer): New.
1125 (_initialize_ada_language): Attach ada_new_objfile_observer
1126 and ada_free_objfile_observer.
1128 2014-02-10 Joel Brobecker <brobecker@adacore.com>
1130 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
1131 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
1132 struct block * parameter.
1133 (ada_lookup_symbol_list_worker): Constify local variable "block".
1134 Remove cast which is no longer necessary.
1136 2014-02-10 Doug Evans <xdje42@gmail.com>
1138 Add Guile as an extension language.
1139 * NEWS: Mention Guile scripting.
1140 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1141 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1142 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1143 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1144 (CLIBS): Add GUILE_LIBS.
1145 (install-guile): New rule.
1146 (guile.o): New rule.
1147 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1148 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1149 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1150 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1151 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1152 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1153 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1154 * configure.ac: New option --with-guile.
1155 * configure: Regenerate.
1156 * config.in: Regenerate.
1157 * auto-load.c: Remove #include "python/python.h". Add #include
1158 "gdb/section-scripts.h".
1159 (source_section_scripts): Handle Guile scripts.
1160 (_initialize_auto_load): Add name of Guile objfile script to
1161 scripts-directory help text.
1162 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1163 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1164 (struct breakpoint): New member scm_bp_object.
1165 * defs.h (enum command_control_type): New value guile_control.
1166 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1168 (show_user): Update comment.
1169 (_initialize_cli_cmds): Update help text for "show user". Update help
1170 text for max-user-call-depth.
1171 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1173 (multi_line_command_p): Add guile_control.
1174 (print_command_lines): Handle guile_control.
1175 (execute_control_command, recurse_read_control_structure): Ditto.
1176 (process_next_line): Recognize "guile" commands.
1177 * disasm.c (gdb_disassemble_info): Make non-static.
1178 * disasm.h: #include "dis-asm.h".
1179 (struct gdbarch): Add forward decl.
1180 (gdb_disassemble_info): Declare.
1181 * extension.c: #include "guile/guile.h".
1182 (extension_languages): Add guile.
1183 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1184 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1185 * gdbtypes.c (get_unsigned_type_max): New function.
1186 (get_signed_type_minmax): New function.
1187 * gdbtypes.h (get_unsigned_type_max): Declare.
1188 (get_signed_type_minmax): Declare.
1189 * guile/README: New file.
1190 * guile/guile-internal.h: New file.
1191 * guile/guile.c: New file.
1192 * guile/guile.h: New file.
1193 * guile/scm-arch.c: New file.
1194 * guile/scm-auto-load.c: New file.
1195 * guile/scm-block.c: New file.
1196 * guile/scm-breakpoint.c: New file.
1197 * guile/scm-disasm.c: New file.
1198 * guile/scm-exception.c: New file.
1199 * guile/scm-frame.c: New file.
1200 * guile/scm-gsmob.c: New file.
1201 * guile/scm-iterator.c: New file.
1202 * guile/scm-lazy-string.c: New file.
1203 * guile/scm-math.c: New file.
1204 * guile/scm-objfile.c: New file.
1205 * guile/scm-ports.c: New file.
1206 * guile/scm-pretty-print.c: New file.
1207 * guile/scm-safe-call.c: New file.
1208 * guile/scm-string.c: New file.
1209 * guile/scm-symbol.c: New file.
1210 * guile/scm-symtab.c: New file.
1211 * guile/scm-type.c: New file.
1212 * guile/scm-utils.c: New file.
1213 * guile/scm-value.c: New file.
1214 * guile/lib/gdb.scm: New file.
1215 * guile/lib/gdb/boot.scm: New file.
1216 * guile/lib/gdb/experimental.scm: New file.
1217 * guile/lib/gdb/init.scm: New file.
1218 * guile/lib/gdb/iterator.scm: New file.
1219 * guile/lib/gdb/printing.scm: New file.
1220 * guile/lib/gdb/types.scm: New file.
1221 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1222 (VPATH): Add $(GUILE_SRCDIR).
1223 (GUILE_DIR): New variable.
1224 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1225 (all): Add stamp-guile dependency.
1226 (stamp-guile): New rule.
1227 (clean-guile, install-guile, uninstall-guile): New rules.
1228 (install-only): Add install-guile dependency.
1229 (uninstall): Add uninstall-guile dependency.
1230 (clean): Add clean-guile dependency.
1232 2014-02-09 Doug Evans <xdje42@gmail.com>
1234 Revert this patch (which I approved, mea culpa).
1236 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1238 * Makefile.in (all-lib): Remove.
1239 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1241 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1243 Fix Python stack corruption.
1244 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1247 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1249 * Makefile.in (all-lib): Remove.
1250 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1252 2014-02-07 Doug Evans <dje@google.com>
1254 * extension-priv.h (extension_language_script_ops): Add comment.
1255 (extension_language_ops): Add comment.
1256 (active_ext_lang_state): Fix typo in comment.
1258 2014-02-07 Pedro Alves <palves@redhat.com>
1260 * infrun.c (handle_signal_stop) <signal arrives while stepping
1261 over a breakpoint>: Switch back to the stepping thread.
1263 2014-02-07 Yao Qi <yao@codesourcery.com>
1265 * target.c (target_xfer_partial): Return zero if LEN is zero.
1267 2014-02-07 Yao Qi <yao@codesourcery.com>
1269 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1270 (ld_so_xfer_auxv): Likewise.
1271 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1272 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1273 * corelow.c (core_xfer_partial): Likewise.
1274 * ctf.c (ctf_xfer_partial): Likewise.
1275 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1276 (darwin_xfer_partial): Likewise.
1277 * exec.c (exec_xfer_partial): Likewise.
1278 * gnu-nat.c (gnu_xfer_partial): Likewise.
1279 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1280 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1281 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1282 * linux-nat.c (linux_xfer_siginfo): Likewise.
1283 (linux_proc_xfer_spu): Likewise.
1284 * procfs.c (procfs_xfer_partial): Likewise.
1285 * record-full.c (record_full_xfer_partial): Likewise.
1286 (record_full_core_xfer_partial): Likewise.
1287 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1288 * remote.c (remote_write_qxfer): Likewise.
1289 (remote_write_qxfer, remote_read_qxfer): Likewise.
1290 (remote_xfer_partial): Likewise.
1291 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1292 (rs6000_xfer_shared_libraries): Likewise.
1293 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1294 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1295 (spu_xfer_partial): Likewise.
1296 * target.c (memory_xfer_partial_1): Likewise.
1297 * tracepoint.c (tfile_xfer_partial): Likewise.
1298 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1299 (windows_xfer_partial): Likewise.
1301 2014-02-07 Yao Qi <yao@codesourcery.com>
1303 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1305 (core_xfer_shared_libraries_aix): Likewise.
1306 * gdbarch.c, gdbarch.h: Regenerated.
1307 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1308 ULONGEST. Change 'len_avail' type to ULONGEST.
1309 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1310 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1312 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1314 2014-02-07 Yao Qi <yao@codesourcery.com>
1316 * corefile.c (memory_error): Get 'exception' from ERR and pass
1317 'exception' to throw_error.
1319 2014-02-06 Doug Evans <xdje42@gmail.com>
1321 * configure.ac (libpython checking): Remove all but python.o from
1322 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1323 * configure: Regenerate.
1325 * Makefile.in (SFILES): Add extension.c.
1326 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1327 (COMMON_OBS): Add extension.o.
1328 * extension.h: New file.
1329 * extension-priv.h: New file.
1330 * extension.c: New file.
1332 * python/python-internal.h: #include "extension.h".
1333 (gdbpy_auto_load_enabled): Declare.
1334 (gdbpy_apply_val_pretty_printer): Declare.
1335 (gdbpy_apply_frame_filter): Declare.
1336 (gdbpy_preserve_values): Declare.
1337 (gdbpy_breakpoint_cond_says_stop): Declare.
1338 (gdbpy_breakpoint_has_cond): Declare.
1339 (void source_python_script_for_objfile): Delete.
1340 * python/python.c: #include "extension-priv.h".
1341 Delete inclusion of "observer.h".
1342 (extension_language_python): Moved here and renamed from
1343 script_language_python in py-auto-load.c.
1344 Redefined to be of type extension_language_defn.
1345 (python_extension_script_ops): New global.
1346 (python_extension_ops): New global.
1347 (struct python_env): New member previous_active.
1348 (restore_python_env): Call restore_active_ext_lang.
1349 (ensure_python_env): Call set_active_ext_lang.
1350 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1352 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1354 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1356 (gdbpy_eval_from_control_command): Renamed from
1357 eval_python_from_control_command, made static. New arg extlang.
1358 (gdbpy_source_script) Renamed from source_python_script, made static.
1360 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1361 result to int. New arg extlang.
1362 (gdbpy_source_objfile_script): Renamed from
1363 source_python_script_for_objfile, made static. New arg extlang.
1364 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1365 static. New args extlang, extlang_printers. Change result type to
1367 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1368 static. New arg extlang. Rename arg printers to extlang_printers
1369 and change type to ext_lang_type_printers *.
1370 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1371 static. Replace argument arg with extlang, extlang_printers.
1372 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1373 (!HAVE_PYTHON, source_python_script): Delete.
1374 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1375 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1376 (!HAVE_PYTHON, start_type_printers): Delete.
1377 (!HAVE_PYTHON, apply_type_printers): Delete.
1378 (!HAVE_PYTHON, free_type_printers): Delete.
1379 (_initialize_python): Delete call to observer_attach_before_prompt.
1380 (finalize_python): Set/restore active extension language.
1381 (gdbpy_finish_initialization) Renamed from
1382 finish_python_initialization, made static. New arg extlang.
1383 (gdbpy_initialized): New function.
1384 * python/python.h: #include "extension.h". Delete #include
1385 "value.h", "mi/mi-cmds.h".
1386 (extension_language_python): Declare.
1387 (GDBPY_AUTO_FILE_NAME): Delete.
1388 (enum py_bt_status): Moved to extension.h and renamed to
1390 (enum frame_filter_flags): Moved to extension.h.
1391 (enum py_frame_args): Moved to extension.h and renamed to
1392 ext_lang_frame_args.
1393 (finish_python_initialization): Delete.
1394 (eval_python_from_control_command): Delete.
1395 (source_python_script): Delete.
1396 (apply_val_pretty_printer): Delete.
1397 (apply_frame_filter): Delete.
1398 (preserve_python_values): Delete.
1399 (gdbpy_script_language_defn): Delete.
1400 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1401 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1403 * auto-load.c: #include "extension.h".
1404 (GDB_AUTO_FILE_NAME): Delete.
1405 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1406 (script_language_gdb): Delete, moved to extension.c and renamed to
1407 extension_language_gdb.
1408 (source_gdb_script_for_objfile): Delete.
1409 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1410 (loaded_script): Change type of language member to
1411 struct extension_language_defn *.
1412 (init_loaded_scripts_info): Initialize
1413 unsupported_script_warning_printed.
1414 (maybe_add_script): Make static. Change type of language arg to
1415 struct extension_language_defn *.
1416 (clear_section_scripts): Reset unsupported_script_warning_printed.
1417 (auto_load_objfile_script_1): Rewrite to use extension language API.
1418 (auto_load_objfile_script): Make public. Remove support-compiled-in
1419 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1420 (source_section_scripts): Rewrite to use extension language API.
1421 (load_auto_scripts_for_objfile): Rewrite to use
1422 auto_load_scripts_for_objfile.
1423 (collect_matching_scripts_data): Change type of language member to
1424 struct extension_language_defn *.
1425 (auto_load_info_scripts): Change type of language arg to
1426 struct extension_language_defn *.
1427 (unsupported_script_warning_print): New function.
1428 (script_not_found_warning_print): Make static.
1429 (_initialize_auto_load): Rewrite construction of scripts-directory
1431 * auto-load.h (struct objfile): Add forward decl.
1432 (struct script_language): Delete.
1433 (struct auto_load_pspace_info): Add forward decl.
1434 (struct extension_language_defn): Add forward decl.
1435 (maybe_add_script): Delete.
1436 (auto_load_objfile_script): Declare.
1437 (script_not_found_warning_print): Delete.
1438 (auto_load_info_scripts): Update prototype.
1439 (auto_load_gdb_scripts_enabled): Declare.
1440 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1441 auto_load_python_scripts_enabled and made public.
1442 (script_language_python): Delete, moved to python.c.
1443 (gdbpy_script_language_defn): Delete.
1444 (info_auto_load_python_scripts): Update to use
1445 extension_language_python.
1447 * breakpoint.c (condition_command): Replace call to
1448 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1449 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1450 with call to breakpoint_ext_lang_cond_says_stop.
1451 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1452 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1453 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1454 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1456 (local_setattro): Print name of extension language with existing
1459 * valprint.c (val_print, value_print): Update to call
1460 apply_ext_lang_val_pretty_printer.
1461 * cp-valprint.c (cp_print_value): Update call to
1462 apply_ext_lang_val_pretty_printer.
1463 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1464 (gdbpy_apply_val_pretty_printer): Renamed from
1465 apply_val_pretty_printer. New arg extlang.
1466 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1468 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1469 extension language API.
1470 * cli/cli-script.c (execute_control_command): Update to call
1471 eval_ext_lang_from_control_command.
1473 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1474 enum ext_lang_bt_status values. Update call to
1475 apply_ext_lang_frame_filter.
1476 (mi_cmd_stack_list_locals): Ditto.
1477 (mi_cmd_stack_list_args): Ditto.
1478 (mi_cmd_stack_list_variables): Ditto.
1479 * mi/mi-main.c: Delete #include "python/python-internal.h".
1480 Add #include "extension.h".
1481 (mi_cmd_list_features): Replace reference to python internal variable
1482 gdb_python_initialized with call to ext_lang_initialized_p.
1484 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1485 Update to use enum ext_lang_frame_args. Update to call
1486 apply_ext_lang_frame_filter.
1487 * python/py-framefilter.c (extract_sym): Update to use enum
1489 (extract_value, py_print_type, py_print_value): Ditto.
1490 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1491 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1492 (py_print_frame): Ditto.
1493 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1494 New arg extlang. Update to use enum ext_lang_bt_status.
1496 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1497 finish_python_initialization. Replace with call to
1498 finish_ext_lang_initialization.
1500 * typeprint.c (do_free_global_table): Update to call
1501 free_ext_lang_type_printers.
1502 (create_global_typedef_table): Update to call
1503 start_ext_lang_type_printers.
1504 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1505 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1506 (type_print_options): Change type of global_printers from "void *"
1507 to "struct ext_lang_type_printers *".
1509 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1510 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1511 (gdbpy_preserve_values): Renamed from preserve_python_values.
1513 (!HAVE_PYTHON, preserve_python_values): Delete.
1515 * utils.c (quit_flag): Delete, moved to extension.c.
1516 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1519 * eval.c: Delete #include "python/python.h".
1520 * main.c: Delete #include "python/python.h".
1522 * defs.h: Update comment.
1524 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1528 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1530 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1533 2014-02-05 Yao Qi <yao@codesourcery.com>
1535 * remote.c (remote_pass_signals): Remove local 'buf' and use
1537 (remote_program_signals): Likewise.
1539 2014-02-05 Yao Qi <yao@codesourcery.com>
1541 * ctf.c: Include "inferior.h" and "gdbthread.h".
1542 (CTF_PID): A new macro.
1543 (ctf_open): Call inferior_appeared and add_thread_silent.
1544 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1545 (ctf_thread_alive): New function.
1546 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1548 2014-02-05 Yao Qi <yao@codesourcery.com>
1552 2013-05-24 Yao Qi <yao@codesourcery.com>
1554 * tracepoint.c (TFILE_PID): Remove.
1555 (tfile_open): Don't add thread and inferior.
1556 (tfile_close): Don't set 'inferior_ptid'. Don't call
1557 exit_inferior_silent.
1558 (tfile_thread_alive): Remove.
1559 (init_tfile_ops): Don't set field 'to_thread_alive' of
1562 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1564 * remote.c (remote_start_remote): Call remote_check_symbols even
1565 if only symbol-file (not file) has been given.
1567 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1569 * gdbarch.sh (skip_entrypoint): New callback.
1570 * gdbarch.c, gdbarch.h: Regenerate.
1571 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1572 * infrun.c (fill_in_stop_func): Likewise.
1573 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1574 (ppc_elfv2_elf_make_msymbol_special): New function.
1575 (ppc_elfv2_skip_entrypoint): Likewise.
1576 (ppc_linux_init_abi): Install them for ELFv2.
1578 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1580 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1581 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1582 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1583 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1584 structures returned in GPRs.
1586 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1588 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1589 offset to the stack parameter list for the ELFv2 ABI.
1591 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1593 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1594 set_gdbarch_convert_from_func_ptr_addr and
1595 set_gdbarch_elf_make_msymbol_special for ELFv1.
1596 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1597 function descriptors on ELFv1.
1598 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1599 set up r12 at function entry.
1601 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1603 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1604 (struct gdbarch_tdep): New member elf_abi.
1606 * rs6000-tdep.c: Include "elf/ppc64.h".
1607 (rs6000_gdbarch_init): Detect ELF ABI version.
1609 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1611 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1612 within a register pair holding a DFP 128-bit value on little-endian.
1613 (ppc64_sysv_abi_return_value_base): Likewise.
1614 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1615 (dfp_pseudo_register_write): Likewise.
1617 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1619 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1620 offset on little-endian when passing _Decimal32.
1621 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1623 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1625 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1626 of the overlapped FP register within the VSX register on little-
1628 (efpr_pseudo_register_write): Likewise.
1630 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1632 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1633 offset on little-endian when passing small structures.
1635 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1637 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1638 (struct ppc64_sysv_argpos): New data structure.
1639 (ppc64_sysv_abi_push_float): Remove.
1640 (ppc64_sysv_abi_push_val): New function.
1641 (ppc64_sysv_abi_push_integer): Likewise.
1642 (ppc64_sysv_abi_push_freg): Likewise.
1643 (ppc64_sysv_abi_push_vreg): Likewise.
1644 (ppc64_sysv_abi_push_param): Likewise.
1645 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1646 (ppc64_sysv_abi_return_value_base): New function.
1647 (ppc64_sysv_abi_return_value): Refactor to use it.
1649 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1651 * NEWS: Document new target powerpc64le-*-linux*.
1653 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1655 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1656 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1658 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1659 register set used in ELF core dumps. Add floating-point register set.
1661 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1663 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1664 dwarf2_to_gdb[] table using symbolic constants. Adjust
1665 penultimate entry from number representing the PC register
1666 to symbolic constant representing the MDR register. Add
1667 constant for the PC register to the end of the table.
1669 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1671 * bsd-kvm.c: Include <sys/param.h>
1673 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1675 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1677 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1679 * ada-lang.h (clear_ada_sym_cache): Delete.
1681 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1683 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1685 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1687 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1688 the sigreturn register save area only if the syscall is
1691 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1693 * valops.c (value_slice): Minor reformatting.
1695 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1697 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1699 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1701 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1703 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1704 (ada_ignore_descriptive_types_p): New static global.
1705 (find_parallel_type_by_descriptive_type): Return immediately
1706 if ada_ignore_descriptive_types_p is set.
1707 (_initialize_ada_language): Register new commands "maintenance
1708 set ada", "maintenance show ada", "maintenance set ada
1709 ignore-descriptive-types" and "maintenance show ada
1710 ignore-descriptive-types".
1711 * NEWS: Add entry for new "maint ada set/show
1712 ignore-descriptive-types" commands.
1714 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1716 * record-btrace.c (record_btrace_close): Call btrace_teardown
1719 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1721 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1724 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1726 * ada-typeprint (type_is_full_subrange_of_target_type):
1728 (print_range): Add parameter bounds_prefered_p. If not set,
1729 try printing range types using the name of their base type.
1730 (print_range_type): Add parameter bounds_prefered_p.
1731 Use it in call to print_range.
1732 (print_array_type, ada_print_type): Update calls to print_range
1733 and print_range_type.
1735 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1737 * ada-typeprint.c (print_array_type, print_choices, print_range)
1738 (print_range_bound, print_dynamic_range_bound, print_range_type):
1741 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1743 * ada-typeprint.c (print_range): Add missing empty line
1744 after local declaration.
1746 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1748 * ada-valprint.c (print_optional_low_bound): Get index_type's
1749 target type for as long as it is a TYPE_CODE_RANGE.
1751 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1753 * procfs.c (procfs_make_note_section): Remove assertion and
1756 2014-01-24 Yao Qi <yao@codesourcery.com>
1758 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1759 * corelow.c (get_core_siginfo): Likewise.
1761 2014-01-24 Yao Qi <yao@codesourcery.com>
1763 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1764 ULONGEST. Don't check 'len' is negative.
1765 (remote_write_bytes): Change type of 'len' to ULONGEST.
1767 2014-01-23 Tom Tromey <tromey@redhat.com>
1770 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1771 Handle exception from frame.block.
1772 (FrameVars.fetch_frame_locals): Likewise.
1774 2014-01-23 Tom Tromey <tromey@redhat.com>
1777 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1778 on a NULL pointer. Move "goto error" to correct place.
1780 2014-01-23 Tom Tromey <tromey@redhat.com>
1783 * python/py-framefilter.c (apply_frame_filter): Call
1784 ensure_python_env after computing gdbarch.
1786 2014-01-23 Yao Qi <yao@codesourcery.com>
1788 * target.c (raw_memory_xfer_partial): Change argument type
1789 from void * to gdb_byte *.
1790 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1792 2014-01-22 Doug Evans <dje@google.com>
1794 New gdbserver option --debug-format=timestamp.
1797 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1799 * syscalls/s390x-linux.xml: New file.
1800 * syscalls/s390-linux.xml: New file.
1801 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1802 (XML_SYSCALL_FILENAME_S390X): Likewise.
1803 (op_svc): New enum value for SVC opcode.
1804 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1805 (s390_linux_get_syscall_number): New function.
1806 (s390_gdbarch_init): Register '*get_syscall_number' and the
1807 syscall xml file name.
1808 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1809 "s390-linux.xml" and "s390x-linux.xml".
1810 * NEWS: Announce new feature.
1812 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1814 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1816 2014-01-22 Pedro Alves <palves@redhat.com>
1818 * xtensa-config.c: Include defs.h.
1820 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1822 * common/common-utils.h: Add "ARI:" comment beside __func__
1825 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1827 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1828 documentation a bit.
1830 2014-01-21 Roland McGrath <mcgrathr@google.com>
1832 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1833 * configure: Regenerate.
1834 * aclocal.m4: Regenerate.
1835 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1836 New substituted variables.
1837 (install-strip): New target.
1838 (INSTALL_SCRIPT): New substituted variable.
1839 (FLAGS_TO_PASS): Add it.
1840 (install-only): Use $(INSTALL_SCRIPT) rather than
1841 $(INSTALL_PROGRAM) for gcore.
1843 2014-01-20 Tom Tromey <tromey@redhat.com>
1845 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1848 2014-01-20 Tom Tromey <tromey@redhat.com>
1850 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1851 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1852 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1853 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1854 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1855 (struct cmd_list_element) <flags>: Remove.
1856 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1857 doc_allocated>: New fields.
1858 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1860 * maint.c (maintenance_do_deprecate): Update.
1861 * top.c (execute_command): Update.
1863 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1865 * xtensa-linux-nat.c: Include asm/ptrace.h.
1867 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1869 * Makefile.in (SFILES): Add d-support.c.
1870 (COMMON_OBS): Add d-support.o.
1871 * d-lang.h (d_parse_symbol): Add comment, now defined in
1873 * d-lang.c (parse_call_convention)
1874 (parse_attributes, parse_function_types)
1875 (parse_function_args, parse_type, parse_identifier)
1876 (call_convention_p, d_parse_symbol): Move functions to ...
1877 * d-support.c: ... New file.
1879 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1881 * d-lang.h (d_parse_symbol): Add declaration.
1882 * d-lang.c (extract_identifiers)
1883 (extract_type_info): Remove functions.
1884 (parse_call_convention, parse_attributes)
1885 (parse_function_types, parse_function_args)
1886 (parse_type, parse_identifier, call_convention_p)
1887 (d_parse_symbol): New functions.
1888 (d_demangle): Use d_parse_symbol to demangle D symbols.
1890 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1892 * d-lang.h (struct builtin_d_type): New data type.
1893 (builtin_d_type): Add declaration.
1894 * d-lang.c (d_language_arch_info, build_d_types)
1895 (builtin_d_type): New functions.
1896 (enum d_primitive_types): New data type.
1897 (d_language_defn): Change c_language_arch_info to
1898 d_language_arch_info.
1899 (d_type_data): New static variable.
1900 (_initialize_d_language): Initialize d_type_data.
1902 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1904 * d-lang.h (d_main_name): Add declaration.
1905 * d-lang.c (d_main_name): New function.
1906 * symtab.c (find_main_name): Add call to d_main_name.
1908 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1910 * d-lang.c (d_language_defn): Change macro_expansion_c to
1913 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1915 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1917 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1919 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1920 gdb_exception" declaration.
1921 * remote.c (getpkt_or_notif_sane): Likewise.
1923 2014-01-17 Doug Evans <dje@google.com>
1925 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1926 function, contents of dirnames_to_char_ptr_vec_append moved here.
1927 (delim_string_to_char_ptr_vec): New function.
1928 (dirnames_to_char_ptr_vec_append): Rewrite.
1929 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1931 2014-01-17 Doug Evans <dje@google.com>
1933 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1935 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1936 #include "common-utils.h".
1937 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1938 * common/vec.h (VEC_ASSERT_PASS): Update.
1939 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1940 (MACH_CHECK_ERROR): Update.
1942 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1944 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1946 * gdbarch.h: Regenerate.
1948 2014-01-16 Tom Tromey <tromey@redhat.com>
1950 * value.c (struct value) <regnum>: Move earlier.
1952 2014-01-16 Tom Tromey <tromey@redhat.com>
1954 * remote.c (extended_remote_create_inferior): Rename from
1955 extended_remote_create_inferior_1. Add "ops" argument. Remove
1958 2014-01-16 Pedro Alves <palves@redhat.com>
1960 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1961 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1964 2014-01-16 Doug Evans <dje@google.com>
1966 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1968 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1970 * btrace.h (btrace_thread_flag): New.
1971 (struct btrace_thread_info) <flags>: New.
1972 * record-btrace.c (record_btrace_resume_thread)
1973 (record_btrace_find_thread_to_move, btrace_step_no_history)
1974 (btrace_step_stopped, record_btrace_start_replaying)
1975 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1976 (record_btrace_find_resume_thread): New.
1977 (record_btrace_resume, record_btrace_wait): Extend.
1978 (record_btrace_can_execute_reverse): New.
1979 (record_btrace_open): Fail in non-stop mode.
1980 (record_btrace_set_replay): Split into this, ...
1981 (record_btrace_stop_replaying): ... this, ...
1982 (record_btrace_clear_histories): ... and this.
1983 (init_record_btrace_ops): Init to_can_execute_reverse.
1984 * NEWS: Announce it.
1986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1988 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1989 (forward_target_decr_pc_after_break)
1990 (target_decr_pc_after_break): New.
1991 * target.c (forward_target_decr_pc_after_break)
1992 (target_decr_pc_after_break): New.
1993 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1994 instead of gdbarch_decr_pc_after_break.
1995 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1996 instead of gdbarch_decr_pc_after_break.
1997 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1998 instead of gdbarch_decr_pc_after_break.
1999 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2000 instead of gdbarch_decr_pc_after_break.
2001 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2002 instead of gdbarch_decr_pc_after_break.
2003 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2004 instead of gdbarch_decr_pc_after_break.
2006 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2008 * btrace.c: Include regcache.h.
2009 (btrace_add_pc): New.
2010 (btrace_enable): Call btrace_add_pc.
2011 (btrace_is_empty): New.
2012 * btrace.h (btrace_is_empty): New.
2013 * record-btrace.c (require_btrace, record_btrace_info): Call
2016 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2018 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2019 Support delta reads.
2020 (linux_disable_btrace): Change return type.
2021 * common/linux-btrace.h (linux_read_btrace): Change parameters
2022 and return type to allow error reporting. Update users.
2023 (linux_disable_btrace): Change return type. Update users.
2024 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2026 (btrace_error): New.
2027 (btrace_block) <begin>: Comment on BEGIN == 0.
2028 * btrace.c (btrace_compute_ftrace): Start from the end of
2030 (btrace_stitch_trace, btrace_clear_history): New.
2031 (btrace_fetch): Read delta trace, return if replaying.
2032 (btrace_clear): Move clear history code to btrace_clear_history.
2033 (parse_xml_btrace): Throw an error if parsing failed.
2034 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2035 and return type to allow error reporting.
2036 (target_read_btrace): Change parameters and return type to allow
2038 * target.c (target_read_btrace): Update.
2039 * remote.c (remote_read_btrace): Support delta reads. Pass
2041 * NEWS: Announce it.
2043 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2045 * record.h (record_btrace_frame_unwind)
2046 (record_btrace_tailcall_frame_unwind): New declarations.
2047 * dwarf2-frame: Include record.h
2048 (dwarf2_frame_cfa): Throw an error for btrace frames.
2049 * record-btrace.c: Include hashtab.h.
2050 (btrace_get_bfun_name): New.
2051 (btrace_call_history): Call btrace_get_bfun_name.
2052 (struct btrace_frame_cache): New.
2054 (bfcache_hash, bfcache_eq, bfcache_new): New.
2055 (btrace_get_frame_function): New.
2056 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2057 (record_btrace_frame_this_id): Compute own id.
2058 (record_btrace_frame_prev_register): Provide PC, throw_error
2059 for all other registers.
2060 (record_btrace_frame_sniffer): Detect btrace frames.
2061 (record_btrace_tailcall_frame_sniffer): New.
2062 (record_btrace_frame_dealloc_cache): New.
2063 (record_btrace_frame_unwind): Add new functions.
2064 (record_btrace_tailcall_frame_unwind): New.
2065 (_initialize_record_btrace): Allocate cache.
2066 * btrace.c (btrace_clear): Call reinit_frame_cache.
2067 * NEWS: Announce it.
2069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2071 * record-btrace.c (record_btrace_set_replay)
2072 (record_btrace_goto_begin, record_btrace_goto_end)
2073 (record_btrace_goto): New.
2074 (init_record_btrace_ops): Initialize them.
2075 * NEWS: Announce it.
2077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2079 * record-btrace.c (record_btrace_find_new_threads)
2080 (record_btrace_thread_alive): New.
2081 (init_record_btrace_ops): Initialize to_find_new_threads and
2084 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2086 * record-btrace.c (record_btrace_resume): New.
2087 (record_btrace_wait): New.
2088 (init_record_btrace_ops): Initialize to_wait and to_resume.
2090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2092 * record-btrace.c (record_btrace_xfer_partial)
2093 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
2094 (record_btrace_allow_memory_access): New.
2095 (init_record_btrace_ops): Initialize new methods.
2096 * target.c (raw_memory_xfer_partial): Bail out if target reports
2097 that this memory is not available.
2099 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2101 * target.h (target_ops) <to_insert_breakpoint>
2102 <to_remove_breakpoint>: Add target_ops parameter.
2103 (forward_target_insert_breakpoint): New.
2104 (forward_target_remove_breakpoint): New.
2105 (memory_remove_breakpoint, memory_insert_breakpoint):
2106 Add target_ops parameter.
2107 * target.c (target_insert_breakpoint): Split into this and ...
2108 (forward_target_insert_breakpoint): ... this.
2109 (target_remove_breakpoint): Split into this and ...
2110 (forward_target_remove_breakpoint): ... this.
2111 (debug_to_insert_breakpoint): Add target_ops parameter.
2112 Call forward_target_insert_breakpoint.
2113 (debug_to_remove_breakpoint): Add target_ops parameter.
2114 Call forward_target_remove_breakpoint.
2115 (update_current_target): Do not inherit or default to_insert_breakpoint
2116 and to_remove_breakpoint.
2117 * corelow.c (ignore): Add target_ops parameter.
2118 * exec.c (ignore): Add target_ops parameter.
2119 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
2120 Add target_ops parameter.
2121 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
2122 Add target_ops parameter.
2123 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
2124 Add target_ops parameter.
2125 * record-full.c (record_full_beneath_to_insert_breakpoint)
2126 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
2127 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
2128 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
2129 (record_full_core_remove_breakpoint): Add target_ops parameter.
2131 (record_full_beneath_to_insert_breakpoint_ops)
2132 (record_full_beneath_to_remove_breakpoint_ops)
2133 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
2134 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
2135 tmp_to_remove_breakpoint_ops,
2136 record_full_beneath_to_insert_breakpoint_ops, and
2137 record_full_beneath_to_remove_breakpoint_ops.
2138 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2139 (m32r_remove_breakpoint): Add target_ops parameter.
2140 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2141 Add target_ops parameter.
2142 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2143 Add target_ops parameter.
2145 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 Markus Metzger <markus.t.metzger@intel.com>
2148 * record-btrace.c: Include frame-unwind.h.
2149 (record_btrace_frame_unwind_stop_reason)
2150 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2151 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2153 (init_record_btrace_ops): Install it.
2155 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2157 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2160 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2165 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2167 * frame-unwind.c: Include target.h.
2168 (frame_unwind_try_unwinder): New function with code from ...
2169 (frame_unwind_find_by_frame): ... here. New variable
2170 unwinder_from_target, call also target_get_unwinder)
2171 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2172 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2173 * target.h (struct target_ops): New fields to_get_unwinder and
2174 to_get_tailcall_unwinder.
2175 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2179 * record-btrace.c (record_btrace_fetch_registers)
2180 (record_btrace_store_registers)
2181 (record_btrace_to_prepare_to_store): New.
2182 (init_record_btrace_ops): Add the above.
2184 2014-01-16 Tom Tromey <tromey@redhat.com>
2186 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2187 * target.h (struct target_ops) <to_prepare_to_store>: Add
2189 (target_prepare_to_store): Add argument.
2190 * target.c (debug_to_prepare_to_store): Add argument.
2191 (update_current_target): Update.
2192 * remote.c (remote_prepare_to_store): Add 'self' argument.
2193 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2194 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2195 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2196 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2198 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2199 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2200 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2201 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2202 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2204 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2206 * btrace.h (replay) <replay>: New.
2207 (btrace_is_replaying): New.
2208 * btrace.c (btrace_clear): Free replay iterator.
2209 (btrace_is_replaying): New.
2210 * record-btrace.c (record_btrace_is_replaying): New.
2211 (record_btrace_info): Print insn number if replaying.
2212 (record_btrace_insn_history): Start at replay position.
2213 (record_btrace_call_history): Start at replay position.
2214 (init_record_btrace_ops): Init to_record_is_replaying.
2216 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2218 * record-btrace.c (record_btrace_insn_history_range): Include
2220 (record_btrace_insn_history_from): Adjust range.
2221 (record_btrace_call_history_range): Include
2223 (record_btrace_call_history_from): Adjust range.
2224 * NEWS: Announce changes.
2226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2228 * record.h (enum record_print_flag)
2229 <record_print_indent_calls>: New.
2230 * record.c (get_call_history_modifiers): Recognize /c modifier.
2231 (_initialize_record): Document /c modifier.
2232 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2233 Reorder fields. Optionally indent the function name. Update
2235 * NEWS: Announce changes.
2237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2239 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2243 * btrace.c (ftrace_new_function): Start counting at one.
2244 * record-btrace.c (record_btrace_info): Adjust number of calls
2246 * NEWS: Announce it.
2248 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2250 * record-btrace.c (btrace_call_history_insn_range): Print
2251 insn range as [begin, end].
2253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2255 * btrace.h (struct btrace_func_link): New.
2256 (enum btrace_function_flag): New.
2257 (struct btrace_inst): Rename to ...
2258 (struct btrace_insn): ...this. Update all users.
2259 (struct btrace_func) <ibegin, iend>: Remove.
2260 (struct btrace_func_link): New.
2261 (struct btrace_func): Rename to ...
2262 (struct btrace_function): ...this. Update all users.
2263 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2264 (number, level, flags>: New.
2265 (struct btrace_insn_iterator): Rename to ...
2266 (struct btrace_insn_history): ...this.
2268 (struct btrace_insn_iterator, btrace_call_iterator): New.
2269 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2270 (struct btrace_target_info) <begin, end, level>
2271 <insn_history, call_history>: New.
2272 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2273 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2274 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2275 (btrace_call_number, btrace_call_begin, btrace_call_end)
2276 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2277 (btrace_find_function_by_number, btrace_set_insn_history)
2278 (btrace_set_call_history): New.
2279 * btrace.c (btrace_init_insn_iterator)
2280 (btrace_init_func_iterator, compute_itrace): Remove.
2281 (ftrace_print_function_name, ftrace_print_filename)
2282 (ftrace_skip_file): Change
2284 (ftrace_init_func): Remove.
2285 (ftrace_debug): Use new btrace_function fields.
2286 (ftrace_function_switched): Also consider gaining and
2287 losing symbol information).
2288 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2289 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2290 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2292 (ftrace_new_function): Move. Remove debug print.
2293 (ftrace_update_lines, ftrace_update_insns): New.
2294 (ftrace_update_function): Check for call, ret, and jump.
2295 (compute_ftrace): Renamed to ...
2296 (btrace_compute_ftrace): ...this. Rewritten to compute call
2298 (btrace_fetch, btrace_clear): Updated.
2299 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2300 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2301 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2302 (btrace_call_number, btrace_call_begin, btrace_call_end)
2303 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2304 (btrace_find_function_by_number, btrace_set_insn_history)
2305 (btrace_set_call_history): New.
2306 * record-btrace.c (require_btrace): Use new btrace thread
2308 (record_btrace_info, btrace_insn_history)
2309 (record_btrace_insn_history, record_btrace_insn_history_range):
2310 Use new btrace thread info fields and new iterator.
2311 (btrace_func_history_src_line): Rename to ...
2312 (btrace_call_history_src_line): ...this. Use new btrace
2314 (btrace_func_history): Rename to ...
2315 (btrace_call_history): ...this. Use new btrace thread info
2316 fields and new iterator.
2317 (record_btrace_call_history, record_btrace_call_history_range):
2318 Use new btrace thread info fields and new iterator.
2320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2322 * frame.h (frame_id_build_unavailable_stack_special): New.
2323 * frame.c (frame_id_build_unavailable_stack_special): New.
2325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2327 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2328 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2329 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2331 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2332 (i386_insn_is_jump, i386_jmp_p): New.
2333 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2334 insn_is_jump to gdbarch.
2335 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2336 * gdbarch.h: Regenerated.
2337 * gdbarch.c: Regenerated.
2338 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2339 (default_insn_is_jump): New.
2340 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2341 (default_insn_is_jump): New.
2343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2345 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2347 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2348 (btrace_read_type) <btrace_read_new>: Change to ...
2349 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2353 * common/linux-btrace.c (linux_read_btrace): Free trace from
2356 2014-01-15 Doug Evans <dje@google.com>
2358 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2361 2014-01-15 Tom Tromey <tromey@redhat.com>
2363 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2364 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2365 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2366 (set_objfile_main_name): New function.
2367 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2368 language_of_main>: New fields.
2369 (set_objfile_main_name): Declare.
2370 * symtab.c (find_main_name): Loop over objfiles to find the main
2372 (set_main_name): Now static.
2373 (get_main_info): Add comment.
2374 * symtab.h (set_main_name): Don't declare.
2376 2014-01-15 Tom Tromey <tromey@redhat.com>
2378 * symtab.c (main_progspace_key): New global.
2379 (struct main_info): New.
2380 (name_of_main, language_of_main): Remove.
2381 (get_main_info, main_info_cleanup): New function.
2382 (set_main_name, main_name, main_language): Use get_main_info.
2383 (_initialize_symtab): Initialize main_progspace_key.
2385 2014-01-15 Tom Tromey <tromey@redhat.com>
2387 * dbxread.c (process_one_symbol): Update.
2388 * dwarf2read.c (read_partial_die): Update.
2389 * symfile.c (set_initial_language): Call main_language.
2390 * symtab.c (language_of_main): Now static.
2391 (set_main_name): Add 'lang' parameter.
2392 (find_main_name): Update.
2393 (main_language): New function.
2394 (symtab_observer_executable_changed): Update.
2395 * symtab.h (set_main_name): Update.
2396 (language_of_main): Remove.
2397 (main_language): Declare.
2399 2014-01-15 Tom Tromey <tromey@redhat.com>
2401 * symfile.c (init_entry_point_info): Use new "initialized" field.
2403 * objfiles.h (struct entry_point) <initialized>: New field.
2404 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2405 (struct objfile) <ei>: ...here. Remove.
2406 * objfiles.c (entry_point_address_query): Update.
2408 2014-01-15 Tom Tromey <tromey@redhat.com>
2410 * objfiles.c (entry_point_address_query): Relocate entry point
2412 (objfile_relocate1): Do not relocate entry point address.
2413 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2414 <the_bfd_section_index>: New field.
2415 * symfile.c (init_entry_point_info): Find the entry point's
2418 2014-01-15 Tom Tromey <tromey@redhat.com>
2420 * solib-frv.c (enable_break): Use entry_point_address_query.
2422 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2424 * NEWS: Add note on improved process record-replay on
2425 arm*-linux* targets.
2427 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2429 * arm-tdep.c (enum arm_record_result): New enum.
2430 (arm_record_unsupported_insn): New function.
2431 (arm_record_coproc_data_proc): Removed.
2432 (thumb2_record_ld_st_multiple): New function.
2433 (thumb2_record_ld_st_dual_ex_tbb): New function.
2434 (thumb2_record_data_proc_sreg_mimm): New function.
2435 (thumb2_record_ps_dest_generic): New function.
2436 (thumb2_record_branch_misc_cntrl): New function.
2437 (thumb2_record_str_single_data): New function.
2438 (thumb2_record_ld_mem_hints): New function.
2439 (thumb2_record_ld_word): New function.
2440 (thumb2_record_lmul_lmla_div): New function.
2441 (thumb2_record_decode_insn_handler): New function.
2442 (decode_insn): Add thumb32 instruction handlers.
2444 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2446 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2447 (struct arm_linux_record_tdep): Declare.
2448 (arm_canonicalize_syscall): New function.
2449 (arm_all_but_pc_registers_record): New function.
2450 (arm_linux_syscall_record): New function.
2451 (arm_linux_init_abi): Add syscall recording constructs.
2452 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2453 decoding. (arm_record_coproc_data_proc): Update arm syscall
2455 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2456 <arm_syscall_record>: New field.
2457 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2460 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2462 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2463 register for push instruction recording.
2465 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2467 * arm-tdep.c (thumb_record_misc): Update to correct logical
2468 error while recording ldm, ldmia and pop instructions.
2470 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2472 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2474 2014-01-15 Pedro Alves <palves@redhat.com>
2476 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2477 (go32_resume, go32_fetch_registers, store_register)
2478 (go32_store_registers, go32_prepare_to_store)
2479 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2480 (go32_create_inferior, go32_can_run, go32_terminal_init)
2481 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2484 2014-01-15 Tom Tromey <tromey@redhat.com>
2486 * target.h (async_callback_ftype): New typedef.
2487 (struct target_ops) <to_async>: Use it.
2489 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2491 * python/py-value.c (get_field_type): Remove unnecessary curly
2492 braces for single-statement if block.
2494 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2496 * python/py-type.c (convert_field): Add missing empty line
2499 2014-01-14 Doug Evans <dje@google.com>
2501 * symfile.h (expand_symtabs_matching): Renamed from
2502 expand_partial_symbol_names. Update prototype.
2503 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2504 * symfile.c (expand_symtabs_matching): Renamed from
2505 expand_partial_symbol_names. New args file_matcher, kind.
2506 Rename arg fun to symbol_matcher.
2507 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2508 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2509 ada_expand_partial_symbol_name.
2510 (ada_make_symbol_completion_list): Update to call
2511 expand_symtabs_matching.
2512 (ada_add_global_exceptions): Call expand_symtabs_matching.
2513 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2514 call map_symbol_filenames.
2515 * symtab.c (sources_info): Update to call map_symbol_filenames.
2516 (search_symbols): Call expand_symtabs_matching.
2517 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2518 (default_make_symbol_completion_list_break_on): Update to call
2519 expand_symtabs_matching.
2520 (make_source_files_completion_list): Update to call
2521 map_symbol_filenames.
2523 2014-01-14 Doug Evans <dje@google.com>
2525 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2526 (expand_symtabs_symbol_matcher_ftype): New typedef.
2527 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2528 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2529 * symfile.c (expand_partial_symbol_names): Update to use
2530 expand_symtabs_symbol_matcher_ftype.
2531 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2532 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2533 Arg name_matcher renamed to symbol_matcher.
2534 * psymtab.c (recursively_search_psymtabs): Update to use
2535 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2537 (expand_symtabs_matching_via_partial): Update to use
2538 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2539 Arg name_matcher renamed to symbol_matcher.
2541 2014-01-14 Doug Evans <dje@google.com>
2543 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2544 (map_partial_symbol_filenames): Ditto.
2545 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2546 (map_partial_symbol_filenames): Ditto.
2547 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2548 (map_partial_symbol_filenames): Ditto.
2549 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2550 (map_partial_symbol_filenames): Ditto.
2551 * symtab.c: Delete #include "psymtab.h".
2553 2014-01-14 Pedro Alves <palves@redhat.com>
2554 Tom Tromey <tromey@redhat.com>
2556 * infrun.c (use_displaced_stepping): Use find_record_target
2557 instead of RECORD_IS_USED.
2558 (adjust_pc_after_break): Use record_full_is_used instead of
2560 * record-btrace.c (record_btrace_open): Call record_preopen
2561 instead of checking RECORD_IS_USED.
2562 * record-full.c (record_full_shortname)
2563 (record_full_core_shortname): New globals.
2564 (record_full_is_used): New function.
2565 (find_full_open): Call record_preopen instead of checking
2567 (init_record_full_ops): Set the target's shortname to
2568 record_full_shortname.
2569 (init_record_full_core_ops): Set the target's shortname to
2570 record_full_core_shortname.
2571 * record-full.h (record_full_is_used): Declare.
2572 * record.c (find_record_target): Make extern.
2573 (record_preopen): New function.
2574 * record.h (RECORD_IS_USED): Delete macro.
2575 (find_record_target, record_preopen): Declare functions.
2577 2014-01-14 Yao Qi <yao@codesourcery.com>
2579 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2580 'len''s type to ULONGEST.
2581 (core_xfer_shared_libraries_aix): Likewise.
2582 * gdbarch.c, gdbarch.h: Regenerated.
2583 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2584 Change type of 'len' to ULONGEST.
2585 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2586 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2588 2014-01-14 Yao Qi <yao@codesourcery.com>
2590 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2591 type of 'len' to ULONGEST.
2592 (linux_xfer_osdata_processgroups): Likewise.
2593 (linux_xfer_osdata_threads): Likewise.
2594 (linux_xfer_osdata_fds): Likewise.
2595 (linux_xfer_osdata_isockets): Likewise.
2596 (linux_xfer_osdata_shm): Likewise.
2597 (linux_xfer_osdata_sem): Likewise.
2598 (linux_xfer_osdata_msg): Likewise.
2599 (linux_common_xfer_osdata): Likewise.
2600 (struct osdata_type) <getter>: Likewise.
2601 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2604 2014-01-14 Yao Qi <yao@codesourcery.com>
2606 * target.h (target_xfer_partial_ftype): Update.
2607 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2609 * aix-thread.c (aix_thread_xfer_partial): Change type of
2610 argument 'len' to ULONGEST.
2611 * auxv.c (procfs_xfer_auxv): Likewise.
2612 (ld_so_xfer_auxv): Likewise.
2613 (memory_xfer_auxv): Likewise.
2614 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2615 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2616 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2617 * corelow.c (core_xfer_partial): Likewise.
2618 * ctf.c (ctf_xfer_partial): Likewise.
2619 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2621 (darwin_read_dyld_info): Likewise.
2622 (darwin_xfer_partial): Likewise.
2623 * exec.c (section_table_xfer_memory_partial): Likewise.
2624 (exec_xfer_partial): Likewise.
2625 * exec.h (section_table_xfer_memory_partial): Update
2627 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2628 instead of plongest.
2629 (gnu_xfer_partial): Likewise.
2630 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2631 (ia64_hpux_xfer_solib_got): Likewise.
2632 (ia64_hpux_xfer_partial): Likewise.
2633 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2634 * inf-ptrace.c (inf_ptrace_xfer_partial):
2635 * inf-ttrace.c (inf_ttrace_xfer_partial):
2636 * linux-nat.c (linux_xfer_siginfo): Likewise.
2637 (linux_nat_xfer_partial): Likewise.
2638 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2639 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2640 * monitor.c (monitor_xfer_memory): Likewise.
2641 (monitor_xfer_partial): Likewise.
2642 * procfs.c (procfs_xfer_partial): Likewise.
2643 * record-full.c (record_full_xfer_partial): Likewise.
2644 (record_full_core_xfer_partial): Likewise.
2645 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2646 instead of plongest.
2647 (gdbsim_xfer_partial): Likewise.
2648 * remote.c (remote_xfer_partial): Likewise.
2649 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2650 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2652 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2653 (rs6000_xfer_shared_libraries): Likewise.
2654 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2655 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2656 (sparc_xfer_partial): Likewise.
2657 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2658 (spu_xfer_partial): Likewise.
2659 * spu-multiarch.c (spu_xfer_partial): Likewise.
2660 * target.c (target_read_live_memory): Likewise.
2661 (memory_xfer_live_readonly_partial): Likewise.
2662 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2663 (target_xfer_partial, default_xfer_partial): Likewise.
2664 (current_xfer_partial): Likewise.
2665 * tracepoint.c (tfile_xfer_partial): Likewise.
2666 * windows-nat.c (windows_xfer_memory): Likewise. Call
2667 pulongest instead of plongest.
2668 (windows_xfer_partial): Likewise.
2669 (windows_xfer_shared_libraries): Likewise.
2671 2014-01-14 Yao Qi <yao@codesourcery.com>
2673 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2674 target_xfer_partial_ftype.
2676 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2680 * valops.c (value_struct_elt_bitpos): New function
2681 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2682 object to 'None' if the field name is an empty string ("").
2683 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2684 attribute to look for a field when 'name' is 'None'.
2685 (get_field_type): New function
2687 2014-01-13 Doug Evans <dje@google.com>
2690 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2691 (try_open_dwop_file): Ditto.
2692 * gdb_bfd.c: #include "vec.h".
2693 (bfdp): New typedef.
2694 (struct gdb_bfd_data): New member included_bfds.
2695 (gdb_bfd_unref): Unref all included bfds.
2696 (gdb_bfd_record_inclusion): New function.
2697 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2699 2014-01-13 Tom Tromey <tromey@redhat.com>
2701 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2703 2014-01-13 Tom Tromey <tromey@redhat.com>
2705 * defs.h (use_windows): Remove.
2706 * gdb.c (main): Update.
2707 * main.c (captured_main, gdb_main): Update.
2708 * main.h (struct captured_main_args) <use_windows>: Remove.
2709 * top.c (use_windows): Remove.
2711 2014-01-13 Tom Tromey <tromey@redhat.com>
2713 * defs.h (deprecated_flush_hook): Remove.
2715 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 * linux-thread-db.c (try_thread_db_load): Add parameter
2719 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2720 (try_thread_db_load_from_pdir_1): Move it there from here.
2721 (try_thread_db_load_from_sdir): Update caller.
2722 (try_thread_db_load_from_dir): Move it there from here.
2724 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2726 * regformats/regdat.sh: Always rewrite the register file.
2728 2014-01-13 Pedro Alves <palves@redhat.com>
2730 * Makefile.in (CHECK_HEADERS): New variable.
2731 (check-headers:): New rule.
2733 2014-01-13 Tom Tromey <tromey@redhat.com>
2735 * cli/cli-setshow.c (do_set_command): Update.
2736 * defs.h (deprecated_set_hook): Remove.
2737 * top.c (deprecated_set_hook): Remove.
2739 2014-01-13 Pedro Alves <palves@redhat.com>
2741 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2742 the tracepoint if the PC is a pseudo-register.
2744 2014-01-13 Tom Tromey <tromey@redhat.com>
2746 * defs.h (XCALLOC): Remove.
2747 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2748 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2749 * dwarf2loc.c (allocate_piece_closure): Likewise.
2750 * elfread.c (elf_symfile_segments): Likewise.
2751 (elf_symfile_segments): Likewise.
2752 * gdbtypes.c (copy_type_recursive): Likewise.
2753 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2754 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2755 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2757 * mt-tdep.c (mt_gdbarch_init): Likewise.
2758 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2760 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2761 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2762 * registry.c (registry_alloc_data): Likewise.
2763 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2764 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2765 * serial.c (serial_fdopen_ops): Likewise.
2766 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2768 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2769 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2772 2014-01-13 Tom Tromey <tromey@redhat.com>
2774 * defs.h (XMALLOC): Remove.
2775 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2776 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2777 * cli-out.c (struct ui_out *): Likewise.
2778 * cli/cli-dump.c (add_dump_command): Likewise.
2779 (add_dump_command): Likewise.
2780 * complaints.c (get_complaints): Likewise.
2781 (find_complaint): Likewise.
2782 * dwarf2-frame.c (execute_cfa_program): Likewise.
2783 * dwarf2read.c (abbrev_table_read_table): Likewise.
2784 * gdbarch.sh: Likewise.
2785 * gdbarch.c: Rebuild.
2786 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2787 * interps.c (interp_new): Likewise.
2788 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2789 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2790 * mi/mi-console.c (mi_console_file_new): Likewise.
2791 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2792 * mi/mi-out.c (mi_out_new): Likewise.
2793 * mi/mi-parse.c (mi_parse): Likewise.
2794 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2795 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2796 * observer.c (xalloc_observer_list_node): Likewise.
2797 * regcache.c (regcache_xmalloc_1): Likewise.
2798 * reggroups.c (reggroup_new): Likewise.
2799 (_initialize_reggroup): Likewise.
2800 * registry.c (register_data_with_cleanup): Likewise.
2801 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2802 * ser-base.c (serial_ttystate): Likewise.
2803 * ser-mingw.c (make_pipe_state): Likewise.
2804 * ser-pipe.c (pipe_open): Likewise.
2805 * serial.c (serial_open): Likewise.
2806 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2807 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2808 (tui_alloc_win_info): Likewise.
2809 (tui_add_content_elements): Likewise.
2810 * tui/tui-file.c (tui_file_new): Likewise.
2811 * tui/tui-out.c (tui_out_new): Likewise.
2812 * ui-file.c (mem_file_new): Likewise.
2813 * ui-out.c (push_level): Likewise.
2814 (make_cleanup_ui_out_end): Likewise.
2815 (append_header_to_list): Likewise.
2816 (ui_out_new): Likewise.
2817 * user-regs.c (user_reg_add_builtin): Likewise.
2819 2014-01-13 Tom Tromey <tromey@redhat.com>
2821 * defs.h (XZALLOC): Remove.
2822 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2823 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2824 (get_ada_tasks_inferior_data): Likewise.
2825 * auto-load.c (get_auto_load_pspace_data): Likewise.
2826 * auxv.c (get_auxv_inferior_data): Likewise.
2827 * bfd-target.c (target_bfd_reopen): Likewise.
2828 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2829 (deprecated_insert_raw_breakpoint): Likewise.
2830 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2831 * corelow.c (core_open): Likewise.
2832 * darwin-nat.c (darwin_check_new_threads): Likewise.
2833 (darwin_attach_pid): Likewise.
2834 * dummy-frame.c (dummy_frame_push): Likewise.
2835 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2836 * dwarf2loc.c (allocate_piece_closure): Likewise.
2837 * elfread.c (elf_symfile_segments): Likewise.
2838 * eval.c (ptrmath_type_p): Likewise.
2839 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2840 * gdbtypes.c (alloc_type_arch): Likewise.
2841 (alloc_type_instance): Likewise.
2842 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2843 * inf-child.c (inf_child_can_use_agent): Likewise.
2844 * inflow.c (get_inflow_inferior_data): Likewise.
2845 * infrun.c (save_infcall_suspend_state): Likewise.
2846 * jit.c (jit_reader_load): Likewise.
2847 (get_jit_objfile_data): Likewise.
2848 (get_jit_program_space_data): Likewise.
2849 (jit_object_open_impl): Likewise.
2850 (jit_symtab_open_impl): Likewise.
2851 (jit_block_open_impl): Likewise.
2852 (jit_frame_sniffer): Likewise.
2853 * linux-fork.c (add_fork): Likewise.
2854 * maint.c (make_command_stats_cleanup): Likewise.
2855 * objfiles.c (get_objfile_pspace_data): Likewise.
2856 * opencl-lang.c (struct lval_closure): Likewise.
2857 * osdata.c (osdata_start_osdata): Likewise.
2858 * progspace.c (new_address_space): Likewise.
2859 (add_program_space): Likewise.
2860 * remote-sim.c (get_sim_inferior_data): Likewise.
2861 * sh-tdep.c (sh_gdbarch_init): Likewise.
2862 * skip.c (Ignore): Likewise.
2863 (skip_delete_command): Likewise.
2864 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2865 (library_list_start_library): Likewise.
2866 (solib_aix_current_sos): Likewise.
2867 * solib-darwin.c (get_darwin_info): Likewise.
2868 (darwin_current_sos): Likewise.
2869 * solib-dsbt.c (get_dsbt_info): Likewise.
2870 * solib-ia64-hpux.c (new_so_list): Likewise.
2871 (ia64_hpux_get_solib_linkage_addr): Likewise.
2872 * solib-spu.c (append_ocl_sos): Likewise.
2873 (spu_current_sos): Likewise.
2874 * solib-svr4.c (get_svr4_info): Likewise.
2875 (svr4_keep_data_in_core): Likewise.
2876 (library_list_start_library): Likewise.
2877 (svr4_default_sos): Likewise.
2878 (svr4_read_so_list): Likewise.
2879 * solib-target.c (library_list_start_library): Likewise.
2880 (solib_target_current_sos): Likewise.
2881 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2882 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2883 * symfile.c (default_symfile_segments): Likewise.
2884 * target-descriptions.c (tdesc_data_init): Likewise.
2885 (tdesc_create_reg): Likewise.
2886 (struct tdesc_type *): Likewise.
2887 (tdesc_create_vector): Likewise.
2888 (tdesc_set_struct_size): Likewise.
2889 (struct tdesc_type *): Likewise.
2890 (tdesc_free_feature): Likewise.
2891 (tdesc_create_feature): Likewise.
2892 * windows-nat.c (windows_add_thread): Likewise.
2893 (windows_make_so): Likewise.
2894 * xml-support.c (gdb_xml_body_text): Likewise.
2895 (gdb_xml_create_parser_and_cleanup): Likewise.
2896 (xml_process_xincludes): Likewise.
2897 * xml-syscall.c (allocate_syscalls_info): Likewise.
2898 (syscall_create_syscall_desc): Likewise.
2900 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2902 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2903 function, with code from i386_stap_parse_special_token.
2904 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2905 (i386_stap_parse_special_token): Move code to the two functions
2908 2014-01-09 Pedro Alves <palves@redhat.com>
2909 Hui Zhu <hui@codesourcery.com>
2912 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2913 bp_err_string. Don't mark the location shlib_disabled if the
2914 error thrown wasn't a generic or memory error. Catch errors
2915 thrown while inserting breakpoints in overlayed code. Output
2916 error message of software breakpoints.
2917 * remote.c (remote_insert_breakpoint): If this breakpoint has
2918 target-side commands but this stub doesn't support Z0 packets,
2919 throw NOT_SUPPORTED_ERROR error.
2920 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2921 * target.h (target_insert_breakpoint): Extend comment.
2922 (target_insert_hw_breakpoint): Add comment.
2924 2014-01-08 Pedro Alves <palves@redhat.com>
2926 * remote.c (remote_add_thread): Add threads silently if starting
2928 (remote_notice_new_inferior): If in all-stop, and starting up,
2929 don't call notice_new_inferior.
2930 (get_current_thread): New function, factored out from ...
2931 (add_current_inferior_and_thread): ... this. Adjust.
2932 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2933 found any thread, then select the remote's current thread as GDB's
2936 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2938 * NEWS: Create a new section for the next release branch.
2939 Rename the section of the current branch, now that it has
2942 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2944 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2945 * version.in: Bump version to 7.7.50.DATE-cvs.
2947 2014-01-08 Yao Qi <yao@codesourcery.com>
2949 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2950 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2951 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2953 2014-01-08 Yao Qi <yao@codesourcery.com>
2955 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2956 return value of bfd_get_filename to symbol_file_add_from_bfd.
2958 2014-01-08 Pierre Muller <muller@sourceware.org>
2961 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2962 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2963 to prim_record_mininal_symbol_and_info.
2964 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2965 in call to prim_record_minimal_symbol_and_info.
2966 (read_pe_exported_syms): Set index field of section_data.
2968 2014-01-07 Andrew Pinski <apinski@cavium.com>
2970 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2971 * features/aarch64.c: Regenerate.
2973 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2975 * target.c (return_null): Define.
2976 (update_current_target): Use it instead of return_zero for
2977 functions that return a pointer.
2979 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2981 * source.c (add_path): Fix check for duplicated paths in the previously
2984 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2986 * ada-lang.c: Remove duplicated include statements.
2987 * alphabsd-nat.c: Ditto.
2988 * amd64-darwin-tdep.c: Ditto.
2989 * amd64fbsd-nat.c: Ditto.
2990 * auto-load.c: Ditto.
2992 * breakpoint.c: Ditto.
2994 * fork-child.c: Ditto.
2995 * gdb_usleep.c: Ditto.
2996 * i386-darwin-tdep.c: Ditto.
2997 * i386fbsd-nat.c: Ditto.
2999 * inferior.c: Ditto.
3001 * linux-nat.c: Ditto.
3002 * linux-tdep.c: Ditto.
3003 * m68kbsd-nat.c: Ditto.
3004 * m68klinux-nat.c: Ditto.
3005 * microblaze-tdep.c: Ditto.
3006 * mips-linux-tdep.c: Ditto.
3007 * mn10300-tdep.c: Ditto.
3008 * nto-tdep.c: Ditto.
3009 * opencl-lang.c: Ditto.
3011 * printcmd.c: Ditto.
3012 * regcache.c: Ditto.
3013 * remote-m32r-sdi.c: Ditto.
3017 * tilegx-linux-nat.c: Ditto.
3018 * tilegx-tdep.c: Ditto.
3019 * tracepoint.c: Ditto.
3021 * vaxbsd-nat.c: Ditto.
3022 * windows-nat.c: Ditto.
3023 * xtensa-tdep.c: Ditto.
3025 2014-01-07 Yao Qi <yao@codesourcery.com>
3027 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3029 2014-01-07 Yao Qi <yao@codesourcery.com>
3030 Joel Brobecker <brobecker@adacore.com>
3032 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3033 (pdc_write_regs): Likewise.
3034 (fetch_regs_kernel_thread): Likewise.
3035 (store_regs_kernel_thread): Likewise.
3037 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3039 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3040 tagged type objects to their actual type.
3042 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3044 * ada-valprint.c (print_field_values): Add "language" parameter.
3045 Update calls to print_field_values and print_variant_part.
3046 Pass new parameter "language" in call to val_print instead
3047 of "current_language". Replace call to ada_val_print by call
3049 (print_variant_part): Add "language" parameter.
3050 (ada_val_print_struct_union): Update call to print_field_values.
3052 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3054 * ada-valprint.c (ui_memcpy): Delete.
3055 (ada_print_floating): Update documentation. Add empty line
3056 between between function documentation and implementation.
3057 Delete variable "buffer". Use ui_file_xstrdup in place of
3058 ui_file_put. Minor adjustments following this change.
3060 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3062 * ada-valprint.c (ada_val_print_string): New function,
3063 extracted from ada_val_print_array.
3064 (ada_val_print_array): Replace extracted code by call
3065 to ada_val_print_string followed by a return. Move
3066 "else" branch to the function's top block.
3068 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3070 * ada-valprint.c (ada_val_print_array): Move implementation
3071 down. Rename parameter "offset" and "val" into "offset_aligned"
3072 and "original_value" respectively. Add parameter "offset".
3074 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3076 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
3077 re-organizing the code. Change the "???" message printed
3078 when target type is a TYPE_CODE_UNDEF into
3079 "<ref to undefined type>".
3081 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3083 * ada-valprint.c (print_record): Delete, implementation inlined...
3084 (ada_val_print_struct_union): ... here. Remove call to
3085 ada_check_typedef in inlined implementation.
3087 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3089 * ada-valprint.c (ada_val_print_gnat_array): New function,
3090 extracted from ada_val_print_1;
3091 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
3092 (ada_val_print_flt, ada_val_print_struct_union)
3093 (ada_val_print_ref): Likewise.
3094 (ada_val_print_1): Delete variables i and elttype.
3095 Replace extracted-out code by call to corresponding
3098 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3100 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
3102 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3104 * ada-valprint.c (ada_val_print_1): Replace calls to
3105 ada_val_print_1 by calls to val_print.
3107 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3109 * ada-valprint.c (ada_val_print_1): Add parameter "language".
3110 Update calls to self accordingly. Replace calls to c_val_print
3111 by calls to val_print.
3113 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3115 * ada-valprint.c (print_record): Delete declaration.
3116 (adjust_type_signedness, ada_val_print_1): Likewise.
3117 (ada_val_print): Move function implementation down.
3118 (print_variant_part, print_field_values, print_record):
3119 Move function implementation up.
3121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3123 * python/py-type.c (typy_get_name): New function.
3124 (type_object_getset): Add entry for attribute "name".
3125 * NEWS: Add entry mentioning this new attribute.
3127 2014-01-07 Yao Qi <yao@codesourcery.com>
3129 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
3132 2014-01-07 Yao Qi <yao@codesourcery.com>
3134 * gnu-nat.c (info_port_rights): Add qualifier const to
3137 2014-01-07 Yao Qi <yao@codesourcery.com>
3139 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3141 2014-01-07 Yao Qi <yao@codesourcery.com>
3143 * gnu-nat.c (make_inf) Update declaration.
3144 (make_inf): Make it static.
3145 (inf_set_traced): Likewise.
3146 (inf_port_to_thread, inf_task_died_status): Likewise.
3148 2014-01-07 Yao Qi <yao@codesourcery.com>
3150 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3152 2014-01-07 Yao Qi <yao@codesourcery.com>
3154 * gnu-nat.c (_initialize_gnu_nat): Declare.
3156 2014-01-07 Yao Qi <yao@codesourcery.com>
3158 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3160 (struct gdbarch_info) <byte_order>: Change type to
3162 <byte_order_for_code>: Likewise.
3163 * gdbarch.c, gdbarch.h: Regenerated.
3165 2014-01-06 Sasha Smundak <asmundak@google.com>
3167 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3169 2014-01-06 Tom Tromey <tromey@redhat.com>
3171 * doublest.c (convert_doublest_to_floatformat): Use const, not
3173 * somread.c (som_symtab_read): Likewise.
3175 2014-01-07 Hui Zhu <hui@codesourcery.com>
3177 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3178 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3179 (gdb_bfd_fopen): Ditto.
3180 (gdb_bfd_openr): Ditto.
3181 (gdb_bfd_openw): Ditto.
3182 (gdb_bfd_openr_iovec): Ditto.
3183 (gdb_bfd_fdopenr): Ditto.
3184 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3185 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3187 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3189 * symfile-mem.c (symbol_file_add_from_memory): Removed
3190 gdb_bfd_stash_filename.
3192 2014-01-03 Doug Evans <dje@google.com>
3194 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3197 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3199 Update year range in copyright notice of all files.
3201 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3203 * top.c (print_gdb_version): Set copyright year to 2014.
3205 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3207 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3209 For older changes see ChangeLog-2013.
3215 version-control: never