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