1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5 (target_set_syscall_catchpoint): Add argument.
6 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8 * target.c (update_current_target): Update.
10 2014-02-19 Tom Tromey <tromey@redhat.com>
12 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
14 (target_remove_exec_catchpoint): Add argument.
15 * target.c (debug_to_remove_exec_catchpoint): Add argument.
16 (update_current_target): Update.
17 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
20 2014-02-19 Tom Tromey <tromey@redhat.com>
22 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
24 (target_insert_exec_catchpoint): Add argument.
25 * target.c (debug_to_insert_exec_catchpoint): Add argument.
26 (update_current_target): Update.
27 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
30 2014-02-19 Tom Tromey <tromey@redhat.com>
32 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
34 (target_remove_vfork_catchpoint): Add argument.
35 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
36 (update_current_target): Update.
37 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
40 2014-02-19 Tom Tromey <tromey@redhat.com>
42 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
44 (target_insert_vfork_catchpoint): Add argument.
45 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
46 (update_current_target): Update.
47 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
50 2014-02-19 Tom Tromey <tromey@redhat.com>
52 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
54 (target_remove_fork_catchpoint): Add argument.
55 * target.c (debug_to_remove_fork_catchpoint): Add argument.
56 (update_current_target): Update.
57 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
60 2014-02-19 Tom Tromey <tromey@redhat.com>
62 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
64 (target_insert_fork_catchpoint): Add argument.
65 * target.c (debug_to_insert_fork_catchpoint): Add argument.
66 (update_current_target): Update.
67 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
70 2014-02-19 Tom Tromey <tromey@redhat.com>
72 * target.h (struct target_ops) <to_post_startup_inferior>: Add
74 (target_post_startup_inferior): Add argument.
75 * target.c (debug_to_post_startup_inferior): Add argument.
76 (update_current_target): Update.
77 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
79 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
81 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
83 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
85 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
87 (super_post_startup_inferior): Likewise.
88 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
90 (super_post_startup_inferior): Likewise.
91 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
93 (super_post_startup_inferior): Likewise.
95 2014-02-19 Tom Tromey <tromey@redhat.com>
97 * target.h (struct target_ops) <to_load>: Add argument.
98 * target.c (target_load): Add argument.
99 (debug_to_load): Add argument.
100 (update_current_target): Update.
101 * remote.c (remote_load): Add 'self' argument.
102 * remote-sim.c (gdbsim_load): Add 'self' argument.
103 * remote-mips.c (mips_load): Add 'self' argument.
104 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
105 * monitor.c (monitor_load): Add 'self' argument.
106 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
108 2014-02-19 Tom Tromey <tromey@redhat.com>
110 * target.h (struct target_ops) <to_terminal_info>: Add argument.
111 (target_terminal_info): Add argument.
112 * target.c (debug_to_terminal_info): Add argument.
113 (default_terminal_info): Likewise.
114 * inflow.c (child_terminal_info): Add 'self' argument.
115 * inferior.h (child_terminal_info): Add 'self' argument.
116 * go32-nat.c (go32_terminal_info): Add 'self' argument.
118 2014-02-19 Tom Tromey <tromey@redhat.com>
120 * target.h (struct target_ops) <to_terminal_save_ours>: Add
122 (target_terminal_save_ours): Add argument.
123 * target.c (debug_to_terminal_save_ours): Add argument.
124 (update_current_target): Update.
125 * inflow.c (terminal_save_ours): Add 'self' argument.
126 * inferior.h (terminal_save_ours): Add 'self' argument.
128 2014-02-19 Tom Tromey <tromey@redhat.com>
130 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
131 (target_terminal_ours): Add argument.
132 * target.c (debug_to_terminal_ours): Add argument.
133 (update_current_target): Update.
134 * remote.c (remote_terminal_ours): Add 'self' argument.
135 (remote_close): Update.
136 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
137 * inflow.c (terminal_ours): Add 'self' argument.
138 * inferior.h (terminal_ours): Add 'self' argument.
139 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
141 2014-02-19 Pedro Alves <palves@redhat.com>
142 Tom Tromey <tromey@redhat.com>
144 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
146 (target_terminal_ours_for_output): Add argument.
147 * target.c (debug_to_terminal_ours_for_output): Add argument.
148 (update_current_target): Update.
149 * inflow.c (terminal_ours_for_output): Add 'self' argument.
150 * inferior.h (terminal_ours_for_output): Add 'self' argument.
151 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
153 2014-02-19 Tom Tromey <tromey@redhat.com>
155 * target.h (struct target_ops) <to_terminal_inferior>: Add
157 * target.c (target_terminal_inferior): Add argument.
158 (update_current_target): Update.
159 * remote.c (remote_terminal_inferior): Add 'self' argument.
160 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
161 * inflow.c (terminal_inferior): Add 'self' argument.
162 * inferior.h (terminal_inferior): Add 'self' argument.
163 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
164 (go32_terminal_inferior): Add 'self' argument.
166 2014-02-19 Tom Tromey <tromey@redhat.com>
168 * target.h (struct target_ops) <to_terminal_init>: Add argument.
169 (target_terminal_init): Add argument.
170 * target.c (debug_to_terminal_init): Add argument.
171 (update_current_target): Update.
172 * inflow.c (terminal_init_inferior): Add 'self' argument.
173 * inferior.h (terminal_init_inferior): Add 'self' argument.
174 * go32-nat.c (go32_terminal_init): Add 'self' argument.
175 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
177 2014-02-19 Tom Tromey <tromey@redhat.com>
179 * target.h (struct target_ops)
180 <to_can_accel_watchpoint_condition>: Add argument.
181 (target_can_accel_watchpoint_condition): Add argument.
182 * target.c (debug_to_can_accel_watchpoint_condition): Add
184 (update_current_target): Update.
185 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
188 2014-02-19 Tom Tromey <tromey@redhat.com>
190 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
192 (target_region_ok_for_hw_watchpoint): Add argument.
193 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
194 (default_region_ok_for_hw_watchpoint): Add argument.
195 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
196 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
198 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
200 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
202 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
204 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
206 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
208 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
209 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
211 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
214 2014-02-19 Tom Tromey <tromey@redhat.com>
216 * target.h (struct target_ops) <to_insert_watchpoint>: Add
218 (target_insert_watchpoint): Add argument.
219 * target.c (debug_to_insert_watchpoint): Add argument.
220 (update_current_target): Update.
221 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
222 * remote.c (remote_insert_watchpoint): Add 'self' argument.
223 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
224 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
225 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
226 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
228 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
229 (procfs_insert_hw_watchpoint): Add 'self' argument.
230 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
232 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
234 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
236 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
237 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
239 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
242 2014-02-19 Tom Tromey <tromey@redhat.com>
244 * target.h (struct target_ops) <to_remove_watchpoint>: Add
246 (target_remove_watchpoint): Add argument.
247 * target.c (debug_to_remove_watchpoint): Add argument.
248 (update_current_target): Update.
249 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
250 * remote.c (remote_remove_watchpoint): Add 'self' argument.
251 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
252 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
253 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
254 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
256 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
257 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
259 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
261 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
263 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
264 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
266 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
269 2014-02-19 Tom Tromey <tromey@redhat.com>
271 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
273 (target_remove_hw_breakpoint): Add argument.
274 * target.c (debug_to_remove_hw_breakpoint): Add argument.
275 (update_current_target): Update.
276 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
277 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
279 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
280 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
282 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
285 2014-02-19 Tom Tromey <tromey@redhat.com>
287 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
289 (target_insert_hw_breakpoint): Add argument.
290 * target.c (debug_to_insert_hw_breakpoint): Add argument.
291 (update_current_target): Update.
292 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
293 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
295 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
296 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
297 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
299 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
302 2014-02-19 Tom Tromey <tromey@redhat.com>
304 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
306 (target_can_use_hardware_watchpoint): Add argument.
307 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
308 (update_current_target): Update.
309 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
311 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
313 * remote.c (remote_check_watch_resources): Add 'self' argument.
314 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
315 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
317 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
318 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
320 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
322 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
324 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
326 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
328 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
330 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
331 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
333 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
336 2014-02-19 Tom Tromey <tromey@redhat.com>
338 * target.h (struct target_ops) <to_post_attach>: Add argument.
339 (target_post_attach): Add argument.
340 * target.c (debug_to_post_attach): Add argument.
341 (update_current_target): Update.
342 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
343 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
344 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
345 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
346 * inf-child.c (inf_child_post_attach): Add 'self' argument.
348 2014-02-19 Tom Tromey <tromey@redhat.com>
350 * windows-nat.c (windows_close): Add 'self' argument.
351 * tracepoint.c (tfile_close): Add 'self' argument.
352 * target.h (struct target_ops) <to_close>: Add argument.
353 * target.c (target_close): Add argument.
354 (update_current_target): Update.
355 * remote.c (remote_close): Add 'self' argument.
356 * remote-sim.c (gdbsim_close): Add 'self' argument.
357 * remote-mips.c (mips_close): Add 'self' argument.
358 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
359 * record-full.c (record_full_close): Add 'self' argument.
360 * record-btrace.c (record_btrace_close): Add 'self' argument.
361 * monitor.h (monitor_close): Add 'self' argument.
362 * monitor.c (monitor_close): Add 'self' argument.
363 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
364 * linux-nat.c (linux_nat_close): Add argument.
365 * go32-nat.c (go32_close): Add 'self' argument.
366 * exec.c (exec_close_1): Add 'self' argument.
367 * ctf.c (ctf_close): Add 'self' argument.
368 * corelow.c (core_close): Add 'self' argument.
369 (core_close_cleanup): Update.
370 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
371 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
373 2014-02-19 Tom Tromey <tromey@redhat.com>
375 * remote.c (remote_load): New function.
376 (init_remote_ops): Use it.
378 2014-02-19 Tom Tromey <tromey@redhat.com>
380 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
382 * common/linux-btrace.h (linux_supports_btrace): Update.
383 * remote.c (remote_supports_btrace): Add "self" argument.
384 * target-delegates.c: Rebuild.
385 * target.c (target_supports_btrace): Remove.
386 * target.h (struct target_ops) <to_supports_btrace>: Add
388 (target_supports_btrace): New define.
390 2014-02-19 Tom Tromey <tromey@redhat.com>
392 * record-full.c (record_full_beneath_to_resume_ops)
393 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
394 (record_full_beneath_to_wait)
395 (record_full_beneath_to_store_registers_ops)
396 (record_full_beneath_to_store_registers)
397 (record_full_beneath_to_xfer_partial_ops)
398 (record_full_beneath_to_xfer_partial)
399 (record_full_beneath_to_insert_breakpoint_ops)
400 (record_full_beneath_to_insert_breakpoint)
401 (record_full_beneath_to_remove_breakpoint_ops)
402 (record_full_beneath_to_remove_breakpoint)
403 (record_full_beneath_to_stopped_by_watchpoint)
404 (record_full_beneath_to_stopped_data_address)
405 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
406 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
407 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
408 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
409 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
410 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
411 (tmp_to_stopped_data_address, tmp_to_async): Remove.
412 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
413 (record_full_resume, record_full_wait_1)
414 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
415 (record_full_store_registers, record_full_xfer_partial)
416 (record_full_insert_breakpoint, record_full_remove_breakpoint)
417 (record_full_async, record_full_core_xfer_partial): Use target
419 * target-delegates.c: Rebuild.
420 * target.c (current_xfer_partial): Remove.
421 (update_current_target): Do not INHERIT or de_fault
422 to_insert_breakpoint, to_remove_breakpoint,
423 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
424 to_is_async_p, to_async. Do not set to_xfer_partial field.
425 (default_xfer_partial): Simplify.
426 (current_xfer_partial): Remove.
427 (target_wait, target_resume): Simplify.
428 (find_default_can_async_p, find_default_is_async_p): Update.
429 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
430 to_xfer_partial, to_stopped_by_watchpoint,
431 to_stopped_data_address.
432 (target_store_registers): Simplify.
433 (forward_target_remove_breakpoint)
434 (forward_target_insert_breakpoint): Remove.
435 (target_remove_breakpoint, target_insert_breakpoint)
436 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
437 * target.h (struct target_ops) <to_resume, to_wait,
438 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
439 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
440 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
442 (forward_target_remove_breakpoint)
443 (forward_target_insert_breakpoint): Remove.
444 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
446 (record_btrace_insert_breakpoint): Delegate directly.
448 2014-02-19 Tom Tromey <tromey@redhat.com>
451 * target-delegates.c: New file.
452 * target.c: Include target-delegates.c.
453 (init_dummy_target): Call install_dummy_methods.
454 (complete_target_initialization): Call install_delegators.
455 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
456 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
457 * make-target-delegates: New file.
459 2014-02-19 Tom Tromey <tromey@redhat.com>
461 * record.c (find_record_target): Use find_target_at.
462 * target.c (find_target_at): New function.
463 * target.h (find_target_at): Declare.
465 2014-02-19 Tom Tromey <tromey@redhat.com>
467 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
469 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
471 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
472 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
474 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
476 * linux-nat.c (save_sigtrap): Update.
477 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
478 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
479 (linux_nat_close): Update.
480 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
482 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
484 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
485 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
486 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
487 (tmp_to_async): Add 'ops' argument.
488 (record_full_stopped_by_watchpoint, record_full_async)
489 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
491 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
492 (m32r_stopped_by_watchpoint): Add 'ops' argument.
493 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
494 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
495 (remote_is_async_p, remote_async): Add 'ops' argument.
496 (remote_stopped_data_address): Update.
497 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
498 * target.c (update_current_target)
499 (find_default_can_async_p, find_default_is_async_p): Update.
500 (init_dummy_target): Update.
501 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
502 * target.h (struct target_ops) <to_stopped_by_watchpoint,
503 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
504 (target_can_async_p, target_is_async_p, target_async)
505 (target_stopped_by_watchpoint): Update.
507 2014-02-19 Yao Qi <yao@codesourcery.com>
510 * gdbarch.sh: Remove startup_gdbarch.
511 * gdbarch.c: Regenerated.
512 * gdbarch.h: Likewise.
514 2014-02-17 Kevin Buettner <kevinb@redhat.com>
516 * rl78-tdep.c (rl78_g10_register_name): New function.
517 (rl78_return_value): Add g10 support.
518 (rl78_gdbarch_init): Register rl78_g10_register_name for the
521 2014-02-17 Doug Evans <xdje42@gmail.com>
523 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
524 (SUBDIR_GUILE_SRCS): Ditto.
525 (scm-gsmob.o): Ditto.
527 2014-02-17 Yao Qi <yao@codesourcery.com>
529 * gnu-nat.c (ILL_RPC): Declare defined function.
531 2014-02-17 Yao Qi <yao@codesourcery.com>
533 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
534 mach_msg_type_number_t.
535 (gnu_write_inferior): Likewise.
537 2014-02-17 Yao Qi <yao@codesourcery.com>
539 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
541 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
542 (inf_validate_procs, inf_signal): Likewise.
543 (S_exception_raise_request): Likewise.
544 (do_mach_notify_dead_name): Likewise.
545 (steal_exc_port): Likewise.
546 (gnu_read_inferior): Change 'copy_count''s type to
547 mach_msg_type_number_t.
548 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
551 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
553 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
554 flag. Adjust all users; in particular...
555 (gnu_wait): ..., don't decrement its value in here...
556 (gnu_create_inferior): ..., and instead set the flag in here,
557 around the startup_inferior call, and call that one with
558 START_INFERIOR_TRAPS_EXPECTED.
560 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
561 (ILL_RPC): ... new macro.
562 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
563 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
564 (do_mach_notify_send_once, S_proc_setmsgport_reply)
565 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
566 functions with ILL_RPC macro.
567 (S_proc_pid2task_reply, S_proc_task2pid_reply)
568 (S_proc_task2proc_reply, S_proc_proc2task_reply)
569 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
570 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
571 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
572 (S_proc_getlogin_reply, S_proc_getsid_reply)
573 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
574 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
575 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
576 (S_proc_getnports_reply, S_proc_is_important_reply)
577 (S_proc_get_code_reply): New stub functions, generated with
580 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
581 collected the type check structures.
583 * reply_mig_hack.awk: Don't expect to see the auto keyword.
585 2014-02-14 Doug Evans <dje@google.com>
587 * target.c (target_write_partial): Fix result type.
589 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
591 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
592 the proper offsets to access fpregset_t.
594 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
596 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
597 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
598 * h8300-tdep.c (setmachinelist): Remove global.
599 * hppa-tdep.c (hppa_sigtramp): Remove global.
600 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
601 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
602 * ravenscar-thread.c (update_target_observer): Remove global.
603 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
605 2014-02-12 Tom Tromey <tromey@redhat.com>
607 * common/rsp-low.c: Update comments.
608 * common/rsp-low.h: Update comments.
610 2014-02-12 Tom Tromey <tromey@redhat.com>
612 * common/rsp-low.c (convert_ascii_to_int): Remove.
613 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
615 2014-02-12 Tom Tromey <tromey@redhat.com>
617 * common/rsp-low.h (unhexify): Don't declare.
618 * common/rsp-low.c (unhexify): Remove.
620 2014-02-12 Tom Tromey <tromey@redhat.com>
622 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
623 * common/rsp-low.c (convert_int_to_ascii): Remove.
625 2014-02-12 Tom Tromey <tromey@redhat.com>
627 * common/rsp-low.h (hexify): Don't declare.
628 * common/rsp-low.c (hexify): Remove.
630 2014-02-12 Tom Tromey <tromey@redhat.com>
632 * common/rsp-low.c (hexify): Never take strlen of argument.
634 2014-02-12 Tom Tromey <tromey@redhat.com>
636 * common/rsp-low.c (bin2hex): Never take strlen of argument.
637 * remote.c (extended_remote_run, remote_rcmd)
638 (remote_download_trace_state_variable, remote_save_trace_data)
639 (remote_set_trace_notes): Update.
640 * tracepoint.c (encode_source_string, tfile_write_status)
641 (tfile_write_uploaded_tsv): Update.
643 2014-02-12 Tom Tromey <tromey@redhat.com>
645 * tracepoint.c: Include rsp-low.h.
646 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
647 * remote.c: Include rsp-low.h.
648 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
649 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
650 (remote_unescape_input): Move to common/rsp-low.c.
651 * common/rsp-low.h: New file.
652 * common/rsp-low.c: New file.
653 * Makefile.in (SFILES): Add common/rsp-low.c.
654 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
655 (COMMON_OBS): Add rsp-low.o.
656 (rsp-low.o): New target.
658 2014-02-12 Tom Tromey <tromey@redhat.com>
660 * utils.h: Include print-utils.h.
661 (host_address_to_string, plongest, pulongest, phex, phex_nz)
662 (int_string, core_addr_to_string, core_addr_to_string_nz)
663 (hex_string, hex_string_custom): Don't declare.
664 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
665 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
666 (hex_string_custom, int_string, core_addr_to_string)
667 (core_addr_to_string_nz, host_address_to_string): Move to
668 common/print-utils.c.
669 * common/print-utils.h: New file.
670 * common/print-utils.c: New file
671 * Makefile.in (SFILES): Add common/print-utils.c.
672 (HFILES_NO_SRCDIR): Add common/print-utils.h.
673 (COMMON_OBS): Add print-utils.o.
674 (print-utils.o): New target.
676 2014-02-12 Tom Tromey <tromey@redhat.com>
678 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
680 2014-02-12 Mark Kettenis <kettenis@gnu.org>
682 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
684 2014-02-12 Mark Kettenis <kettenis@gnu.org>
686 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
687 if a PT_IO ptrace request returns sucessfully but indicates that 0
688 bytes were transferred.
690 2014-02-12 Pedro Alves <palves@redhat.com>
691 Kevin Buettner <kevinb@redhat.com>
693 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
694 TYPE_INSTANCE_FLAG_CODE_SPACE.
696 2014-02-12 Pedro Alves <palves@redhat.com>
698 * h8300-tdep.c (pseudo_from_raw_register)
699 (raw_from_pseudo_register): New functions.
700 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
703 2014-02-12 Pedro Alves <palves@redhat.com>
705 * h8300-tdep.c (h8300_register_sim_regno): New function.
706 (h8300_gdbarch_init): Install h8300_register_sim_regno as
707 gdbarch_register_sim_regno hook.
709 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
711 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
713 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
715 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
717 2014-02-12 Mark Kettenis <kettenis@gnu.org>
719 * obsd-tdep.h (obsd_init_abi): New prototype.
720 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
721 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
722 (obsd_init_abi): New functions.
723 * i386obsd-tdep.c: Include "obsd-tdep.h".
724 (i386obsd_init_abi): Call obsd_init_abi.
725 * amd64obsd-tdep.c: Include "obsd-tdep.h".
726 (amd64obsd_init_abi): Call obsd_init_abi.
727 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
728 obsd-tdep.c to gdb_target_obs.
730 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
732 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
733 double float arguments to 16-byte in the argument slots.
735 2014-02-11 Doug Evans <xdje42@gmail.com>
737 * configure.ac: Don't crash if pkg-config is not found and guile
738 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
740 * configure: Regenerate.
742 2014-02-11 Yao Qi <yao@codesourcery.com>
744 * aix-thread.c (aix_thread_xfer_partial): Update comments.
745 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
746 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
747 * gnu-nat.c (gnu_xfer_memory): Likewise.
748 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
749 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
750 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
751 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
753 2014-02-11 Yao Qi <yao@codesourcery.com>
755 * target.h (enum target_xfer_error): Rename to ...
756 (enum target_xfer_status): ... it. New. All users updated.
757 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
759 (TARGET_XFER_STATUS_ERROR_P): New macro.
760 (target_xfer_error_to_string): Remove declaration.
761 (target_xfer_status_to_string): Declare.
762 (target_xfer_partial_ftype): Adjust it.
763 (struct target_ops) <to_xfer_partial>: Return
764 target_xfer_status. Add argument xfered_len. Update
766 * target.c (target_xfer_error_to_string): Rename to ...
767 (target_xfer_status_to_string): ... it. New. All callers
769 (target_read_live_memory): Likewise. Call target_xfer_partial
770 instead of target_read.
771 (memory_xfer_live_readonly_partial): Return
772 target_xfer_status. Add argument xfered_len.
773 (raw_memory_xfer_partial): Likewise.
774 (memory_xfer_partial_1): Likewise.
775 (memory_xfer_partial): Likewise.
776 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
777 properly. Update debug message.
778 (default_xfer_partial, current_xfer_partial): Likewise.
779 (target_write_partial): Likewise.
780 (target_read_partial): Likewise. All callers updated.
781 (read_whatever_is_readable): Likewise.
782 (target_write_with_progress): Likewise.
783 (target_read_alloc_1): Likewise.
785 * aix-thread.c (aix_thread_xfer_partial): Likewise.
786 * auxv.c (procfs_xfer_auxv): Likewise.
787 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
788 * bfd-target.c (target_bfd_xfer_partial): Likewise.
789 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
790 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
791 * corefile.c (read_memory): Adjust.
792 * corelow.c (core_xfer_partial): Likewise.
793 * ctf.c (ctf_xfer_partial): Likewise.
794 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
796 (darwin_xfer_partial): Likewise.
797 * exec.c (section_table_xfer_memory_partial): Likewise. All
799 (exec_xfer_partial): Likewise.
800 * exec.h (section_table_xfer_memory_partial): Update
802 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
804 (gnu_xfer_partial): Likewise.
805 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
806 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
807 (ia64_hpux_xfer_solib_got): Likewise.
808 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
809 type of 'partial_len' to ULONGEST.
810 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
811 * linux-nat.c (linux_xfer_siginfo ): Likewise.
812 (linux_nat_xfer_partial): Likewise.
813 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
814 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
815 * monitor.c (monitor_xfer_memory): Likewise.
816 (monitor_xfer_partial): Likewise.
817 * procfs.c (procfs_xfer_partial): Likewise.
818 * record-btrace.c (record_btrace_xfer_partial): Likewise.
819 * record-full.c (record_full_xfer_partial): Likewise.
820 (record_full_core_xfer_partial): Likewise.
821 * remote-sim.c (gdbsim_xfer_memory): Likewise.
822 (gdbsim_xfer_partial): Likewise.
823 * remote.c (remote_write_bytes_aux): Likewise. All callers
825 (remote_write_bytes, remote_read_bytes): Likewise. All
827 (remote_flash_erase): Likewise. All callers updated.
828 (remote_write_qxfer): Likewise. All callers updated.
829 (remote_read_qxfer): Likewise. All callers updated.
830 (remote_xfer_partial): Likewise.
831 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
832 (rs6000_xfer_shared_libraries): Likewise.
833 * sol-thread.c (sol_thread_xfer_partial): Likewise.
834 (sol_thread_xfer_partial): Likewise.
835 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
836 (sparc_xfer_partial): Likewise.
837 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
839 (spu_xfer_partial): Likewise.
840 * spu-multiarch.c (spu_xfer_partial): Likewise.
841 * tracepoint.c (tfile_xfer_partial): Likewise.
842 * windows-nat.c (windows_xfer_memory): Likewise.
843 (windows_xfer_shared_libraries): Likewise.
844 (windows_xfer_partial): Likewise.
845 * valprint.c: Replace 'target_xfer_error' with
846 'target_xfer_status' in comments.
848 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
850 Checked in by Joel Brobecker <brobecker@adacore.com>.
851 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
853 2014-02-11 Joel Brobecker <brobecker@adacore.com>
855 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
858 2014-02-10 Will Newton <will.newton@linaro.org>
860 * elfread.c (elf_rel_plt_read): Look for a .got section if
861 looking up .got.plt fails.
862 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
863 on address passed to elf_gnu_ifunc_record_cache.
864 (elf_gnu_ifunc_resolve_addr): Likewise.
865 (elf_gnu_ifunc_resolver_return_stop): Likewise.
867 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
869 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
870 (X_RETTURN): New macro.
871 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
873 * sparc64-tdep.c (sparc64_init_abi): Hook
874 sparc_in_function_epilogue_p.
876 2014-02-10 Gary Benson <gbenson@redhat.com>
878 * symfile-debug.c (debug_qf_expand_symtabs_matching):
879 Rename name_matcher to symbol_matcher.
881 2014-02-10 Gary Benson <gbenson@redhat.com>
883 * symfile-debug.c (debug_qf_expand_symtabs_matching):
884 Use expand_symtabs_file_matcher_ftype and
885 expand_symtabs_symbol_matcher_ftype.
887 2014-02-10 Joel Brobecker <brobecker@adacore.com>
889 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
890 (struct ada_symbol_cache): New.
891 (ada_free_symbol_cache): Forward declare.
892 (struct ada_pspace_data): New.
893 (ada_pspace_data_handle): New static global.
894 (get_ada_pspace_data, ada_pspace_data_cleanup)
895 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
896 (cache_space, cache): Delete, now folded inside struct
898 (ada_get_symbol_cache): New function.
899 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
901 (_initialize_ada_language): Remove initialization of cache_space.
902 Move call to observer_attach_inferior_exit up, grouping it
903 with the other observer registrations inside this function.
904 Rename command to be more general. Add call to
905 register_program_space_data_with_cleanup.
907 2014-02-10 Joel Brobecker <brobecker@adacore.com>
909 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
910 ada_new_objfile_observer.
911 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
912 (_initialize_tasks): Update uses of ada_new_objfile_observer
913 and ada_tasks_normal_stop_observer.
915 2014-02-10 Joel Brobecker <brobecker@adacore.com>
917 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
918 returned by the 'Length attribute to integer.
920 2014-02-10 Joel Brobecker <brobecker@adacore.com>
922 * ada-lang.c (_initialize_ada_language): Initialize
925 2014-02-10 Joel Brobecker <brobecker@adacore.com>
927 * ada-lang.c (HASH_SIZE): New macro.
928 (struct cache_entry): New type.
929 (cache_space, cache): New static globals.
930 (ada_clear_symbol_cache, find_entry): New functions.
931 (lookup_cached_symbol, cache_symbol): Implement.
932 (ada_new_objfile_observer, ada_free_objfile_observer): New.
933 (_initialize_ada_language): Attach ada_new_objfile_observer
934 and ada_free_objfile_observer.
936 2014-02-10 Joel Brobecker <brobecker@adacore.com>
938 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
939 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
940 struct block * parameter.
941 (ada_lookup_symbol_list_worker): Constify local variable "block".
942 Remove cast which is no longer necessary.
944 2014-02-10 Doug Evans <xdje42@gmail.com>
946 Add Guile as an extension language.
947 * NEWS: Mention Guile scripting.
948 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
949 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
950 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
951 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
952 (CLIBS): Add GUILE_LIBS.
953 (install-guile): New rule.
955 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
956 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
957 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
958 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
959 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
960 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
961 (scm-type.o, scm-utils.o, scm-value.o): New rules.
962 * configure.ac: New option --with-guile.
963 * configure: Regenerate.
964 * config.in: Regenerate.
965 * auto-load.c: Remove #include "python/python.h". Add #include
966 "gdb/section-scripts.h".
967 (source_section_scripts): Handle Guile scripts.
968 (_initialize_auto_load): Add name of Guile objfile script to
969 scripts-directory help text.
970 * breakpoint.c (condition_command): Tweak comment to include Scheme.
971 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
972 (struct breakpoint): New member scm_bp_object.
973 * defs.h (enum command_control_type): New value guile_control.
974 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
976 (show_user): Update comment.
977 (_initialize_cli_cmds): Update help text for "show user". Update help
978 text for max-user-call-depth.
979 * cli/cli-script.c: Remove #include "python/python.h". Add #include
981 (multi_line_command_p): Add guile_control.
982 (print_command_lines): Handle guile_control.
983 (execute_control_command, recurse_read_control_structure): Ditto.
984 (process_next_line): Recognize "guile" commands.
985 * disasm.c (gdb_disassemble_info): Make non-static.
986 * disasm.h: #include "dis-asm.h".
987 (struct gdbarch): Add forward decl.
988 (gdb_disassemble_info): Declare.
989 * extension.c: #include "guile/guile.h".
990 (extension_languages): Add guile.
991 (get_ext_lang_defn): Handle EXT_LANG_GDB.
992 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
993 * gdbtypes.c (get_unsigned_type_max): New function.
994 (get_signed_type_minmax): New function.
995 * gdbtypes.h (get_unsigned_type_max): Declare.
996 (get_signed_type_minmax): Declare.
997 * guile/README: New file.
998 * guile/guile-internal.h: New file.
999 * guile/guile.c: New file.
1000 * guile/guile.h: New file.
1001 * guile/scm-arch.c: New file.
1002 * guile/scm-auto-load.c: New file.
1003 * guile/scm-block.c: New file.
1004 * guile/scm-breakpoint.c: New file.
1005 * guile/scm-disasm.c: New file.
1006 * guile/scm-exception.c: New file.
1007 * guile/scm-frame.c: New file.
1008 * guile/scm-gsmob.c: New file.
1009 * guile/scm-iterator.c: New file.
1010 * guile/scm-lazy-string.c: New file.
1011 * guile/scm-math.c: New file.
1012 * guile/scm-objfile.c: New file.
1013 * guile/scm-ports.c: New file.
1014 * guile/scm-pretty-print.c: New file.
1015 * guile/scm-safe-call.c: New file.
1016 * guile/scm-string.c: New file.
1017 * guile/scm-symbol.c: New file.
1018 * guile/scm-symtab.c: New file.
1019 * guile/scm-type.c: New file.
1020 * guile/scm-utils.c: New file.
1021 * guile/scm-value.c: New file.
1022 * guile/lib/gdb.scm: New file.
1023 * guile/lib/gdb/boot.scm: New file.
1024 * guile/lib/gdb/experimental.scm: New file.
1025 * guile/lib/gdb/init.scm: New file.
1026 * guile/lib/gdb/iterator.scm: New file.
1027 * guile/lib/gdb/printing.scm: New file.
1028 * guile/lib/gdb/types.scm: New file.
1029 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1030 (VPATH): Add $(GUILE_SRCDIR).
1031 (GUILE_DIR): New variable.
1032 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1033 (all): Add stamp-guile dependency.
1034 (stamp-guile): New rule.
1035 (clean-guile, install-guile, uninstall-guile): New rules.
1036 (install-only): Add install-guile dependency.
1037 (uninstall): Add uninstall-guile dependency.
1038 (clean): Add clean-guile dependency.
1040 2014-02-09 Doug Evans <xdje42@gmail.com>
1042 Revert this patch (which I approved, mea culpa).
1044 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1046 * Makefile.in (all-lib): Remove.
1047 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1049 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1051 Fix Python stack corruption.
1052 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1055 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1057 * Makefile.in (all-lib): Remove.
1058 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1060 2014-02-07 Doug Evans <dje@google.com>
1062 * extension-priv.h (extension_language_script_ops): Add comment.
1063 (extension_language_ops): Add comment.
1064 (active_ext_lang_state): Fix typo in comment.
1066 2014-02-07 Pedro Alves <palves@redhat.com>
1068 * infrun.c (handle_signal_stop) <signal arrives while stepping
1069 over a breakpoint>: Switch back to the stepping thread.
1071 2014-02-07 Yao Qi <yao@codesourcery.com>
1073 * target.c (target_xfer_partial): Return zero if LEN is zero.
1075 2014-02-07 Yao Qi <yao@codesourcery.com>
1077 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1078 (ld_so_xfer_auxv): Likewise.
1079 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1080 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1081 * corelow.c (core_xfer_partial): Likewise.
1082 * ctf.c (ctf_xfer_partial): Likewise.
1083 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1084 (darwin_xfer_partial): Likewise.
1085 * exec.c (exec_xfer_partial): Likewise.
1086 * gnu-nat.c (gnu_xfer_partial): Likewise.
1087 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1088 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1089 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1090 * linux-nat.c (linux_xfer_siginfo): Likewise.
1091 (linux_proc_xfer_spu): Likewise.
1092 * procfs.c (procfs_xfer_partial): Likewise.
1093 * record-full.c (record_full_xfer_partial): Likewise.
1094 (record_full_core_xfer_partial): Likewise.
1095 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1096 * remote.c (remote_write_qxfer): Likewise.
1097 (remote_write_qxfer, remote_read_qxfer): Likewise.
1098 (remote_xfer_partial): Likewise.
1099 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1100 (rs6000_xfer_shared_libraries): Likewise.
1101 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1102 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1103 (spu_xfer_partial): Likewise.
1104 * target.c (memory_xfer_partial_1): Likewise.
1105 * tracepoint.c (tfile_xfer_partial): Likewise.
1106 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1107 (windows_xfer_partial): Likewise.
1109 2014-02-07 Yao Qi <yao@codesourcery.com>
1111 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1113 (core_xfer_shared_libraries_aix): Likewise.
1114 * gdbarch.c, gdbarch.h: Regenerated.
1115 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1116 ULONGEST. Change 'len_avail' type to ULONGEST.
1117 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1118 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1120 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1122 2014-02-07 Yao Qi <yao@codesourcery.com>
1124 * corefile.c (memory_error): Get 'exception' from ERR and pass
1125 'exception' to throw_error.
1127 2014-02-06 Doug Evans <xdje42@gmail.com>
1129 * configure.ac (libpython checking): Remove all but python.o from
1130 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1131 * configure: Regenerate.
1133 * Makefile.in (SFILES): Add extension.c.
1134 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1135 (COMMON_OBS): Add extension.o.
1136 * extension.h: New file.
1137 * extension-priv.h: New file.
1138 * extension.c: New file.
1140 * python/python-internal.h: #include "extension.h".
1141 (gdbpy_auto_load_enabled): Declare.
1142 (gdbpy_apply_val_pretty_printer): Declare.
1143 (gdbpy_apply_frame_filter): Declare.
1144 (gdbpy_preserve_values): Declare.
1145 (gdbpy_breakpoint_cond_says_stop): Declare.
1146 (gdbpy_breakpoint_has_cond): Declare.
1147 (void source_python_script_for_objfile): Delete.
1148 * python/python.c: #include "extension-priv.h".
1149 Delete inclusion of "observer.h".
1150 (extension_language_python): Moved here and renamed from
1151 script_language_python in py-auto-load.c.
1152 Redefined to be of type extension_language_defn.
1153 (python_extension_script_ops): New global.
1154 (python_extension_ops): New global.
1155 (struct python_env): New member previous_active.
1156 (restore_python_env): Call restore_active_ext_lang.
1157 (ensure_python_env): Call set_active_ext_lang.
1158 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1160 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1162 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1164 (gdbpy_eval_from_control_command): Renamed from
1165 eval_python_from_control_command, made static. New arg extlang.
1166 (gdbpy_source_script) Renamed from source_python_script, made static.
1168 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1169 result to int. New arg extlang.
1170 (gdbpy_source_objfile_script): Renamed from
1171 source_python_script_for_objfile, made static. New arg extlang.
1172 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1173 static. New args extlang, extlang_printers. Change result type to
1175 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1176 static. New arg extlang. Rename arg printers to extlang_printers
1177 and change type to ext_lang_type_printers *.
1178 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1179 static. Replace argument arg with extlang, extlang_printers.
1180 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1181 (!HAVE_PYTHON, source_python_script): Delete.
1182 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1183 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1184 (!HAVE_PYTHON, start_type_printers): Delete.
1185 (!HAVE_PYTHON, apply_type_printers): Delete.
1186 (!HAVE_PYTHON, free_type_printers): Delete.
1187 (_initialize_python): Delete call to observer_attach_before_prompt.
1188 (finalize_python): Set/restore active extension language.
1189 (gdbpy_finish_initialization) Renamed from
1190 finish_python_initialization, made static. New arg extlang.
1191 (gdbpy_initialized): New function.
1192 * python/python.h: #include "extension.h". Delete #include
1193 "value.h", "mi/mi-cmds.h".
1194 (extension_language_python): Declare.
1195 (GDBPY_AUTO_FILE_NAME): Delete.
1196 (enum py_bt_status): Moved to extension.h and renamed to
1198 (enum frame_filter_flags): Moved to extension.h.
1199 (enum py_frame_args): Moved to extension.h and renamed to
1200 ext_lang_frame_args.
1201 (finish_python_initialization): Delete.
1202 (eval_python_from_control_command): Delete.
1203 (source_python_script): Delete.
1204 (apply_val_pretty_printer): Delete.
1205 (apply_frame_filter): Delete.
1206 (preserve_python_values): Delete.
1207 (gdbpy_script_language_defn): Delete.
1208 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1209 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1211 * auto-load.c: #include "extension.h".
1212 (GDB_AUTO_FILE_NAME): Delete.
1213 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1214 (script_language_gdb): Delete, moved to extension.c and renamed to
1215 extension_language_gdb.
1216 (source_gdb_script_for_objfile): Delete.
1217 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1218 (loaded_script): Change type of language member to
1219 struct extension_language_defn *.
1220 (init_loaded_scripts_info): Initialize
1221 unsupported_script_warning_printed.
1222 (maybe_add_script): Make static. Change type of language arg to
1223 struct extension_language_defn *.
1224 (clear_section_scripts): Reset unsupported_script_warning_printed.
1225 (auto_load_objfile_script_1): Rewrite to use extension language API.
1226 (auto_load_objfile_script): Make public. Remove support-compiled-in
1227 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1228 (source_section_scripts): Rewrite to use extension language API.
1229 (load_auto_scripts_for_objfile): Rewrite to use
1230 auto_load_scripts_for_objfile.
1231 (collect_matching_scripts_data): Change type of language member to
1232 struct extension_language_defn *.
1233 (auto_load_info_scripts): Change type of language arg to
1234 struct extension_language_defn *.
1235 (unsupported_script_warning_print): New function.
1236 (script_not_found_warning_print): Make static.
1237 (_initialize_auto_load): Rewrite construction of scripts-directory
1239 * auto-load.h (struct objfile): Add forward decl.
1240 (struct script_language): Delete.
1241 (struct auto_load_pspace_info): Add forward decl.
1242 (struct extension_language_defn): Add forward decl.
1243 (maybe_add_script): Delete.
1244 (auto_load_objfile_script): Declare.
1245 (script_not_found_warning_print): Delete.
1246 (auto_load_info_scripts): Update prototype.
1247 (auto_load_gdb_scripts_enabled): Declare.
1248 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1249 auto_load_python_scripts_enabled and made public.
1250 (script_language_python): Delete, moved to python.c.
1251 (gdbpy_script_language_defn): Delete.
1252 (info_auto_load_python_scripts): Update to use
1253 extension_language_python.
1255 * breakpoint.c (condition_command): Replace call to
1256 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1257 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1258 with call to breakpoint_ext_lang_cond_says_stop.
1259 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1260 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1261 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1262 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1264 (local_setattro): Print name of extension language with existing
1267 * valprint.c (val_print, value_print): Update to call
1268 apply_ext_lang_val_pretty_printer.
1269 * cp-valprint.c (cp_print_value): Update call to
1270 apply_ext_lang_val_pretty_printer.
1271 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1272 (gdbpy_apply_val_pretty_printer): Renamed from
1273 apply_val_pretty_printer. New arg extlang.
1274 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1276 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1277 extension language API.
1278 * cli/cli-script.c (execute_control_command): Update to call
1279 eval_ext_lang_from_control_command.
1281 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1282 enum ext_lang_bt_status values. Update call to
1283 apply_ext_lang_frame_filter.
1284 (mi_cmd_stack_list_locals): Ditto.
1285 (mi_cmd_stack_list_args): Ditto.
1286 (mi_cmd_stack_list_variables): Ditto.
1287 * mi/mi-main.c: Delete #include "python/python-internal.h".
1288 Add #include "extension.h".
1289 (mi_cmd_list_features): Replace reference to python internal variable
1290 gdb_python_initialized with call to ext_lang_initialized_p.
1292 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1293 Update to use enum ext_lang_frame_args. Update to call
1294 apply_ext_lang_frame_filter.
1295 * python/py-framefilter.c (extract_sym): Update to use enum
1297 (extract_value, py_print_type, py_print_value): Ditto.
1298 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1299 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1300 (py_print_frame): Ditto.
1301 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1302 New arg extlang. Update to use enum ext_lang_bt_status.
1304 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1305 finish_python_initialization. Replace with call to
1306 finish_ext_lang_initialization.
1308 * typeprint.c (do_free_global_table): Update to call
1309 free_ext_lang_type_printers.
1310 (create_global_typedef_table): Update to call
1311 start_ext_lang_type_printers.
1312 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1313 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1314 (type_print_options): Change type of global_printers from "void *"
1315 to "struct ext_lang_type_printers *".
1317 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1318 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1319 (gdbpy_preserve_values): Renamed from preserve_python_values.
1321 (!HAVE_PYTHON, preserve_python_values): Delete.
1323 * utils.c (quit_flag): Delete, moved to extension.c.
1324 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1327 * eval.c: Delete #include "python/python.h".
1328 * main.c: Delete #include "python/python.h".
1330 * defs.h: Update comment.
1332 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1336 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1338 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1341 2014-02-05 Yao Qi <yao@codesourcery.com>
1343 * remote.c (remote_pass_signals): Remove local 'buf' and use
1345 (remote_program_signals): Likewise.
1347 2014-02-05 Yao Qi <yao@codesourcery.com>
1349 * ctf.c: Include "inferior.h" and "gdbthread.h".
1350 (CTF_PID): A new macro.
1351 (ctf_open): Call inferior_appeared and add_thread_silent.
1352 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1353 (ctf_thread_alive): New function.
1354 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1356 2014-02-05 Yao Qi <yao@codesourcery.com>
1360 2013-05-24 Yao Qi <yao@codesourcery.com>
1362 * tracepoint.c (TFILE_PID): Remove.
1363 (tfile_open): Don't add thread and inferior.
1364 (tfile_close): Don't set 'inferior_ptid'. Don't call
1365 exit_inferior_silent.
1366 (tfile_thread_alive): Remove.
1367 (init_tfile_ops): Don't set field 'to_thread_alive' of
1370 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1372 * remote.c (remote_start_remote): Call remote_check_symbols even
1373 if only symbol-file (not file) has been given.
1375 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1377 * gdbarch.sh (skip_entrypoint): New callback.
1378 * gdbarch.c, gdbarch.h: Regenerate.
1379 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1380 * infrun.c (fill_in_stop_func): Likewise.
1381 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1382 (ppc_elfv2_elf_make_msymbol_special): New function.
1383 (ppc_elfv2_skip_entrypoint): Likewise.
1384 (ppc_linux_init_abi): Install them for ELFv2.
1386 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1388 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1389 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1390 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1391 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1392 structures returned in GPRs.
1394 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1396 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1397 offset to the stack parameter list for the ELFv2 ABI.
1399 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1401 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1402 set_gdbarch_convert_from_func_ptr_addr and
1403 set_gdbarch_elf_make_msymbol_special for ELFv1.
1404 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1405 function descriptors on ELFv1.
1406 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1407 set up r12 at function entry.
1409 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1411 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1412 (struct gdbarch_tdep): New member elf_abi.
1414 * rs6000-tdep.c: Include "elf/ppc64.h".
1415 (rs6000_gdbarch_init): Detect ELF ABI version.
1417 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1419 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1420 within a register pair holding a DFP 128-bit value on little-endian.
1421 (ppc64_sysv_abi_return_value_base): Likewise.
1422 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1423 (dfp_pseudo_register_write): Likewise.
1425 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1427 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1428 offset on little-endian when passing _Decimal32.
1429 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1431 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1433 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1434 of the overlapped FP register within the VSX register on little-
1436 (efpr_pseudo_register_write): Likewise.
1438 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1441 offset on little-endian when passing small structures.
1443 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1445 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1446 (struct ppc64_sysv_argpos): New data structure.
1447 (ppc64_sysv_abi_push_float): Remove.
1448 (ppc64_sysv_abi_push_val): New function.
1449 (ppc64_sysv_abi_push_integer): Likewise.
1450 (ppc64_sysv_abi_push_freg): Likewise.
1451 (ppc64_sysv_abi_push_vreg): Likewise.
1452 (ppc64_sysv_abi_push_param): Likewise.
1453 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1454 (ppc64_sysv_abi_return_value_base): New function.
1455 (ppc64_sysv_abi_return_value): Refactor to use it.
1457 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1459 * NEWS: Document new target powerpc64le-*-linux*.
1461 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1463 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1464 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1466 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1467 register set used in ELF core dumps. Add floating-point register set.
1469 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1471 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1472 dwarf2_to_gdb[] table using symbolic constants. Adjust
1473 penultimate entry from number representing the PC register
1474 to symbolic constant representing the MDR register. Add
1475 constant for the PC register to the end of the table.
1477 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1479 * bsd-kvm.c: Include <sys/param.h>
1481 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1483 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1485 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1487 * ada-lang.h (clear_ada_sym_cache): Delete.
1489 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1491 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1493 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1495 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1496 the sigreturn register save area only if the syscall is
1499 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1501 * valops.c (value_slice): Minor reformatting.
1503 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1505 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1507 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1509 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1511 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1512 (ada_ignore_descriptive_types_p): New static global.
1513 (find_parallel_type_by_descriptive_type): Return immediately
1514 if ada_ignore_descriptive_types_p is set.
1515 (_initialize_ada_language): Register new commands "maintenance
1516 set ada", "maintenance show ada", "maintenance set ada
1517 ignore-descriptive-types" and "maintenance show ada
1518 ignore-descriptive-types".
1519 * NEWS: Add entry for new "maint ada set/show
1520 ignore-descriptive-types" commands.
1522 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1524 * record-btrace.c (record_btrace_close): Call btrace_teardown
1527 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1529 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1532 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1534 * ada-typeprint (type_is_full_subrange_of_target_type):
1536 (print_range): Add parameter bounds_prefered_p. If not set,
1537 try printing range types using the name of their base type.
1538 (print_range_type): Add parameter bounds_prefered_p.
1539 Use it in call to print_range.
1540 (print_array_type, ada_print_type): Update calls to print_range
1541 and print_range_type.
1543 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1545 * ada-typeprint.c (print_array_type, print_choices, print_range)
1546 (print_range_bound, print_dynamic_range_bound, print_range_type):
1549 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1551 * ada-typeprint.c (print_range): Add missing empty line
1552 after local declaration.
1554 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1556 * ada-valprint.c (print_optional_low_bound): Get index_type's
1557 target type for as long as it is a TYPE_CODE_RANGE.
1559 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1561 * procfs.c (procfs_make_note_section): Remove assertion and
1564 2014-01-24 Yao Qi <yao@codesourcery.com>
1566 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1567 * corelow.c (get_core_siginfo): Likewise.
1569 2014-01-24 Yao Qi <yao@codesourcery.com>
1571 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1572 ULONGEST. Don't check 'len' is negative.
1573 (remote_write_bytes): Change type of 'len' to ULONGEST.
1575 2014-01-23 Tom Tromey <tromey@redhat.com>
1578 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1579 Handle exception from frame.block.
1580 (FrameVars.fetch_frame_locals): Likewise.
1582 2014-01-23 Tom Tromey <tromey@redhat.com>
1585 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1586 on a NULL pointer. Move "goto error" to correct place.
1588 2014-01-23 Tom Tromey <tromey@redhat.com>
1591 * python/py-framefilter.c (apply_frame_filter): Call
1592 ensure_python_env after computing gdbarch.
1594 2014-01-23 Yao Qi <yao@codesourcery.com>
1596 * target.c (raw_memory_xfer_partial): Change argument type
1597 from void * to gdb_byte *.
1598 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1600 2014-01-22 Doug Evans <dje@google.com>
1602 New gdbserver option --debug-format=timestamp.
1605 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1607 * syscalls/s390x-linux.xml: New file.
1608 * syscalls/s390-linux.xml: New file.
1609 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1610 (XML_SYSCALL_FILENAME_S390X): Likewise.
1611 (op_svc): New enum value for SVC opcode.
1612 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1613 (s390_linux_get_syscall_number): New function.
1614 (s390_gdbarch_init): Register '*get_syscall_number' and the
1615 syscall xml file name.
1616 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1617 "s390-linux.xml" and "s390x-linux.xml".
1618 * NEWS: Announce new feature.
1620 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1622 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1624 2014-01-22 Pedro Alves <palves@redhat.com>
1626 * xtensa-config.c: Include defs.h.
1628 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1630 * common/common-utils.h: Add "ARI:" comment beside __func__
1633 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1635 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1636 documentation a bit.
1638 2014-01-21 Roland McGrath <mcgrathr@google.com>
1640 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1641 * configure: Regenerate.
1642 * aclocal.m4: Regenerate.
1643 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1644 New substituted variables.
1645 (install-strip): New target.
1646 (INSTALL_SCRIPT): New substituted variable.
1647 (FLAGS_TO_PASS): Add it.
1648 (install-only): Use $(INSTALL_SCRIPT) rather than
1649 $(INSTALL_PROGRAM) for gcore.
1651 2014-01-20 Tom Tromey <tromey@redhat.com>
1653 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1656 2014-01-20 Tom Tromey <tromey@redhat.com>
1658 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1659 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1660 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1661 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1662 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1663 (struct cmd_list_element) <flags>: Remove.
1664 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1665 doc_allocated>: New fields.
1666 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1668 * maint.c (maintenance_do_deprecate): Update.
1669 * top.c (execute_command): Update.
1671 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1673 * xtensa-linux-nat.c: Include asm/ptrace.h.
1675 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1677 * Makefile.in (SFILES): Add d-support.c.
1678 (COMMON_OBS): Add d-support.o.
1679 * d-lang.h (d_parse_symbol): Add comment, now defined in
1681 * d-lang.c (parse_call_convention)
1682 (parse_attributes, parse_function_types)
1683 (parse_function_args, parse_type, parse_identifier)
1684 (call_convention_p, d_parse_symbol): Move functions to ...
1685 * d-support.c: ... New file.
1687 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1689 * d-lang.h (d_parse_symbol): Add declaration.
1690 * d-lang.c (extract_identifiers)
1691 (extract_type_info): Remove functions.
1692 (parse_call_convention, parse_attributes)
1693 (parse_function_types, parse_function_args)
1694 (parse_type, parse_identifier, call_convention_p)
1695 (d_parse_symbol): New functions.
1696 (d_demangle): Use d_parse_symbol to demangle D symbols.
1698 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1700 * d-lang.h (struct builtin_d_type): New data type.
1701 (builtin_d_type): Add declaration.
1702 * d-lang.c (d_language_arch_info, build_d_types)
1703 (builtin_d_type): New functions.
1704 (enum d_primitive_types): New data type.
1705 (d_language_defn): Change c_language_arch_info to
1706 d_language_arch_info.
1707 (d_type_data): New static variable.
1708 (_initialize_d_language): Initialize d_type_data.
1710 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1712 * d-lang.h (d_main_name): Add declaration.
1713 * d-lang.c (d_main_name): New function.
1714 * symtab.c (find_main_name): Add call to d_main_name.
1716 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1718 * d-lang.c (d_language_defn): Change macro_expansion_c to
1721 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1723 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1725 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1727 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1728 gdb_exception" declaration.
1729 * remote.c (getpkt_or_notif_sane): Likewise.
1731 2014-01-17 Doug Evans <dje@google.com>
1733 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1734 function, contents of dirnames_to_char_ptr_vec_append moved here.
1735 (delim_string_to_char_ptr_vec): New function.
1736 (dirnames_to_char_ptr_vec_append): Rewrite.
1737 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1739 2014-01-17 Doug Evans <dje@google.com>
1741 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1743 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1744 #include "common-utils.h".
1745 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1746 * common/vec.h (VEC_ASSERT_PASS): Update.
1747 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1748 (MACH_CHECK_ERROR): Update.
1750 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1752 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1754 * gdbarch.h: Regenerate.
1756 2014-01-16 Tom Tromey <tromey@redhat.com>
1758 * value.c (struct value) <regnum>: Move earlier.
1760 2014-01-16 Tom Tromey <tromey@redhat.com>
1762 * remote.c (extended_remote_create_inferior): Rename from
1763 extended_remote_create_inferior_1. Add "ops" argument. Remove
1766 2014-01-16 Pedro Alves <palves@redhat.com>
1768 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1769 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1772 2014-01-16 Doug Evans <dje@google.com>
1774 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1778 * btrace.h (btrace_thread_flag): New.
1779 (struct btrace_thread_info) <flags>: New.
1780 * record-btrace.c (record_btrace_resume_thread)
1781 (record_btrace_find_thread_to_move, btrace_step_no_history)
1782 (btrace_step_stopped, record_btrace_start_replaying)
1783 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1784 (record_btrace_find_resume_thread): New.
1785 (record_btrace_resume, record_btrace_wait): Extend.
1786 (record_btrace_can_execute_reverse): New.
1787 (record_btrace_open): Fail in non-stop mode.
1788 (record_btrace_set_replay): Split into this, ...
1789 (record_btrace_stop_replaying): ... this, ...
1790 (record_btrace_clear_histories): ... and this.
1791 (init_record_btrace_ops): Init to_can_execute_reverse.
1792 * NEWS: Announce it.
1794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1796 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1797 (forward_target_decr_pc_after_break)
1798 (target_decr_pc_after_break): New.
1799 * target.c (forward_target_decr_pc_after_break)
1800 (target_decr_pc_after_break): New.
1801 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1802 instead of gdbarch_decr_pc_after_break.
1803 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1804 instead of gdbarch_decr_pc_after_break.
1805 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1806 instead of gdbarch_decr_pc_after_break.
1807 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1808 instead of gdbarch_decr_pc_after_break.
1809 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1810 instead of gdbarch_decr_pc_after_break.
1811 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1812 instead of gdbarch_decr_pc_after_break.
1814 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1816 * btrace.c: Include regcache.h.
1817 (btrace_add_pc): New.
1818 (btrace_enable): Call btrace_add_pc.
1819 (btrace_is_empty): New.
1820 * btrace.h (btrace_is_empty): New.
1821 * record-btrace.c (require_btrace, record_btrace_info): Call
1824 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1826 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1827 Support delta reads.
1828 (linux_disable_btrace): Change return type.
1829 * common/linux-btrace.h (linux_read_btrace): Change parameters
1830 and return type to allow error reporting. Update users.
1831 (linux_disable_btrace): Change return type. Update users.
1832 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1834 (btrace_error): New.
1835 (btrace_block) <begin>: Comment on BEGIN == 0.
1836 * btrace.c (btrace_compute_ftrace): Start from the end of
1838 (btrace_stitch_trace, btrace_clear_history): New.
1839 (btrace_fetch): Read delta trace, return if replaying.
1840 (btrace_clear): Move clear history code to btrace_clear_history.
1841 (parse_xml_btrace): Throw an error if parsing failed.
1842 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1843 and return type to allow error reporting.
1844 (target_read_btrace): Change parameters and return type to allow
1846 * target.c (target_read_btrace): Update.
1847 * remote.c (remote_read_btrace): Support delta reads. Pass
1849 * NEWS: Announce it.
1851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1853 * record.h (record_btrace_frame_unwind)
1854 (record_btrace_tailcall_frame_unwind): New declarations.
1855 * dwarf2-frame: Include record.h
1856 (dwarf2_frame_cfa): Throw an error for btrace frames.
1857 * record-btrace.c: Include hashtab.h.
1858 (btrace_get_bfun_name): New.
1859 (btrace_call_history): Call btrace_get_bfun_name.
1860 (struct btrace_frame_cache): New.
1862 (bfcache_hash, bfcache_eq, bfcache_new): New.
1863 (btrace_get_frame_function): New.
1864 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1865 (record_btrace_frame_this_id): Compute own id.
1866 (record_btrace_frame_prev_register): Provide PC, throw_error
1867 for all other registers.
1868 (record_btrace_frame_sniffer): Detect btrace frames.
1869 (record_btrace_tailcall_frame_sniffer): New.
1870 (record_btrace_frame_dealloc_cache): New.
1871 (record_btrace_frame_unwind): Add new functions.
1872 (record_btrace_tailcall_frame_unwind): New.
1873 (_initialize_record_btrace): Allocate cache.
1874 * btrace.c (btrace_clear): Call reinit_frame_cache.
1875 * NEWS: Announce it.
1877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1879 * record-btrace.c (record_btrace_set_replay)
1880 (record_btrace_goto_begin, record_btrace_goto_end)
1881 (record_btrace_goto): New.
1882 (init_record_btrace_ops): Initialize them.
1883 * NEWS: Announce it.
1885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1887 * record-btrace.c (record_btrace_find_new_threads)
1888 (record_btrace_thread_alive): New.
1889 (init_record_btrace_ops): Initialize to_find_new_threads and
1892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1894 * record-btrace.c (record_btrace_resume): New.
1895 (record_btrace_wait): New.
1896 (init_record_btrace_ops): Initialize to_wait and to_resume.
1898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1900 * record-btrace.c (record_btrace_xfer_partial)
1901 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1902 (record_btrace_allow_memory_access): New.
1903 (init_record_btrace_ops): Initialize new methods.
1904 * target.c (raw_memory_xfer_partial): Bail out if target reports
1905 that this memory is not available.
1907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1909 * target.h (target_ops) <to_insert_breakpoint>
1910 <to_remove_breakpoint>: Add target_ops parameter.
1911 (forward_target_insert_breakpoint): New.
1912 (forward_target_remove_breakpoint): New.
1913 (memory_remove_breakpoint, memory_insert_breakpoint):
1914 Add target_ops parameter.
1915 * target.c (target_insert_breakpoint): Split into this and ...
1916 (forward_target_insert_breakpoint): ... this.
1917 (target_remove_breakpoint): Split into this and ...
1918 (forward_target_remove_breakpoint): ... this.
1919 (debug_to_insert_breakpoint): Add target_ops parameter.
1920 Call forward_target_insert_breakpoint.
1921 (debug_to_remove_breakpoint): Add target_ops parameter.
1922 Call forward_target_remove_breakpoint.
1923 (update_current_target): Do not inherit or default to_insert_breakpoint
1924 and to_remove_breakpoint.
1925 * corelow.c (ignore): Add target_ops parameter.
1926 * exec.c (ignore): Add target_ops parameter.
1927 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1928 Add target_ops parameter.
1929 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1930 Add target_ops parameter.
1931 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1932 Add target_ops parameter.
1933 * record-full.c (record_full_beneath_to_insert_breakpoint)
1934 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1935 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1936 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1937 (record_full_core_remove_breakpoint): Add target_ops parameter.
1939 (record_full_beneath_to_insert_breakpoint_ops)
1940 (record_full_beneath_to_remove_breakpoint_ops)
1941 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1942 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1943 tmp_to_remove_breakpoint_ops,
1944 record_full_beneath_to_insert_breakpoint_ops, and
1945 record_full_beneath_to_remove_breakpoint_ops.
1946 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1947 (m32r_remove_breakpoint): Add target_ops parameter.
1948 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1949 Add target_ops parameter.
1950 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1951 Add target_ops parameter.
1953 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 Markus Metzger <markus.t.metzger@intel.com>
1956 * record-btrace.c: Include frame-unwind.h.
1957 (record_btrace_frame_unwind_stop_reason)
1958 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1959 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1961 (init_record_btrace_ops): Install it.
1963 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1965 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1968 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1973 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 * frame-unwind.c: Include target.h.
1976 (frame_unwind_try_unwinder): New function with code from ...
1977 (frame_unwind_find_by_frame): ... here. New variable
1978 unwinder_from_target, call also target_get_unwinder)
1979 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1980 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1981 * target.h (struct target_ops): New fields to_get_unwinder and
1982 to_get_tailcall_unwinder.
1983 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1985 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1987 * record-btrace.c (record_btrace_fetch_registers)
1988 (record_btrace_store_registers)
1989 (record_btrace_to_prepare_to_store): New.
1990 (init_record_btrace_ops): Add the above.
1992 2014-01-16 Tom Tromey <tromey@redhat.com>
1994 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1995 * target.h (struct target_ops) <to_prepare_to_store>: Add
1997 (target_prepare_to_store): Add argument.
1998 * target.c (debug_to_prepare_to_store): Add argument.
1999 (update_current_target): Update.
2000 * remote.c (remote_prepare_to_store): Add 'self' argument.
2001 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2002 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2003 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2004 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2006 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2007 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2008 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2009 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2010 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2012 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2014 * btrace.h (replay) <replay>: New.
2015 (btrace_is_replaying): New.
2016 * btrace.c (btrace_clear): Free replay iterator.
2017 (btrace_is_replaying): New.
2018 * record-btrace.c (record_btrace_is_replaying): New.
2019 (record_btrace_info): Print insn number if replaying.
2020 (record_btrace_insn_history): Start at replay position.
2021 (record_btrace_call_history): Start at replay position.
2022 (init_record_btrace_ops): Init to_record_is_replaying.
2024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2026 * record-btrace.c (record_btrace_insn_history_range): Include
2028 (record_btrace_insn_history_from): Adjust range.
2029 (record_btrace_call_history_range): Include
2031 (record_btrace_call_history_from): Adjust range.
2032 * NEWS: Announce changes.
2034 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2036 * record.h (enum record_print_flag)
2037 <record_print_indent_calls>: New.
2038 * record.c (get_call_history_modifiers): Recognize /c modifier.
2039 (_initialize_record): Document /c modifier.
2040 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2041 Reorder fields. Optionally indent the function name. Update
2043 * NEWS: Announce changes.
2045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2047 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2049 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2051 * btrace.c (ftrace_new_function): Start counting at one.
2052 * record-btrace.c (record_btrace_info): Adjust number of calls
2054 * NEWS: Announce it.
2056 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2058 * record-btrace.c (btrace_call_history_insn_range): Print
2059 insn range as [begin, end].
2061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2063 * btrace.h (struct btrace_func_link): New.
2064 (enum btrace_function_flag): New.
2065 (struct btrace_inst): Rename to ...
2066 (struct btrace_insn): ...this. Update all users.
2067 (struct btrace_func) <ibegin, iend>: Remove.
2068 (struct btrace_func_link): New.
2069 (struct btrace_func): Rename to ...
2070 (struct btrace_function): ...this. Update all users.
2071 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2072 (number, level, flags>: New.
2073 (struct btrace_insn_iterator): Rename to ...
2074 (struct btrace_insn_history): ...this.
2076 (struct btrace_insn_iterator, btrace_call_iterator): New.
2077 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2078 (struct btrace_target_info) <begin, end, level>
2079 <insn_history, call_history>: New.
2080 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2081 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2082 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2083 (btrace_call_number, btrace_call_begin, btrace_call_end)
2084 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2085 (btrace_find_function_by_number, btrace_set_insn_history)
2086 (btrace_set_call_history): New.
2087 * btrace.c (btrace_init_insn_iterator)
2088 (btrace_init_func_iterator, compute_itrace): Remove.
2089 (ftrace_print_function_name, ftrace_print_filename)
2090 (ftrace_skip_file): Change
2092 (ftrace_init_func): Remove.
2093 (ftrace_debug): Use new btrace_function fields.
2094 (ftrace_function_switched): Also consider gaining and
2095 losing symbol information).
2096 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2097 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2098 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2100 (ftrace_new_function): Move. Remove debug print.
2101 (ftrace_update_lines, ftrace_update_insns): New.
2102 (ftrace_update_function): Check for call, ret, and jump.
2103 (compute_ftrace): Renamed to ...
2104 (btrace_compute_ftrace): ...this. Rewritten to compute call
2106 (btrace_fetch, btrace_clear): Updated.
2107 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2108 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2109 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2110 (btrace_call_number, btrace_call_begin, btrace_call_end)
2111 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2112 (btrace_find_function_by_number, btrace_set_insn_history)
2113 (btrace_set_call_history): New.
2114 * record-btrace.c (require_btrace): Use new btrace thread
2116 (record_btrace_info, btrace_insn_history)
2117 (record_btrace_insn_history, record_btrace_insn_history_range):
2118 Use new btrace thread info fields and new iterator.
2119 (btrace_func_history_src_line): Rename to ...
2120 (btrace_call_history_src_line): ...this. Use new btrace
2122 (btrace_func_history): Rename to ...
2123 (btrace_call_history): ...this. Use new btrace thread info
2124 fields and new iterator.
2125 (record_btrace_call_history, record_btrace_call_history_range):
2126 Use new btrace thread info fields and new iterator.
2128 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2130 * frame.h (frame_id_build_unavailable_stack_special): New.
2131 * frame.c (frame_id_build_unavailable_stack_special): New.
2133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2135 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2136 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2137 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2139 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2140 (i386_insn_is_jump, i386_jmp_p): New.
2141 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2142 insn_is_jump to gdbarch.
2143 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2144 * gdbarch.h: Regenerated.
2145 * gdbarch.c: Regenerated.
2146 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2147 (default_insn_is_jump): New.
2148 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2149 (default_insn_is_jump): New.
2151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2153 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2155 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2156 (btrace_read_type) <btrace_read_new>: Change to ...
2157 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2161 * common/linux-btrace.c (linux_read_btrace): Free trace from
2164 2014-01-15 Doug Evans <dje@google.com>
2166 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2169 2014-01-15 Tom Tromey <tromey@redhat.com>
2171 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2172 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2173 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2174 (set_objfile_main_name): New function.
2175 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2176 language_of_main>: New fields.
2177 (set_objfile_main_name): Declare.
2178 * symtab.c (find_main_name): Loop over objfiles to find the main
2180 (set_main_name): Now static.
2181 (get_main_info): Add comment.
2182 * symtab.h (set_main_name): Don't declare.
2184 2014-01-15 Tom Tromey <tromey@redhat.com>
2186 * symtab.c (main_progspace_key): New global.
2187 (struct main_info): New.
2188 (name_of_main, language_of_main): Remove.
2189 (get_main_info, main_info_cleanup): New function.
2190 (set_main_name, main_name, main_language): Use get_main_info.
2191 (_initialize_symtab): Initialize main_progspace_key.
2193 2014-01-15 Tom Tromey <tromey@redhat.com>
2195 * dbxread.c (process_one_symbol): Update.
2196 * dwarf2read.c (read_partial_die): Update.
2197 * symfile.c (set_initial_language): Call main_language.
2198 * symtab.c (language_of_main): Now static.
2199 (set_main_name): Add 'lang' parameter.
2200 (find_main_name): Update.
2201 (main_language): New function.
2202 (symtab_observer_executable_changed): Update.
2203 * symtab.h (set_main_name): Update.
2204 (language_of_main): Remove.
2205 (main_language): Declare.
2207 2014-01-15 Tom Tromey <tromey@redhat.com>
2209 * symfile.c (init_entry_point_info): Use new "initialized" field.
2211 * objfiles.h (struct entry_point) <initialized>: New field.
2212 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2213 (struct objfile) <ei>: ...here. Remove.
2214 * objfiles.c (entry_point_address_query): Update.
2216 2014-01-15 Tom Tromey <tromey@redhat.com>
2218 * objfiles.c (entry_point_address_query): Relocate entry point
2220 (objfile_relocate1): Do not relocate entry point address.
2221 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2222 <the_bfd_section_index>: New field.
2223 * symfile.c (init_entry_point_info): Find the entry point's
2226 2014-01-15 Tom Tromey <tromey@redhat.com>
2228 * solib-frv.c (enable_break): Use entry_point_address_query.
2230 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2232 * NEWS: Add note on improved process record-replay on
2233 arm*-linux* targets.
2235 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2237 * arm-tdep.c (enum arm_record_result): New enum.
2238 (arm_record_unsupported_insn): New function.
2239 (arm_record_coproc_data_proc): Removed.
2240 (thumb2_record_ld_st_multiple): New function.
2241 (thumb2_record_ld_st_dual_ex_tbb): New function.
2242 (thumb2_record_data_proc_sreg_mimm): New function.
2243 (thumb2_record_ps_dest_generic): New function.
2244 (thumb2_record_branch_misc_cntrl): New function.
2245 (thumb2_record_str_single_data): New function.
2246 (thumb2_record_ld_mem_hints): New function.
2247 (thumb2_record_ld_word): New function.
2248 (thumb2_record_lmul_lmla_div): New function.
2249 (thumb2_record_decode_insn_handler): New function.
2250 (decode_insn): Add thumb32 instruction handlers.
2252 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2254 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2255 (struct arm_linux_record_tdep): Declare.
2256 (arm_canonicalize_syscall): New function.
2257 (arm_all_but_pc_registers_record): New function.
2258 (arm_linux_syscall_record): New function.
2259 (arm_linux_init_abi): Add syscall recording constructs.
2260 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2261 decoding. (arm_record_coproc_data_proc): Update arm syscall
2263 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2264 <arm_syscall_record>: New field.
2265 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2268 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2270 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2271 register for push instruction recording.
2273 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2275 * arm-tdep.c (thumb_record_misc): Update to correct logical
2276 error while recording ldm, ldmia and pop instructions.
2278 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2280 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2282 2014-01-15 Pedro Alves <palves@redhat.com>
2284 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2285 (go32_resume, go32_fetch_registers, store_register)
2286 (go32_store_registers, go32_prepare_to_store)
2287 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2288 (go32_create_inferior, go32_can_run, go32_terminal_init)
2289 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2292 2014-01-15 Tom Tromey <tromey@redhat.com>
2294 * target.h (async_callback_ftype): New typedef.
2295 (struct target_ops) <to_async>: Use it.
2297 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2299 * python/py-value.c (get_field_type): Remove unnecessary curly
2300 braces for single-statement if block.
2302 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2304 * python/py-type.c (convert_field): Add missing empty line
2307 2014-01-14 Doug Evans <dje@google.com>
2309 * symfile.h (expand_symtabs_matching): Renamed from
2310 expand_partial_symbol_names. Update prototype.
2311 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2312 * symfile.c (expand_symtabs_matching): Renamed from
2313 expand_partial_symbol_names. New args file_matcher, kind.
2314 Rename arg fun to symbol_matcher.
2315 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2316 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2317 ada_expand_partial_symbol_name.
2318 (ada_make_symbol_completion_list): Update to call
2319 expand_symtabs_matching.
2320 (ada_add_global_exceptions): Call expand_symtabs_matching.
2321 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2322 call map_symbol_filenames.
2323 * symtab.c (sources_info): Update to call map_symbol_filenames.
2324 (search_symbols): Call expand_symtabs_matching.
2325 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2326 (default_make_symbol_completion_list_break_on): Update to call
2327 expand_symtabs_matching.
2328 (make_source_files_completion_list): Update to call
2329 map_symbol_filenames.
2331 2014-01-14 Doug Evans <dje@google.com>
2333 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2334 (expand_symtabs_symbol_matcher_ftype): New typedef.
2335 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2336 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2337 * symfile.c (expand_partial_symbol_names): Update to use
2338 expand_symtabs_symbol_matcher_ftype.
2339 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2340 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2341 Arg name_matcher renamed to symbol_matcher.
2342 * psymtab.c (recursively_search_psymtabs): Update to use
2343 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2345 (expand_symtabs_matching_via_partial): Update to use
2346 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2347 Arg name_matcher renamed to symbol_matcher.
2349 2014-01-14 Doug Evans <dje@google.com>
2351 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2352 (map_partial_symbol_filenames): Ditto.
2353 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2354 (map_partial_symbol_filenames): Ditto.
2355 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2356 (map_partial_symbol_filenames): Ditto.
2357 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2358 (map_partial_symbol_filenames): Ditto.
2359 * symtab.c: Delete #include "psymtab.h".
2361 2014-01-14 Pedro Alves <palves@redhat.com>
2362 Tom Tromey <tromey@redhat.com>
2364 * infrun.c (use_displaced_stepping): Use find_record_target
2365 instead of RECORD_IS_USED.
2366 (adjust_pc_after_break): Use record_full_is_used instead of
2368 * record-btrace.c (record_btrace_open): Call record_preopen
2369 instead of checking RECORD_IS_USED.
2370 * record-full.c (record_full_shortname)
2371 (record_full_core_shortname): New globals.
2372 (record_full_is_used): New function.
2373 (find_full_open): Call record_preopen instead of checking
2375 (init_record_full_ops): Set the target's shortname to
2376 record_full_shortname.
2377 (init_record_full_core_ops): Set the target's shortname to
2378 record_full_core_shortname.
2379 * record-full.h (record_full_is_used): Declare.
2380 * record.c (find_record_target): Make extern.
2381 (record_preopen): New function.
2382 * record.h (RECORD_IS_USED): Delete macro.
2383 (find_record_target, record_preopen): Declare functions.
2385 2014-01-14 Yao Qi <yao@codesourcery.com>
2387 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2388 'len''s type to ULONGEST.
2389 (core_xfer_shared_libraries_aix): Likewise.
2390 * gdbarch.c, gdbarch.h: Regenerated.
2391 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2392 Change type of 'len' to ULONGEST.
2393 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2394 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2396 2014-01-14 Yao Qi <yao@codesourcery.com>
2398 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2399 type of 'len' to ULONGEST.
2400 (linux_xfer_osdata_processgroups): Likewise.
2401 (linux_xfer_osdata_threads): Likewise.
2402 (linux_xfer_osdata_fds): Likewise.
2403 (linux_xfer_osdata_isockets): Likewise.
2404 (linux_xfer_osdata_shm): Likewise.
2405 (linux_xfer_osdata_sem): Likewise.
2406 (linux_xfer_osdata_msg): Likewise.
2407 (linux_common_xfer_osdata): Likewise.
2408 (struct osdata_type) <getter>: Likewise.
2409 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2412 2014-01-14 Yao Qi <yao@codesourcery.com>
2414 * target.h (target_xfer_partial_ftype): Update.
2415 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2417 * aix-thread.c (aix_thread_xfer_partial): Change type of
2418 argument 'len' to ULONGEST.
2419 * auxv.c (procfs_xfer_auxv): Likewise.
2420 (ld_so_xfer_auxv): Likewise.
2421 (memory_xfer_auxv): Likewise.
2422 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2423 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2424 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2425 * corelow.c (core_xfer_partial): Likewise.
2426 * ctf.c (ctf_xfer_partial): Likewise.
2427 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2429 (darwin_read_dyld_info): Likewise.
2430 (darwin_xfer_partial): Likewise.
2431 * exec.c (section_table_xfer_memory_partial): Likewise.
2432 (exec_xfer_partial): Likewise.
2433 * exec.h (section_table_xfer_memory_partial): Update
2435 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2436 instead of plongest.
2437 (gnu_xfer_partial): Likewise.
2438 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2439 (ia64_hpux_xfer_solib_got): Likewise.
2440 (ia64_hpux_xfer_partial): Likewise.
2441 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2442 * inf-ptrace.c (inf_ptrace_xfer_partial):
2443 * inf-ttrace.c (inf_ttrace_xfer_partial):
2444 * linux-nat.c (linux_xfer_siginfo): Likewise.
2445 (linux_nat_xfer_partial): Likewise.
2446 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2447 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2448 * monitor.c (monitor_xfer_memory): Likewise.
2449 (monitor_xfer_partial): Likewise.
2450 * procfs.c (procfs_xfer_partial): Likewise.
2451 * record-full.c (record_full_xfer_partial): Likewise.
2452 (record_full_core_xfer_partial): Likewise.
2453 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2454 instead of plongest.
2455 (gdbsim_xfer_partial): Likewise.
2456 * remote.c (remote_xfer_partial): Likewise.
2457 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2458 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2460 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2461 (rs6000_xfer_shared_libraries): Likewise.
2462 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2463 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2464 (sparc_xfer_partial): Likewise.
2465 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2466 (spu_xfer_partial): Likewise.
2467 * spu-multiarch.c (spu_xfer_partial): Likewise.
2468 * target.c (target_read_live_memory): Likewise.
2469 (memory_xfer_live_readonly_partial): Likewise.
2470 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2471 (target_xfer_partial, default_xfer_partial): Likewise.
2472 (current_xfer_partial): Likewise.
2473 * tracepoint.c (tfile_xfer_partial): Likewise.
2474 * windows-nat.c (windows_xfer_memory): Likewise. Call
2475 pulongest instead of plongest.
2476 (windows_xfer_partial): Likewise.
2477 (windows_xfer_shared_libraries): Likewise.
2479 2014-01-14 Yao Qi <yao@codesourcery.com>
2481 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2482 target_xfer_partial_ftype.
2484 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2488 * valops.c (value_struct_elt_bitpos): New function
2489 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2490 object to 'None' if the field name is an empty string ("").
2491 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2492 attribute to look for a field when 'name' is 'None'.
2493 (get_field_type): New function
2495 2014-01-13 Doug Evans <dje@google.com>
2498 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2499 (try_open_dwop_file): Ditto.
2500 * gdb_bfd.c: #include "vec.h".
2501 (bfdp): New typedef.
2502 (struct gdb_bfd_data): New member included_bfds.
2503 (gdb_bfd_unref): Unref all included bfds.
2504 (gdb_bfd_record_inclusion): New function.
2505 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2507 2014-01-13 Tom Tromey <tromey@redhat.com>
2509 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2511 2014-01-13 Tom Tromey <tromey@redhat.com>
2513 * defs.h (use_windows): Remove.
2514 * gdb.c (main): Update.
2515 * main.c (captured_main, gdb_main): Update.
2516 * main.h (struct captured_main_args) <use_windows>: Remove.
2517 * top.c (use_windows): Remove.
2519 2014-01-13 Tom Tromey <tromey@redhat.com>
2521 * defs.h (deprecated_flush_hook): Remove.
2523 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2526 * linux-thread-db.c (try_thread_db_load): Add parameter
2527 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2528 (try_thread_db_load_from_pdir_1): Move it there from here.
2529 (try_thread_db_load_from_sdir): Update caller.
2530 (try_thread_db_load_from_dir): Move it there from here.
2532 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2534 * regformats/regdat.sh: Always rewrite the register file.
2536 2014-01-13 Pedro Alves <palves@redhat.com>
2538 * Makefile.in (CHECK_HEADERS): New variable.
2539 (check-headers:): New rule.
2541 2014-01-13 Tom Tromey <tromey@redhat.com>
2543 * cli/cli-setshow.c (do_set_command): Update.
2544 * defs.h (deprecated_set_hook): Remove.
2545 * top.c (deprecated_set_hook): Remove.
2547 2014-01-13 Pedro Alves <palves@redhat.com>
2549 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2550 the tracepoint if the PC is a pseudo-register.
2552 2014-01-13 Tom Tromey <tromey@redhat.com>
2554 * defs.h (XCALLOC): Remove.
2555 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2556 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2557 * dwarf2loc.c (allocate_piece_closure): Likewise.
2558 * elfread.c (elf_symfile_segments): Likewise.
2559 (elf_symfile_segments): Likewise.
2560 * gdbtypes.c (copy_type_recursive): Likewise.
2561 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2562 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2563 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2565 * mt-tdep.c (mt_gdbarch_init): Likewise.
2566 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2568 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2569 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2570 * registry.c (registry_alloc_data): Likewise.
2571 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2572 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2573 * serial.c (serial_fdopen_ops): Likewise.
2574 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2576 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2577 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2580 2014-01-13 Tom Tromey <tromey@redhat.com>
2582 * defs.h (XMALLOC): Remove.
2583 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2584 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2585 * cli-out.c (struct ui_out *): Likewise.
2586 * cli/cli-dump.c (add_dump_command): Likewise.
2587 (add_dump_command): Likewise.
2588 * complaints.c (get_complaints): Likewise.
2589 (find_complaint): Likewise.
2590 * dwarf2-frame.c (execute_cfa_program): Likewise.
2591 * dwarf2read.c (abbrev_table_read_table): Likewise.
2592 * gdbarch.sh: Likewise.
2593 * gdbarch.c: Rebuild.
2594 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2595 * interps.c (interp_new): Likewise.
2596 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2597 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2598 * mi/mi-console.c (mi_console_file_new): Likewise.
2599 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2600 * mi/mi-out.c (mi_out_new): Likewise.
2601 * mi/mi-parse.c (mi_parse): Likewise.
2602 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2603 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2604 * observer.c (xalloc_observer_list_node): Likewise.
2605 * regcache.c (regcache_xmalloc_1): Likewise.
2606 * reggroups.c (reggroup_new): Likewise.
2607 (_initialize_reggroup): Likewise.
2608 * registry.c (register_data_with_cleanup): Likewise.
2609 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2610 * ser-base.c (serial_ttystate): Likewise.
2611 * ser-mingw.c (make_pipe_state): Likewise.
2612 * ser-pipe.c (pipe_open): Likewise.
2613 * serial.c (serial_open): Likewise.
2614 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2615 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2616 (tui_alloc_win_info): Likewise.
2617 (tui_add_content_elements): Likewise.
2618 * tui/tui-file.c (tui_file_new): Likewise.
2619 * tui/tui-out.c (tui_out_new): Likewise.
2620 * ui-file.c (mem_file_new): Likewise.
2621 * ui-out.c (push_level): Likewise.
2622 (make_cleanup_ui_out_end): Likewise.
2623 (append_header_to_list): Likewise.
2624 (ui_out_new): Likewise.
2625 * user-regs.c (user_reg_add_builtin): Likewise.
2627 2014-01-13 Tom Tromey <tromey@redhat.com>
2629 * defs.h (XZALLOC): Remove.
2630 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2631 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2632 (get_ada_tasks_inferior_data): Likewise.
2633 * auto-load.c (get_auto_load_pspace_data): Likewise.
2634 * auxv.c (get_auxv_inferior_data): Likewise.
2635 * bfd-target.c (target_bfd_reopen): Likewise.
2636 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2637 (deprecated_insert_raw_breakpoint): Likewise.
2638 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2639 * corelow.c (core_open): Likewise.
2640 * darwin-nat.c (darwin_check_new_threads): Likewise.
2641 (darwin_attach_pid): Likewise.
2642 * dummy-frame.c (dummy_frame_push): Likewise.
2643 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2644 * dwarf2loc.c (allocate_piece_closure): Likewise.
2645 * elfread.c (elf_symfile_segments): Likewise.
2646 * eval.c (ptrmath_type_p): Likewise.
2647 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2648 * gdbtypes.c (alloc_type_arch): Likewise.
2649 (alloc_type_instance): Likewise.
2650 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2651 * inf-child.c (inf_child_can_use_agent): Likewise.
2652 * inflow.c (get_inflow_inferior_data): Likewise.
2653 * infrun.c (save_infcall_suspend_state): Likewise.
2654 * jit.c (jit_reader_load): Likewise.
2655 (get_jit_objfile_data): Likewise.
2656 (get_jit_program_space_data): Likewise.
2657 (jit_object_open_impl): Likewise.
2658 (jit_symtab_open_impl): Likewise.
2659 (jit_block_open_impl): Likewise.
2660 (jit_frame_sniffer): Likewise.
2661 * linux-fork.c (add_fork): Likewise.
2662 * maint.c (make_command_stats_cleanup): Likewise.
2663 * objfiles.c (get_objfile_pspace_data): Likewise.
2664 * opencl-lang.c (struct lval_closure): Likewise.
2665 * osdata.c (osdata_start_osdata): Likewise.
2666 * progspace.c (new_address_space): Likewise.
2667 (add_program_space): Likewise.
2668 * remote-sim.c (get_sim_inferior_data): Likewise.
2669 * sh-tdep.c (sh_gdbarch_init): Likewise.
2670 * skip.c (Ignore): Likewise.
2671 (skip_delete_command): Likewise.
2672 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2673 (library_list_start_library): Likewise.
2674 (solib_aix_current_sos): Likewise.
2675 * solib-darwin.c (get_darwin_info): Likewise.
2676 (darwin_current_sos): Likewise.
2677 * solib-dsbt.c (get_dsbt_info): Likewise.
2678 * solib-ia64-hpux.c (new_so_list): Likewise.
2679 (ia64_hpux_get_solib_linkage_addr): Likewise.
2680 * solib-spu.c (append_ocl_sos): Likewise.
2681 (spu_current_sos): Likewise.
2682 * solib-svr4.c (get_svr4_info): Likewise.
2683 (svr4_keep_data_in_core): Likewise.
2684 (library_list_start_library): Likewise.
2685 (svr4_default_sos): Likewise.
2686 (svr4_read_so_list): Likewise.
2687 * solib-target.c (library_list_start_library): Likewise.
2688 (solib_target_current_sos): Likewise.
2689 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2690 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2691 * symfile.c (default_symfile_segments): Likewise.
2692 * target-descriptions.c (tdesc_data_init): Likewise.
2693 (tdesc_create_reg): Likewise.
2694 (struct tdesc_type *): Likewise.
2695 (tdesc_create_vector): Likewise.
2696 (tdesc_set_struct_size): Likewise.
2697 (struct tdesc_type *): Likewise.
2698 (tdesc_free_feature): Likewise.
2699 (tdesc_create_feature): Likewise.
2700 * windows-nat.c (windows_add_thread): Likewise.
2701 (windows_make_so): Likewise.
2702 * xml-support.c (gdb_xml_body_text): Likewise.
2703 (gdb_xml_create_parser_and_cleanup): Likewise.
2704 (xml_process_xincludes): Likewise.
2705 * xml-syscall.c (allocate_syscalls_info): Likewise.
2706 (syscall_create_syscall_desc): Likewise.
2708 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2710 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2711 function, with code from i386_stap_parse_special_token.
2712 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2713 (i386_stap_parse_special_token): Move code to the two functions
2716 2014-01-09 Pedro Alves <palves@redhat.com>
2717 Hui Zhu <hui@codesourcery.com>
2720 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2721 bp_err_string. Don't mark the location shlib_disabled if the
2722 error thrown wasn't a generic or memory error. Catch errors
2723 thrown while inserting breakpoints in overlayed code. Output
2724 error message of software breakpoints.
2725 * remote.c (remote_insert_breakpoint): If this breakpoint has
2726 target-side commands but this stub doesn't support Z0 packets,
2727 throw NOT_SUPPORTED_ERROR error.
2728 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2729 * target.h (target_insert_breakpoint): Extend comment.
2730 (target_insert_hw_breakpoint): Add comment.
2732 2014-01-08 Pedro Alves <palves@redhat.com>
2734 * remote.c (remote_add_thread): Add threads silently if starting
2736 (remote_notice_new_inferior): If in all-stop, and starting up,
2737 don't call notice_new_inferior.
2738 (get_current_thread): New function, factored out from ...
2739 (add_current_inferior_and_thread): ... this. Adjust.
2740 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2741 found any thread, then select the remote's current thread as GDB's
2744 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2746 * NEWS: Create a new section for the next release branch.
2747 Rename the section of the current branch, now that it has
2750 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2752 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2753 * version.in: Bump version to 7.7.50.DATE-cvs.
2755 2014-01-08 Yao Qi <yao@codesourcery.com>
2757 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2758 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2759 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2761 2014-01-08 Yao Qi <yao@codesourcery.com>
2763 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2764 return value of bfd_get_filename to symbol_file_add_from_bfd.
2766 2014-01-08 Pierre Muller <muller@sourceware.org>
2769 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2770 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2771 to prim_record_mininal_symbol_and_info.
2772 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2773 in call to prim_record_minimal_symbol_and_info.
2774 (read_pe_exported_syms): Set index field of section_data.
2776 2014-01-07 Andrew Pinski <apinski@cavium.com>
2778 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2779 * features/aarch64.c: Regenerate.
2781 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2783 * target.c (return_null): Define.
2784 (update_current_target): Use it instead of return_zero for
2785 functions that return a pointer.
2787 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2789 * source.c (add_path): Fix check for duplicated paths in the previously
2792 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2794 * ada-lang.c: Remove duplicated include statements.
2795 * alphabsd-nat.c: Ditto.
2796 * amd64-darwin-tdep.c: Ditto.
2797 * amd64fbsd-nat.c: Ditto.
2798 * auto-load.c: Ditto.
2800 * breakpoint.c: Ditto.
2802 * fork-child.c: Ditto.
2803 * gdb_usleep.c: Ditto.
2804 * i386-darwin-tdep.c: Ditto.
2805 * i386fbsd-nat.c: Ditto.
2807 * inferior.c: Ditto.
2809 * linux-nat.c: Ditto.
2810 * linux-tdep.c: Ditto.
2811 * m68kbsd-nat.c: Ditto.
2812 * m68klinux-nat.c: Ditto.
2813 * microblaze-tdep.c: Ditto.
2814 * mips-linux-tdep.c: Ditto.
2815 * mn10300-tdep.c: Ditto.
2816 * nto-tdep.c: Ditto.
2817 * opencl-lang.c: Ditto.
2819 * printcmd.c: Ditto.
2820 * regcache.c: Ditto.
2821 * remote-m32r-sdi.c: Ditto.
2825 * tilegx-linux-nat.c: Ditto.
2826 * tilegx-tdep.c: Ditto.
2827 * tracepoint.c: Ditto.
2829 * vaxbsd-nat.c: Ditto.
2830 * windows-nat.c: Ditto.
2831 * xtensa-tdep.c: Ditto.
2833 2014-01-07 Yao Qi <yao@codesourcery.com>
2835 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2837 2014-01-07 Yao Qi <yao@codesourcery.com>
2838 Joel Brobecker <brobecker@adacore.com>
2840 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2841 (pdc_write_regs): Likewise.
2842 (fetch_regs_kernel_thread): Likewise.
2843 (store_regs_kernel_thread): Likewise.
2845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2847 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2848 tagged type objects to their actual type.
2850 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2852 * ada-valprint.c (print_field_values): Add "language" parameter.
2853 Update calls to print_field_values and print_variant_part.
2854 Pass new parameter "language" in call to val_print instead
2855 of "current_language". Replace call to ada_val_print by call
2857 (print_variant_part): Add "language" parameter.
2858 (ada_val_print_struct_union): Update call to print_field_values.
2860 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2862 * ada-valprint.c (ui_memcpy): Delete.
2863 (ada_print_floating): Update documentation. Add empty line
2864 between between function documentation and implementation.
2865 Delete variable "buffer". Use ui_file_xstrdup in place of
2866 ui_file_put. Minor adjustments following this change.
2868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2870 * ada-valprint.c (ada_val_print_string): New function,
2871 extracted from ada_val_print_array.
2872 (ada_val_print_array): Replace extracted code by call
2873 to ada_val_print_string followed by a return. Move
2874 "else" branch to the function's top block.
2876 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2878 * ada-valprint.c (ada_val_print_array): Move implementation
2879 down. Rename parameter "offset" and "val" into "offset_aligned"
2880 and "original_value" respectively. Add parameter "offset".
2882 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2884 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2885 re-organizing the code. Change the "???" message printed
2886 when target type is a TYPE_CODE_UNDEF into
2887 "<ref to undefined type>".
2889 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2891 * ada-valprint.c (print_record): Delete, implementation inlined...
2892 (ada_val_print_struct_union): ... here. Remove call to
2893 ada_check_typedef in inlined implementation.
2895 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2897 * ada-valprint.c (ada_val_print_gnat_array): New function,
2898 extracted from ada_val_print_1;
2899 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2900 (ada_val_print_flt, ada_val_print_struct_union)
2901 (ada_val_print_ref): Likewise.
2902 (ada_val_print_1): Delete variables i and elttype.
2903 Replace extracted-out code by call to corresponding
2906 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2908 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2910 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2912 * ada-valprint.c (ada_val_print_1): Replace calls to
2913 ada_val_print_1 by calls to val_print.
2915 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2917 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2918 Update calls to self accordingly. Replace calls to c_val_print
2919 by calls to val_print.
2921 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2923 * ada-valprint.c (print_record): Delete declaration.
2924 (adjust_type_signedness, ada_val_print_1): Likewise.
2925 (ada_val_print): Move function implementation down.
2926 (print_variant_part, print_field_values, print_record):
2927 Move function implementation up.
2929 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2931 * python/py-type.c (typy_get_name): New function.
2932 (type_object_getset): Add entry for attribute "name".
2933 * NEWS: Add entry mentioning this new attribute.
2935 2014-01-07 Yao Qi <yao@codesourcery.com>
2937 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2940 2014-01-07 Yao Qi <yao@codesourcery.com>
2942 * gnu-nat.c (info_port_rights): Add qualifier const to
2945 2014-01-07 Yao Qi <yao@codesourcery.com>
2947 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2949 2014-01-07 Yao Qi <yao@codesourcery.com>
2951 * gnu-nat.c (make_inf) Update declaration.
2952 (make_inf): Make it static.
2953 (inf_set_traced): Likewise.
2954 (inf_port_to_thread, inf_task_died_status): Likewise.
2956 2014-01-07 Yao Qi <yao@codesourcery.com>
2958 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2960 2014-01-07 Yao Qi <yao@codesourcery.com>
2962 * gnu-nat.c (_initialize_gnu_nat): Declare.
2964 2014-01-07 Yao Qi <yao@codesourcery.com>
2966 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2968 (struct gdbarch_info) <byte_order>: Change type to
2970 <byte_order_for_code>: Likewise.
2971 * gdbarch.c, gdbarch.h: Regenerated.
2973 2014-01-06 Sasha Smundak <asmundak@google.com>
2975 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2977 2014-01-06 Tom Tromey <tromey@redhat.com>
2979 * doublest.c (convert_doublest_to_floatformat): Use const, not
2981 * somread.c (som_symtab_read): Likewise.
2983 2014-01-07 Hui Zhu <hui@codesourcery.com>
2985 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2986 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2987 (gdb_bfd_fopen): Ditto.
2988 (gdb_bfd_openr): Ditto.
2989 (gdb_bfd_openw): Ditto.
2990 (gdb_bfd_openr_iovec): Ditto.
2991 (gdb_bfd_fdopenr): Ditto.
2992 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2993 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2995 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2997 * symfile-mem.c (symbol_file_add_from_memory): Removed
2998 gdb_bfd_stash_filename.
3000 2014-01-03 Doug Evans <dje@google.com>
3002 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3005 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3007 Update year range in copyright notice of all files.
3009 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3011 * top.c (print_gdb_version): Set copyright year to 2014.
3013 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3015 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3017 For older changes see ChangeLog-2013.
3023 version-control: never