1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5 (target_can_use_hardware_watchpoint): Add argument.
6 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7 (update_current_target): Update.
8 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12 * remote.c (remote_check_watch_resources): Add 'self' argument.
13 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
14 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
16 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
17 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
19 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
21 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
23 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
25 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
27 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
29 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
30 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
32 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
35 2014-02-19 Tom Tromey <tromey@redhat.com>
37 * target.h (struct target_ops) <to_post_attach>: Add argument.
38 (target_post_attach): Add argument.
39 * target.c (debug_to_post_attach): Add argument.
40 (update_current_target): Update.
41 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
42 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
43 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
44 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
45 * inf-child.c (inf_child_post_attach): Add 'self' argument.
47 2014-02-19 Tom Tromey <tromey@redhat.com>
49 * windows-nat.c (windows_close): Add 'self' argument.
50 * tracepoint.c (tfile_close): Add 'self' argument.
51 * target.h (struct target_ops) <to_close>: Add argument.
52 * target.c (target_close): Add argument.
53 (update_current_target): Update.
54 * remote.c (remote_close): Add 'self' argument.
55 * remote-sim.c (gdbsim_close): Add 'self' argument.
56 * remote-mips.c (mips_close): Add 'self' argument.
57 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
58 * record-full.c (record_full_close): Add 'self' argument.
59 * record-btrace.c (record_btrace_close): Add 'self' argument.
60 * monitor.h (monitor_close): Add 'self' argument.
61 * monitor.c (monitor_close): Add 'self' argument.
62 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
63 * linux-nat.c (linux_nat_close): Add argument.
64 * go32-nat.c (go32_close): Add 'self' argument.
65 * exec.c (exec_close_1): Add 'self' argument.
66 * ctf.c (ctf_close): Add 'self' argument.
67 * corelow.c (core_close): Add 'self' argument.
68 (core_close_cleanup): Update.
69 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
70 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
72 2014-02-19 Tom Tromey <tromey@redhat.com>
74 * remote.c (remote_load): New function.
75 (init_remote_ops): Use it.
77 2014-02-19 Tom Tromey <tromey@redhat.com>
79 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
81 * common/linux-btrace.h (linux_supports_btrace): Update.
82 * remote.c (remote_supports_btrace): Add "self" argument.
83 * target-delegates.c: Rebuild.
84 * target.c (target_supports_btrace): Remove.
85 * target.h (struct target_ops) <to_supports_btrace>: Add
87 (target_supports_btrace): New define.
89 2014-02-19 Tom Tromey <tromey@redhat.com>
91 * record-full.c (record_full_beneath_to_resume_ops)
92 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
93 (record_full_beneath_to_wait)
94 (record_full_beneath_to_store_registers_ops)
95 (record_full_beneath_to_store_registers)
96 (record_full_beneath_to_xfer_partial_ops)
97 (record_full_beneath_to_xfer_partial)
98 (record_full_beneath_to_insert_breakpoint_ops)
99 (record_full_beneath_to_insert_breakpoint)
100 (record_full_beneath_to_remove_breakpoint_ops)
101 (record_full_beneath_to_remove_breakpoint)
102 (record_full_beneath_to_stopped_by_watchpoint)
103 (record_full_beneath_to_stopped_data_address)
104 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
105 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
106 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
107 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
108 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
109 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
110 (tmp_to_stopped_data_address, tmp_to_async): Remove.
111 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
112 (record_full_resume, record_full_wait_1)
113 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
114 (record_full_store_registers, record_full_xfer_partial)
115 (record_full_insert_breakpoint, record_full_remove_breakpoint)
116 (record_full_async, record_full_core_xfer_partial): Use target
118 * target-delegates.c: Rebuild.
119 * target.c (current_xfer_partial): Remove.
120 (update_current_target): Do not INHERIT or de_fault
121 to_insert_breakpoint, to_remove_breakpoint,
122 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
123 to_is_async_p, to_async. Do not set to_xfer_partial field.
124 (default_xfer_partial): Simplify.
125 (current_xfer_partial): Remove.
126 (target_wait, target_resume): Simplify.
127 (find_default_can_async_p, find_default_is_async_p): Update.
128 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
129 to_xfer_partial, to_stopped_by_watchpoint,
130 to_stopped_data_address.
131 (target_store_registers): Simplify.
132 (forward_target_remove_breakpoint)
133 (forward_target_insert_breakpoint): Remove.
134 (target_remove_breakpoint, target_insert_breakpoint)
135 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
136 * target.h (struct target_ops) <to_resume, to_wait,
137 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
138 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
139 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
141 (forward_target_remove_breakpoint)
142 (forward_target_insert_breakpoint): Remove.
143 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
145 (record_btrace_insert_breakpoint): Delegate directly.
147 2014-02-19 Tom Tromey <tromey@redhat.com>
150 * target-delegates.c: New file.
151 * target.c: Include target-delegates.c.
152 (init_dummy_target): Call install_dummy_methods.
153 (complete_target_initialization): Call install_delegators.
154 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
155 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
156 * make-target-delegates: New file.
158 2014-02-19 Tom Tromey <tromey@redhat.com>
160 * record.c (find_record_target): Use find_target_at.
161 * target.c (find_target_at): New function.
162 * target.h (find_target_at): Declare.
164 2014-02-19 Tom Tromey <tromey@redhat.com>
166 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
168 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
170 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
171 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
173 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
175 * linux-nat.c (save_sigtrap): Update.
176 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
177 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
178 (linux_nat_close): Update.
179 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
181 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
183 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
184 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
185 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
186 (tmp_to_async): Add 'ops' argument.
187 (record_full_stopped_by_watchpoint, record_full_async)
188 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
190 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
191 (m32r_stopped_by_watchpoint): Add 'ops' argument.
192 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
193 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
194 (remote_is_async_p, remote_async): Add 'ops' argument.
195 (remote_stopped_data_address): Update.
196 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
197 * target.c (update_current_target)
198 (find_default_can_async_p, find_default_is_async_p): Update.
199 (init_dummy_target): Update.
200 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
201 * target.h (struct target_ops) <to_stopped_by_watchpoint,
202 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
203 (target_can_async_p, target_is_async_p, target_async)
204 (target_stopped_by_watchpoint): Update.
206 2014-02-19 Yao Qi <yao@codesourcery.com>
209 * gdbarch.sh: Remove startup_gdbarch.
210 * gdbarch.c: Regenerated.
211 * gdbarch.h: Likewise.
213 2014-02-17 Kevin Buettner <kevinb@redhat.com>
215 * rl78-tdep.c (rl78_g10_register_name): New function.
216 (rl78_return_value): Add g10 support.
217 (rl78_gdbarch_init): Register rl78_g10_register_name for the
220 2014-02-17 Doug Evans <xdje42@gmail.com>
222 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
223 (SUBDIR_GUILE_SRCS): Ditto.
224 (scm-gsmob.o): Ditto.
226 2014-02-17 Yao Qi <yao@codesourcery.com>
228 * gnu-nat.c (ILL_RPC): Declare defined function.
230 2014-02-17 Yao Qi <yao@codesourcery.com>
232 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
233 mach_msg_type_number_t.
234 (gnu_write_inferior): Likewise.
236 2014-02-17 Yao Qi <yao@codesourcery.com>
238 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
240 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
241 (inf_validate_procs, inf_signal): Likewise.
242 (S_exception_raise_request): Likewise.
243 (do_mach_notify_dead_name): Likewise.
244 (steal_exc_port): Likewise.
245 (gnu_read_inferior): Change 'copy_count''s type to
246 mach_msg_type_number_t.
247 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
250 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
252 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
253 flag. Adjust all users; in particular...
254 (gnu_wait): ..., don't decrement its value in here...
255 (gnu_create_inferior): ..., and instead set the flag in here,
256 around the startup_inferior call, and call that one with
257 START_INFERIOR_TRAPS_EXPECTED.
259 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
260 (ILL_RPC): ... new macro.
261 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
262 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
263 (do_mach_notify_send_once, S_proc_setmsgport_reply)
264 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
265 functions with ILL_RPC macro.
266 (S_proc_pid2task_reply, S_proc_task2pid_reply)
267 (S_proc_task2proc_reply, S_proc_proc2task_reply)
268 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
269 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
270 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
271 (S_proc_getlogin_reply, S_proc_getsid_reply)
272 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
273 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
274 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
275 (S_proc_getnports_reply, S_proc_is_important_reply)
276 (S_proc_get_code_reply): New stub functions, generated with
279 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
280 collected the type check structures.
282 * reply_mig_hack.awk: Don't expect to see the auto keyword.
284 2014-02-14 Doug Evans <dje@google.com>
286 * target.c (target_write_partial): Fix result type.
288 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
290 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
291 the proper offsets to access fpregset_t.
293 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
295 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
296 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
297 * h8300-tdep.c (setmachinelist): Remove global.
298 * hppa-tdep.c (hppa_sigtramp): Remove global.
299 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
300 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
301 * ravenscar-thread.c (update_target_observer): Remove global.
302 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
304 2014-02-12 Tom Tromey <tromey@redhat.com>
306 * common/rsp-low.c: Update comments.
307 * common/rsp-low.h: Update comments.
309 2014-02-12 Tom Tromey <tromey@redhat.com>
311 * common/rsp-low.c (convert_ascii_to_int): Remove.
312 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
314 2014-02-12 Tom Tromey <tromey@redhat.com>
316 * common/rsp-low.h (unhexify): Don't declare.
317 * common/rsp-low.c (unhexify): Remove.
319 2014-02-12 Tom Tromey <tromey@redhat.com>
321 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
322 * common/rsp-low.c (convert_int_to_ascii): Remove.
324 2014-02-12 Tom Tromey <tromey@redhat.com>
326 * common/rsp-low.h (hexify): Don't declare.
327 * common/rsp-low.c (hexify): Remove.
329 2014-02-12 Tom Tromey <tromey@redhat.com>
331 * common/rsp-low.c (hexify): Never take strlen of argument.
333 2014-02-12 Tom Tromey <tromey@redhat.com>
335 * common/rsp-low.c (bin2hex): Never take strlen of argument.
336 * remote.c (extended_remote_run, remote_rcmd)
337 (remote_download_trace_state_variable, remote_save_trace_data)
338 (remote_set_trace_notes): Update.
339 * tracepoint.c (encode_source_string, tfile_write_status)
340 (tfile_write_uploaded_tsv): Update.
342 2014-02-12 Tom Tromey <tromey@redhat.com>
344 * tracepoint.c: Include rsp-low.h.
345 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
346 * remote.c: Include rsp-low.h.
347 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
348 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
349 (remote_unescape_input): Move to common/rsp-low.c.
350 * common/rsp-low.h: New file.
351 * common/rsp-low.c: New file.
352 * Makefile.in (SFILES): Add common/rsp-low.c.
353 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
354 (COMMON_OBS): Add rsp-low.o.
355 (rsp-low.o): New target.
357 2014-02-12 Tom Tromey <tromey@redhat.com>
359 * utils.h: Include print-utils.h.
360 (host_address_to_string, plongest, pulongest, phex, phex_nz)
361 (int_string, core_addr_to_string, core_addr_to_string_nz)
362 (hex_string, hex_string_custom): Don't declare.
363 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
364 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
365 (hex_string_custom, int_string, core_addr_to_string)
366 (core_addr_to_string_nz, host_address_to_string): Move to
367 common/print-utils.c.
368 * common/print-utils.h: New file.
369 * common/print-utils.c: New file
370 * Makefile.in (SFILES): Add common/print-utils.c.
371 (HFILES_NO_SRCDIR): Add common/print-utils.h.
372 (COMMON_OBS): Add print-utils.o.
373 (print-utils.o): New target.
375 2014-02-12 Tom Tromey <tromey@redhat.com>
377 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
379 2014-02-12 Mark Kettenis <kettenis@gnu.org>
381 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
383 2014-02-12 Mark Kettenis <kettenis@gnu.org>
385 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
386 if a PT_IO ptrace request returns sucessfully but indicates that 0
387 bytes were transferred.
389 2014-02-12 Pedro Alves <palves@redhat.com>
390 Kevin Buettner <kevinb@redhat.com>
392 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
393 TYPE_INSTANCE_FLAG_CODE_SPACE.
395 2014-02-12 Pedro Alves <palves@redhat.com>
397 * h8300-tdep.c (pseudo_from_raw_register)
398 (raw_from_pseudo_register): New functions.
399 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
402 2014-02-12 Pedro Alves <palves@redhat.com>
404 * h8300-tdep.c (h8300_register_sim_regno): New function.
405 (h8300_gdbarch_init): Install h8300_register_sim_regno as
406 gdbarch_register_sim_regno hook.
408 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
410 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
412 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
414 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
416 2014-02-12 Mark Kettenis <kettenis@gnu.org>
418 * obsd-tdep.h (obsd_init_abi): New prototype.
419 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
420 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
421 (obsd_init_abi): New functions.
422 * i386obsd-tdep.c: Include "obsd-tdep.h".
423 (i386obsd_init_abi): Call obsd_init_abi.
424 * amd64obsd-tdep.c: Include "obsd-tdep.h".
425 (amd64obsd_init_abi): Call obsd_init_abi.
426 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
427 obsd-tdep.c to gdb_target_obs.
429 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
431 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
432 double float arguments to 16-byte in the argument slots.
434 2014-02-11 Doug Evans <xdje42@gmail.com>
436 * configure.ac: Don't crash if pkg-config is not found and guile
437 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
439 * configure: Regenerate.
441 2014-02-11 Yao Qi <yao@codesourcery.com>
443 * aix-thread.c (aix_thread_xfer_partial): Update comments.
444 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
445 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
446 * gnu-nat.c (gnu_xfer_memory): Likewise.
447 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
448 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
449 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
450 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
452 2014-02-11 Yao Qi <yao@codesourcery.com>
454 * target.h (enum target_xfer_error): Rename to ...
455 (enum target_xfer_status): ... it. New. All users updated.
456 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
458 (TARGET_XFER_STATUS_ERROR_P): New macro.
459 (target_xfer_error_to_string): Remove declaration.
460 (target_xfer_status_to_string): Declare.
461 (target_xfer_partial_ftype): Adjust it.
462 (struct target_ops) <to_xfer_partial>: Return
463 target_xfer_status. Add argument xfered_len. Update
465 * target.c (target_xfer_error_to_string): Rename to ...
466 (target_xfer_status_to_string): ... it. New. All callers
468 (target_read_live_memory): Likewise. Call target_xfer_partial
469 instead of target_read.
470 (memory_xfer_live_readonly_partial): Return
471 target_xfer_status. Add argument xfered_len.
472 (raw_memory_xfer_partial): Likewise.
473 (memory_xfer_partial_1): Likewise.
474 (memory_xfer_partial): Likewise.
475 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
476 properly. Update debug message.
477 (default_xfer_partial, current_xfer_partial): Likewise.
478 (target_write_partial): Likewise.
479 (target_read_partial): Likewise. All callers updated.
480 (read_whatever_is_readable): Likewise.
481 (target_write_with_progress): Likewise.
482 (target_read_alloc_1): Likewise.
484 * aix-thread.c (aix_thread_xfer_partial): Likewise.
485 * auxv.c (procfs_xfer_auxv): Likewise.
486 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
487 * bfd-target.c (target_bfd_xfer_partial): Likewise.
488 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
489 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
490 * corefile.c (read_memory): Adjust.
491 * corelow.c (core_xfer_partial): Likewise.
492 * ctf.c (ctf_xfer_partial): Likewise.
493 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
495 (darwin_xfer_partial): Likewise.
496 * exec.c (section_table_xfer_memory_partial): Likewise. All
498 (exec_xfer_partial): Likewise.
499 * exec.h (section_table_xfer_memory_partial): Update
501 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
503 (gnu_xfer_partial): Likewise.
504 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
505 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
506 (ia64_hpux_xfer_solib_got): Likewise.
507 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
508 type of 'partial_len' to ULONGEST.
509 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
510 * linux-nat.c (linux_xfer_siginfo ): Likewise.
511 (linux_nat_xfer_partial): Likewise.
512 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
513 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
514 * monitor.c (monitor_xfer_memory): Likewise.
515 (monitor_xfer_partial): Likewise.
516 * procfs.c (procfs_xfer_partial): Likewise.
517 * record-btrace.c (record_btrace_xfer_partial): Likewise.
518 * record-full.c (record_full_xfer_partial): Likewise.
519 (record_full_core_xfer_partial): Likewise.
520 * remote-sim.c (gdbsim_xfer_memory): Likewise.
521 (gdbsim_xfer_partial): Likewise.
522 * remote.c (remote_write_bytes_aux): Likewise. All callers
524 (remote_write_bytes, remote_read_bytes): Likewise. All
526 (remote_flash_erase): Likewise. All callers updated.
527 (remote_write_qxfer): Likewise. All callers updated.
528 (remote_read_qxfer): Likewise. All callers updated.
529 (remote_xfer_partial): Likewise.
530 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
531 (rs6000_xfer_shared_libraries): Likewise.
532 * sol-thread.c (sol_thread_xfer_partial): Likewise.
533 (sol_thread_xfer_partial): Likewise.
534 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
535 (sparc_xfer_partial): Likewise.
536 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
538 (spu_xfer_partial): Likewise.
539 * spu-multiarch.c (spu_xfer_partial): Likewise.
540 * tracepoint.c (tfile_xfer_partial): Likewise.
541 * windows-nat.c (windows_xfer_memory): Likewise.
542 (windows_xfer_shared_libraries): Likewise.
543 (windows_xfer_partial): Likewise.
544 * valprint.c: Replace 'target_xfer_error' with
545 'target_xfer_status' in comments.
547 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
549 Checked in by Joel Brobecker <brobecker@adacore.com>.
550 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
552 2014-02-11 Joel Brobecker <brobecker@adacore.com>
554 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
557 2014-02-10 Will Newton <will.newton@linaro.org>
559 * elfread.c (elf_rel_plt_read): Look for a .got section if
560 looking up .got.plt fails.
561 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
562 on address passed to elf_gnu_ifunc_record_cache.
563 (elf_gnu_ifunc_resolve_addr): Likewise.
564 (elf_gnu_ifunc_resolver_return_stop): Likewise.
566 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
568 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
569 (X_RETTURN): New macro.
570 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
572 * sparc64-tdep.c (sparc64_init_abi): Hook
573 sparc_in_function_epilogue_p.
575 2014-02-10 Gary Benson <gbenson@redhat.com>
577 * symfile-debug.c (debug_qf_expand_symtabs_matching):
578 Rename name_matcher to symbol_matcher.
580 2014-02-10 Gary Benson <gbenson@redhat.com>
582 * symfile-debug.c (debug_qf_expand_symtabs_matching):
583 Use expand_symtabs_file_matcher_ftype and
584 expand_symtabs_symbol_matcher_ftype.
586 2014-02-10 Joel Brobecker <brobecker@adacore.com>
588 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
589 (struct ada_symbol_cache): New.
590 (ada_free_symbol_cache): Forward declare.
591 (struct ada_pspace_data): New.
592 (ada_pspace_data_handle): New static global.
593 (get_ada_pspace_data, ada_pspace_data_cleanup)
594 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
595 (cache_space, cache): Delete, now folded inside struct
597 (ada_get_symbol_cache): New function.
598 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
600 (_initialize_ada_language): Remove initialization of cache_space.
601 Move call to observer_attach_inferior_exit up, grouping it
602 with the other observer registrations inside this function.
603 Rename command to be more general. Add call to
604 register_program_space_data_with_cleanup.
606 2014-02-10 Joel Brobecker <brobecker@adacore.com>
608 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
609 ada_new_objfile_observer.
610 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
611 (_initialize_tasks): Update uses of ada_new_objfile_observer
612 and ada_tasks_normal_stop_observer.
614 2014-02-10 Joel Brobecker <brobecker@adacore.com>
616 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
617 returned by the 'Length attribute to integer.
619 2014-02-10 Joel Brobecker <brobecker@adacore.com>
621 * ada-lang.c (_initialize_ada_language): Initialize
624 2014-02-10 Joel Brobecker <brobecker@adacore.com>
626 * ada-lang.c (HASH_SIZE): New macro.
627 (struct cache_entry): New type.
628 (cache_space, cache): New static globals.
629 (ada_clear_symbol_cache, find_entry): New functions.
630 (lookup_cached_symbol, cache_symbol): Implement.
631 (ada_new_objfile_observer, ada_free_objfile_observer): New.
632 (_initialize_ada_language): Attach ada_new_objfile_observer
633 and ada_free_objfile_observer.
635 2014-02-10 Joel Brobecker <brobecker@adacore.com>
637 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
638 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
639 struct block * parameter.
640 (ada_lookup_symbol_list_worker): Constify local variable "block".
641 Remove cast which is no longer necessary.
643 2014-02-10 Doug Evans <xdje42@gmail.com>
645 Add Guile as an extension language.
646 * NEWS: Mention Guile scripting.
647 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
648 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
649 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
650 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
651 (CLIBS): Add GUILE_LIBS.
652 (install-guile): New rule.
654 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
655 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
656 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
657 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
658 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
659 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
660 (scm-type.o, scm-utils.o, scm-value.o): New rules.
661 * configure.ac: New option --with-guile.
662 * configure: Regenerate.
663 * config.in: Regenerate.
664 * auto-load.c: Remove #include "python/python.h". Add #include
665 "gdb/section-scripts.h".
666 (source_section_scripts): Handle Guile scripts.
667 (_initialize_auto_load): Add name of Guile objfile script to
668 scripts-directory help text.
669 * breakpoint.c (condition_command): Tweak comment to include Scheme.
670 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
671 (struct breakpoint): New member scm_bp_object.
672 * defs.h (enum command_control_type): New value guile_control.
673 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
675 (show_user): Update comment.
676 (_initialize_cli_cmds): Update help text for "show user". Update help
677 text for max-user-call-depth.
678 * cli/cli-script.c: Remove #include "python/python.h". Add #include
680 (multi_line_command_p): Add guile_control.
681 (print_command_lines): Handle guile_control.
682 (execute_control_command, recurse_read_control_structure): Ditto.
683 (process_next_line): Recognize "guile" commands.
684 * disasm.c (gdb_disassemble_info): Make non-static.
685 * disasm.h: #include "dis-asm.h".
686 (struct gdbarch): Add forward decl.
687 (gdb_disassemble_info): Declare.
688 * extension.c: #include "guile/guile.h".
689 (extension_languages): Add guile.
690 (get_ext_lang_defn): Handle EXT_LANG_GDB.
691 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
692 * gdbtypes.c (get_unsigned_type_max): New function.
693 (get_signed_type_minmax): New function.
694 * gdbtypes.h (get_unsigned_type_max): Declare.
695 (get_signed_type_minmax): Declare.
696 * guile/README: New file.
697 * guile/guile-internal.h: New file.
698 * guile/guile.c: New file.
699 * guile/guile.h: New file.
700 * guile/scm-arch.c: New file.
701 * guile/scm-auto-load.c: New file.
702 * guile/scm-block.c: New file.
703 * guile/scm-breakpoint.c: New file.
704 * guile/scm-disasm.c: New file.
705 * guile/scm-exception.c: New file.
706 * guile/scm-frame.c: New file.
707 * guile/scm-gsmob.c: New file.
708 * guile/scm-iterator.c: New file.
709 * guile/scm-lazy-string.c: New file.
710 * guile/scm-math.c: New file.
711 * guile/scm-objfile.c: New file.
712 * guile/scm-ports.c: New file.
713 * guile/scm-pretty-print.c: New file.
714 * guile/scm-safe-call.c: New file.
715 * guile/scm-string.c: New file.
716 * guile/scm-symbol.c: New file.
717 * guile/scm-symtab.c: New file.
718 * guile/scm-type.c: New file.
719 * guile/scm-utils.c: New file.
720 * guile/scm-value.c: New file.
721 * guile/lib/gdb.scm: New file.
722 * guile/lib/gdb/boot.scm: New file.
723 * guile/lib/gdb/experimental.scm: New file.
724 * guile/lib/gdb/init.scm: New file.
725 * guile/lib/gdb/iterator.scm: New file.
726 * guile/lib/gdb/printing.scm: New file.
727 * guile/lib/gdb/types.scm: New file.
728 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
729 (VPATH): Add $(GUILE_SRCDIR).
730 (GUILE_DIR): New variable.
731 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
732 (all): Add stamp-guile dependency.
733 (stamp-guile): New rule.
734 (clean-guile, install-guile, uninstall-guile): New rules.
735 (install-only): Add install-guile dependency.
736 (uninstall): Add uninstall-guile dependency.
737 (clean): Add clean-guile dependency.
739 2014-02-09 Doug Evans <xdje42@gmail.com>
741 Revert this patch (which I approved, mea culpa).
743 2014-02-08 Mark Kettenis <kettenis@gnu.org>
745 * Makefile.in (all-lib): Remove.
746 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
748 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
750 Fix Python stack corruption.
751 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
754 2014-02-08 Mark Kettenis <kettenis@gnu.org>
756 * Makefile.in (all-lib): Remove.
757 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
759 2014-02-07 Doug Evans <dje@google.com>
761 * extension-priv.h (extension_language_script_ops): Add comment.
762 (extension_language_ops): Add comment.
763 (active_ext_lang_state): Fix typo in comment.
765 2014-02-07 Pedro Alves <palves@redhat.com>
767 * infrun.c (handle_signal_stop) <signal arrives while stepping
768 over a breakpoint>: Switch back to the stepping thread.
770 2014-02-07 Yao Qi <yao@codesourcery.com>
772 * target.c (target_xfer_partial): Return zero if LEN is zero.
774 2014-02-07 Yao Qi <yao@codesourcery.com>
776 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
777 (ld_so_xfer_auxv): Likewise.
778 * bfd-target.c (target_bfd_xfer_partial): Likewise.
779 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
780 * corelow.c (core_xfer_partial): Likewise.
781 * ctf.c (ctf_xfer_partial): Likewise.
782 * darwin-nat.c (darwin_read_dyld_info): Likewise.
783 (darwin_xfer_partial): Likewise.
784 * exec.c (exec_xfer_partial): Likewise.
785 * gnu-nat.c (gnu_xfer_partial): Likewise.
786 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
787 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
788 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
789 * linux-nat.c (linux_xfer_siginfo): Likewise.
790 (linux_proc_xfer_spu): Likewise.
791 * procfs.c (procfs_xfer_partial): Likewise.
792 * record-full.c (record_full_xfer_partial): Likewise.
793 (record_full_core_xfer_partial): Likewise.
794 * remote-sim.c (gdbsim_xfer_partial): Likewise.
795 * remote.c (remote_write_qxfer): Likewise.
796 (remote_write_qxfer, remote_read_qxfer): Likewise.
797 (remote_xfer_partial): Likewise.
798 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
799 (rs6000_xfer_shared_libraries): Likewise.
800 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
801 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
802 (spu_xfer_partial): Likewise.
803 * target.c (memory_xfer_partial_1): Likewise.
804 * tracepoint.c (tfile_xfer_partial): Likewise.
805 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
806 (windows_xfer_partial): Likewise.
808 2014-02-07 Yao Qi <yao@codesourcery.com>
810 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
812 (core_xfer_shared_libraries_aix): Likewise.
813 * gdbarch.c, gdbarch.h: Regenerated.
814 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
815 ULONGEST. Change 'len_avail' type to ULONGEST.
816 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
817 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
819 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
821 2014-02-07 Yao Qi <yao@codesourcery.com>
823 * corefile.c (memory_error): Get 'exception' from ERR and pass
824 'exception' to throw_error.
826 2014-02-06 Doug Evans <xdje42@gmail.com>
828 * configure.ac (libpython checking): Remove all but python.o from
829 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
830 * configure: Regenerate.
832 * Makefile.in (SFILES): Add extension.c.
833 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
834 (COMMON_OBS): Add extension.o.
835 * extension.h: New file.
836 * extension-priv.h: New file.
837 * extension.c: New file.
839 * python/python-internal.h: #include "extension.h".
840 (gdbpy_auto_load_enabled): Declare.
841 (gdbpy_apply_val_pretty_printer): Declare.
842 (gdbpy_apply_frame_filter): Declare.
843 (gdbpy_preserve_values): Declare.
844 (gdbpy_breakpoint_cond_says_stop): Declare.
845 (gdbpy_breakpoint_has_cond): Declare.
846 (void source_python_script_for_objfile): Delete.
847 * python/python.c: #include "extension-priv.h".
848 Delete inclusion of "observer.h".
849 (extension_language_python): Moved here and renamed from
850 script_language_python in py-auto-load.c.
851 Redefined to be of type extension_language_defn.
852 (python_extension_script_ops): New global.
853 (python_extension_ops): New global.
854 (struct python_env): New member previous_active.
855 (restore_python_env): Call restore_active_ext_lang.
856 (ensure_python_env): Call set_active_ext_lang.
857 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
859 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
861 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
863 (gdbpy_eval_from_control_command): Renamed from
864 eval_python_from_control_command, made static. New arg extlang.
865 (gdbpy_source_script) Renamed from source_python_script, made static.
867 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
868 result to int. New arg extlang.
869 (gdbpy_source_objfile_script): Renamed from
870 source_python_script_for_objfile, made static. New arg extlang.
871 (gdbpy_start_type_printers): Renamed from start_type_printers, made
872 static. New args extlang, extlang_printers. Change result type to
874 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
875 static. New arg extlang. Rename arg printers to extlang_printers
876 and change type to ext_lang_type_printers *.
877 (gdbpy_free_type_printers): Renamed from free_type_printers, made
878 static. Replace argument arg with extlang, extlang_printers.
879 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
880 (!HAVE_PYTHON, source_python_script): Delete.
881 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
882 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
883 (!HAVE_PYTHON, start_type_printers): Delete.
884 (!HAVE_PYTHON, apply_type_printers): Delete.
885 (!HAVE_PYTHON, free_type_printers): Delete.
886 (_initialize_python): Delete call to observer_attach_before_prompt.
887 (finalize_python): Set/restore active extension language.
888 (gdbpy_finish_initialization) Renamed from
889 finish_python_initialization, made static. New arg extlang.
890 (gdbpy_initialized): New function.
891 * python/python.h: #include "extension.h". Delete #include
892 "value.h", "mi/mi-cmds.h".
893 (extension_language_python): Declare.
894 (GDBPY_AUTO_FILE_NAME): Delete.
895 (enum py_bt_status): Moved to extension.h and renamed to
897 (enum frame_filter_flags): Moved to extension.h.
898 (enum py_frame_args): Moved to extension.h and renamed to
900 (finish_python_initialization): Delete.
901 (eval_python_from_control_command): Delete.
902 (source_python_script): Delete.
903 (apply_val_pretty_printer): Delete.
904 (apply_frame_filter): Delete.
905 (preserve_python_values): Delete.
906 (gdbpy_script_language_defn): Delete.
907 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
908 (start_type_printers, apply_type_printers, free_type_printers): Delete.
910 * auto-load.c: #include "extension.h".
911 (GDB_AUTO_FILE_NAME): Delete.
912 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
913 (script_language_gdb): Delete, moved to extension.c and renamed to
914 extension_language_gdb.
915 (source_gdb_script_for_objfile): Delete.
916 (auto_load_pspace_info): New member unsupported_script_warning_printed.
917 (loaded_script): Change type of language member to
918 struct extension_language_defn *.
919 (init_loaded_scripts_info): Initialize
920 unsupported_script_warning_printed.
921 (maybe_add_script): Make static. Change type of language arg to
922 struct extension_language_defn *.
923 (clear_section_scripts): Reset unsupported_script_warning_printed.
924 (auto_load_objfile_script_1): Rewrite to use extension language API.
925 (auto_load_objfile_script): Make public. Remove support-compiled-in
926 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
927 (source_section_scripts): Rewrite to use extension language API.
928 (load_auto_scripts_for_objfile): Rewrite to use
929 auto_load_scripts_for_objfile.
930 (collect_matching_scripts_data): Change type of language member to
931 struct extension_language_defn *.
932 (auto_load_info_scripts): Change type of language arg to
933 struct extension_language_defn *.
934 (unsupported_script_warning_print): New function.
935 (script_not_found_warning_print): Make static.
936 (_initialize_auto_load): Rewrite construction of scripts-directory
938 * auto-load.h (struct objfile): Add forward decl.
939 (struct script_language): Delete.
940 (struct auto_load_pspace_info): Add forward decl.
941 (struct extension_language_defn): Add forward decl.
942 (maybe_add_script): Delete.
943 (auto_load_objfile_script): Declare.
944 (script_not_found_warning_print): Delete.
945 (auto_load_info_scripts): Update prototype.
946 (auto_load_gdb_scripts_enabled): Declare.
947 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
948 auto_load_python_scripts_enabled and made public.
949 (script_language_python): Delete, moved to python.c.
950 (gdbpy_script_language_defn): Delete.
951 (info_auto_load_python_scripts): Update to use
952 extension_language_python.
954 * breakpoint.c (condition_command): Replace call to
955 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
956 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
957 with call to breakpoint_ext_lang_cond_says_stop.
958 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
959 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
960 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
961 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
963 (local_setattro): Print name of extension language with existing
966 * valprint.c (val_print, value_print): Update to call
967 apply_ext_lang_val_pretty_printer.
968 * cp-valprint.c (cp_print_value): Update call to
969 apply_ext_lang_val_pretty_printer.
970 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
971 (gdbpy_apply_val_pretty_printer): Renamed from
972 apply_val_pretty_printer. New arg extlang.
973 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
975 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
976 extension language API.
977 * cli/cli-script.c (execute_control_command): Update to call
978 eval_ext_lang_from_control_command.
980 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
981 enum ext_lang_bt_status values. Update call to
982 apply_ext_lang_frame_filter.
983 (mi_cmd_stack_list_locals): Ditto.
984 (mi_cmd_stack_list_args): Ditto.
985 (mi_cmd_stack_list_variables): Ditto.
986 * mi/mi-main.c: Delete #include "python/python-internal.h".
987 Add #include "extension.h".
988 (mi_cmd_list_features): Replace reference to python internal variable
989 gdb_python_initialized with call to ext_lang_initialized_p.
991 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
992 Update to use enum ext_lang_frame_args. Update to call
993 apply_ext_lang_frame_filter.
994 * python/py-framefilter.c (extract_sym): Update to use enum
996 (extract_value, py_print_type, py_print_value): Ditto.
997 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
998 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
999 (py_print_frame): Ditto.
1000 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1001 New arg extlang. Update to use enum ext_lang_bt_status.
1003 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1004 finish_python_initialization. Replace with call to
1005 finish_ext_lang_initialization.
1007 * typeprint.c (do_free_global_table): Update to call
1008 free_ext_lang_type_printers.
1009 (create_global_typedef_table): Update to call
1010 start_ext_lang_type_printers.
1011 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1012 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1013 (type_print_options): Change type of global_printers from "void *"
1014 to "struct ext_lang_type_printers *".
1016 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1017 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1018 (gdbpy_preserve_values): Renamed from preserve_python_values.
1020 (!HAVE_PYTHON, preserve_python_values): Delete.
1022 * utils.c (quit_flag): Delete, moved to extension.c.
1023 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1026 * eval.c: Delete #include "python/python.h".
1027 * main.c: Delete #include "python/python.h".
1029 * defs.h: Update comment.
1031 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1035 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1037 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1040 2014-02-05 Yao Qi <yao@codesourcery.com>
1042 * remote.c (remote_pass_signals): Remove local 'buf' and use
1044 (remote_program_signals): Likewise.
1046 2014-02-05 Yao Qi <yao@codesourcery.com>
1048 * ctf.c: Include "inferior.h" and "gdbthread.h".
1049 (CTF_PID): A new macro.
1050 (ctf_open): Call inferior_appeared and add_thread_silent.
1051 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1052 (ctf_thread_alive): New function.
1053 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1055 2014-02-05 Yao Qi <yao@codesourcery.com>
1059 2013-05-24 Yao Qi <yao@codesourcery.com>
1061 * tracepoint.c (TFILE_PID): Remove.
1062 (tfile_open): Don't add thread and inferior.
1063 (tfile_close): Don't set 'inferior_ptid'. Don't call
1064 exit_inferior_silent.
1065 (tfile_thread_alive): Remove.
1066 (init_tfile_ops): Don't set field 'to_thread_alive' of
1069 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1071 * remote.c (remote_start_remote): Call remote_check_symbols even
1072 if only symbol-file (not file) has been given.
1074 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1076 * gdbarch.sh (skip_entrypoint): New callback.
1077 * gdbarch.c, gdbarch.h: Regenerate.
1078 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1079 * infrun.c (fill_in_stop_func): Likewise.
1080 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1081 (ppc_elfv2_elf_make_msymbol_special): New function.
1082 (ppc_elfv2_skip_entrypoint): Likewise.
1083 (ppc_linux_init_abi): Install them for ELFv2.
1085 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1087 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1088 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1089 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1090 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1091 structures returned in GPRs.
1093 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1095 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1096 offset to the stack parameter list for the ELFv2 ABI.
1098 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1100 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1101 set_gdbarch_convert_from_func_ptr_addr and
1102 set_gdbarch_elf_make_msymbol_special for ELFv1.
1103 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1104 function descriptors on ELFv1.
1105 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1106 set up r12 at function entry.
1108 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1110 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1111 (struct gdbarch_tdep): New member elf_abi.
1113 * rs6000-tdep.c: Include "elf/ppc64.h".
1114 (rs6000_gdbarch_init): Detect ELF ABI version.
1116 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1118 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1119 within a register pair holding a DFP 128-bit value on little-endian.
1120 (ppc64_sysv_abi_return_value_base): Likewise.
1121 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1122 (dfp_pseudo_register_write): Likewise.
1124 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1126 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1127 offset on little-endian when passing _Decimal32.
1128 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1130 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1132 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1133 of the overlapped FP register within the VSX register on little-
1135 (efpr_pseudo_register_write): Likewise.
1137 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1139 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1140 offset on little-endian when passing small structures.
1142 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1144 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1145 (struct ppc64_sysv_argpos): New data structure.
1146 (ppc64_sysv_abi_push_float): Remove.
1147 (ppc64_sysv_abi_push_val): New function.
1148 (ppc64_sysv_abi_push_integer): Likewise.
1149 (ppc64_sysv_abi_push_freg): Likewise.
1150 (ppc64_sysv_abi_push_vreg): Likewise.
1151 (ppc64_sysv_abi_push_param): Likewise.
1152 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1153 (ppc64_sysv_abi_return_value_base): New function.
1154 (ppc64_sysv_abi_return_value): Refactor to use it.
1156 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1158 * NEWS: Document new target powerpc64le-*-linux*.
1160 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1162 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1163 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1165 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1166 register set used in ELF core dumps. Add floating-point register set.
1168 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1170 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1171 dwarf2_to_gdb[] table using symbolic constants. Adjust
1172 penultimate entry from number representing the PC register
1173 to symbolic constant representing the MDR register. Add
1174 constant for the PC register to the end of the table.
1176 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1178 * bsd-kvm.c: Include <sys/param.h>
1180 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1182 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1184 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1186 * ada-lang.h (clear_ada_sym_cache): Delete.
1188 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1190 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1192 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1194 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1195 the sigreturn register save area only if the syscall is
1198 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1200 * valops.c (value_slice): Minor reformatting.
1202 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1204 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1206 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1208 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1210 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1211 (ada_ignore_descriptive_types_p): New static global.
1212 (find_parallel_type_by_descriptive_type): Return immediately
1213 if ada_ignore_descriptive_types_p is set.
1214 (_initialize_ada_language): Register new commands "maintenance
1215 set ada", "maintenance show ada", "maintenance set ada
1216 ignore-descriptive-types" and "maintenance show ada
1217 ignore-descriptive-types".
1218 * NEWS: Add entry for new "maint ada set/show
1219 ignore-descriptive-types" commands.
1221 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1223 * record-btrace.c (record_btrace_close): Call btrace_teardown
1226 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1228 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1231 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1233 * ada-typeprint (type_is_full_subrange_of_target_type):
1235 (print_range): Add parameter bounds_prefered_p. If not set,
1236 try printing range types using the name of their base type.
1237 (print_range_type): Add parameter bounds_prefered_p.
1238 Use it in call to print_range.
1239 (print_array_type, ada_print_type): Update calls to print_range
1240 and print_range_type.
1242 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1244 * ada-typeprint.c (print_array_type, print_choices, print_range)
1245 (print_range_bound, print_dynamic_range_bound, print_range_type):
1248 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1250 * ada-typeprint.c (print_range): Add missing empty line
1251 after local declaration.
1253 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1255 * ada-valprint.c (print_optional_low_bound): Get index_type's
1256 target type for as long as it is a TYPE_CODE_RANGE.
1258 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1260 * procfs.c (procfs_make_note_section): Remove assertion and
1263 2014-01-24 Yao Qi <yao@codesourcery.com>
1265 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1266 * corelow.c (get_core_siginfo): Likewise.
1268 2014-01-24 Yao Qi <yao@codesourcery.com>
1270 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1271 ULONGEST. Don't check 'len' is negative.
1272 (remote_write_bytes): Change type of 'len' to ULONGEST.
1274 2014-01-23 Tom Tromey <tromey@redhat.com>
1277 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1278 Handle exception from frame.block.
1279 (FrameVars.fetch_frame_locals): Likewise.
1281 2014-01-23 Tom Tromey <tromey@redhat.com>
1284 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1285 on a NULL pointer. Move "goto error" to correct place.
1287 2014-01-23 Tom Tromey <tromey@redhat.com>
1290 * python/py-framefilter.c (apply_frame_filter): Call
1291 ensure_python_env after computing gdbarch.
1293 2014-01-23 Yao Qi <yao@codesourcery.com>
1295 * target.c (raw_memory_xfer_partial): Change argument type
1296 from void * to gdb_byte *.
1297 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1299 2014-01-22 Doug Evans <dje@google.com>
1301 New gdbserver option --debug-format=timestamp.
1304 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1306 * syscalls/s390x-linux.xml: New file.
1307 * syscalls/s390-linux.xml: New file.
1308 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1309 (XML_SYSCALL_FILENAME_S390X): Likewise.
1310 (op_svc): New enum value for SVC opcode.
1311 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1312 (s390_linux_get_syscall_number): New function.
1313 (s390_gdbarch_init): Register '*get_syscall_number' and the
1314 syscall xml file name.
1315 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1316 "s390-linux.xml" and "s390x-linux.xml".
1317 * NEWS: Announce new feature.
1319 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1321 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1323 2014-01-22 Pedro Alves <palves@redhat.com>
1325 * xtensa-config.c: Include defs.h.
1327 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1329 * common/common-utils.h: Add "ARI:" comment beside __func__
1332 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1334 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1335 documentation a bit.
1337 2014-01-21 Roland McGrath <mcgrathr@google.com>
1339 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1340 * configure: Regenerate.
1341 * aclocal.m4: Regenerate.
1342 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1343 New substituted variables.
1344 (install-strip): New target.
1345 (INSTALL_SCRIPT): New substituted variable.
1346 (FLAGS_TO_PASS): Add it.
1347 (install-only): Use $(INSTALL_SCRIPT) rather than
1348 $(INSTALL_PROGRAM) for gcore.
1350 2014-01-20 Tom Tromey <tromey@redhat.com>
1352 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1355 2014-01-20 Tom Tromey <tromey@redhat.com>
1357 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1358 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1359 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1360 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1361 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1362 (struct cmd_list_element) <flags>: Remove.
1363 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1364 doc_allocated>: New fields.
1365 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1367 * maint.c (maintenance_do_deprecate): Update.
1368 * top.c (execute_command): Update.
1370 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1372 * xtensa-linux-nat.c: Include asm/ptrace.h.
1374 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1376 * Makefile.in (SFILES): Add d-support.c.
1377 (COMMON_OBS): Add d-support.o.
1378 * d-lang.h (d_parse_symbol): Add comment, now defined in
1380 * d-lang.c (parse_call_convention)
1381 (parse_attributes, parse_function_types)
1382 (parse_function_args, parse_type, parse_identifier)
1383 (call_convention_p, d_parse_symbol): Move functions to ...
1384 * d-support.c: ... New file.
1386 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1388 * d-lang.h (d_parse_symbol): Add declaration.
1389 * d-lang.c (extract_identifiers)
1390 (extract_type_info): Remove functions.
1391 (parse_call_convention, parse_attributes)
1392 (parse_function_types, parse_function_args)
1393 (parse_type, parse_identifier, call_convention_p)
1394 (d_parse_symbol): New functions.
1395 (d_demangle): Use d_parse_symbol to demangle D symbols.
1397 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1399 * d-lang.h (struct builtin_d_type): New data type.
1400 (builtin_d_type): Add declaration.
1401 * d-lang.c (d_language_arch_info, build_d_types)
1402 (builtin_d_type): New functions.
1403 (enum d_primitive_types): New data type.
1404 (d_language_defn): Change c_language_arch_info to
1405 d_language_arch_info.
1406 (d_type_data): New static variable.
1407 (_initialize_d_language): Initialize d_type_data.
1409 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1411 * d-lang.h (d_main_name): Add declaration.
1412 * d-lang.c (d_main_name): New function.
1413 * symtab.c (find_main_name): Add call to d_main_name.
1415 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1417 * d-lang.c (d_language_defn): Change macro_expansion_c to
1420 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1422 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1424 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1426 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1427 gdb_exception" declaration.
1428 * remote.c (getpkt_or_notif_sane): Likewise.
1430 2014-01-17 Doug Evans <dje@google.com>
1432 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1433 function, contents of dirnames_to_char_ptr_vec_append moved here.
1434 (delim_string_to_char_ptr_vec): New function.
1435 (dirnames_to_char_ptr_vec_append): Rewrite.
1436 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1438 2014-01-17 Doug Evans <dje@google.com>
1440 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1442 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1443 #include "common-utils.h".
1444 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1445 * common/vec.h (VEC_ASSERT_PASS): Update.
1446 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1447 (MACH_CHECK_ERROR): Update.
1449 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1451 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1453 * gdbarch.h: Regenerate.
1455 2014-01-16 Tom Tromey <tromey@redhat.com>
1457 * value.c (struct value) <regnum>: Move earlier.
1459 2014-01-16 Tom Tromey <tromey@redhat.com>
1461 * remote.c (extended_remote_create_inferior): Rename from
1462 extended_remote_create_inferior_1. Add "ops" argument. Remove
1465 2014-01-16 Pedro Alves <palves@redhat.com>
1467 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1468 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1471 2014-01-16 Doug Evans <dje@google.com>
1473 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1475 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1477 * btrace.h (btrace_thread_flag): New.
1478 (struct btrace_thread_info) <flags>: New.
1479 * record-btrace.c (record_btrace_resume_thread)
1480 (record_btrace_find_thread_to_move, btrace_step_no_history)
1481 (btrace_step_stopped, record_btrace_start_replaying)
1482 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1483 (record_btrace_find_resume_thread): New.
1484 (record_btrace_resume, record_btrace_wait): Extend.
1485 (record_btrace_can_execute_reverse): New.
1486 (record_btrace_open): Fail in non-stop mode.
1487 (record_btrace_set_replay): Split into this, ...
1488 (record_btrace_stop_replaying): ... this, ...
1489 (record_btrace_clear_histories): ... and this.
1490 (init_record_btrace_ops): Init to_can_execute_reverse.
1491 * NEWS: Announce it.
1493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1495 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1496 (forward_target_decr_pc_after_break)
1497 (target_decr_pc_after_break): New.
1498 * target.c (forward_target_decr_pc_after_break)
1499 (target_decr_pc_after_break): New.
1500 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1501 instead of gdbarch_decr_pc_after_break.
1502 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1503 instead of gdbarch_decr_pc_after_break.
1504 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1505 instead of gdbarch_decr_pc_after_break.
1506 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1507 instead of gdbarch_decr_pc_after_break.
1508 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1509 instead of gdbarch_decr_pc_after_break.
1510 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1511 instead of gdbarch_decr_pc_after_break.
1513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1515 * btrace.c: Include regcache.h.
1516 (btrace_add_pc): New.
1517 (btrace_enable): Call btrace_add_pc.
1518 (btrace_is_empty): New.
1519 * btrace.h (btrace_is_empty): New.
1520 * record-btrace.c (require_btrace, record_btrace_info): Call
1523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1525 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1526 Support delta reads.
1527 (linux_disable_btrace): Change return type.
1528 * common/linux-btrace.h (linux_read_btrace): Change parameters
1529 and return type to allow error reporting. Update users.
1530 (linux_disable_btrace): Change return type. Update users.
1531 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1533 (btrace_error): New.
1534 (btrace_block) <begin>: Comment on BEGIN == 0.
1535 * btrace.c (btrace_compute_ftrace): Start from the end of
1537 (btrace_stitch_trace, btrace_clear_history): New.
1538 (btrace_fetch): Read delta trace, return if replaying.
1539 (btrace_clear): Move clear history code to btrace_clear_history.
1540 (parse_xml_btrace): Throw an error if parsing failed.
1541 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1542 and return type to allow error reporting.
1543 (target_read_btrace): Change parameters and return type to allow
1545 * target.c (target_read_btrace): Update.
1546 * remote.c (remote_read_btrace): Support delta reads. Pass
1548 * NEWS: Announce it.
1550 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1552 * record.h (record_btrace_frame_unwind)
1553 (record_btrace_tailcall_frame_unwind): New declarations.
1554 * dwarf2-frame: Include record.h
1555 (dwarf2_frame_cfa): Throw an error for btrace frames.
1556 * record-btrace.c: Include hashtab.h.
1557 (btrace_get_bfun_name): New.
1558 (btrace_call_history): Call btrace_get_bfun_name.
1559 (struct btrace_frame_cache): New.
1561 (bfcache_hash, bfcache_eq, bfcache_new): New.
1562 (btrace_get_frame_function): New.
1563 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1564 (record_btrace_frame_this_id): Compute own id.
1565 (record_btrace_frame_prev_register): Provide PC, throw_error
1566 for all other registers.
1567 (record_btrace_frame_sniffer): Detect btrace frames.
1568 (record_btrace_tailcall_frame_sniffer): New.
1569 (record_btrace_frame_dealloc_cache): New.
1570 (record_btrace_frame_unwind): Add new functions.
1571 (record_btrace_tailcall_frame_unwind): New.
1572 (_initialize_record_btrace): Allocate cache.
1573 * btrace.c (btrace_clear): Call reinit_frame_cache.
1574 * NEWS: Announce it.
1576 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1578 * record-btrace.c (record_btrace_set_replay)
1579 (record_btrace_goto_begin, record_btrace_goto_end)
1580 (record_btrace_goto): New.
1581 (init_record_btrace_ops): Initialize them.
1582 * NEWS: Announce it.
1584 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1586 * record-btrace.c (record_btrace_find_new_threads)
1587 (record_btrace_thread_alive): New.
1588 (init_record_btrace_ops): Initialize to_find_new_threads and
1591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1593 * record-btrace.c (record_btrace_resume): New.
1594 (record_btrace_wait): New.
1595 (init_record_btrace_ops): Initialize to_wait and to_resume.
1597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1599 * record-btrace.c (record_btrace_xfer_partial)
1600 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1601 (record_btrace_allow_memory_access): New.
1602 (init_record_btrace_ops): Initialize new methods.
1603 * target.c (raw_memory_xfer_partial): Bail out if target reports
1604 that this memory is not available.
1606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1608 * target.h (target_ops) <to_insert_breakpoint>
1609 <to_remove_breakpoint>: Add target_ops parameter.
1610 (forward_target_insert_breakpoint): New.
1611 (forward_target_remove_breakpoint): New.
1612 (memory_remove_breakpoint, memory_insert_breakpoint):
1613 Add target_ops parameter.
1614 * target.c (target_insert_breakpoint): Split into this and ...
1615 (forward_target_insert_breakpoint): ... this.
1616 (target_remove_breakpoint): Split into this and ...
1617 (forward_target_remove_breakpoint): ... this.
1618 (debug_to_insert_breakpoint): Add target_ops parameter.
1619 Call forward_target_insert_breakpoint.
1620 (debug_to_remove_breakpoint): Add target_ops parameter.
1621 Call forward_target_remove_breakpoint.
1622 (update_current_target): Do not inherit or default to_insert_breakpoint
1623 and to_remove_breakpoint.
1624 * corelow.c (ignore): Add target_ops parameter.
1625 * exec.c (ignore): Add target_ops parameter.
1626 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1627 Add target_ops parameter.
1628 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1629 Add target_ops parameter.
1630 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1631 Add target_ops parameter.
1632 * record-full.c (record_full_beneath_to_insert_breakpoint)
1633 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1634 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1635 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1636 (record_full_core_remove_breakpoint): Add target_ops parameter.
1638 (record_full_beneath_to_insert_breakpoint_ops)
1639 (record_full_beneath_to_remove_breakpoint_ops)
1640 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1641 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1642 tmp_to_remove_breakpoint_ops,
1643 record_full_beneath_to_insert_breakpoint_ops, and
1644 record_full_beneath_to_remove_breakpoint_ops.
1645 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1646 (m32r_remove_breakpoint): Add target_ops parameter.
1647 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1648 Add target_ops parameter.
1649 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1650 Add target_ops parameter.
1652 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1653 Markus Metzger <markus.t.metzger@intel.com>
1655 * record-btrace.c: Include frame-unwind.h.
1656 (record_btrace_frame_unwind_stop_reason)
1657 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1658 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1660 (init_record_btrace_ops): Install it.
1662 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1667 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1669 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1672 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1674 * frame-unwind.c: Include target.h.
1675 (frame_unwind_try_unwinder): New function with code from ...
1676 (frame_unwind_find_by_frame): ... here. New variable
1677 unwinder_from_target, call also target_get_unwinder)
1678 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1679 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1680 * target.h (struct target_ops): New fields to_get_unwinder and
1681 to_get_tailcall_unwinder.
1682 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1684 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1686 * record-btrace.c (record_btrace_fetch_registers)
1687 (record_btrace_store_registers)
1688 (record_btrace_to_prepare_to_store): New.
1689 (init_record_btrace_ops): Add the above.
1691 2014-01-16 Tom Tromey <tromey@redhat.com>
1693 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1694 * target.h (struct target_ops) <to_prepare_to_store>: Add
1696 (target_prepare_to_store): Add argument.
1697 * target.c (debug_to_prepare_to_store): Add argument.
1698 (update_current_target): Update.
1699 * remote.c (remote_prepare_to_store): Add 'self' argument.
1700 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1701 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1702 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1703 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1705 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1706 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1707 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1708 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1709 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1711 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1713 * btrace.h (replay) <replay>: New.
1714 (btrace_is_replaying): New.
1715 * btrace.c (btrace_clear): Free replay iterator.
1716 (btrace_is_replaying): New.
1717 * record-btrace.c (record_btrace_is_replaying): New.
1718 (record_btrace_info): Print insn number if replaying.
1719 (record_btrace_insn_history): Start at replay position.
1720 (record_btrace_call_history): Start at replay position.
1721 (init_record_btrace_ops): Init to_record_is_replaying.
1723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1725 * record-btrace.c (record_btrace_insn_history_range): Include
1727 (record_btrace_insn_history_from): Adjust range.
1728 (record_btrace_call_history_range): Include
1730 (record_btrace_call_history_from): Adjust range.
1731 * NEWS: Announce changes.
1733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1735 * record.h (enum record_print_flag)
1736 <record_print_indent_calls>: New.
1737 * record.c (get_call_history_modifiers): Recognize /c modifier.
1738 (_initialize_record): Document /c modifier.
1739 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1740 Reorder fields. Optionally indent the function name. Update
1742 * NEWS: Announce changes.
1744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1746 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1750 * btrace.c (ftrace_new_function): Start counting at one.
1751 * record-btrace.c (record_btrace_info): Adjust number of calls
1753 * NEWS: Announce it.
1755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1757 * record-btrace.c (btrace_call_history_insn_range): Print
1758 insn range as [begin, end].
1760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1762 * btrace.h (struct btrace_func_link): New.
1763 (enum btrace_function_flag): New.
1764 (struct btrace_inst): Rename to ...
1765 (struct btrace_insn): ...this. Update all users.
1766 (struct btrace_func) <ibegin, iend>: Remove.
1767 (struct btrace_func_link): New.
1768 (struct btrace_func): Rename to ...
1769 (struct btrace_function): ...this. Update all users.
1770 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1771 (number, level, flags>: New.
1772 (struct btrace_insn_iterator): Rename to ...
1773 (struct btrace_insn_history): ...this.
1775 (struct btrace_insn_iterator, btrace_call_iterator): New.
1776 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1777 (struct btrace_target_info) <begin, end, level>
1778 <insn_history, call_history>: New.
1779 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1780 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1781 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1782 (btrace_call_number, btrace_call_begin, btrace_call_end)
1783 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1784 (btrace_find_function_by_number, btrace_set_insn_history)
1785 (btrace_set_call_history): New.
1786 * btrace.c (btrace_init_insn_iterator)
1787 (btrace_init_func_iterator, compute_itrace): Remove.
1788 (ftrace_print_function_name, ftrace_print_filename)
1789 (ftrace_skip_file): Change
1791 (ftrace_init_func): Remove.
1792 (ftrace_debug): Use new btrace_function fields.
1793 (ftrace_function_switched): Also consider gaining and
1794 losing symbol information).
1795 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
1796 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
1797 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
1799 (ftrace_new_function): Move. Remove debug print.
1800 (ftrace_update_lines, ftrace_update_insns): New.
1801 (ftrace_update_function): Check for call, ret, and jump.
1802 (compute_ftrace): Renamed to ...
1803 (btrace_compute_ftrace): ...this. Rewritten to compute call
1805 (btrace_fetch, btrace_clear): Updated.
1806 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1807 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1808 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1809 (btrace_call_number, btrace_call_begin, btrace_call_end)
1810 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1811 (btrace_find_function_by_number, btrace_set_insn_history)
1812 (btrace_set_call_history): New.
1813 * record-btrace.c (require_btrace): Use new btrace thread
1815 (record_btrace_info, btrace_insn_history)
1816 (record_btrace_insn_history, record_btrace_insn_history_range):
1817 Use new btrace thread info fields and new iterator.
1818 (btrace_func_history_src_line): Rename to ...
1819 (btrace_call_history_src_line): ...this. Use new btrace
1821 (btrace_func_history): Rename to ...
1822 (btrace_call_history): ...this. Use new btrace thread info
1823 fields and new iterator.
1824 (record_btrace_call_history, record_btrace_call_history_range):
1825 Use new btrace thread info fields and new iterator.
1827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1829 * frame.h (frame_id_build_unavailable_stack_special): New.
1830 * frame.c (frame_id_build_unavailable_stack_special): New.
1832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1834 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
1835 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
1836 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
1838 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
1839 (i386_insn_is_jump, i386_jmp_p): New.
1840 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
1841 insn_is_jump to gdbarch.
1842 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
1843 * gdbarch.h: Regenerated.
1844 * gdbarch.c: Regenerated.
1845 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
1846 (default_insn_is_jump): New.
1847 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
1848 (default_insn_is_jump): New.
1850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1852 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
1854 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
1855 (btrace_read_type) <btrace_read_new>: Change to ...
1856 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
1858 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1860 * common/linux-btrace.c (linux_read_btrace): Free trace from
1863 2014-01-15 Doug Evans <dje@google.com>
1865 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
1868 2014-01-15 Tom Tromey <tromey@redhat.com>
1870 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
1871 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
1872 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
1873 (set_objfile_main_name): New function.
1874 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
1875 language_of_main>: New fields.
1876 (set_objfile_main_name): Declare.
1877 * symtab.c (find_main_name): Loop over objfiles to find the main
1879 (set_main_name): Now static.
1880 (get_main_info): Add comment.
1881 * symtab.h (set_main_name): Don't declare.
1883 2014-01-15 Tom Tromey <tromey@redhat.com>
1885 * symtab.c (main_progspace_key): New global.
1886 (struct main_info): New.
1887 (name_of_main, language_of_main): Remove.
1888 (get_main_info, main_info_cleanup): New function.
1889 (set_main_name, main_name, main_language): Use get_main_info.
1890 (_initialize_symtab): Initialize main_progspace_key.
1892 2014-01-15 Tom Tromey <tromey@redhat.com>
1894 * dbxread.c (process_one_symbol): Update.
1895 * dwarf2read.c (read_partial_die): Update.
1896 * symfile.c (set_initial_language): Call main_language.
1897 * symtab.c (language_of_main): Now static.
1898 (set_main_name): Add 'lang' parameter.
1899 (find_main_name): Update.
1900 (main_language): New function.
1901 (symtab_observer_executable_changed): Update.
1902 * symtab.h (set_main_name): Update.
1903 (language_of_main): Remove.
1904 (main_language): Declare.
1906 2014-01-15 Tom Tromey <tromey@redhat.com>
1908 * symfile.c (init_entry_point_info): Use new "initialized" field.
1910 * objfiles.h (struct entry_point) <initialized>: New field.
1911 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
1912 (struct objfile) <ei>: ...here. Remove.
1913 * objfiles.c (entry_point_address_query): Update.
1915 2014-01-15 Tom Tromey <tromey@redhat.com>
1917 * objfiles.c (entry_point_address_query): Relocate entry point
1919 (objfile_relocate1): Do not relocate entry point address.
1920 * objfiles.h (struct entry_info) <entry_point>: Update comment.
1921 <the_bfd_section_index>: New field.
1922 * symfile.c (init_entry_point_info): Find the entry point's
1925 2014-01-15 Tom Tromey <tromey@redhat.com>
1927 * solib-frv.c (enable_break): Use entry_point_address_query.
1929 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1931 * NEWS: Add note on improved process record-replay on
1932 arm*-linux* targets.
1934 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1936 * arm-tdep.c (enum arm_record_result): New enum.
1937 (arm_record_unsupported_insn): New function.
1938 (arm_record_coproc_data_proc): Removed.
1939 (thumb2_record_ld_st_multiple): New function.
1940 (thumb2_record_ld_st_dual_ex_tbb): New function.
1941 (thumb2_record_data_proc_sreg_mimm): New function.
1942 (thumb2_record_ps_dest_generic): New function.
1943 (thumb2_record_branch_misc_cntrl): New function.
1944 (thumb2_record_str_single_data): New function.
1945 (thumb2_record_ld_mem_hints): New function.
1946 (thumb2_record_ld_word): New function.
1947 (thumb2_record_lmul_lmla_div): New function.
1948 (thumb2_record_decode_insn_handler): New function.
1949 (decode_insn): Add thumb32 instruction handlers.
1951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1953 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
1954 (struct arm_linux_record_tdep): Declare.
1955 (arm_canonicalize_syscall): New function.
1956 (arm_all_but_pc_registers_record): New function.
1957 (arm_linux_syscall_record): New function.
1958 (arm_linux_init_abi): Add syscall recording constructs.
1959 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
1960 decoding. (arm_record_coproc_data_proc): Update arm syscall
1962 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
1963 <arm_syscall_record>: New field.
1964 * configure.tgt (arm*-*-linux*): Add linux-record.o to
1967 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1969 * arm-tdep.c (thumb_record_misc): Update to use sp as base
1970 register for push instruction recording.
1972 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1974 * arm-tdep.c (thumb_record_misc): Update to correct logical
1975 error while recording ldm, ldmia and pop instructions.
1977 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1979 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
1981 2014-01-15 Pedro Alves <palves@redhat.com>
1983 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
1984 (go32_resume, go32_fetch_registers, store_register)
1985 (go32_store_registers, go32_prepare_to_store)
1986 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
1987 (go32_create_inferior, go32_can_run, go32_terminal_init)
1988 (go32_terminal_inferior, go32_terminal_ours): Delete forward
1991 2014-01-15 Tom Tromey <tromey@redhat.com>
1993 * target.h (async_callback_ftype): New typedef.
1994 (struct target_ops) <to_async>: Use it.
1996 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1998 * python/py-value.c (get_field_type): Remove unnecessary curly
1999 braces for single-statement if block.
2001 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2003 * python/py-type.c (convert_field): Add missing empty line
2006 2014-01-14 Doug Evans <dje@google.com>
2008 * symfile.h (expand_symtabs_matching): Renamed from
2009 expand_partial_symbol_names. Update prototype.
2010 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2011 * symfile.c (expand_symtabs_matching): Renamed from
2012 expand_partial_symbol_names. New args file_matcher, kind.
2013 Rename arg fun to symbol_matcher.
2014 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2015 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2016 ada_expand_partial_symbol_name.
2017 (ada_make_symbol_completion_list): Update to call
2018 expand_symtabs_matching.
2019 (ada_add_global_exceptions): Call expand_symtabs_matching.
2020 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2021 call map_symbol_filenames.
2022 * symtab.c (sources_info): Update to call map_symbol_filenames.
2023 (search_symbols): Call expand_symtabs_matching.
2024 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2025 (default_make_symbol_completion_list_break_on): Update to call
2026 expand_symtabs_matching.
2027 (make_source_files_completion_list): Update to call
2028 map_symbol_filenames.
2030 2014-01-14 Doug Evans <dje@google.com>
2032 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2033 (expand_symtabs_symbol_matcher_ftype): New typedef.
2034 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2035 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2036 * symfile.c (expand_partial_symbol_names): Update to use
2037 expand_symtabs_symbol_matcher_ftype.
2038 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2039 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2040 Arg name_matcher renamed to symbol_matcher.
2041 * psymtab.c (recursively_search_psymtabs): Update to use
2042 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2044 (expand_symtabs_matching_via_partial): Update to use
2045 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2046 Arg name_matcher renamed to symbol_matcher.
2048 2014-01-14 Doug Evans <dje@google.com>
2050 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2051 (map_partial_symbol_filenames): Ditto.
2052 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2053 (map_partial_symbol_filenames): Ditto.
2054 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2055 (map_partial_symbol_filenames): Ditto.
2056 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2057 (map_partial_symbol_filenames): Ditto.
2058 * symtab.c: Delete #include "psymtab.h".
2060 2014-01-14 Pedro Alves <palves@redhat.com>
2061 Tom Tromey <tromey@redhat.com>
2063 * infrun.c (use_displaced_stepping): Use find_record_target
2064 instead of RECORD_IS_USED.
2065 (adjust_pc_after_break): Use record_full_is_used instead of
2067 * record-btrace.c (record_btrace_open): Call record_preopen
2068 instead of checking RECORD_IS_USED.
2069 * record-full.c (record_full_shortname)
2070 (record_full_core_shortname): New globals.
2071 (record_full_is_used): New function.
2072 (find_full_open): Call record_preopen instead of checking
2074 (init_record_full_ops): Set the target's shortname to
2075 record_full_shortname.
2076 (init_record_full_core_ops): Set the target's shortname to
2077 record_full_core_shortname.
2078 * record-full.h (record_full_is_used): Declare.
2079 * record.c (find_record_target): Make extern.
2080 (record_preopen): New function.
2081 * record.h (RECORD_IS_USED): Delete macro.
2082 (find_record_target, record_preopen): Declare functions.
2084 2014-01-14 Yao Qi <yao@codesourcery.com>
2086 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2087 'len''s type to ULONGEST.
2088 (core_xfer_shared_libraries_aix): Likewise.
2089 * gdbarch.c, gdbarch.h: Regenerated.
2090 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2091 Change type of 'len' to ULONGEST.
2092 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2093 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2095 2014-01-14 Yao Qi <yao@codesourcery.com>
2097 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2098 type of 'len' to ULONGEST.
2099 (linux_xfer_osdata_processgroups): Likewise.
2100 (linux_xfer_osdata_threads): Likewise.
2101 (linux_xfer_osdata_fds): Likewise.
2102 (linux_xfer_osdata_isockets): Likewise.
2103 (linux_xfer_osdata_shm): Likewise.
2104 (linux_xfer_osdata_sem): Likewise.
2105 (linux_xfer_osdata_msg): Likewise.
2106 (linux_common_xfer_osdata): Likewise.
2107 (struct osdata_type) <getter>: Likewise.
2108 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2111 2014-01-14 Yao Qi <yao@codesourcery.com>
2113 * target.h (target_xfer_partial_ftype): Update.
2114 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2116 * aix-thread.c (aix_thread_xfer_partial): Change type of
2117 argument 'len' to ULONGEST.
2118 * auxv.c (procfs_xfer_auxv): Likewise.
2119 (ld_so_xfer_auxv): Likewise.
2120 (memory_xfer_auxv): Likewise.
2121 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2122 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2123 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2124 * corelow.c (core_xfer_partial): Likewise.
2125 * ctf.c (ctf_xfer_partial): Likewise.
2126 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2128 (darwin_read_dyld_info): Likewise.
2129 (darwin_xfer_partial): Likewise.
2130 * exec.c (section_table_xfer_memory_partial): Likewise.
2131 (exec_xfer_partial): Likewise.
2132 * exec.h (section_table_xfer_memory_partial): Update
2134 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2135 instead of plongest.
2136 (gnu_xfer_partial): Likewise.
2137 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2138 (ia64_hpux_xfer_solib_got): Likewise.
2139 (ia64_hpux_xfer_partial): Likewise.
2140 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2141 * inf-ptrace.c (inf_ptrace_xfer_partial):
2142 * inf-ttrace.c (inf_ttrace_xfer_partial):
2143 * linux-nat.c (linux_xfer_siginfo): Likewise.
2144 (linux_nat_xfer_partial): Likewise.
2145 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2146 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2147 * monitor.c (monitor_xfer_memory): Likewise.
2148 (monitor_xfer_partial): Likewise.
2149 * procfs.c (procfs_xfer_partial): Likewise.
2150 * record-full.c (record_full_xfer_partial): Likewise.
2151 (record_full_core_xfer_partial): Likewise.
2152 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2153 instead of plongest.
2154 (gdbsim_xfer_partial): Likewise.
2155 * remote.c (remote_xfer_partial): Likewise.
2156 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2157 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2159 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2160 (rs6000_xfer_shared_libraries): Likewise.
2161 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2162 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2163 (sparc_xfer_partial): Likewise.
2164 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2165 (spu_xfer_partial): Likewise.
2166 * spu-multiarch.c (spu_xfer_partial): Likewise.
2167 * target.c (target_read_live_memory): Likewise.
2168 (memory_xfer_live_readonly_partial): Likewise.
2169 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2170 (target_xfer_partial, default_xfer_partial): Likewise.
2171 (current_xfer_partial): Likewise.
2172 * tracepoint.c (tfile_xfer_partial): Likewise.
2173 * windows-nat.c (windows_xfer_memory): Likewise. Call
2174 pulongest instead of plongest.
2175 (windows_xfer_partial): Likewise.
2176 (windows_xfer_shared_libraries): Likewise.
2178 2014-01-14 Yao Qi <yao@codesourcery.com>
2180 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2181 target_xfer_partial_ftype.
2183 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2187 * valops.c (value_struct_elt_bitpos): New function
2188 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2189 object to 'None' if the field name is an empty string ("").
2190 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2191 attribute to look for a field when 'name' is 'None'.
2192 (get_field_type): New function
2194 2014-01-13 Doug Evans <dje@google.com>
2197 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2198 (try_open_dwop_file): Ditto.
2199 * gdb_bfd.c: #include "vec.h".
2200 (bfdp): New typedef.
2201 (struct gdb_bfd_data): New member included_bfds.
2202 (gdb_bfd_unref): Unref all included bfds.
2203 (gdb_bfd_record_inclusion): New function.
2204 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2206 2014-01-13 Tom Tromey <tromey@redhat.com>
2208 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2210 2014-01-13 Tom Tromey <tromey@redhat.com>
2212 * defs.h (use_windows): Remove.
2213 * gdb.c (main): Update.
2214 * main.c (captured_main, gdb_main): Update.
2215 * main.h (struct captured_main_args) <use_windows>: Remove.
2216 * top.c (use_windows): Remove.
2218 2014-01-13 Tom Tromey <tromey@redhat.com>
2220 * defs.h (deprecated_flush_hook): Remove.
2222 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2225 * linux-thread-db.c (try_thread_db_load): Add parameter
2226 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2227 (try_thread_db_load_from_pdir_1): Move it there from here.
2228 (try_thread_db_load_from_sdir): Update caller.
2229 (try_thread_db_load_from_dir): Move it there from here.
2231 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2233 * regformats/regdat.sh: Always rewrite the register file.
2235 2014-01-13 Pedro Alves <palves@redhat.com>
2237 * Makefile.in (CHECK_HEADERS): New variable.
2238 (check-headers:): New rule.
2240 2014-01-13 Tom Tromey <tromey@redhat.com>
2242 * cli/cli-setshow.c (do_set_command): Update.
2243 * defs.h (deprecated_set_hook): Remove.
2244 * top.c (deprecated_set_hook): Remove.
2246 2014-01-13 Pedro Alves <palves@redhat.com>
2248 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2249 the tracepoint if the PC is a pseudo-register.
2251 2014-01-13 Tom Tromey <tromey@redhat.com>
2253 * defs.h (XCALLOC): Remove.
2254 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2255 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2256 * dwarf2loc.c (allocate_piece_closure): Likewise.
2257 * elfread.c (elf_symfile_segments): Likewise.
2258 (elf_symfile_segments): Likewise.
2259 * gdbtypes.c (copy_type_recursive): Likewise.
2260 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2261 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2262 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2264 * mt-tdep.c (mt_gdbarch_init): Likewise.
2265 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2267 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2268 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2269 * registry.c (registry_alloc_data): Likewise.
2270 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2271 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2272 * serial.c (serial_fdopen_ops): Likewise.
2273 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2275 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2276 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2279 2014-01-13 Tom Tromey <tromey@redhat.com>
2281 * defs.h (XMALLOC): Remove.
2282 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2283 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2284 * cli-out.c (struct ui_out *): Likewise.
2285 * cli/cli-dump.c (add_dump_command): Likewise.
2286 (add_dump_command): Likewise.
2287 * complaints.c (get_complaints): Likewise.
2288 (find_complaint): Likewise.
2289 * dwarf2-frame.c (execute_cfa_program): Likewise.
2290 * dwarf2read.c (abbrev_table_read_table): Likewise.
2291 * gdbarch.sh: Likewise.
2292 * gdbarch.c: Rebuild.
2293 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2294 * interps.c (interp_new): Likewise.
2295 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2296 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2297 * mi/mi-console.c (mi_console_file_new): Likewise.
2298 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2299 * mi/mi-out.c (mi_out_new): Likewise.
2300 * mi/mi-parse.c (mi_parse): Likewise.
2301 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2302 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2303 * observer.c (xalloc_observer_list_node): Likewise.
2304 * regcache.c (regcache_xmalloc_1): Likewise.
2305 * reggroups.c (reggroup_new): Likewise.
2306 (_initialize_reggroup): Likewise.
2307 * registry.c (register_data_with_cleanup): Likewise.
2308 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2309 * ser-base.c (serial_ttystate): Likewise.
2310 * ser-mingw.c (make_pipe_state): Likewise.
2311 * ser-pipe.c (pipe_open): Likewise.
2312 * serial.c (serial_open): Likewise.
2313 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2314 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2315 (tui_alloc_win_info): Likewise.
2316 (tui_add_content_elements): Likewise.
2317 * tui/tui-file.c (tui_file_new): Likewise.
2318 * tui/tui-out.c (tui_out_new): Likewise.
2319 * ui-file.c (mem_file_new): Likewise.
2320 * ui-out.c (push_level): Likewise.
2321 (make_cleanup_ui_out_end): Likewise.
2322 (append_header_to_list): Likewise.
2323 (ui_out_new): Likewise.
2324 * user-regs.c (user_reg_add_builtin): Likewise.
2326 2014-01-13 Tom Tromey <tromey@redhat.com>
2328 * defs.h (XZALLOC): Remove.
2329 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2330 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2331 (get_ada_tasks_inferior_data): Likewise.
2332 * auto-load.c (get_auto_load_pspace_data): Likewise.
2333 * auxv.c (get_auxv_inferior_data): Likewise.
2334 * bfd-target.c (target_bfd_reopen): Likewise.
2335 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2336 (deprecated_insert_raw_breakpoint): Likewise.
2337 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2338 * corelow.c (core_open): Likewise.
2339 * darwin-nat.c (darwin_check_new_threads): Likewise.
2340 (darwin_attach_pid): Likewise.
2341 * dummy-frame.c (dummy_frame_push): Likewise.
2342 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2343 * dwarf2loc.c (allocate_piece_closure): Likewise.
2344 * elfread.c (elf_symfile_segments): Likewise.
2345 * eval.c (ptrmath_type_p): Likewise.
2346 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2347 * gdbtypes.c (alloc_type_arch): Likewise.
2348 (alloc_type_instance): Likewise.
2349 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2350 * inf-child.c (inf_child_can_use_agent): Likewise.
2351 * inflow.c (get_inflow_inferior_data): Likewise.
2352 * infrun.c (save_infcall_suspend_state): Likewise.
2353 * jit.c (jit_reader_load): Likewise.
2354 (get_jit_objfile_data): Likewise.
2355 (get_jit_program_space_data): Likewise.
2356 (jit_object_open_impl): Likewise.
2357 (jit_symtab_open_impl): Likewise.
2358 (jit_block_open_impl): Likewise.
2359 (jit_frame_sniffer): Likewise.
2360 * linux-fork.c (add_fork): Likewise.
2361 * maint.c (make_command_stats_cleanup): Likewise.
2362 * objfiles.c (get_objfile_pspace_data): Likewise.
2363 * opencl-lang.c (struct lval_closure): Likewise.
2364 * osdata.c (osdata_start_osdata): Likewise.
2365 * progspace.c (new_address_space): Likewise.
2366 (add_program_space): Likewise.
2367 * remote-sim.c (get_sim_inferior_data): Likewise.
2368 * sh-tdep.c (sh_gdbarch_init): Likewise.
2369 * skip.c (Ignore): Likewise.
2370 (skip_delete_command): Likewise.
2371 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2372 (library_list_start_library): Likewise.
2373 (solib_aix_current_sos): Likewise.
2374 * solib-darwin.c (get_darwin_info): Likewise.
2375 (darwin_current_sos): Likewise.
2376 * solib-dsbt.c (get_dsbt_info): Likewise.
2377 * solib-ia64-hpux.c (new_so_list): Likewise.
2378 (ia64_hpux_get_solib_linkage_addr): Likewise.
2379 * solib-spu.c (append_ocl_sos): Likewise.
2380 (spu_current_sos): Likewise.
2381 * solib-svr4.c (get_svr4_info): Likewise.
2382 (svr4_keep_data_in_core): Likewise.
2383 (library_list_start_library): Likewise.
2384 (svr4_default_sos): Likewise.
2385 (svr4_read_so_list): Likewise.
2386 * solib-target.c (library_list_start_library): Likewise.
2387 (solib_target_current_sos): Likewise.
2388 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2389 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2390 * symfile.c (default_symfile_segments): Likewise.
2391 * target-descriptions.c (tdesc_data_init): Likewise.
2392 (tdesc_create_reg): Likewise.
2393 (struct tdesc_type *): Likewise.
2394 (tdesc_create_vector): Likewise.
2395 (tdesc_set_struct_size): Likewise.
2396 (struct tdesc_type *): Likewise.
2397 (tdesc_free_feature): Likewise.
2398 (tdesc_create_feature): Likewise.
2399 * windows-nat.c (windows_add_thread): Likewise.
2400 (windows_make_so): Likewise.
2401 * xml-support.c (gdb_xml_body_text): Likewise.
2402 (gdb_xml_create_parser_and_cleanup): Likewise.
2403 (xml_process_xincludes): Likewise.
2404 * xml-syscall.c (allocate_syscalls_info): Likewise.
2405 (syscall_create_syscall_desc): Likewise.
2407 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2409 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2410 function, with code from i386_stap_parse_special_token.
2411 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2412 (i386_stap_parse_special_token): Move code to the two functions
2415 2014-01-09 Pedro Alves <palves@redhat.com>
2416 Hui Zhu <hui@codesourcery.com>
2419 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2420 bp_err_string. Don't mark the location shlib_disabled if the
2421 error thrown wasn't a generic or memory error. Catch errors
2422 thrown while inserting breakpoints in overlayed code. Output
2423 error message of software breakpoints.
2424 * remote.c (remote_insert_breakpoint): If this breakpoint has
2425 target-side commands but this stub doesn't support Z0 packets,
2426 throw NOT_SUPPORTED_ERROR error.
2427 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2428 * target.h (target_insert_breakpoint): Extend comment.
2429 (target_insert_hw_breakpoint): Add comment.
2431 2014-01-08 Pedro Alves <palves@redhat.com>
2433 * remote.c (remote_add_thread): Add threads silently if starting
2435 (remote_notice_new_inferior): If in all-stop, and starting up,
2436 don't call notice_new_inferior.
2437 (get_current_thread): New function, factored out from ...
2438 (add_current_inferior_and_thread): ... this. Adjust.
2439 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2440 found any thread, then select the remote's current thread as GDB's
2443 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2445 * NEWS: Create a new section for the next release branch.
2446 Rename the section of the current branch, now that it has
2449 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2451 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2452 * version.in: Bump version to 7.7.50.DATE-cvs.
2454 2014-01-08 Yao Qi <yao@codesourcery.com>
2456 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2457 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2458 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2460 2014-01-08 Yao Qi <yao@codesourcery.com>
2462 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2463 return value of bfd_get_filename to symbol_file_add_from_bfd.
2465 2014-01-08 Pierre Muller <muller@sourceware.org>
2468 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2469 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2470 to prim_record_mininal_symbol_and_info.
2471 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2472 in call to prim_record_minimal_symbol_and_info.
2473 (read_pe_exported_syms): Set index field of section_data.
2475 2014-01-07 Andrew Pinski <apinski@cavium.com>
2477 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2478 * features/aarch64.c: Regenerate.
2480 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2482 * target.c (return_null): Define.
2483 (update_current_target): Use it instead of return_zero for
2484 functions that return a pointer.
2486 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2488 * source.c (add_path): Fix check for duplicated paths in the previously
2491 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2493 * ada-lang.c: Remove duplicated include statements.
2494 * alphabsd-nat.c: Ditto.
2495 * amd64-darwin-tdep.c: Ditto.
2496 * amd64fbsd-nat.c: Ditto.
2497 * auto-load.c: Ditto.
2499 * breakpoint.c: Ditto.
2501 * fork-child.c: Ditto.
2502 * gdb_usleep.c: Ditto.
2503 * i386-darwin-tdep.c: Ditto.
2504 * i386fbsd-nat.c: Ditto.
2506 * inferior.c: Ditto.
2508 * linux-nat.c: Ditto.
2509 * linux-tdep.c: Ditto.
2510 * m68kbsd-nat.c: Ditto.
2511 * m68klinux-nat.c: Ditto.
2512 * microblaze-tdep.c: Ditto.
2513 * mips-linux-tdep.c: Ditto.
2514 * mn10300-tdep.c: Ditto.
2515 * nto-tdep.c: Ditto.
2516 * opencl-lang.c: Ditto.
2518 * printcmd.c: Ditto.
2519 * regcache.c: Ditto.
2520 * remote-m32r-sdi.c: Ditto.
2524 * tilegx-linux-nat.c: Ditto.
2525 * tilegx-tdep.c: Ditto.
2526 * tracepoint.c: Ditto.
2528 * vaxbsd-nat.c: Ditto.
2529 * windows-nat.c: Ditto.
2530 * xtensa-tdep.c: Ditto.
2532 2014-01-07 Yao Qi <yao@codesourcery.com>
2534 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2536 2014-01-07 Yao Qi <yao@codesourcery.com>
2537 Joel Brobecker <brobecker@adacore.com>
2539 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2540 (pdc_write_regs): Likewise.
2541 (fetch_regs_kernel_thread): Likewise.
2542 (store_regs_kernel_thread): Likewise.
2544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2546 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2547 tagged type objects to their actual type.
2549 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2551 * ada-valprint.c (print_field_values): Add "language" parameter.
2552 Update calls to print_field_values and print_variant_part.
2553 Pass new parameter "language" in call to val_print instead
2554 of "current_language". Replace call to ada_val_print by call
2556 (print_variant_part): Add "language" parameter.
2557 (ada_val_print_struct_union): Update call to print_field_values.
2559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2561 * ada-valprint.c (ui_memcpy): Delete.
2562 (ada_print_floating): Update documentation. Add empty line
2563 between between function documentation and implementation.
2564 Delete variable "buffer". Use ui_file_xstrdup in place of
2565 ui_file_put. Minor adjustments following this change.
2567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2569 * ada-valprint.c (ada_val_print_string): New function,
2570 extracted from ada_val_print_array.
2571 (ada_val_print_array): Replace extracted code by call
2572 to ada_val_print_string followed by a return. Move
2573 "else" branch to the function's top block.
2575 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2577 * ada-valprint.c (ada_val_print_array): Move implementation
2578 down. Rename parameter "offset" and "val" into "offset_aligned"
2579 and "original_value" respectively. Add parameter "offset".
2581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2583 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2584 re-organizing the code. Change the "???" message printed
2585 when target type is a TYPE_CODE_UNDEF into
2586 "<ref to undefined type>".
2588 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2590 * ada-valprint.c (print_record): Delete, implementation inlined...
2591 (ada_val_print_struct_union): ... here. Remove call to
2592 ada_check_typedef in inlined implementation.
2594 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2596 * ada-valprint.c (ada_val_print_gnat_array): New function,
2597 extracted from ada_val_print_1;
2598 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2599 (ada_val_print_flt, ada_val_print_struct_union)
2600 (ada_val_print_ref): Likewise.
2601 (ada_val_print_1): Delete variables i and elttype.
2602 Replace extracted-out code by call to corresponding
2605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2607 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2611 * ada-valprint.c (ada_val_print_1): Replace calls to
2612 ada_val_print_1 by calls to val_print.
2614 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2616 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2617 Update calls to self accordingly. Replace calls to c_val_print
2618 by calls to val_print.
2620 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2622 * ada-valprint.c (print_record): Delete declaration.
2623 (adjust_type_signedness, ada_val_print_1): Likewise.
2624 (ada_val_print): Move function implementation down.
2625 (print_variant_part, print_field_values, print_record):
2626 Move function implementation up.
2628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2630 * python/py-type.c (typy_get_name): New function.
2631 (type_object_getset): Add entry for attribute "name".
2632 * NEWS: Add entry mentioning this new attribute.
2634 2014-01-07 Yao Qi <yao@codesourcery.com>
2636 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2639 2014-01-07 Yao Qi <yao@codesourcery.com>
2641 * gnu-nat.c (info_port_rights): Add qualifier const to
2644 2014-01-07 Yao Qi <yao@codesourcery.com>
2646 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2648 2014-01-07 Yao Qi <yao@codesourcery.com>
2650 * gnu-nat.c (make_inf) Update declaration.
2651 (make_inf): Make it static.
2652 (inf_set_traced): Likewise.
2653 (inf_port_to_thread, inf_task_died_status): Likewise.
2655 2014-01-07 Yao Qi <yao@codesourcery.com>
2657 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2659 2014-01-07 Yao Qi <yao@codesourcery.com>
2661 * gnu-nat.c (_initialize_gnu_nat): Declare.
2663 2014-01-07 Yao Qi <yao@codesourcery.com>
2665 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2667 (struct gdbarch_info) <byte_order>: Change type to
2669 <byte_order_for_code>: Likewise.
2670 * gdbarch.c, gdbarch.h: Regenerated.
2672 2014-01-06 Sasha Smundak <asmundak@google.com>
2674 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2676 2014-01-06 Tom Tromey <tromey@redhat.com>
2678 * doublest.c (convert_doublest_to_floatformat): Use const, not
2680 * somread.c (som_symtab_read): Likewise.
2682 2014-01-07 Hui Zhu <hui@codesourcery.com>
2684 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2685 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2686 (gdb_bfd_fopen): Ditto.
2687 (gdb_bfd_openr): Ditto.
2688 (gdb_bfd_openw): Ditto.
2689 (gdb_bfd_openr_iovec): Ditto.
2690 (gdb_bfd_fdopenr): Ditto.
2691 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2692 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2694 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2696 * symfile-mem.c (symbol_file_add_from_memory): Removed
2697 gdb_bfd_stash_filename.
2699 2014-01-03 Doug Evans <dje@google.com>
2701 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2704 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2706 Update year range in copyright notice of all files.
2708 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2710 * top.c (print_gdb_version): Set copyright year to 2014.
2712 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2714 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2716 For older changes see ChangeLog-2013.
2722 version-control: never