1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5 (target_insert_fork_catchpoint): Add argument.
6 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7 (update_current_target): Update.
8 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11 2014-02-19 Tom Tromey <tromey@redhat.com>
13 * target.h (struct target_ops) <to_post_startup_inferior>: Add
15 (target_post_startup_inferior): Add argument.
16 * target.c (debug_to_post_startup_inferior): Add argument.
17 (update_current_target): Update.
18 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
20 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
22 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
24 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
26 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
28 (super_post_startup_inferior): Likewise.
29 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
31 (super_post_startup_inferior): Likewise.
32 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
34 (super_post_startup_inferior): Likewise.
36 2014-02-19 Tom Tromey <tromey@redhat.com>
38 * target.h (struct target_ops) <to_load>: Add argument.
39 * target.c (target_load): Add argument.
40 (debug_to_load): Add argument.
41 (update_current_target): Update.
42 * remote.c (remote_load): Add 'self' argument.
43 * remote-sim.c (gdbsim_load): Add 'self' argument.
44 * remote-mips.c (mips_load): Add 'self' argument.
45 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
46 * monitor.c (monitor_load): Add 'self' argument.
47 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
49 2014-02-19 Tom Tromey <tromey@redhat.com>
51 * target.h (struct target_ops) <to_terminal_info>: Add argument.
52 (target_terminal_info): Add argument.
53 * target.c (debug_to_terminal_info): Add argument.
54 (default_terminal_info): Likewise.
55 * inflow.c (child_terminal_info): Add 'self' argument.
56 * inferior.h (child_terminal_info): Add 'self' argument.
57 * go32-nat.c (go32_terminal_info): Add 'self' argument.
59 2014-02-19 Tom Tromey <tromey@redhat.com>
61 * target.h (struct target_ops) <to_terminal_save_ours>: Add
63 (target_terminal_save_ours): Add argument.
64 * target.c (debug_to_terminal_save_ours): Add argument.
65 (update_current_target): Update.
66 * inflow.c (terminal_save_ours): Add 'self' argument.
67 * inferior.h (terminal_save_ours): Add 'self' argument.
69 2014-02-19 Tom Tromey <tromey@redhat.com>
71 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
72 (target_terminal_ours): Add argument.
73 * target.c (debug_to_terminal_ours): Add argument.
74 (update_current_target): Update.
75 * remote.c (remote_terminal_ours): Add 'self' argument.
76 (remote_close): Update.
77 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
78 * inflow.c (terminal_ours): Add 'self' argument.
79 * inferior.h (terminal_ours): Add 'self' argument.
80 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
82 2014-02-19 Pedro Alves <palves@redhat.com>
83 Tom Tromey <tromey@redhat.com>
85 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
87 (target_terminal_ours_for_output): Add argument.
88 * target.c (debug_to_terminal_ours_for_output): Add argument.
89 (update_current_target): Update.
90 * inflow.c (terminal_ours_for_output): Add 'self' argument.
91 * inferior.h (terminal_ours_for_output): Add 'self' argument.
92 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
94 2014-02-19 Tom Tromey <tromey@redhat.com>
96 * target.h (struct target_ops) <to_terminal_inferior>: Add
98 * target.c (target_terminal_inferior): Add argument.
99 (update_current_target): Update.
100 * remote.c (remote_terminal_inferior): Add 'self' argument.
101 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
102 * inflow.c (terminal_inferior): Add 'self' argument.
103 * inferior.h (terminal_inferior): Add 'self' argument.
104 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
105 (go32_terminal_inferior): Add 'self' argument.
107 2014-02-19 Tom Tromey <tromey@redhat.com>
109 * target.h (struct target_ops) <to_terminal_init>: Add argument.
110 (target_terminal_init): Add argument.
111 * target.c (debug_to_terminal_init): Add argument.
112 (update_current_target): Update.
113 * inflow.c (terminal_init_inferior): Add 'self' argument.
114 * inferior.h (terminal_init_inferior): Add 'self' argument.
115 * go32-nat.c (go32_terminal_init): Add 'self' argument.
116 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
118 2014-02-19 Tom Tromey <tromey@redhat.com>
120 * target.h (struct target_ops)
121 <to_can_accel_watchpoint_condition>: Add argument.
122 (target_can_accel_watchpoint_condition): Add argument.
123 * target.c (debug_to_can_accel_watchpoint_condition): Add
125 (update_current_target): Update.
126 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
129 2014-02-19 Tom Tromey <tromey@redhat.com>
131 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
133 (target_region_ok_for_hw_watchpoint): Add argument.
134 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
135 (default_region_ok_for_hw_watchpoint): Add argument.
136 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
137 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
139 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
141 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
143 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
145 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
147 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
149 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
150 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
152 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
155 2014-02-19 Tom Tromey <tromey@redhat.com>
157 * target.h (struct target_ops) <to_insert_watchpoint>: Add
159 (target_insert_watchpoint): Add argument.
160 * target.c (debug_to_insert_watchpoint): Add argument.
161 (update_current_target): Update.
162 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
163 * remote.c (remote_insert_watchpoint): Add 'self' argument.
164 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
165 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
166 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
167 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
169 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
170 (procfs_insert_hw_watchpoint): Add 'self' argument.
171 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
173 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
175 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
177 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
178 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
180 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
183 2014-02-19 Tom Tromey <tromey@redhat.com>
185 * target.h (struct target_ops) <to_remove_watchpoint>: Add
187 (target_remove_watchpoint): Add argument.
188 * target.c (debug_to_remove_watchpoint): Add argument.
189 (update_current_target): Update.
190 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
191 * remote.c (remote_remove_watchpoint): Add 'self' argument.
192 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
193 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
194 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
195 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
197 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
198 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
200 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
202 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
204 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
205 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
207 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
210 2014-02-19 Tom Tromey <tromey@redhat.com>
212 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
214 (target_remove_hw_breakpoint): Add argument.
215 * target.c (debug_to_remove_hw_breakpoint): Add argument.
216 (update_current_target): Update.
217 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
218 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
220 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
221 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
223 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
226 2014-02-19 Tom Tromey <tromey@redhat.com>
228 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
230 (target_insert_hw_breakpoint): Add argument.
231 * target.c (debug_to_insert_hw_breakpoint): Add argument.
232 (update_current_target): Update.
233 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
234 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
236 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
237 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
238 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
240 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
247 (target_can_use_hardware_watchpoint): Add argument.
248 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
249 (update_current_target): Update.
250 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
252 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
254 * remote.c (remote_check_watch_resources): Add 'self' argument.
255 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
256 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
258 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
259 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
261 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
263 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
265 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
267 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
269 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
271 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
272 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
274 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
277 2014-02-19 Tom Tromey <tromey@redhat.com>
279 * target.h (struct target_ops) <to_post_attach>: Add argument.
280 (target_post_attach): Add argument.
281 * target.c (debug_to_post_attach): Add argument.
282 (update_current_target): Update.
283 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
284 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
285 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
286 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
287 * inf-child.c (inf_child_post_attach): Add 'self' argument.
289 2014-02-19 Tom Tromey <tromey@redhat.com>
291 * windows-nat.c (windows_close): Add 'self' argument.
292 * tracepoint.c (tfile_close): Add 'self' argument.
293 * target.h (struct target_ops) <to_close>: Add argument.
294 * target.c (target_close): Add argument.
295 (update_current_target): Update.
296 * remote.c (remote_close): Add 'self' argument.
297 * remote-sim.c (gdbsim_close): Add 'self' argument.
298 * remote-mips.c (mips_close): Add 'self' argument.
299 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
300 * record-full.c (record_full_close): Add 'self' argument.
301 * record-btrace.c (record_btrace_close): Add 'self' argument.
302 * monitor.h (monitor_close): Add 'self' argument.
303 * monitor.c (monitor_close): Add 'self' argument.
304 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
305 * linux-nat.c (linux_nat_close): Add argument.
306 * go32-nat.c (go32_close): Add 'self' argument.
307 * exec.c (exec_close_1): Add 'self' argument.
308 * ctf.c (ctf_close): Add 'self' argument.
309 * corelow.c (core_close): Add 'self' argument.
310 (core_close_cleanup): Update.
311 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
312 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
314 2014-02-19 Tom Tromey <tromey@redhat.com>
316 * remote.c (remote_load): New function.
317 (init_remote_ops): Use it.
319 2014-02-19 Tom Tromey <tromey@redhat.com>
321 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
323 * common/linux-btrace.h (linux_supports_btrace): Update.
324 * remote.c (remote_supports_btrace): Add "self" argument.
325 * target-delegates.c: Rebuild.
326 * target.c (target_supports_btrace): Remove.
327 * target.h (struct target_ops) <to_supports_btrace>: Add
329 (target_supports_btrace): New define.
331 2014-02-19 Tom Tromey <tromey@redhat.com>
333 * record-full.c (record_full_beneath_to_resume_ops)
334 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
335 (record_full_beneath_to_wait)
336 (record_full_beneath_to_store_registers_ops)
337 (record_full_beneath_to_store_registers)
338 (record_full_beneath_to_xfer_partial_ops)
339 (record_full_beneath_to_xfer_partial)
340 (record_full_beneath_to_insert_breakpoint_ops)
341 (record_full_beneath_to_insert_breakpoint)
342 (record_full_beneath_to_remove_breakpoint_ops)
343 (record_full_beneath_to_remove_breakpoint)
344 (record_full_beneath_to_stopped_by_watchpoint)
345 (record_full_beneath_to_stopped_data_address)
346 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
347 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
348 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
349 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
350 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
351 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
352 (tmp_to_stopped_data_address, tmp_to_async): Remove.
353 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
354 (record_full_resume, record_full_wait_1)
355 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
356 (record_full_store_registers, record_full_xfer_partial)
357 (record_full_insert_breakpoint, record_full_remove_breakpoint)
358 (record_full_async, record_full_core_xfer_partial): Use target
360 * target-delegates.c: Rebuild.
361 * target.c (current_xfer_partial): Remove.
362 (update_current_target): Do not INHERIT or de_fault
363 to_insert_breakpoint, to_remove_breakpoint,
364 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
365 to_is_async_p, to_async. Do not set to_xfer_partial field.
366 (default_xfer_partial): Simplify.
367 (current_xfer_partial): Remove.
368 (target_wait, target_resume): Simplify.
369 (find_default_can_async_p, find_default_is_async_p): Update.
370 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
371 to_xfer_partial, to_stopped_by_watchpoint,
372 to_stopped_data_address.
373 (target_store_registers): Simplify.
374 (forward_target_remove_breakpoint)
375 (forward_target_insert_breakpoint): Remove.
376 (target_remove_breakpoint, target_insert_breakpoint)
377 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
378 * target.h (struct target_ops) <to_resume, to_wait,
379 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
380 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
381 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
383 (forward_target_remove_breakpoint)
384 (forward_target_insert_breakpoint): Remove.
385 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
387 (record_btrace_insert_breakpoint): Delegate directly.
389 2014-02-19 Tom Tromey <tromey@redhat.com>
392 * target-delegates.c: New file.
393 * target.c: Include target-delegates.c.
394 (init_dummy_target): Call install_dummy_methods.
395 (complete_target_initialization): Call install_delegators.
396 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
397 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
398 * make-target-delegates: New file.
400 2014-02-19 Tom Tromey <tromey@redhat.com>
402 * record.c (find_record_target): Use find_target_at.
403 * target.c (find_target_at): New function.
404 * target.h (find_target_at): Declare.
406 2014-02-19 Tom Tromey <tromey@redhat.com>
408 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
410 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
412 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
413 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
415 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
417 * linux-nat.c (save_sigtrap): Update.
418 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
419 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
420 (linux_nat_close): Update.
421 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
423 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
425 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
426 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
427 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
428 (tmp_to_async): Add 'ops' argument.
429 (record_full_stopped_by_watchpoint, record_full_async)
430 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
432 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
433 (m32r_stopped_by_watchpoint): Add 'ops' argument.
434 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
435 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
436 (remote_is_async_p, remote_async): Add 'ops' argument.
437 (remote_stopped_data_address): Update.
438 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
439 * target.c (update_current_target)
440 (find_default_can_async_p, find_default_is_async_p): Update.
441 (init_dummy_target): Update.
442 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
443 * target.h (struct target_ops) <to_stopped_by_watchpoint,
444 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
445 (target_can_async_p, target_is_async_p, target_async)
446 (target_stopped_by_watchpoint): Update.
448 2014-02-19 Yao Qi <yao@codesourcery.com>
451 * gdbarch.sh: Remove startup_gdbarch.
452 * gdbarch.c: Regenerated.
453 * gdbarch.h: Likewise.
455 2014-02-17 Kevin Buettner <kevinb@redhat.com>
457 * rl78-tdep.c (rl78_g10_register_name): New function.
458 (rl78_return_value): Add g10 support.
459 (rl78_gdbarch_init): Register rl78_g10_register_name for the
462 2014-02-17 Doug Evans <xdje42@gmail.com>
464 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
465 (SUBDIR_GUILE_SRCS): Ditto.
466 (scm-gsmob.o): Ditto.
468 2014-02-17 Yao Qi <yao@codesourcery.com>
470 * gnu-nat.c (ILL_RPC): Declare defined function.
472 2014-02-17 Yao Qi <yao@codesourcery.com>
474 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
475 mach_msg_type_number_t.
476 (gnu_write_inferior): Likewise.
478 2014-02-17 Yao Qi <yao@codesourcery.com>
480 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
482 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
483 (inf_validate_procs, inf_signal): Likewise.
484 (S_exception_raise_request): Likewise.
485 (do_mach_notify_dead_name): Likewise.
486 (steal_exc_port): Likewise.
487 (gnu_read_inferior): Change 'copy_count''s type to
488 mach_msg_type_number_t.
489 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
492 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
494 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
495 flag. Adjust all users; in particular...
496 (gnu_wait): ..., don't decrement its value in here...
497 (gnu_create_inferior): ..., and instead set the flag in here,
498 around the startup_inferior call, and call that one with
499 START_INFERIOR_TRAPS_EXPECTED.
501 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
502 (ILL_RPC): ... new macro.
503 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
504 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
505 (do_mach_notify_send_once, S_proc_setmsgport_reply)
506 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
507 functions with ILL_RPC macro.
508 (S_proc_pid2task_reply, S_proc_task2pid_reply)
509 (S_proc_task2proc_reply, S_proc_proc2task_reply)
510 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
511 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
512 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
513 (S_proc_getlogin_reply, S_proc_getsid_reply)
514 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
515 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
516 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
517 (S_proc_getnports_reply, S_proc_is_important_reply)
518 (S_proc_get_code_reply): New stub functions, generated with
521 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
522 collected the type check structures.
524 * reply_mig_hack.awk: Don't expect to see the auto keyword.
526 2014-02-14 Doug Evans <dje@google.com>
528 * target.c (target_write_partial): Fix result type.
530 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
532 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
533 the proper offsets to access fpregset_t.
535 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
537 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
538 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
539 * h8300-tdep.c (setmachinelist): Remove global.
540 * hppa-tdep.c (hppa_sigtramp): Remove global.
541 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
542 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
543 * ravenscar-thread.c (update_target_observer): Remove global.
544 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
546 2014-02-12 Tom Tromey <tromey@redhat.com>
548 * common/rsp-low.c: Update comments.
549 * common/rsp-low.h: Update comments.
551 2014-02-12 Tom Tromey <tromey@redhat.com>
553 * common/rsp-low.c (convert_ascii_to_int): Remove.
554 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
556 2014-02-12 Tom Tromey <tromey@redhat.com>
558 * common/rsp-low.h (unhexify): Don't declare.
559 * common/rsp-low.c (unhexify): Remove.
561 2014-02-12 Tom Tromey <tromey@redhat.com>
563 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
564 * common/rsp-low.c (convert_int_to_ascii): Remove.
566 2014-02-12 Tom Tromey <tromey@redhat.com>
568 * common/rsp-low.h (hexify): Don't declare.
569 * common/rsp-low.c (hexify): Remove.
571 2014-02-12 Tom Tromey <tromey@redhat.com>
573 * common/rsp-low.c (hexify): Never take strlen of argument.
575 2014-02-12 Tom Tromey <tromey@redhat.com>
577 * common/rsp-low.c (bin2hex): Never take strlen of argument.
578 * remote.c (extended_remote_run, remote_rcmd)
579 (remote_download_trace_state_variable, remote_save_trace_data)
580 (remote_set_trace_notes): Update.
581 * tracepoint.c (encode_source_string, tfile_write_status)
582 (tfile_write_uploaded_tsv): Update.
584 2014-02-12 Tom Tromey <tromey@redhat.com>
586 * tracepoint.c: Include rsp-low.h.
587 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
588 * remote.c: Include rsp-low.h.
589 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
590 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
591 (remote_unescape_input): Move to common/rsp-low.c.
592 * common/rsp-low.h: New file.
593 * common/rsp-low.c: New file.
594 * Makefile.in (SFILES): Add common/rsp-low.c.
595 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
596 (COMMON_OBS): Add rsp-low.o.
597 (rsp-low.o): New target.
599 2014-02-12 Tom Tromey <tromey@redhat.com>
601 * utils.h: Include print-utils.h.
602 (host_address_to_string, plongest, pulongest, phex, phex_nz)
603 (int_string, core_addr_to_string, core_addr_to_string_nz)
604 (hex_string, hex_string_custom): Don't declare.
605 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
606 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
607 (hex_string_custom, int_string, core_addr_to_string)
608 (core_addr_to_string_nz, host_address_to_string): Move to
609 common/print-utils.c.
610 * common/print-utils.h: New file.
611 * common/print-utils.c: New file
612 * Makefile.in (SFILES): Add common/print-utils.c.
613 (HFILES_NO_SRCDIR): Add common/print-utils.h.
614 (COMMON_OBS): Add print-utils.o.
615 (print-utils.o): New target.
617 2014-02-12 Tom Tromey <tromey@redhat.com>
619 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
621 2014-02-12 Mark Kettenis <kettenis@gnu.org>
623 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
625 2014-02-12 Mark Kettenis <kettenis@gnu.org>
627 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
628 if a PT_IO ptrace request returns sucessfully but indicates that 0
629 bytes were transferred.
631 2014-02-12 Pedro Alves <palves@redhat.com>
632 Kevin Buettner <kevinb@redhat.com>
634 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
635 TYPE_INSTANCE_FLAG_CODE_SPACE.
637 2014-02-12 Pedro Alves <palves@redhat.com>
639 * h8300-tdep.c (pseudo_from_raw_register)
640 (raw_from_pseudo_register): New functions.
641 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
644 2014-02-12 Pedro Alves <palves@redhat.com>
646 * h8300-tdep.c (h8300_register_sim_regno): New function.
647 (h8300_gdbarch_init): Install h8300_register_sim_regno as
648 gdbarch_register_sim_regno hook.
650 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
652 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
654 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
656 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
658 2014-02-12 Mark Kettenis <kettenis@gnu.org>
660 * obsd-tdep.h (obsd_init_abi): New prototype.
661 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
662 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
663 (obsd_init_abi): New functions.
664 * i386obsd-tdep.c: Include "obsd-tdep.h".
665 (i386obsd_init_abi): Call obsd_init_abi.
666 * amd64obsd-tdep.c: Include "obsd-tdep.h".
667 (amd64obsd_init_abi): Call obsd_init_abi.
668 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
669 obsd-tdep.c to gdb_target_obs.
671 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
673 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
674 double float arguments to 16-byte in the argument slots.
676 2014-02-11 Doug Evans <xdje42@gmail.com>
678 * configure.ac: Don't crash if pkg-config is not found and guile
679 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
681 * configure: Regenerate.
683 2014-02-11 Yao Qi <yao@codesourcery.com>
685 * aix-thread.c (aix_thread_xfer_partial): Update comments.
686 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
687 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
688 * gnu-nat.c (gnu_xfer_memory): Likewise.
689 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
690 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
691 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
692 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
694 2014-02-11 Yao Qi <yao@codesourcery.com>
696 * target.h (enum target_xfer_error): Rename to ...
697 (enum target_xfer_status): ... it. New. All users updated.
698 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
700 (TARGET_XFER_STATUS_ERROR_P): New macro.
701 (target_xfer_error_to_string): Remove declaration.
702 (target_xfer_status_to_string): Declare.
703 (target_xfer_partial_ftype): Adjust it.
704 (struct target_ops) <to_xfer_partial>: Return
705 target_xfer_status. Add argument xfered_len. Update
707 * target.c (target_xfer_error_to_string): Rename to ...
708 (target_xfer_status_to_string): ... it. New. All callers
710 (target_read_live_memory): Likewise. Call target_xfer_partial
711 instead of target_read.
712 (memory_xfer_live_readonly_partial): Return
713 target_xfer_status. Add argument xfered_len.
714 (raw_memory_xfer_partial): Likewise.
715 (memory_xfer_partial_1): Likewise.
716 (memory_xfer_partial): Likewise.
717 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
718 properly. Update debug message.
719 (default_xfer_partial, current_xfer_partial): Likewise.
720 (target_write_partial): Likewise.
721 (target_read_partial): Likewise. All callers updated.
722 (read_whatever_is_readable): Likewise.
723 (target_write_with_progress): Likewise.
724 (target_read_alloc_1): Likewise.
726 * aix-thread.c (aix_thread_xfer_partial): Likewise.
727 * auxv.c (procfs_xfer_auxv): Likewise.
728 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
729 * bfd-target.c (target_bfd_xfer_partial): Likewise.
730 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
731 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
732 * corefile.c (read_memory): Adjust.
733 * corelow.c (core_xfer_partial): Likewise.
734 * ctf.c (ctf_xfer_partial): Likewise.
735 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
737 (darwin_xfer_partial): Likewise.
738 * exec.c (section_table_xfer_memory_partial): Likewise. All
740 (exec_xfer_partial): Likewise.
741 * exec.h (section_table_xfer_memory_partial): Update
743 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
745 (gnu_xfer_partial): Likewise.
746 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
747 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
748 (ia64_hpux_xfer_solib_got): Likewise.
749 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
750 type of 'partial_len' to ULONGEST.
751 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
752 * linux-nat.c (linux_xfer_siginfo ): Likewise.
753 (linux_nat_xfer_partial): Likewise.
754 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
755 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
756 * monitor.c (monitor_xfer_memory): Likewise.
757 (monitor_xfer_partial): Likewise.
758 * procfs.c (procfs_xfer_partial): Likewise.
759 * record-btrace.c (record_btrace_xfer_partial): Likewise.
760 * record-full.c (record_full_xfer_partial): Likewise.
761 (record_full_core_xfer_partial): Likewise.
762 * remote-sim.c (gdbsim_xfer_memory): Likewise.
763 (gdbsim_xfer_partial): Likewise.
764 * remote.c (remote_write_bytes_aux): Likewise. All callers
766 (remote_write_bytes, remote_read_bytes): Likewise. All
768 (remote_flash_erase): Likewise. All callers updated.
769 (remote_write_qxfer): Likewise. All callers updated.
770 (remote_read_qxfer): Likewise. All callers updated.
771 (remote_xfer_partial): Likewise.
772 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
773 (rs6000_xfer_shared_libraries): Likewise.
774 * sol-thread.c (sol_thread_xfer_partial): Likewise.
775 (sol_thread_xfer_partial): Likewise.
776 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
777 (sparc_xfer_partial): Likewise.
778 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
780 (spu_xfer_partial): Likewise.
781 * spu-multiarch.c (spu_xfer_partial): Likewise.
782 * tracepoint.c (tfile_xfer_partial): Likewise.
783 * windows-nat.c (windows_xfer_memory): Likewise.
784 (windows_xfer_shared_libraries): Likewise.
785 (windows_xfer_partial): Likewise.
786 * valprint.c: Replace 'target_xfer_error' with
787 'target_xfer_status' in comments.
789 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
791 Checked in by Joel Brobecker <brobecker@adacore.com>.
792 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
794 2014-02-11 Joel Brobecker <brobecker@adacore.com>
796 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
799 2014-02-10 Will Newton <will.newton@linaro.org>
801 * elfread.c (elf_rel_plt_read): Look for a .got section if
802 looking up .got.plt fails.
803 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
804 on address passed to elf_gnu_ifunc_record_cache.
805 (elf_gnu_ifunc_resolve_addr): Likewise.
806 (elf_gnu_ifunc_resolver_return_stop): Likewise.
808 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
810 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
811 (X_RETTURN): New macro.
812 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
814 * sparc64-tdep.c (sparc64_init_abi): Hook
815 sparc_in_function_epilogue_p.
817 2014-02-10 Gary Benson <gbenson@redhat.com>
819 * symfile-debug.c (debug_qf_expand_symtabs_matching):
820 Rename name_matcher to symbol_matcher.
822 2014-02-10 Gary Benson <gbenson@redhat.com>
824 * symfile-debug.c (debug_qf_expand_symtabs_matching):
825 Use expand_symtabs_file_matcher_ftype and
826 expand_symtabs_symbol_matcher_ftype.
828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
830 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
831 (struct ada_symbol_cache): New.
832 (ada_free_symbol_cache): Forward declare.
833 (struct ada_pspace_data): New.
834 (ada_pspace_data_handle): New static global.
835 (get_ada_pspace_data, ada_pspace_data_cleanup)
836 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
837 (cache_space, cache): Delete, now folded inside struct
839 (ada_get_symbol_cache): New function.
840 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
842 (_initialize_ada_language): Remove initialization of cache_space.
843 Move call to observer_attach_inferior_exit up, grouping it
844 with the other observer registrations inside this function.
845 Rename command to be more general. Add call to
846 register_program_space_data_with_cleanup.
848 2014-02-10 Joel Brobecker <brobecker@adacore.com>
850 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
851 ada_new_objfile_observer.
852 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
853 (_initialize_tasks): Update uses of ada_new_objfile_observer
854 and ada_tasks_normal_stop_observer.
856 2014-02-10 Joel Brobecker <brobecker@adacore.com>
858 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
859 returned by the 'Length attribute to integer.
861 2014-02-10 Joel Brobecker <brobecker@adacore.com>
863 * ada-lang.c (_initialize_ada_language): Initialize
866 2014-02-10 Joel Brobecker <brobecker@adacore.com>
868 * ada-lang.c (HASH_SIZE): New macro.
869 (struct cache_entry): New type.
870 (cache_space, cache): New static globals.
871 (ada_clear_symbol_cache, find_entry): New functions.
872 (lookup_cached_symbol, cache_symbol): Implement.
873 (ada_new_objfile_observer, ada_free_objfile_observer): New.
874 (_initialize_ada_language): Attach ada_new_objfile_observer
875 and ada_free_objfile_observer.
877 2014-02-10 Joel Brobecker <brobecker@adacore.com>
879 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
880 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
881 struct block * parameter.
882 (ada_lookup_symbol_list_worker): Constify local variable "block".
883 Remove cast which is no longer necessary.
885 2014-02-10 Doug Evans <xdje42@gmail.com>
887 Add Guile as an extension language.
888 * NEWS: Mention Guile scripting.
889 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
890 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
891 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
892 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
893 (CLIBS): Add GUILE_LIBS.
894 (install-guile): New rule.
896 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
897 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
898 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
899 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
900 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
901 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
902 (scm-type.o, scm-utils.o, scm-value.o): New rules.
903 * configure.ac: New option --with-guile.
904 * configure: Regenerate.
905 * config.in: Regenerate.
906 * auto-load.c: Remove #include "python/python.h". Add #include
907 "gdb/section-scripts.h".
908 (source_section_scripts): Handle Guile scripts.
909 (_initialize_auto_load): Add name of Guile objfile script to
910 scripts-directory help text.
911 * breakpoint.c (condition_command): Tweak comment to include Scheme.
912 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
913 (struct breakpoint): New member scm_bp_object.
914 * defs.h (enum command_control_type): New value guile_control.
915 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
917 (show_user): Update comment.
918 (_initialize_cli_cmds): Update help text for "show user". Update help
919 text for max-user-call-depth.
920 * cli/cli-script.c: Remove #include "python/python.h". Add #include
922 (multi_line_command_p): Add guile_control.
923 (print_command_lines): Handle guile_control.
924 (execute_control_command, recurse_read_control_structure): Ditto.
925 (process_next_line): Recognize "guile" commands.
926 * disasm.c (gdb_disassemble_info): Make non-static.
927 * disasm.h: #include "dis-asm.h".
928 (struct gdbarch): Add forward decl.
929 (gdb_disassemble_info): Declare.
930 * extension.c: #include "guile/guile.h".
931 (extension_languages): Add guile.
932 (get_ext_lang_defn): Handle EXT_LANG_GDB.
933 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
934 * gdbtypes.c (get_unsigned_type_max): New function.
935 (get_signed_type_minmax): New function.
936 * gdbtypes.h (get_unsigned_type_max): Declare.
937 (get_signed_type_minmax): Declare.
938 * guile/README: New file.
939 * guile/guile-internal.h: New file.
940 * guile/guile.c: New file.
941 * guile/guile.h: New file.
942 * guile/scm-arch.c: New file.
943 * guile/scm-auto-load.c: New file.
944 * guile/scm-block.c: New file.
945 * guile/scm-breakpoint.c: New file.
946 * guile/scm-disasm.c: New file.
947 * guile/scm-exception.c: New file.
948 * guile/scm-frame.c: New file.
949 * guile/scm-gsmob.c: New file.
950 * guile/scm-iterator.c: New file.
951 * guile/scm-lazy-string.c: New file.
952 * guile/scm-math.c: New file.
953 * guile/scm-objfile.c: New file.
954 * guile/scm-ports.c: New file.
955 * guile/scm-pretty-print.c: New file.
956 * guile/scm-safe-call.c: New file.
957 * guile/scm-string.c: New file.
958 * guile/scm-symbol.c: New file.
959 * guile/scm-symtab.c: New file.
960 * guile/scm-type.c: New file.
961 * guile/scm-utils.c: New file.
962 * guile/scm-value.c: New file.
963 * guile/lib/gdb.scm: New file.
964 * guile/lib/gdb/boot.scm: New file.
965 * guile/lib/gdb/experimental.scm: New file.
966 * guile/lib/gdb/init.scm: New file.
967 * guile/lib/gdb/iterator.scm: New file.
968 * guile/lib/gdb/printing.scm: New file.
969 * guile/lib/gdb/types.scm: New file.
970 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
971 (VPATH): Add $(GUILE_SRCDIR).
972 (GUILE_DIR): New variable.
973 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
974 (all): Add stamp-guile dependency.
975 (stamp-guile): New rule.
976 (clean-guile, install-guile, uninstall-guile): New rules.
977 (install-only): Add install-guile dependency.
978 (uninstall): Add uninstall-guile dependency.
979 (clean): Add clean-guile dependency.
981 2014-02-09 Doug Evans <xdje42@gmail.com>
983 Revert this patch (which I approved, mea culpa).
985 2014-02-08 Mark Kettenis <kettenis@gnu.org>
987 * Makefile.in (all-lib): Remove.
988 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
990 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
992 Fix Python stack corruption.
993 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
996 2014-02-08 Mark Kettenis <kettenis@gnu.org>
998 * Makefile.in (all-lib): Remove.
999 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1001 2014-02-07 Doug Evans <dje@google.com>
1003 * extension-priv.h (extension_language_script_ops): Add comment.
1004 (extension_language_ops): Add comment.
1005 (active_ext_lang_state): Fix typo in comment.
1007 2014-02-07 Pedro Alves <palves@redhat.com>
1009 * infrun.c (handle_signal_stop) <signal arrives while stepping
1010 over a breakpoint>: Switch back to the stepping thread.
1012 2014-02-07 Yao Qi <yao@codesourcery.com>
1014 * target.c (target_xfer_partial): Return zero if LEN is zero.
1016 2014-02-07 Yao Qi <yao@codesourcery.com>
1018 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1019 (ld_so_xfer_auxv): Likewise.
1020 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1021 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1022 * corelow.c (core_xfer_partial): Likewise.
1023 * ctf.c (ctf_xfer_partial): Likewise.
1024 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1025 (darwin_xfer_partial): Likewise.
1026 * exec.c (exec_xfer_partial): Likewise.
1027 * gnu-nat.c (gnu_xfer_partial): Likewise.
1028 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1029 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1030 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1031 * linux-nat.c (linux_xfer_siginfo): Likewise.
1032 (linux_proc_xfer_spu): Likewise.
1033 * procfs.c (procfs_xfer_partial): Likewise.
1034 * record-full.c (record_full_xfer_partial): Likewise.
1035 (record_full_core_xfer_partial): Likewise.
1036 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1037 * remote.c (remote_write_qxfer): Likewise.
1038 (remote_write_qxfer, remote_read_qxfer): Likewise.
1039 (remote_xfer_partial): Likewise.
1040 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1041 (rs6000_xfer_shared_libraries): Likewise.
1042 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1043 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1044 (spu_xfer_partial): Likewise.
1045 * target.c (memory_xfer_partial_1): Likewise.
1046 * tracepoint.c (tfile_xfer_partial): Likewise.
1047 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1048 (windows_xfer_partial): Likewise.
1050 2014-02-07 Yao Qi <yao@codesourcery.com>
1052 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1054 (core_xfer_shared_libraries_aix): Likewise.
1055 * gdbarch.c, gdbarch.h: Regenerated.
1056 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1057 ULONGEST. Change 'len_avail' type to ULONGEST.
1058 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1059 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1061 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1063 2014-02-07 Yao Qi <yao@codesourcery.com>
1065 * corefile.c (memory_error): Get 'exception' from ERR and pass
1066 'exception' to throw_error.
1068 2014-02-06 Doug Evans <xdje42@gmail.com>
1070 * configure.ac (libpython checking): Remove all but python.o from
1071 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1072 * configure: Regenerate.
1074 * Makefile.in (SFILES): Add extension.c.
1075 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1076 (COMMON_OBS): Add extension.o.
1077 * extension.h: New file.
1078 * extension-priv.h: New file.
1079 * extension.c: New file.
1081 * python/python-internal.h: #include "extension.h".
1082 (gdbpy_auto_load_enabled): Declare.
1083 (gdbpy_apply_val_pretty_printer): Declare.
1084 (gdbpy_apply_frame_filter): Declare.
1085 (gdbpy_preserve_values): Declare.
1086 (gdbpy_breakpoint_cond_says_stop): Declare.
1087 (gdbpy_breakpoint_has_cond): Declare.
1088 (void source_python_script_for_objfile): Delete.
1089 * python/python.c: #include "extension-priv.h".
1090 Delete inclusion of "observer.h".
1091 (extension_language_python): Moved here and renamed from
1092 script_language_python in py-auto-load.c.
1093 Redefined to be of type extension_language_defn.
1094 (python_extension_script_ops): New global.
1095 (python_extension_ops): New global.
1096 (struct python_env): New member previous_active.
1097 (restore_python_env): Call restore_active_ext_lang.
1098 (ensure_python_env): Call set_active_ext_lang.
1099 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1101 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1103 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1105 (gdbpy_eval_from_control_command): Renamed from
1106 eval_python_from_control_command, made static. New arg extlang.
1107 (gdbpy_source_script) Renamed from source_python_script, made static.
1109 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1110 result to int. New arg extlang.
1111 (gdbpy_source_objfile_script): Renamed from
1112 source_python_script_for_objfile, made static. New arg extlang.
1113 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1114 static. New args extlang, extlang_printers. Change result type to
1116 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1117 static. New arg extlang. Rename arg printers to extlang_printers
1118 and change type to ext_lang_type_printers *.
1119 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1120 static. Replace argument arg with extlang, extlang_printers.
1121 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1122 (!HAVE_PYTHON, source_python_script): Delete.
1123 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1124 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1125 (!HAVE_PYTHON, start_type_printers): Delete.
1126 (!HAVE_PYTHON, apply_type_printers): Delete.
1127 (!HAVE_PYTHON, free_type_printers): Delete.
1128 (_initialize_python): Delete call to observer_attach_before_prompt.
1129 (finalize_python): Set/restore active extension language.
1130 (gdbpy_finish_initialization) Renamed from
1131 finish_python_initialization, made static. New arg extlang.
1132 (gdbpy_initialized): New function.
1133 * python/python.h: #include "extension.h". Delete #include
1134 "value.h", "mi/mi-cmds.h".
1135 (extension_language_python): Declare.
1136 (GDBPY_AUTO_FILE_NAME): Delete.
1137 (enum py_bt_status): Moved to extension.h and renamed to
1139 (enum frame_filter_flags): Moved to extension.h.
1140 (enum py_frame_args): Moved to extension.h and renamed to
1141 ext_lang_frame_args.
1142 (finish_python_initialization): Delete.
1143 (eval_python_from_control_command): Delete.
1144 (source_python_script): Delete.
1145 (apply_val_pretty_printer): Delete.
1146 (apply_frame_filter): Delete.
1147 (preserve_python_values): Delete.
1148 (gdbpy_script_language_defn): Delete.
1149 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1150 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1152 * auto-load.c: #include "extension.h".
1153 (GDB_AUTO_FILE_NAME): Delete.
1154 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1155 (script_language_gdb): Delete, moved to extension.c and renamed to
1156 extension_language_gdb.
1157 (source_gdb_script_for_objfile): Delete.
1158 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1159 (loaded_script): Change type of language member to
1160 struct extension_language_defn *.
1161 (init_loaded_scripts_info): Initialize
1162 unsupported_script_warning_printed.
1163 (maybe_add_script): Make static. Change type of language arg to
1164 struct extension_language_defn *.
1165 (clear_section_scripts): Reset unsupported_script_warning_printed.
1166 (auto_load_objfile_script_1): Rewrite to use extension language API.
1167 (auto_load_objfile_script): Make public. Remove support-compiled-in
1168 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1169 (source_section_scripts): Rewrite to use extension language API.
1170 (load_auto_scripts_for_objfile): Rewrite to use
1171 auto_load_scripts_for_objfile.
1172 (collect_matching_scripts_data): Change type of language member to
1173 struct extension_language_defn *.
1174 (auto_load_info_scripts): Change type of language arg to
1175 struct extension_language_defn *.
1176 (unsupported_script_warning_print): New function.
1177 (script_not_found_warning_print): Make static.
1178 (_initialize_auto_load): Rewrite construction of scripts-directory
1180 * auto-load.h (struct objfile): Add forward decl.
1181 (struct script_language): Delete.
1182 (struct auto_load_pspace_info): Add forward decl.
1183 (struct extension_language_defn): Add forward decl.
1184 (maybe_add_script): Delete.
1185 (auto_load_objfile_script): Declare.
1186 (script_not_found_warning_print): Delete.
1187 (auto_load_info_scripts): Update prototype.
1188 (auto_load_gdb_scripts_enabled): Declare.
1189 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1190 auto_load_python_scripts_enabled and made public.
1191 (script_language_python): Delete, moved to python.c.
1192 (gdbpy_script_language_defn): Delete.
1193 (info_auto_load_python_scripts): Update to use
1194 extension_language_python.
1196 * breakpoint.c (condition_command): Replace call to
1197 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1198 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1199 with call to breakpoint_ext_lang_cond_says_stop.
1200 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1201 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1202 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1203 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1205 (local_setattro): Print name of extension language with existing
1208 * valprint.c (val_print, value_print): Update to call
1209 apply_ext_lang_val_pretty_printer.
1210 * cp-valprint.c (cp_print_value): Update call to
1211 apply_ext_lang_val_pretty_printer.
1212 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1213 (gdbpy_apply_val_pretty_printer): Renamed from
1214 apply_val_pretty_printer. New arg extlang.
1215 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1217 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1218 extension language API.
1219 * cli/cli-script.c (execute_control_command): Update to call
1220 eval_ext_lang_from_control_command.
1222 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1223 enum ext_lang_bt_status values. Update call to
1224 apply_ext_lang_frame_filter.
1225 (mi_cmd_stack_list_locals): Ditto.
1226 (mi_cmd_stack_list_args): Ditto.
1227 (mi_cmd_stack_list_variables): Ditto.
1228 * mi/mi-main.c: Delete #include "python/python-internal.h".
1229 Add #include "extension.h".
1230 (mi_cmd_list_features): Replace reference to python internal variable
1231 gdb_python_initialized with call to ext_lang_initialized_p.
1233 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1234 Update to use enum ext_lang_frame_args. Update to call
1235 apply_ext_lang_frame_filter.
1236 * python/py-framefilter.c (extract_sym): Update to use enum
1238 (extract_value, py_print_type, py_print_value): Ditto.
1239 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1240 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1241 (py_print_frame): Ditto.
1242 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1243 New arg extlang. Update to use enum ext_lang_bt_status.
1245 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1246 finish_python_initialization. Replace with call to
1247 finish_ext_lang_initialization.
1249 * typeprint.c (do_free_global_table): Update to call
1250 free_ext_lang_type_printers.
1251 (create_global_typedef_table): Update to call
1252 start_ext_lang_type_printers.
1253 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1254 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1255 (type_print_options): Change type of global_printers from "void *"
1256 to "struct ext_lang_type_printers *".
1258 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1259 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1260 (gdbpy_preserve_values): Renamed from preserve_python_values.
1262 (!HAVE_PYTHON, preserve_python_values): Delete.
1264 * utils.c (quit_flag): Delete, moved to extension.c.
1265 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1268 * eval.c: Delete #include "python/python.h".
1269 * main.c: Delete #include "python/python.h".
1271 * defs.h: Update comment.
1273 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1277 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1279 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1282 2014-02-05 Yao Qi <yao@codesourcery.com>
1284 * remote.c (remote_pass_signals): Remove local 'buf' and use
1286 (remote_program_signals): Likewise.
1288 2014-02-05 Yao Qi <yao@codesourcery.com>
1290 * ctf.c: Include "inferior.h" and "gdbthread.h".
1291 (CTF_PID): A new macro.
1292 (ctf_open): Call inferior_appeared and add_thread_silent.
1293 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1294 (ctf_thread_alive): New function.
1295 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1297 2014-02-05 Yao Qi <yao@codesourcery.com>
1301 2013-05-24 Yao Qi <yao@codesourcery.com>
1303 * tracepoint.c (TFILE_PID): Remove.
1304 (tfile_open): Don't add thread and inferior.
1305 (tfile_close): Don't set 'inferior_ptid'. Don't call
1306 exit_inferior_silent.
1307 (tfile_thread_alive): Remove.
1308 (init_tfile_ops): Don't set field 'to_thread_alive' of
1311 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1313 * remote.c (remote_start_remote): Call remote_check_symbols even
1314 if only symbol-file (not file) has been given.
1316 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1318 * gdbarch.sh (skip_entrypoint): New callback.
1319 * gdbarch.c, gdbarch.h: Regenerate.
1320 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1321 * infrun.c (fill_in_stop_func): Likewise.
1322 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1323 (ppc_elfv2_elf_make_msymbol_special): New function.
1324 (ppc_elfv2_skip_entrypoint): Likewise.
1325 (ppc_linux_init_abi): Install them for ELFv2.
1327 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1329 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1330 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1331 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1332 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1333 structures returned in GPRs.
1335 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1337 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1338 offset to the stack parameter list for the ELFv2 ABI.
1340 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1342 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1343 set_gdbarch_convert_from_func_ptr_addr and
1344 set_gdbarch_elf_make_msymbol_special for ELFv1.
1345 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1346 function descriptors on ELFv1.
1347 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1348 set up r12 at function entry.
1350 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1352 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1353 (struct gdbarch_tdep): New member elf_abi.
1355 * rs6000-tdep.c: Include "elf/ppc64.h".
1356 (rs6000_gdbarch_init): Detect ELF ABI version.
1358 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1360 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1361 within a register pair holding a DFP 128-bit value on little-endian.
1362 (ppc64_sysv_abi_return_value_base): Likewise.
1363 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1364 (dfp_pseudo_register_write): Likewise.
1366 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1368 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1369 offset on little-endian when passing _Decimal32.
1370 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1372 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1374 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1375 of the overlapped FP register within the VSX register on little-
1377 (efpr_pseudo_register_write): Likewise.
1379 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1381 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1382 offset on little-endian when passing small structures.
1384 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1386 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1387 (struct ppc64_sysv_argpos): New data structure.
1388 (ppc64_sysv_abi_push_float): Remove.
1389 (ppc64_sysv_abi_push_val): New function.
1390 (ppc64_sysv_abi_push_integer): Likewise.
1391 (ppc64_sysv_abi_push_freg): Likewise.
1392 (ppc64_sysv_abi_push_vreg): Likewise.
1393 (ppc64_sysv_abi_push_param): Likewise.
1394 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1395 (ppc64_sysv_abi_return_value_base): New function.
1396 (ppc64_sysv_abi_return_value): Refactor to use it.
1398 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1400 * NEWS: Document new target powerpc64le-*-linux*.
1402 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1404 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1405 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1407 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1408 register set used in ELF core dumps. Add floating-point register set.
1410 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1412 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1413 dwarf2_to_gdb[] table using symbolic constants. Adjust
1414 penultimate entry from number representing the PC register
1415 to symbolic constant representing the MDR register. Add
1416 constant for the PC register to the end of the table.
1418 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1420 * bsd-kvm.c: Include <sys/param.h>
1422 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1424 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1426 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1428 * ada-lang.h (clear_ada_sym_cache): Delete.
1430 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1432 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1434 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1436 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1437 the sigreturn register save area only if the syscall is
1440 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1442 * valops.c (value_slice): Minor reformatting.
1444 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1446 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1448 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1450 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1452 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1453 (ada_ignore_descriptive_types_p): New static global.
1454 (find_parallel_type_by_descriptive_type): Return immediately
1455 if ada_ignore_descriptive_types_p is set.
1456 (_initialize_ada_language): Register new commands "maintenance
1457 set ada", "maintenance show ada", "maintenance set ada
1458 ignore-descriptive-types" and "maintenance show ada
1459 ignore-descriptive-types".
1460 * NEWS: Add entry for new "maint ada set/show
1461 ignore-descriptive-types" commands.
1463 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1465 * record-btrace.c (record_btrace_close): Call btrace_teardown
1468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1470 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1473 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1475 * ada-typeprint (type_is_full_subrange_of_target_type):
1477 (print_range): Add parameter bounds_prefered_p. If not set,
1478 try printing range types using the name of their base type.
1479 (print_range_type): Add parameter bounds_prefered_p.
1480 Use it in call to print_range.
1481 (print_array_type, ada_print_type): Update calls to print_range
1482 and print_range_type.
1484 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1486 * ada-typeprint.c (print_array_type, print_choices, print_range)
1487 (print_range_bound, print_dynamic_range_bound, print_range_type):
1490 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1492 * ada-typeprint.c (print_range): Add missing empty line
1493 after local declaration.
1495 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1497 * ada-valprint.c (print_optional_low_bound): Get index_type's
1498 target type for as long as it is a TYPE_CODE_RANGE.
1500 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1502 * procfs.c (procfs_make_note_section): Remove assertion and
1505 2014-01-24 Yao Qi <yao@codesourcery.com>
1507 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1508 * corelow.c (get_core_siginfo): Likewise.
1510 2014-01-24 Yao Qi <yao@codesourcery.com>
1512 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1513 ULONGEST. Don't check 'len' is negative.
1514 (remote_write_bytes): Change type of 'len' to ULONGEST.
1516 2014-01-23 Tom Tromey <tromey@redhat.com>
1519 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1520 Handle exception from frame.block.
1521 (FrameVars.fetch_frame_locals): Likewise.
1523 2014-01-23 Tom Tromey <tromey@redhat.com>
1526 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1527 on a NULL pointer. Move "goto error" to correct place.
1529 2014-01-23 Tom Tromey <tromey@redhat.com>
1532 * python/py-framefilter.c (apply_frame_filter): Call
1533 ensure_python_env after computing gdbarch.
1535 2014-01-23 Yao Qi <yao@codesourcery.com>
1537 * target.c (raw_memory_xfer_partial): Change argument type
1538 from void * to gdb_byte *.
1539 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1541 2014-01-22 Doug Evans <dje@google.com>
1543 New gdbserver option --debug-format=timestamp.
1546 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1548 * syscalls/s390x-linux.xml: New file.
1549 * syscalls/s390-linux.xml: New file.
1550 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1551 (XML_SYSCALL_FILENAME_S390X): Likewise.
1552 (op_svc): New enum value for SVC opcode.
1553 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1554 (s390_linux_get_syscall_number): New function.
1555 (s390_gdbarch_init): Register '*get_syscall_number' and the
1556 syscall xml file name.
1557 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1558 "s390-linux.xml" and "s390x-linux.xml".
1559 * NEWS: Announce new feature.
1561 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1563 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1565 2014-01-22 Pedro Alves <palves@redhat.com>
1567 * xtensa-config.c: Include defs.h.
1569 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1571 * common/common-utils.h: Add "ARI:" comment beside __func__
1574 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1576 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1577 documentation a bit.
1579 2014-01-21 Roland McGrath <mcgrathr@google.com>
1581 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1582 * configure: Regenerate.
1583 * aclocal.m4: Regenerate.
1584 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1585 New substituted variables.
1586 (install-strip): New target.
1587 (INSTALL_SCRIPT): New substituted variable.
1588 (FLAGS_TO_PASS): Add it.
1589 (install-only): Use $(INSTALL_SCRIPT) rather than
1590 $(INSTALL_PROGRAM) for gcore.
1592 2014-01-20 Tom Tromey <tromey@redhat.com>
1594 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1597 2014-01-20 Tom Tromey <tromey@redhat.com>
1599 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1600 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1601 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1602 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1603 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1604 (struct cmd_list_element) <flags>: Remove.
1605 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1606 doc_allocated>: New fields.
1607 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1609 * maint.c (maintenance_do_deprecate): Update.
1610 * top.c (execute_command): Update.
1612 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1614 * xtensa-linux-nat.c: Include asm/ptrace.h.
1616 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1618 * Makefile.in (SFILES): Add d-support.c.
1619 (COMMON_OBS): Add d-support.o.
1620 * d-lang.h (d_parse_symbol): Add comment, now defined in
1622 * d-lang.c (parse_call_convention)
1623 (parse_attributes, parse_function_types)
1624 (parse_function_args, parse_type, parse_identifier)
1625 (call_convention_p, d_parse_symbol): Move functions to ...
1626 * d-support.c: ... New file.
1628 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1630 * d-lang.h (d_parse_symbol): Add declaration.
1631 * d-lang.c (extract_identifiers)
1632 (extract_type_info): Remove functions.
1633 (parse_call_convention, parse_attributes)
1634 (parse_function_types, parse_function_args)
1635 (parse_type, parse_identifier, call_convention_p)
1636 (d_parse_symbol): New functions.
1637 (d_demangle): Use d_parse_symbol to demangle D symbols.
1639 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1641 * d-lang.h (struct builtin_d_type): New data type.
1642 (builtin_d_type): Add declaration.
1643 * d-lang.c (d_language_arch_info, build_d_types)
1644 (builtin_d_type): New functions.
1645 (enum d_primitive_types): New data type.
1646 (d_language_defn): Change c_language_arch_info to
1647 d_language_arch_info.
1648 (d_type_data): New static variable.
1649 (_initialize_d_language): Initialize d_type_data.
1651 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1653 * d-lang.h (d_main_name): Add declaration.
1654 * d-lang.c (d_main_name): New function.
1655 * symtab.c (find_main_name): Add call to d_main_name.
1657 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1659 * d-lang.c (d_language_defn): Change macro_expansion_c to
1662 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1664 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1666 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1668 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1669 gdb_exception" declaration.
1670 * remote.c (getpkt_or_notif_sane): Likewise.
1672 2014-01-17 Doug Evans <dje@google.com>
1674 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1675 function, contents of dirnames_to_char_ptr_vec_append moved here.
1676 (delim_string_to_char_ptr_vec): New function.
1677 (dirnames_to_char_ptr_vec_append): Rewrite.
1678 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1680 2014-01-17 Doug Evans <dje@google.com>
1682 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1684 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1685 #include "common-utils.h".
1686 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1687 * common/vec.h (VEC_ASSERT_PASS): Update.
1688 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1689 (MACH_CHECK_ERROR): Update.
1691 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1693 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1695 * gdbarch.h: Regenerate.
1697 2014-01-16 Tom Tromey <tromey@redhat.com>
1699 * value.c (struct value) <regnum>: Move earlier.
1701 2014-01-16 Tom Tromey <tromey@redhat.com>
1703 * remote.c (extended_remote_create_inferior): Rename from
1704 extended_remote_create_inferior_1. Add "ops" argument. Remove
1707 2014-01-16 Pedro Alves <palves@redhat.com>
1709 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1710 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1713 2014-01-16 Doug Evans <dje@google.com>
1715 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1719 * btrace.h (btrace_thread_flag): New.
1720 (struct btrace_thread_info) <flags>: New.
1721 * record-btrace.c (record_btrace_resume_thread)
1722 (record_btrace_find_thread_to_move, btrace_step_no_history)
1723 (btrace_step_stopped, record_btrace_start_replaying)
1724 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1725 (record_btrace_find_resume_thread): New.
1726 (record_btrace_resume, record_btrace_wait): Extend.
1727 (record_btrace_can_execute_reverse): New.
1728 (record_btrace_open): Fail in non-stop mode.
1729 (record_btrace_set_replay): Split into this, ...
1730 (record_btrace_stop_replaying): ... this, ...
1731 (record_btrace_clear_histories): ... and this.
1732 (init_record_btrace_ops): Init to_can_execute_reverse.
1733 * NEWS: Announce it.
1735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1737 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1738 (forward_target_decr_pc_after_break)
1739 (target_decr_pc_after_break): New.
1740 * target.c (forward_target_decr_pc_after_break)
1741 (target_decr_pc_after_break): New.
1742 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1743 instead of gdbarch_decr_pc_after_break.
1744 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1745 instead of gdbarch_decr_pc_after_break.
1746 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1747 instead of gdbarch_decr_pc_after_break.
1748 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1749 instead of gdbarch_decr_pc_after_break.
1750 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1751 instead of gdbarch_decr_pc_after_break.
1752 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1753 instead of gdbarch_decr_pc_after_break.
1755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1757 * btrace.c: Include regcache.h.
1758 (btrace_add_pc): New.
1759 (btrace_enable): Call btrace_add_pc.
1760 (btrace_is_empty): New.
1761 * btrace.h (btrace_is_empty): New.
1762 * record-btrace.c (require_btrace, record_btrace_info): Call
1765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1767 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1768 Support delta reads.
1769 (linux_disable_btrace): Change return type.
1770 * common/linux-btrace.h (linux_read_btrace): Change parameters
1771 and return type to allow error reporting. Update users.
1772 (linux_disable_btrace): Change return type. Update users.
1773 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1775 (btrace_error): New.
1776 (btrace_block) <begin>: Comment on BEGIN == 0.
1777 * btrace.c (btrace_compute_ftrace): Start from the end of
1779 (btrace_stitch_trace, btrace_clear_history): New.
1780 (btrace_fetch): Read delta trace, return if replaying.
1781 (btrace_clear): Move clear history code to btrace_clear_history.
1782 (parse_xml_btrace): Throw an error if parsing failed.
1783 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1784 and return type to allow error reporting.
1785 (target_read_btrace): Change parameters and return type to allow
1787 * target.c (target_read_btrace): Update.
1788 * remote.c (remote_read_btrace): Support delta reads. Pass
1790 * NEWS: Announce it.
1792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1794 * record.h (record_btrace_frame_unwind)
1795 (record_btrace_tailcall_frame_unwind): New declarations.
1796 * dwarf2-frame: Include record.h
1797 (dwarf2_frame_cfa): Throw an error for btrace frames.
1798 * record-btrace.c: Include hashtab.h.
1799 (btrace_get_bfun_name): New.
1800 (btrace_call_history): Call btrace_get_bfun_name.
1801 (struct btrace_frame_cache): New.
1803 (bfcache_hash, bfcache_eq, bfcache_new): New.
1804 (btrace_get_frame_function): New.
1805 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1806 (record_btrace_frame_this_id): Compute own id.
1807 (record_btrace_frame_prev_register): Provide PC, throw_error
1808 for all other registers.
1809 (record_btrace_frame_sniffer): Detect btrace frames.
1810 (record_btrace_tailcall_frame_sniffer): New.
1811 (record_btrace_frame_dealloc_cache): New.
1812 (record_btrace_frame_unwind): Add new functions.
1813 (record_btrace_tailcall_frame_unwind): New.
1814 (_initialize_record_btrace): Allocate cache.
1815 * btrace.c (btrace_clear): Call reinit_frame_cache.
1816 * NEWS: Announce it.
1818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1820 * record-btrace.c (record_btrace_set_replay)
1821 (record_btrace_goto_begin, record_btrace_goto_end)
1822 (record_btrace_goto): New.
1823 (init_record_btrace_ops): Initialize them.
1824 * NEWS: Announce it.
1826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1828 * record-btrace.c (record_btrace_find_new_threads)
1829 (record_btrace_thread_alive): New.
1830 (init_record_btrace_ops): Initialize to_find_new_threads and
1833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1835 * record-btrace.c (record_btrace_resume): New.
1836 (record_btrace_wait): New.
1837 (init_record_btrace_ops): Initialize to_wait and to_resume.
1839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1841 * record-btrace.c (record_btrace_xfer_partial)
1842 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1843 (record_btrace_allow_memory_access): New.
1844 (init_record_btrace_ops): Initialize new methods.
1845 * target.c (raw_memory_xfer_partial): Bail out if target reports
1846 that this memory is not available.
1848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1850 * target.h (target_ops) <to_insert_breakpoint>
1851 <to_remove_breakpoint>: Add target_ops parameter.
1852 (forward_target_insert_breakpoint): New.
1853 (forward_target_remove_breakpoint): New.
1854 (memory_remove_breakpoint, memory_insert_breakpoint):
1855 Add target_ops parameter.
1856 * target.c (target_insert_breakpoint): Split into this and ...
1857 (forward_target_insert_breakpoint): ... this.
1858 (target_remove_breakpoint): Split into this and ...
1859 (forward_target_remove_breakpoint): ... this.
1860 (debug_to_insert_breakpoint): Add target_ops parameter.
1861 Call forward_target_insert_breakpoint.
1862 (debug_to_remove_breakpoint): Add target_ops parameter.
1863 Call forward_target_remove_breakpoint.
1864 (update_current_target): Do not inherit or default to_insert_breakpoint
1865 and to_remove_breakpoint.
1866 * corelow.c (ignore): Add target_ops parameter.
1867 * exec.c (ignore): Add target_ops parameter.
1868 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1869 Add target_ops parameter.
1870 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1871 Add target_ops parameter.
1872 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1873 Add target_ops parameter.
1874 * record-full.c (record_full_beneath_to_insert_breakpoint)
1875 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1876 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1877 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1878 (record_full_core_remove_breakpoint): Add target_ops parameter.
1880 (record_full_beneath_to_insert_breakpoint_ops)
1881 (record_full_beneath_to_remove_breakpoint_ops)
1882 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1883 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1884 tmp_to_remove_breakpoint_ops,
1885 record_full_beneath_to_insert_breakpoint_ops, and
1886 record_full_beneath_to_remove_breakpoint_ops.
1887 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1888 (m32r_remove_breakpoint): Add target_ops parameter.
1889 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1890 Add target_ops parameter.
1891 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1892 Add target_ops parameter.
1894 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 Markus Metzger <markus.t.metzger@intel.com>
1897 * record-btrace.c: Include frame-unwind.h.
1898 (record_btrace_frame_unwind_stop_reason)
1899 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1900 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1902 (init_record_btrace_ops): Install it.
1904 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1906 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1909 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1914 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1916 * frame-unwind.c: Include target.h.
1917 (frame_unwind_try_unwinder): New function with code from ...
1918 (frame_unwind_find_by_frame): ... here. New variable
1919 unwinder_from_target, call also target_get_unwinder)
1920 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1921 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1922 * target.h (struct target_ops): New fields to_get_unwinder and
1923 to_get_tailcall_unwinder.
1924 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1928 * record-btrace.c (record_btrace_fetch_registers)
1929 (record_btrace_store_registers)
1930 (record_btrace_to_prepare_to_store): New.
1931 (init_record_btrace_ops): Add the above.
1933 2014-01-16 Tom Tromey <tromey@redhat.com>
1935 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1936 * target.h (struct target_ops) <to_prepare_to_store>: Add
1938 (target_prepare_to_store): Add argument.
1939 * target.c (debug_to_prepare_to_store): Add argument.
1940 (update_current_target): Update.
1941 * remote.c (remote_prepare_to_store): Add 'self' argument.
1942 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1943 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1944 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1945 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1947 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1948 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1949 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1950 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1951 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1955 * btrace.h (replay) <replay>: New.
1956 (btrace_is_replaying): New.
1957 * btrace.c (btrace_clear): Free replay iterator.
1958 (btrace_is_replaying): New.
1959 * record-btrace.c (record_btrace_is_replaying): New.
1960 (record_btrace_info): Print insn number if replaying.
1961 (record_btrace_insn_history): Start at replay position.
1962 (record_btrace_call_history): Start at replay position.
1963 (init_record_btrace_ops): Init to_record_is_replaying.
1965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1967 * record-btrace.c (record_btrace_insn_history_range): Include
1969 (record_btrace_insn_history_from): Adjust range.
1970 (record_btrace_call_history_range): Include
1972 (record_btrace_call_history_from): Adjust range.
1973 * NEWS: Announce changes.
1975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1977 * record.h (enum record_print_flag)
1978 <record_print_indent_calls>: New.
1979 * record.c (get_call_history_modifiers): Recognize /c modifier.
1980 (_initialize_record): Document /c modifier.
1981 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1982 Reorder fields. Optionally indent the function name. Update
1984 * NEWS: Announce changes.
1986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1988 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1990 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1992 * btrace.c (ftrace_new_function): Start counting at one.
1993 * record-btrace.c (record_btrace_info): Adjust number of calls
1995 * NEWS: Announce it.
1997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1999 * record-btrace.c (btrace_call_history_insn_range): Print
2000 insn range as [begin, end].
2002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2004 * btrace.h (struct btrace_func_link): New.
2005 (enum btrace_function_flag): New.
2006 (struct btrace_inst): Rename to ...
2007 (struct btrace_insn): ...this. Update all users.
2008 (struct btrace_func) <ibegin, iend>: Remove.
2009 (struct btrace_func_link): New.
2010 (struct btrace_func): Rename to ...
2011 (struct btrace_function): ...this. Update all users.
2012 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2013 (number, level, flags>: New.
2014 (struct btrace_insn_iterator): Rename to ...
2015 (struct btrace_insn_history): ...this.
2017 (struct btrace_insn_iterator, btrace_call_iterator): New.
2018 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2019 (struct btrace_target_info) <begin, end, level>
2020 <insn_history, call_history>: New.
2021 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2022 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2023 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2024 (btrace_call_number, btrace_call_begin, btrace_call_end)
2025 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2026 (btrace_find_function_by_number, btrace_set_insn_history)
2027 (btrace_set_call_history): New.
2028 * btrace.c (btrace_init_insn_iterator)
2029 (btrace_init_func_iterator, compute_itrace): Remove.
2030 (ftrace_print_function_name, ftrace_print_filename)
2031 (ftrace_skip_file): Change
2033 (ftrace_init_func): Remove.
2034 (ftrace_debug): Use new btrace_function fields.
2035 (ftrace_function_switched): Also consider gaining and
2036 losing symbol information).
2037 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2038 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2039 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2041 (ftrace_new_function): Move. Remove debug print.
2042 (ftrace_update_lines, ftrace_update_insns): New.
2043 (ftrace_update_function): Check for call, ret, and jump.
2044 (compute_ftrace): Renamed to ...
2045 (btrace_compute_ftrace): ...this. Rewritten to compute call
2047 (btrace_fetch, btrace_clear): Updated.
2048 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2049 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2050 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2051 (btrace_call_number, btrace_call_begin, btrace_call_end)
2052 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2053 (btrace_find_function_by_number, btrace_set_insn_history)
2054 (btrace_set_call_history): New.
2055 * record-btrace.c (require_btrace): Use new btrace thread
2057 (record_btrace_info, btrace_insn_history)
2058 (record_btrace_insn_history, record_btrace_insn_history_range):
2059 Use new btrace thread info fields and new iterator.
2060 (btrace_func_history_src_line): Rename to ...
2061 (btrace_call_history_src_line): ...this. Use new btrace
2063 (btrace_func_history): Rename to ...
2064 (btrace_call_history): ...this. Use new btrace thread info
2065 fields and new iterator.
2066 (record_btrace_call_history, record_btrace_call_history_range):
2067 Use new btrace thread info fields and new iterator.
2069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2071 * frame.h (frame_id_build_unavailable_stack_special): New.
2072 * frame.c (frame_id_build_unavailable_stack_special): New.
2074 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2076 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2077 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2078 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2080 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2081 (i386_insn_is_jump, i386_jmp_p): New.
2082 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2083 insn_is_jump to gdbarch.
2084 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2085 * gdbarch.h: Regenerated.
2086 * gdbarch.c: Regenerated.
2087 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2088 (default_insn_is_jump): New.
2089 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2090 (default_insn_is_jump): New.
2092 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2094 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2096 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2097 (btrace_read_type) <btrace_read_new>: Change to ...
2098 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2102 * common/linux-btrace.c (linux_read_btrace): Free trace from
2105 2014-01-15 Doug Evans <dje@google.com>
2107 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2110 2014-01-15 Tom Tromey <tromey@redhat.com>
2112 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2113 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2114 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2115 (set_objfile_main_name): New function.
2116 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2117 language_of_main>: New fields.
2118 (set_objfile_main_name): Declare.
2119 * symtab.c (find_main_name): Loop over objfiles to find the main
2121 (set_main_name): Now static.
2122 (get_main_info): Add comment.
2123 * symtab.h (set_main_name): Don't declare.
2125 2014-01-15 Tom Tromey <tromey@redhat.com>
2127 * symtab.c (main_progspace_key): New global.
2128 (struct main_info): New.
2129 (name_of_main, language_of_main): Remove.
2130 (get_main_info, main_info_cleanup): New function.
2131 (set_main_name, main_name, main_language): Use get_main_info.
2132 (_initialize_symtab): Initialize main_progspace_key.
2134 2014-01-15 Tom Tromey <tromey@redhat.com>
2136 * dbxread.c (process_one_symbol): Update.
2137 * dwarf2read.c (read_partial_die): Update.
2138 * symfile.c (set_initial_language): Call main_language.
2139 * symtab.c (language_of_main): Now static.
2140 (set_main_name): Add 'lang' parameter.
2141 (find_main_name): Update.
2142 (main_language): New function.
2143 (symtab_observer_executable_changed): Update.
2144 * symtab.h (set_main_name): Update.
2145 (language_of_main): Remove.
2146 (main_language): Declare.
2148 2014-01-15 Tom Tromey <tromey@redhat.com>
2150 * symfile.c (init_entry_point_info): Use new "initialized" field.
2152 * objfiles.h (struct entry_point) <initialized>: New field.
2153 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2154 (struct objfile) <ei>: ...here. Remove.
2155 * objfiles.c (entry_point_address_query): Update.
2157 2014-01-15 Tom Tromey <tromey@redhat.com>
2159 * objfiles.c (entry_point_address_query): Relocate entry point
2161 (objfile_relocate1): Do not relocate entry point address.
2162 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2163 <the_bfd_section_index>: New field.
2164 * symfile.c (init_entry_point_info): Find the entry point's
2167 2014-01-15 Tom Tromey <tromey@redhat.com>
2169 * solib-frv.c (enable_break): Use entry_point_address_query.
2171 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2173 * NEWS: Add note on improved process record-replay on
2174 arm*-linux* targets.
2176 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2178 * arm-tdep.c (enum arm_record_result): New enum.
2179 (arm_record_unsupported_insn): New function.
2180 (arm_record_coproc_data_proc): Removed.
2181 (thumb2_record_ld_st_multiple): New function.
2182 (thumb2_record_ld_st_dual_ex_tbb): New function.
2183 (thumb2_record_data_proc_sreg_mimm): New function.
2184 (thumb2_record_ps_dest_generic): New function.
2185 (thumb2_record_branch_misc_cntrl): New function.
2186 (thumb2_record_str_single_data): New function.
2187 (thumb2_record_ld_mem_hints): New function.
2188 (thumb2_record_ld_word): New function.
2189 (thumb2_record_lmul_lmla_div): New function.
2190 (thumb2_record_decode_insn_handler): New function.
2191 (decode_insn): Add thumb32 instruction handlers.
2193 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2195 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2196 (struct arm_linux_record_tdep): Declare.
2197 (arm_canonicalize_syscall): New function.
2198 (arm_all_but_pc_registers_record): New function.
2199 (arm_linux_syscall_record): New function.
2200 (arm_linux_init_abi): Add syscall recording constructs.
2201 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2202 decoding. (arm_record_coproc_data_proc): Update arm syscall
2204 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2205 <arm_syscall_record>: New field.
2206 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2209 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2211 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2212 register for push instruction recording.
2214 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2216 * arm-tdep.c (thumb_record_misc): Update to correct logical
2217 error while recording ldm, ldmia and pop instructions.
2219 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2221 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2223 2014-01-15 Pedro Alves <palves@redhat.com>
2225 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2226 (go32_resume, go32_fetch_registers, store_register)
2227 (go32_store_registers, go32_prepare_to_store)
2228 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2229 (go32_create_inferior, go32_can_run, go32_terminal_init)
2230 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2233 2014-01-15 Tom Tromey <tromey@redhat.com>
2235 * target.h (async_callback_ftype): New typedef.
2236 (struct target_ops) <to_async>: Use it.
2238 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2240 * python/py-value.c (get_field_type): Remove unnecessary curly
2241 braces for single-statement if block.
2243 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2245 * python/py-type.c (convert_field): Add missing empty line
2248 2014-01-14 Doug Evans <dje@google.com>
2250 * symfile.h (expand_symtabs_matching): Renamed from
2251 expand_partial_symbol_names. Update prototype.
2252 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2253 * symfile.c (expand_symtabs_matching): Renamed from
2254 expand_partial_symbol_names. New args file_matcher, kind.
2255 Rename arg fun to symbol_matcher.
2256 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2257 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2258 ada_expand_partial_symbol_name.
2259 (ada_make_symbol_completion_list): Update to call
2260 expand_symtabs_matching.
2261 (ada_add_global_exceptions): Call expand_symtabs_matching.
2262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2263 call map_symbol_filenames.
2264 * symtab.c (sources_info): Update to call map_symbol_filenames.
2265 (search_symbols): Call expand_symtabs_matching.
2266 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2267 (default_make_symbol_completion_list_break_on): Update to call
2268 expand_symtabs_matching.
2269 (make_source_files_completion_list): Update to call
2270 map_symbol_filenames.
2272 2014-01-14 Doug Evans <dje@google.com>
2274 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2275 (expand_symtabs_symbol_matcher_ftype): New typedef.
2276 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2277 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2278 * symfile.c (expand_partial_symbol_names): Update to use
2279 expand_symtabs_symbol_matcher_ftype.
2280 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2281 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2282 Arg name_matcher renamed to symbol_matcher.
2283 * psymtab.c (recursively_search_psymtabs): Update to use
2284 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2286 (expand_symtabs_matching_via_partial): Update to use
2287 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2288 Arg name_matcher renamed to symbol_matcher.
2290 2014-01-14 Doug Evans <dje@google.com>
2292 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2293 (map_partial_symbol_filenames): Ditto.
2294 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2295 (map_partial_symbol_filenames): Ditto.
2296 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2297 (map_partial_symbol_filenames): Ditto.
2298 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2299 (map_partial_symbol_filenames): Ditto.
2300 * symtab.c: Delete #include "psymtab.h".
2302 2014-01-14 Pedro Alves <palves@redhat.com>
2303 Tom Tromey <tromey@redhat.com>
2305 * infrun.c (use_displaced_stepping): Use find_record_target
2306 instead of RECORD_IS_USED.
2307 (adjust_pc_after_break): Use record_full_is_used instead of
2309 * record-btrace.c (record_btrace_open): Call record_preopen
2310 instead of checking RECORD_IS_USED.
2311 * record-full.c (record_full_shortname)
2312 (record_full_core_shortname): New globals.
2313 (record_full_is_used): New function.
2314 (find_full_open): Call record_preopen instead of checking
2316 (init_record_full_ops): Set the target's shortname to
2317 record_full_shortname.
2318 (init_record_full_core_ops): Set the target's shortname to
2319 record_full_core_shortname.
2320 * record-full.h (record_full_is_used): Declare.
2321 * record.c (find_record_target): Make extern.
2322 (record_preopen): New function.
2323 * record.h (RECORD_IS_USED): Delete macro.
2324 (find_record_target, record_preopen): Declare functions.
2326 2014-01-14 Yao Qi <yao@codesourcery.com>
2328 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2329 'len''s type to ULONGEST.
2330 (core_xfer_shared_libraries_aix): Likewise.
2331 * gdbarch.c, gdbarch.h: Regenerated.
2332 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2333 Change type of 'len' to ULONGEST.
2334 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2335 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2337 2014-01-14 Yao Qi <yao@codesourcery.com>
2339 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2340 type of 'len' to ULONGEST.
2341 (linux_xfer_osdata_processgroups): Likewise.
2342 (linux_xfer_osdata_threads): Likewise.
2343 (linux_xfer_osdata_fds): Likewise.
2344 (linux_xfer_osdata_isockets): Likewise.
2345 (linux_xfer_osdata_shm): Likewise.
2346 (linux_xfer_osdata_sem): Likewise.
2347 (linux_xfer_osdata_msg): Likewise.
2348 (linux_common_xfer_osdata): Likewise.
2349 (struct osdata_type) <getter>: Likewise.
2350 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2353 2014-01-14 Yao Qi <yao@codesourcery.com>
2355 * target.h (target_xfer_partial_ftype): Update.
2356 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2358 * aix-thread.c (aix_thread_xfer_partial): Change type of
2359 argument 'len' to ULONGEST.
2360 * auxv.c (procfs_xfer_auxv): Likewise.
2361 (ld_so_xfer_auxv): Likewise.
2362 (memory_xfer_auxv): Likewise.
2363 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2364 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2365 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2366 * corelow.c (core_xfer_partial): Likewise.
2367 * ctf.c (ctf_xfer_partial): Likewise.
2368 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2370 (darwin_read_dyld_info): Likewise.
2371 (darwin_xfer_partial): Likewise.
2372 * exec.c (section_table_xfer_memory_partial): Likewise.
2373 (exec_xfer_partial): Likewise.
2374 * exec.h (section_table_xfer_memory_partial): Update
2376 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2377 instead of plongest.
2378 (gnu_xfer_partial): Likewise.
2379 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2380 (ia64_hpux_xfer_solib_got): Likewise.
2381 (ia64_hpux_xfer_partial): Likewise.
2382 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2383 * inf-ptrace.c (inf_ptrace_xfer_partial):
2384 * inf-ttrace.c (inf_ttrace_xfer_partial):
2385 * linux-nat.c (linux_xfer_siginfo): Likewise.
2386 (linux_nat_xfer_partial): Likewise.
2387 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2388 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2389 * monitor.c (monitor_xfer_memory): Likewise.
2390 (monitor_xfer_partial): Likewise.
2391 * procfs.c (procfs_xfer_partial): Likewise.
2392 * record-full.c (record_full_xfer_partial): Likewise.
2393 (record_full_core_xfer_partial): Likewise.
2394 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2395 instead of plongest.
2396 (gdbsim_xfer_partial): Likewise.
2397 * remote.c (remote_xfer_partial): Likewise.
2398 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2399 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2401 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2402 (rs6000_xfer_shared_libraries): Likewise.
2403 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2404 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2405 (sparc_xfer_partial): Likewise.
2406 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2407 (spu_xfer_partial): Likewise.
2408 * spu-multiarch.c (spu_xfer_partial): Likewise.
2409 * target.c (target_read_live_memory): Likewise.
2410 (memory_xfer_live_readonly_partial): Likewise.
2411 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2412 (target_xfer_partial, default_xfer_partial): Likewise.
2413 (current_xfer_partial): Likewise.
2414 * tracepoint.c (tfile_xfer_partial): Likewise.
2415 * windows-nat.c (windows_xfer_memory): Likewise. Call
2416 pulongest instead of plongest.
2417 (windows_xfer_partial): Likewise.
2418 (windows_xfer_shared_libraries): Likewise.
2420 2014-01-14 Yao Qi <yao@codesourcery.com>
2422 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2423 target_xfer_partial_ftype.
2425 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2429 * valops.c (value_struct_elt_bitpos): New function
2430 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2431 object to 'None' if the field name is an empty string ("").
2432 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2433 attribute to look for a field when 'name' is 'None'.
2434 (get_field_type): New function
2436 2014-01-13 Doug Evans <dje@google.com>
2439 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2440 (try_open_dwop_file): Ditto.
2441 * gdb_bfd.c: #include "vec.h".
2442 (bfdp): New typedef.
2443 (struct gdb_bfd_data): New member included_bfds.
2444 (gdb_bfd_unref): Unref all included bfds.
2445 (gdb_bfd_record_inclusion): New function.
2446 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2448 2014-01-13 Tom Tromey <tromey@redhat.com>
2450 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2452 2014-01-13 Tom Tromey <tromey@redhat.com>
2454 * defs.h (use_windows): Remove.
2455 * gdb.c (main): Update.
2456 * main.c (captured_main, gdb_main): Update.
2457 * main.h (struct captured_main_args) <use_windows>: Remove.
2458 * top.c (use_windows): Remove.
2460 2014-01-13 Tom Tromey <tromey@redhat.com>
2462 * defs.h (deprecated_flush_hook): Remove.
2464 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2467 * linux-thread-db.c (try_thread_db_load): Add parameter
2468 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2469 (try_thread_db_load_from_pdir_1): Move it there from here.
2470 (try_thread_db_load_from_sdir): Update caller.
2471 (try_thread_db_load_from_dir): Move it there from here.
2473 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2475 * regformats/regdat.sh: Always rewrite the register file.
2477 2014-01-13 Pedro Alves <palves@redhat.com>
2479 * Makefile.in (CHECK_HEADERS): New variable.
2480 (check-headers:): New rule.
2482 2014-01-13 Tom Tromey <tromey@redhat.com>
2484 * cli/cli-setshow.c (do_set_command): Update.
2485 * defs.h (deprecated_set_hook): Remove.
2486 * top.c (deprecated_set_hook): Remove.
2488 2014-01-13 Pedro Alves <palves@redhat.com>
2490 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2491 the tracepoint if the PC is a pseudo-register.
2493 2014-01-13 Tom Tromey <tromey@redhat.com>
2495 * defs.h (XCALLOC): Remove.
2496 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2497 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2498 * dwarf2loc.c (allocate_piece_closure): Likewise.
2499 * elfread.c (elf_symfile_segments): Likewise.
2500 (elf_symfile_segments): Likewise.
2501 * gdbtypes.c (copy_type_recursive): Likewise.
2502 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2503 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2504 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2506 * mt-tdep.c (mt_gdbarch_init): Likewise.
2507 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2509 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2510 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2511 * registry.c (registry_alloc_data): Likewise.
2512 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2513 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2514 * serial.c (serial_fdopen_ops): Likewise.
2515 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2517 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2518 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2521 2014-01-13 Tom Tromey <tromey@redhat.com>
2523 * defs.h (XMALLOC): Remove.
2524 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2525 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2526 * cli-out.c (struct ui_out *): Likewise.
2527 * cli/cli-dump.c (add_dump_command): Likewise.
2528 (add_dump_command): Likewise.
2529 * complaints.c (get_complaints): Likewise.
2530 (find_complaint): Likewise.
2531 * dwarf2-frame.c (execute_cfa_program): Likewise.
2532 * dwarf2read.c (abbrev_table_read_table): Likewise.
2533 * gdbarch.sh: Likewise.
2534 * gdbarch.c: Rebuild.
2535 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2536 * interps.c (interp_new): Likewise.
2537 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2538 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2539 * mi/mi-console.c (mi_console_file_new): Likewise.
2540 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2541 * mi/mi-out.c (mi_out_new): Likewise.
2542 * mi/mi-parse.c (mi_parse): Likewise.
2543 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2544 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2545 * observer.c (xalloc_observer_list_node): Likewise.
2546 * regcache.c (regcache_xmalloc_1): Likewise.
2547 * reggroups.c (reggroup_new): Likewise.
2548 (_initialize_reggroup): Likewise.
2549 * registry.c (register_data_with_cleanup): Likewise.
2550 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2551 * ser-base.c (serial_ttystate): Likewise.
2552 * ser-mingw.c (make_pipe_state): Likewise.
2553 * ser-pipe.c (pipe_open): Likewise.
2554 * serial.c (serial_open): Likewise.
2555 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2556 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2557 (tui_alloc_win_info): Likewise.
2558 (tui_add_content_elements): Likewise.
2559 * tui/tui-file.c (tui_file_new): Likewise.
2560 * tui/tui-out.c (tui_out_new): Likewise.
2561 * ui-file.c (mem_file_new): Likewise.
2562 * ui-out.c (push_level): Likewise.
2563 (make_cleanup_ui_out_end): Likewise.
2564 (append_header_to_list): Likewise.
2565 (ui_out_new): Likewise.
2566 * user-regs.c (user_reg_add_builtin): Likewise.
2568 2014-01-13 Tom Tromey <tromey@redhat.com>
2570 * defs.h (XZALLOC): Remove.
2571 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2572 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2573 (get_ada_tasks_inferior_data): Likewise.
2574 * auto-load.c (get_auto_load_pspace_data): Likewise.
2575 * auxv.c (get_auxv_inferior_data): Likewise.
2576 * bfd-target.c (target_bfd_reopen): Likewise.
2577 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2578 (deprecated_insert_raw_breakpoint): Likewise.
2579 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2580 * corelow.c (core_open): Likewise.
2581 * darwin-nat.c (darwin_check_new_threads): Likewise.
2582 (darwin_attach_pid): Likewise.
2583 * dummy-frame.c (dummy_frame_push): Likewise.
2584 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2585 * dwarf2loc.c (allocate_piece_closure): Likewise.
2586 * elfread.c (elf_symfile_segments): Likewise.
2587 * eval.c (ptrmath_type_p): Likewise.
2588 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2589 * gdbtypes.c (alloc_type_arch): Likewise.
2590 (alloc_type_instance): Likewise.
2591 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2592 * inf-child.c (inf_child_can_use_agent): Likewise.
2593 * inflow.c (get_inflow_inferior_data): Likewise.
2594 * infrun.c (save_infcall_suspend_state): Likewise.
2595 * jit.c (jit_reader_load): Likewise.
2596 (get_jit_objfile_data): Likewise.
2597 (get_jit_program_space_data): Likewise.
2598 (jit_object_open_impl): Likewise.
2599 (jit_symtab_open_impl): Likewise.
2600 (jit_block_open_impl): Likewise.
2601 (jit_frame_sniffer): Likewise.
2602 * linux-fork.c (add_fork): Likewise.
2603 * maint.c (make_command_stats_cleanup): Likewise.
2604 * objfiles.c (get_objfile_pspace_data): Likewise.
2605 * opencl-lang.c (struct lval_closure): Likewise.
2606 * osdata.c (osdata_start_osdata): Likewise.
2607 * progspace.c (new_address_space): Likewise.
2608 (add_program_space): Likewise.
2609 * remote-sim.c (get_sim_inferior_data): Likewise.
2610 * sh-tdep.c (sh_gdbarch_init): Likewise.
2611 * skip.c (Ignore): Likewise.
2612 (skip_delete_command): Likewise.
2613 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2614 (library_list_start_library): Likewise.
2615 (solib_aix_current_sos): Likewise.
2616 * solib-darwin.c (get_darwin_info): Likewise.
2617 (darwin_current_sos): Likewise.
2618 * solib-dsbt.c (get_dsbt_info): Likewise.
2619 * solib-ia64-hpux.c (new_so_list): Likewise.
2620 (ia64_hpux_get_solib_linkage_addr): Likewise.
2621 * solib-spu.c (append_ocl_sos): Likewise.
2622 (spu_current_sos): Likewise.
2623 * solib-svr4.c (get_svr4_info): Likewise.
2624 (svr4_keep_data_in_core): Likewise.
2625 (library_list_start_library): Likewise.
2626 (svr4_default_sos): Likewise.
2627 (svr4_read_so_list): Likewise.
2628 * solib-target.c (library_list_start_library): Likewise.
2629 (solib_target_current_sos): Likewise.
2630 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2631 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2632 * symfile.c (default_symfile_segments): Likewise.
2633 * target-descriptions.c (tdesc_data_init): Likewise.
2634 (tdesc_create_reg): Likewise.
2635 (struct tdesc_type *): Likewise.
2636 (tdesc_create_vector): Likewise.
2637 (tdesc_set_struct_size): Likewise.
2638 (struct tdesc_type *): Likewise.
2639 (tdesc_free_feature): Likewise.
2640 (tdesc_create_feature): Likewise.
2641 * windows-nat.c (windows_add_thread): Likewise.
2642 (windows_make_so): Likewise.
2643 * xml-support.c (gdb_xml_body_text): Likewise.
2644 (gdb_xml_create_parser_and_cleanup): Likewise.
2645 (xml_process_xincludes): Likewise.
2646 * xml-syscall.c (allocate_syscalls_info): Likewise.
2647 (syscall_create_syscall_desc): Likewise.
2649 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2651 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2652 function, with code from i386_stap_parse_special_token.
2653 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2654 (i386_stap_parse_special_token): Move code to the two functions
2657 2014-01-09 Pedro Alves <palves@redhat.com>
2658 Hui Zhu <hui@codesourcery.com>
2661 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2662 bp_err_string. Don't mark the location shlib_disabled if the
2663 error thrown wasn't a generic or memory error. Catch errors
2664 thrown while inserting breakpoints in overlayed code. Output
2665 error message of software breakpoints.
2666 * remote.c (remote_insert_breakpoint): If this breakpoint has
2667 target-side commands but this stub doesn't support Z0 packets,
2668 throw NOT_SUPPORTED_ERROR error.
2669 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2670 * target.h (target_insert_breakpoint): Extend comment.
2671 (target_insert_hw_breakpoint): Add comment.
2673 2014-01-08 Pedro Alves <palves@redhat.com>
2675 * remote.c (remote_add_thread): Add threads silently if starting
2677 (remote_notice_new_inferior): If in all-stop, and starting up,
2678 don't call notice_new_inferior.
2679 (get_current_thread): New function, factored out from ...
2680 (add_current_inferior_and_thread): ... this. Adjust.
2681 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2682 found any thread, then select the remote's current thread as GDB's
2685 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2687 * NEWS: Create a new section for the next release branch.
2688 Rename the section of the current branch, now that it has
2691 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2693 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2694 * version.in: Bump version to 7.7.50.DATE-cvs.
2696 2014-01-08 Yao Qi <yao@codesourcery.com>
2698 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2699 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2700 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2702 2014-01-08 Yao Qi <yao@codesourcery.com>
2704 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2705 return value of bfd_get_filename to symbol_file_add_from_bfd.
2707 2014-01-08 Pierre Muller <muller@sourceware.org>
2710 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2711 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2712 to prim_record_mininal_symbol_and_info.
2713 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2714 in call to prim_record_minimal_symbol_and_info.
2715 (read_pe_exported_syms): Set index field of section_data.
2717 2014-01-07 Andrew Pinski <apinski@cavium.com>
2719 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2720 * features/aarch64.c: Regenerate.
2722 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2724 * target.c (return_null): Define.
2725 (update_current_target): Use it instead of return_zero for
2726 functions that return a pointer.
2728 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2730 * source.c (add_path): Fix check for duplicated paths in the previously
2733 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2735 * ada-lang.c: Remove duplicated include statements.
2736 * alphabsd-nat.c: Ditto.
2737 * amd64-darwin-tdep.c: Ditto.
2738 * amd64fbsd-nat.c: Ditto.
2739 * auto-load.c: Ditto.
2741 * breakpoint.c: Ditto.
2743 * fork-child.c: Ditto.
2744 * gdb_usleep.c: Ditto.
2745 * i386-darwin-tdep.c: Ditto.
2746 * i386fbsd-nat.c: Ditto.
2748 * inferior.c: Ditto.
2750 * linux-nat.c: Ditto.
2751 * linux-tdep.c: Ditto.
2752 * m68kbsd-nat.c: Ditto.
2753 * m68klinux-nat.c: Ditto.
2754 * microblaze-tdep.c: Ditto.
2755 * mips-linux-tdep.c: Ditto.
2756 * mn10300-tdep.c: Ditto.
2757 * nto-tdep.c: Ditto.
2758 * opencl-lang.c: Ditto.
2760 * printcmd.c: Ditto.
2761 * regcache.c: Ditto.
2762 * remote-m32r-sdi.c: Ditto.
2766 * tilegx-linux-nat.c: Ditto.
2767 * tilegx-tdep.c: Ditto.
2768 * tracepoint.c: Ditto.
2770 * vaxbsd-nat.c: Ditto.
2771 * windows-nat.c: Ditto.
2772 * xtensa-tdep.c: Ditto.
2774 2014-01-07 Yao Qi <yao@codesourcery.com>
2776 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2778 2014-01-07 Yao Qi <yao@codesourcery.com>
2779 Joel Brobecker <brobecker@adacore.com>
2781 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2782 (pdc_write_regs): Likewise.
2783 (fetch_regs_kernel_thread): Likewise.
2784 (store_regs_kernel_thread): Likewise.
2786 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2788 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2789 tagged type objects to their actual type.
2791 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2793 * ada-valprint.c (print_field_values): Add "language" parameter.
2794 Update calls to print_field_values and print_variant_part.
2795 Pass new parameter "language" in call to val_print instead
2796 of "current_language". Replace call to ada_val_print by call
2798 (print_variant_part): Add "language" parameter.
2799 (ada_val_print_struct_union): Update call to print_field_values.
2801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2803 * ada-valprint.c (ui_memcpy): Delete.
2804 (ada_print_floating): Update documentation. Add empty line
2805 between between function documentation and implementation.
2806 Delete variable "buffer". Use ui_file_xstrdup in place of
2807 ui_file_put. Minor adjustments following this change.
2809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2811 * ada-valprint.c (ada_val_print_string): New function,
2812 extracted from ada_val_print_array.
2813 (ada_val_print_array): Replace extracted code by call
2814 to ada_val_print_string followed by a return. Move
2815 "else" branch to the function's top block.
2817 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2819 * ada-valprint.c (ada_val_print_array): Move implementation
2820 down. Rename parameter "offset" and "val" into "offset_aligned"
2821 and "original_value" respectively. Add parameter "offset".
2823 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2825 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2826 re-organizing the code. Change the "???" message printed
2827 when target type is a TYPE_CODE_UNDEF into
2828 "<ref to undefined type>".
2830 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2832 * ada-valprint.c (print_record): Delete, implementation inlined...
2833 (ada_val_print_struct_union): ... here. Remove call to
2834 ada_check_typedef in inlined implementation.
2836 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2838 * ada-valprint.c (ada_val_print_gnat_array): New function,
2839 extracted from ada_val_print_1;
2840 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2841 (ada_val_print_flt, ada_val_print_struct_union)
2842 (ada_val_print_ref): Likewise.
2843 (ada_val_print_1): Delete variables i and elttype.
2844 Replace extracted-out code by call to corresponding
2847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2849 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2851 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2853 * ada-valprint.c (ada_val_print_1): Replace calls to
2854 ada_val_print_1 by calls to val_print.
2856 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2858 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2859 Update calls to self accordingly. Replace calls to c_val_print
2860 by calls to val_print.
2862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2864 * ada-valprint.c (print_record): Delete declaration.
2865 (adjust_type_signedness, ada_val_print_1): Likewise.
2866 (ada_val_print): Move function implementation down.
2867 (print_variant_part, print_field_values, print_record):
2868 Move function implementation up.
2870 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2872 * python/py-type.c (typy_get_name): New function.
2873 (type_object_getset): Add entry for attribute "name".
2874 * NEWS: Add entry mentioning this new attribute.
2876 2014-01-07 Yao Qi <yao@codesourcery.com>
2878 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2881 2014-01-07 Yao Qi <yao@codesourcery.com>
2883 * gnu-nat.c (info_port_rights): Add qualifier const to
2886 2014-01-07 Yao Qi <yao@codesourcery.com>
2888 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2890 2014-01-07 Yao Qi <yao@codesourcery.com>
2892 * gnu-nat.c (make_inf) Update declaration.
2893 (make_inf): Make it static.
2894 (inf_set_traced): Likewise.
2895 (inf_port_to_thread, inf_task_died_status): Likewise.
2897 2014-01-07 Yao Qi <yao@codesourcery.com>
2899 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2901 2014-01-07 Yao Qi <yao@codesourcery.com>
2903 * gnu-nat.c (_initialize_gnu_nat): Declare.
2905 2014-01-07 Yao Qi <yao@codesourcery.com>
2907 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2909 (struct gdbarch_info) <byte_order>: Change type to
2911 <byte_order_for_code>: Likewise.
2912 * gdbarch.c, gdbarch.h: Regenerated.
2914 2014-01-06 Sasha Smundak <asmundak@google.com>
2916 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2918 2014-01-06 Tom Tromey <tromey@redhat.com>
2920 * doublest.c (convert_doublest_to_floatformat): Use const, not
2922 * somread.c (som_symtab_read): Likewise.
2924 2014-01-07 Hui Zhu <hui@codesourcery.com>
2926 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2927 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2928 (gdb_bfd_fopen): Ditto.
2929 (gdb_bfd_openr): Ditto.
2930 (gdb_bfd_openw): Ditto.
2931 (gdb_bfd_openr_iovec): Ditto.
2932 (gdb_bfd_fdopenr): Ditto.
2933 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2934 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2936 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2938 * symfile-mem.c (symbol_file_add_from_memory): Removed
2939 gdb_bfd_stash_filename.
2941 2014-01-03 Doug Evans <dje@google.com>
2943 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2946 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2948 Update year range in copyright notice of all files.
2950 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2952 * top.c (print_gdb_version): Set copyright year to 2014.
2954 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2956 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2958 For older changes see ChangeLog-2013.
2964 version-control: never