1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5 * common/linux-btrace.h (linux_supports_btrace): Update.
6 * remote.c (remote_supports_btrace): Add "self" argument.
7 * target-delegates.c: Rebuild.
8 * target.c (target_supports_btrace): Remove.
9 * target.h (struct target_ops) <to_supports_btrace>: Add
11 (target_supports_btrace): New define.
13 2014-02-19 Tom Tromey <tromey@redhat.com>
15 * record-full.c (record_full_beneath_to_resume_ops)
16 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
17 (record_full_beneath_to_wait)
18 (record_full_beneath_to_store_registers_ops)
19 (record_full_beneath_to_store_registers)
20 (record_full_beneath_to_xfer_partial_ops)
21 (record_full_beneath_to_xfer_partial)
22 (record_full_beneath_to_insert_breakpoint_ops)
23 (record_full_beneath_to_insert_breakpoint)
24 (record_full_beneath_to_remove_breakpoint_ops)
25 (record_full_beneath_to_remove_breakpoint)
26 (record_full_beneath_to_stopped_by_watchpoint)
27 (record_full_beneath_to_stopped_data_address)
28 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
29 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
30 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
31 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
32 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
33 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
34 (tmp_to_stopped_data_address, tmp_to_async): Remove.
35 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
36 (record_full_resume, record_full_wait_1)
37 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
38 (record_full_store_registers, record_full_xfer_partial)
39 (record_full_insert_breakpoint, record_full_remove_breakpoint)
40 (record_full_async, record_full_core_xfer_partial): Use target
42 * target-delegates.c: Rebuild.
43 * target.c (current_xfer_partial): Remove.
44 (update_current_target): Do not INHERIT or de_fault
45 to_insert_breakpoint, to_remove_breakpoint,
46 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
47 to_is_async_p, to_async. Do not set to_xfer_partial field.
48 (default_xfer_partial): Simplify.
49 (current_xfer_partial): Remove.
50 (target_wait, target_resume): Simplify.
51 (find_default_can_async_p, find_default_is_async_p): Update.
52 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
53 to_xfer_partial, to_stopped_by_watchpoint,
54 to_stopped_data_address.
55 (target_store_registers): Simplify.
56 (forward_target_remove_breakpoint)
57 (forward_target_insert_breakpoint): Remove.
58 (target_remove_breakpoint, target_insert_breakpoint)
59 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
60 * target.h (struct target_ops) <to_resume, to_wait,
61 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
62 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
63 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
65 (forward_target_remove_breakpoint)
66 (forward_target_insert_breakpoint): Remove.
67 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
69 (record_btrace_insert_breakpoint): Delegate directly.
71 2014-02-19 Tom Tromey <tromey@redhat.com>
74 * target-delegates.c: New file.
75 * target.c: Include target-delegates.c.
76 (init_dummy_target): Call install_dummy_methods.
77 (complete_target_initialization): Call install_delegators.
78 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
79 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
80 * make-target-delegates: New file.
82 2014-02-19 Tom Tromey <tromey@redhat.com>
84 * record.c (find_record_target): Use find_target_at.
85 * target.c (find_target_at): New function.
86 * target.h (find_target_at): Declare.
88 2014-02-19 Tom Tromey <tromey@redhat.com>
90 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
92 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
94 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
95 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
97 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
99 * linux-nat.c (save_sigtrap): Update.
100 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
101 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
102 (linux_nat_close): Update.
103 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
105 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
107 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
108 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
109 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
110 (tmp_to_async): Add 'ops' argument.
111 (record_full_stopped_by_watchpoint, record_full_async)
112 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
114 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
115 (m32r_stopped_by_watchpoint): Add 'ops' argument.
116 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
117 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
118 (remote_is_async_p, remote_async): Add 'ops' argument.
119 (remote_stopped_data_address): Update.
120 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
121 * target.c (update_current_target)
122 (find_default_can_async_p, find_default_is_async_p): Update.
123 (init_dummy_target): Update.
124 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
125 * target.h (struct target_ops) <to_stopped_by_watchpoint,
126 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
127 (target_can_async_p, target_is_async_p, target_async)
128 (target_stopped_by_watchpoint): Update.
130 2014-02-19 Yao Qi <yao@codesourcery.com>
133 * gdbarch.sh: Remove startup_gdbarch.
134 * gdbarch.c: Regenerated.
135 * gdbarch.h: Likewise.
137 2014-02-17 Kevin Buettner <kevinb@redhat.com>
139 * rl78-tdep.c (rl78_g10_register_name): New function.
140 (rl78_return_value): Add g10 support.
141 (rl78_gdbarch_init): Register rl78_g10_register_name for the
144 2014-02-17 Doug Evans <xdje42@gmail.com>
146 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
147 (SUBDIR_GUILE_SRCS): Ditto.
148 (scm-gsmob.o): Ditto.
150 2014-02-17 Yao Qi <yao@codesourcery.com>
152 * gnu-nat.c (ILL_RPC): Declare defined function.
154 2014-02-17 Yao Qi <yao@codesourcery.com>
156 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
157 mach_msg_type_number_t.
158 (gnu_write_inferior): Likewise.
160 2014-02-17 Yao Qi <yao@codesourcery.com>
162 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
164 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
165 (inf_validate_procs, inf_signal): Likewise.
166 (S_exception_raise_request): Likewise.
167 (do_mach_notify_dead_name): Likewise.
168 (steal_exc_port): Likewise.
169 (gnu_read_inferior): Change 'copy_count''s type to
170 mach_msg_type_number_t.
171 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
174 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
176 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
177 flag. Adjust all users; in particular...
178 (gnu_wait): ..., don't decrement its value in here...
179 (gnu_create_inferior): ..., and instead set the flag in here,
180 around the startup_inferior call, and call that one with
181 START_INFERIOR_TRAPS_EXPECTED.
183 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
184 (ILL_RPC): ... new macro.
185 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
186 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
187 (do_mach_notify_send_once, S_proc_setmsgport_reply)
188 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
189 functions with ILL_RPC macro.
190 (S_proc_pid2task_reply, S_proc_task2pid_reply)
191 (S_proc_task2proc_reply, S_proc_proc2task_reply)
192 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
193 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
194 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
195 (S_proc_getlogin_reply, S_proc_getsid_reply)
196 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
197 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
198 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
199 (S_proc_getnports_reply, S_proc_is_important_reply)
200 (S_proc_get_code_reply): New stub functions, generated with
203 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
204 collected the type check structures.
206 * reply_mig_hack.awk: Don't expect to see the auto keyword.
208 2014-02-14 Doug Evans <dje@google.com>
210 * target.c (target_write_partial): Fix result type.
212 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
214 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
215 the proper offsets to access fpregset_t.
217 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
219 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
220 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
221 * h8300-tdep.c (setmachinelist): Remove global.
222 * hppa-tdep.c (hppa_sigtramp): Remove global.
223 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
224 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
225 * ravenscar-thread.c (update_target_observer): Remove global.
226 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
228 2014-02-12 Tom Tromey <tromey@redhat.com>
230 * common/rsp-low.c: Update comments.
231 * common/rsp-low.h: Update comments.
233 2014-02-12 Tom Tromey <tromey@redhat.com>
235 * common/rsp-low.c (convert_ascii_to_int): Remove.
236 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
238 2014-02-12 Tom Tromey <tromey@redhat.com>
240 * common/rsp-low.h (unhexify): Don't declare.
241 * common/rsp-low.c (unhexify): Remove.
243 2014-02-12 Tom Tromey <tromey@redhat.com>
245 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
246 * common/rsp-low.c (convert_int_to_ascii): Remove.
248 2014-02-12 Tom Tromey <tromey@redhat.com>
250 * common/rsp-low.h (hexify): Don't declare.
251 * common/rsp-low.c (hexify): Remove.
253 2014-02-12 Tom Tromey <tromey@redhat.com>
255 * common/rsp-low.c (hexify): Never take strlen of argument.
257 2014-02-12 Tom Tromey <tromey@redhat.com>
259 * common/rsp-low.c (bin2hex): Never take strlen of argument.
260 * remote.c (extended_remote_run, remote_rcmd)
261 (remote_download_trace_state_variable, remote_save_trace_data)
262 (remote_set_trace_notes): Update.
263 * tracepoint.c (encode_source_string, tfile_write_status)
264 (tfile_write_uploaded_tsv): Update.
266 2014-02-12 Tom Tromey <tromey@redhat.com>
268 * tracepoint.c: Include rsp-low.h.
269 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
270 * remote.c: Include rsp-low.h.
271 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
272 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
273 (remote_unescape_input): Move to common/rsp-low.c.
274 * common/rsp-low.h: New file.
275 * common/rsp-low.c: New file.
276 * Makefile.in (SFILES): Add common/rsp-low.c.
277 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
278 (COMMON_OBS): Add rsp-low.o.
279 (rsp-low.o): New target.
281 2014-02-12 Tom Tromey <tromey@redhat.com>
283 * utils.h: Include print-utils.h.
284 (host_address_to_string, plongest, pulongest, phex, phex_nz)
285 (int_string, core_addr_to_string, core_addr_to_string_nz)
286 (hex_string, hex_string_custom): Don't declare.
287 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
288 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
289 (hex_string_custom, int_string, core_addr_to_string)
290 (core_addr_to_string_nz, host_address_to_string): Move to
291 common/print-utils.c.
292 * common/print-utils.h: New file.
293 * common/print-utils.c: New file
294 * Makefile.in (SFILES): Add common/print-utils.c.
295 (HFILES_NO_SRCDIR): Add common/print-utils.h.
296 (COMMON_OBS): Add print-utils.o.
297 (print-utils.o): New target.
299 2014-02-12 Tom Tromey <tromey@redhat.com>
301 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
303 2014-02-12 Mark Kettenis <kettenis@gnu.org>
305 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
307 2014-02-12 Mark Kettenis <kettenis@gnu.org>
309 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
310 if a PT_IO ptrace request returns sucessfully but indicates that 0
311 bytes were transferred.
313 2014-02-12 Pedro Alves <palves@redhat.com>
314 Kevin Buettner <kevinb@redhat.com>
316 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
317 TYPE_INSTANCE_FLAG_CODE_SPACE.
319 2014-02-12 Pedro Alves <palves@redhat.com>
321 * h8300-tdep.c (pseudo_from_raw_register)
322 (raw_from_pseudo_register): New functions.
323 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
326 2014-02-12 Pedro Alves <palves@redhat.com>
328 * h8300-tdep.c (h8300_register_sim_regno): New function.
329 (h8300_gdbarch_init): Install h8300_register_sim_regno as
330 gdbarch_register_sim_regno hook.
332 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
334 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
336 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
338 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
340 2014-02-12 Mark Kettenis <kettenis@gnu.org>
342 * obsd-tdep.h (obsd_init_abi): New prototype.
343 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
344 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
345 (obsd_init_abi): New functions.
346 * i386obsd-tdep.c: Include "obsd-tdep.h".
347 (i386obsd_init_abi): Call obsd_init_abi.
348 * amd64obsd-tdep.c: Include "obsd-tdep.h".
349 (amd64obsd_init_abi): Call obsd_init_abi.
350 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
351 obsd-tdep.c to gdb_target_obs.
353 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
355 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
356 double float arguments to 16-byte in the argument slots.
358 2014-02-11 Doug Evans <xdje42@gmail.com>
360 * configure.ac: Don't crash if pkg-config is not found and guile
361 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
363 * configure: Regenerate.
365 2014-02-11 Yao Qi <yao@codesourcery.com>
367 * aix-thread.c (aix_thread_xfer_partial): Update comments.
368 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
369 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
370 * gnu-nat.c (gnu_xfer_memory): Likewise.
371 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
372 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
373 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
374 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
376 2014-02-11 Yao Qi <yao@codesourcery.com>
378 * target.h (enum target_xfer_error): Rename to ...
379 (enum target_xfer_status): ... it. New. All users updated.
380 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
382 (TARGET_XFER_STATUS_ERROR_P): New macro.
383 (target_xfer_error_to_string): Remove declaration.
384 (target_xfer_status_to_string): Declare.
385 (target_xfer_partial_ftype): Adjust it.
386 (struct target_ops) <to_xfer_partial>: Return
387 target_xfer_status. Add argument xfered_len. Update
389 * target.c (target_xfer_error_to_string): Rename to ...
390 (target_xfer_status_to_string): ... it. New. All callers
392 (target_read_live_memory): Likewise. Call target_xfer_partial
393 instead of target_read.
394 (memory_xfer_live_readonly_partial): Return
395 target_xfer_status. Add argument xfered_len.
396 (raw_memory_xfer_partial): Likewise.
397 (memory_xfer_partial_1): Likewise.
398 (memory_xfer_partial): Likewise.
399 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
400 properly. Update debug message.
401 (default_xfer_partial, current_xfer_partial): Likewise.
402 (target_write_partial): Likewise.
403 (target_read_partial): Likewise. All callers updated.
404 (read_whatever_is_readable): Likewise.
405 (target_write_with_progress): Likewise.
406 (target_read_alloc_1): Likewise.
408 * aix-thread.c (aix_thread_xfer_partial): Likewise.
409 * auxv.c (procfs_xfer_auxv): Likewise.
410 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
411 * bfd-target.c (target_bfd_xfer_partial): Likewise.
412 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
413 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
414 * corefile.c (read_memory): Adjust.
415 * corelow.c (core_xfer_partial): Likewise.
416 * ctf.c (ctf_xfer_partial): Likewise.
417 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
419 (darwin_xfer_partial): Likewise.
420 * exec.c (section_table_xfer_memory_partial): Likewise. All
422 (exec_xfer_partial): Likewise.
423 * exec.h (section_table_xfer_memory_partial): Update
425 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
427 (gnu_xfer_partial): Likewise.
428 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
429 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
430 (ia64_hpux_xfer_solib_got): Likewise.
431 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
432 type of 'partial_len' to ULONGEST.
433 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
434 * linux-nat.c (linux_xfer_siginfo ): Likewise.
435 (linux_nat_xfer_partial): Likewise.
436 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
437 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
438 * monitor.c (monitor_xfer_memory): Likewise.
439 (monitor_xfer_partial): Likewise.
440 * procfs.c (procfs_xfer_partial): Likewise.
441 * record-btrace.c (record_btrace_xfer_partial): Likewise.
442 * record-full.c (record_full_xfer_partial): Likewise.
443 (record_full_core_xfer_partial): Likewise.
444 * remote-sim.c (gdbsim_xfer_memory): Likewise.
445 (gdbsim_xfer_partial): Likewise.
446 * remote.c (remote_write_bytes_aux): Likewise. All callers
448 (remote_write_bytes, remote_read_bytes): Likewise. All
450 (remote_flash_erase): Likewise. All callers updated.
451 (remote_write_qxfer): Likewise. All callers updated.
452 (remote_read_qxfer): Likewise. All callers updated.
453 (remote_xfer_partial): Likewise.
454 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
455 (rs6000_xfer_shared_libraries): Likewise.
456 * sol-thread.c (sol_thread_xfer_partial): Likewise.
457 (sol_thread_xfer_partial): Likewise.
458 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
459 (sparc_xfer_partial): Likewise.
460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
462 (spu_xfer_partial): Likewise.
463 * spu-multiarch.c (spu_xfer_partial): Likewise.
464 * tracepoint.c (tfile_xfer_partial): Likewise.
465 * windows-nat.c (windows_xfer_memory): Likewise.
466 (windows_xfer_shared_libraries): Likewise.
467 (windows_xfer_partial): Likewise.
468 * valprint.c: Replace 'target_xfer_error' with
469 'target_xfer_status' in comments.
471 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
473 Checked in by Joel Brobecker <brobecker@adacore.com>.
474 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
476 2014-02-11 Joel Brobecker <brobecker@adacore.com>
478 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
481 2014-02-10 Will Newton <will.newton@linaro.org>
483 * elfread.c (elf_rel_plt_read): Look for a .got section if
484 looking up .got.plt fails.
485 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
486 on address passed to elf_gnu_ifunc_record_cache.
487 (elf_gnu_ifunc_resolve_addr): Likewise.
488 (elf_gnu_ifunc_resolver_return_stop): Likewise.
490 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
492 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
493 (X_RETTURN): New macro.
494 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
496 * sparc64-tdep.c (sparc64_init_abi): Hook
497 sparc_in_function_epilogue_p.
499 2014-02-10 Gary Benson <gbenson@redhat.com>
501 * symfile-debug.c (debug_qf_expand_symtabs_matching):
502 Rename name_matcher to symbol_matcher.
504 2014-02-10 Gary Benson <gbenson@redhat.com>
506 * symfile-debug.c (debug_qf_expand_symtabs_matching):
507 Use expand_symtabs_file_matcher_ftype and
508 expand_symtabs_symbol_matcher_ftype.
510 2014-02-10 Joel Brobecker <brobecker@adacore.com>
512 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
513 (struct ada_symbol_cache): New.
514 (ada_free_symbol_cache): Forward declare.
515 (struct ada_pspace_data): New.
516 (ada_pspace_data_handle): New static global.
517 (get_ada_pspace_data, ada_pspace_data_cleanup)
518 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
519 (cache_space, cache): Delete, now folded inside struct
521 (ada_get_symbol_cache): New function.
522 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
524 (_initialize_ada_language): Remove initialization of cache_space.
525 Move call to observer_attach_inferior_exit up, grouping it
526 with the other observer registrations inside this function.
527 Rename command to be more general. Add call to
528 register_program_space_data_with_cleanup.
530 2014-02-10 Joel Brobecker <brobecker@adacore.com>
532 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
533 ada_new_objfile_observer.
534 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
535 (_initialize_tasks): Update uses of ada_new_objfile_observer
536 and ada_tasks_normal_stop_observer.
538 2014-02-10 Joel Brobecker <brobecker@adacore.com>
540 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
541 returned by the 'Length attribute to integer.
543 2014-02-10 Joel Brobecker <brobecker@adacore.com>
545 * ada-lang.c (_initialize_ada_language): Initialize
548 2014-02-10 Joel Brobecker <brobecker@adacore.com>
550 * ada-lang.c (HASH_SIZE): New macro.
551 (struct cache_entry): New type.
552 (cache_space, cache): New static globals.
553 (ada_clear_symbol_cache, find_entry): New functions.
554 (lookup_cached_symbol, cache_symbol): Implement.
555 (ada_new_objfile_observer, ada_free_objfile_observer): New.
556 (_initialize_ada_language): Attach ada_new_objfile_observer
557 and ada_free_objfile_observer.
559 2014-02-10 Joel Brobecker <brobecker@adacore.com>
561 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
562 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
563 struct block * parameter.
564 (ada_lookup_symbol_list_worker): Constify local variable "block".
565 Remove cast which is no longer necessary.
567 2014-02-10 Doug Evans <xdje42@gmail.com>
569 Add Guile as an extension language.
570 * NEWS: Mention Guile scripting.
571 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
572 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
573 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
574 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
575 (CLIBS): Add GUILE_LIBS.
576 (install-guile): New rule.
578 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
579 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
580 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
581 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
582 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
583 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
584 (scm-type.o, scm-utils.o, scm-value.o): New rules.
585 * configure.ac: New option --with-guile.
586 * configure: Regenerate.
587 * config.in: Regenerate.
588 * auto-load.c: Remove #include "python/python.h". Add #include
589 "gdb/section-scripts.h".
590 (source_section_scripts): Handle Guile scripts.
591 (_initialize_auto_load): Add name of Guile objfile script to
592 scripts-directory help text.
593 * breakpoint.c (condition_command): Tweak comment to include Scheme.
594 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
595 (struct breakpoint): New member scm_bp_object.
596 * defs.h (enum command_control_type): New value guile_control.
597 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
599 (show_user): Update comment.
600 (_initialize_cli_cmds): Update help text for "show user". Update help
601 text for max-user-call-depth.
602 * cli/cli-script.c: Remove #include "python/python.h". Add #include
604 (multi_line_command_p): Add guile_control.
605 (print_command_lines): Handle guile_control.
606 (execute_control_command, recurse_read_control_structure): Ditto.
607 (process_next_line): Recognize "guile" commands.
608 * disasm.c (gdb_disassemble_info): Make non-static.
609 * disasm.h: #include "dis-asm.h".
610 (struct gdbarch): Add forward decl.
611 (gdb_disassemble_info): Declare.
612 * extension.c: #include "guile/guile.h".
613 (extension_languages): Add guile.
614 (get_ext_lang_defn): Handle EXT_LANG_GDB.
615 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
616 * gdbtypes.c (get_unsigned_type_max): New function.
617 (get_signed_type_minmax): New function.
618 * gdbtypes.h (get_unsigned_type_max): Declare.
619 (get_signed_type_minmax): Declare.
620 * guile/README: New file.
621 * guile/guile-internal.h: New file.
622 * guile/guile.c: New file.
623 * guile/guile.h: New file.
624 * guile/scm-arch.c: New file.
625 * guile/scm-auto-load.c: New file.
626 * guile/scm-block.c: New file.
627 * guile/scm-breakpoint.c: New file.
628 * guile/scm-disasm.c: New file.
629 * guile/scm-exception.c: New file.
630 * guile/scm-frame.c: New file.
631 * guile/scm-gsmob.c: New file.
632 * guile/scm-iterator.c: New file.
633 * guile/scm-lazy-string.c: New file.
634 * guile/scm-math.c: New file.
635 * guile/scm-objfile.c: New file.
636 * guile/scm-ports.c: New file.
637 * guile/scm-pretty-print.c: New file.
638 * guile/scm-safe-call.c: New file.
639 * guile/scm-string.c: New file.
640 * guile/scm-symbol.c: New file.
641 * guile/scm-symtab.c: New file.
642 * guile/scm-type.c: New file.
643 * guile/scm-utils.c: New file.
644 * guile/scm-value.c: New file.
645 * guile/lib/gdb.scm: New file.
646 * guile/lib/gdb/boot.scm: New file.
647 * guile/lib/gdb/experimental.scm: New file.
648 * guile/lib/gdb/init.scm: New file.
649 * guile/lib/gdb/iterator.scm: New file.
650 * guile/lib/gdb/printing.scm: New file.
651 * guile/lib/gdb/types.scm: New file.
652 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
653 (VPATH): Add $(GUILE_SRCDIR).
654 (GUILE_DIR): New variable.
655 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
656 (all): Add stamp-guile dependency.
657 (stamp-guile): New rule.
658 (clean-guile, install-guile, uninstall-guile): New rules.
659 (install-only): Add install-guile dependency.
660 (uninstall): Add uninstall-guile dependency.
661 (clean): Add clean-guile dependency.
663 2014-02-09 Doug Evans <xdje42@gmail.com>
665 Revert this patch (which I approved, mea culpa).
667 2014-02-08 Mark Kettenis <kettenis@gnu.org>
669 * Makefile.in (all-lib): Remove.
670 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
672 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
674 Fix Python stack corruption.
675 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
678 2014-02-08 Mark Kettenis <kettenis@gnu.org>
680 * Makefile.in (all-lib): Remove.
681 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
683 2014-02-07 Doug Evans <dje@google.com>
685 * extension-priv.h (extension_language_script_ops): Add comment.
686 (extension_language_ops): Add comment.
687 (active_ext_lang_state): Fix typo in comment.
689 2014-02-07 Pedro Alves <palves@redhat.com>
691 * infrun.c (handle_signal_stop) <signal arrives while stepping
692 over a breakpoint>: Switch back to the stepping thread.
694 2014-02-07 Yao Qi <yao@codesourcery.com>
696 * target.c (target_xfer_partial): Return zero if LEN is zero.
698 2014-02-07 Yao Qi <yao@codesourcery.com>
700 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
701 (ld_so_xfer_auxv): Likewise.
702 * bfd-target.c (target_bfd_xfer_partial): Likewise.
703 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
704 * corelow.c (core_xfer_partial): Likewise.
705 * ctf.c (ctf_xfer_partial): Likewise.
706 * darwin-nat.c (darwin_read_dyld_info): Likewise.
707 (darwin_xfer_partial): Likewise.
708 * exec.c (exec_xfer_partial): Likewise.
709 * gnu-nat.c (gnu_xfer_partial): Likewise.
710 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
711 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
712 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
713 * linux-nat.c (linux_xfer_siginfo): Likewise.
714 (linux_proc_xfer_spu): Likewise.
715 * procfs.c (procfs_xfer_partial): Likewise.
716 * record-full.c (record_full_xfer_partial): Likewise.
717 (record_full_core_xfer_partial): Likewise.
718 * remote-sim.c (gdbsim_xfer_partial): Likewise.
719 * remote.c (remote_write_qxfer): Likewise.
720 (remote_write_qxfer, remote_read_qxfer): Likewise.
721 (remote_xfer_partial): Likewise.
722 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
723 (rs6000_xfer_shared_libraries): Likewise.
724 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
725 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
726 (spu_xfer_partial): Likewise.
727 * target.c (memory_xfer_partial_1): Likewise.
728 * tracepoint.c (tfile_xfer_partial): Likewise.
729 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
730 (windows_xfer_partial): Likewise.
732 2014-02-07 Yao Qi <yao@codesourcery.com>
734 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
736 (core_xfer_shared_libraries_aix): Likewise.
737 * gdbarch.c, gdbarch.h: Regenerated.
738 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
739 ULONGEST. Change 'len_avail' type to ULONGEST.
740 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
741 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
743 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
745 2014-02-07 Yao Qi <yao@codesourcery.com>
747 * corefile.c (memory_error): Get 'exception' from ERR and pass
748 'exception' to throw_error.
750 2014-02-06 Doug Evans <xdje42@gmail.com>
752 * configure.ac (libpython checking): Remove all but python.o from
753 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
754 * configure: Regenerate.
756 * Makefile.in (SFILES): Add extension.c.
757 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
758 (COMMON_OBS): Add extension.o.
759 * extension.h: New file.
760 * extension-priv.h: New file.
761 * extension.c: New file.
763 * python/python-internal.h: #include "extension.h".
764 (gdbpy_auto_load_enabled): Declare.
765 (gdbpy_apply_val_pretty_printer): Declare.
766 (gdbpy_apply_frame_filter): Declare.
767 (gdbpy_preserve_values): Declare.
768 (gdbpy_breakpoint_cond_says_stop): Declare.
769 (gdbpy_breakpoint_has_cond): Declare.
770 (void source_python_script_for_objfile): Delete.
771 * python/python.c: #include "extension-priv.h".
772 Delete inclusion of "observer.h".
773 (extension_language_python): Moved here and renamed from
774 script_language_python in py-auto-load.c.
775 Redefined to be of type extension_language_defn.
776 (python_extension_script_ops): New global.
777 (python_extension_ops): New global.
778 (struct python_env): New member previous_active.
779 (restore_python_env): Call restore_active_ext_lang.
780 (ensure_python_env): Call set_active_ext_lang.
781 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
783 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
785 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
787 (gdbpy_eval_from_control_command): Renamed from
788 eval_python_from_control_command, made static. New arg extlang.
789 (gdbpy_source_script) Renamed from source_python_script, made static.
791 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
792 result to int. New arg extlang.
793 (gdbpy_source_objfile_script): Renamed from
794 source_python_script_for_objfile, made static. New arg extlang.
795 (gdbpy_start_type_printers): Renamed from start_type_printers, made
796 static. New args extlang, extlang_printers. Change result type to
798 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
799 static. New arg extlang. Rename arg printers to extlang_printers
800 and change type to ext_lang_type_printers *.
801 (gdbpy_free_type_printers): Renamed from free_type_printers, made
802 static. Replace argument arg with extlang, extlang_printers.
803 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
804 (!HAVE_PYTHON, source_python_script): Delete.
805 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
806 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
807 (!HAVE_PYTHON, start_type_printers): Delete.
808 (!HAVE_PYTHON, apply_type_printers): Delete.
809 (!HAVE_PYTHON, free_type_printers): Delete.
810 (_initialize_python): Delete call to observer_attach_before_prompt.
811 (finalize_python): Set/restore active extension language.
812 (gdbpy_finish_initialization) Renamed from
813 finish_python_initialization, made static. New arg extlang.
814 (gdbpy_initialized): New function.
815 * python/python.h: #include "extension.h". Delete #include
816 "value.h", "mi/mi-cmds.h".
817 (extension_language_python): Declare.
818 (GDBPY_AUTO_FILE_NAME): Delete.
819 (enum py_bt_status): Moved to extension.h and renamed to
821 (enum frame_filter_flags): Moved to extension.h.
822 (enum py_frame_args): Moved to extension.h and renamed to
824 (finish_python_initialization): Delete.
825 (eval_python_from_control_command): Delete.
826 (source_python_script): Delete.
827 (apply_val_pretty_printer): Delete.
828 (apply_frame_filter): Delete.
829 (preserve_python_values): Delete.
830 (gdbpy_script_language_defn): Delete.
831 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
832 (start_type_printers, apply_type_printers, free_type_printers): Delete.
834 * auto-load.c: #include "extension.h".
835 (GDB_AUTO_FILE_NAME): Delete.
836 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
837 (script_language_gdb): Delete, moved to extension.c and renamed to
838 extension_language_gdb.
839 (source_gdb_script_for_objfile): Delete.
840 (auto_load_pspace_info): New member unsupported_script_warning_printed.
841 (loaded_script): Change type of language member to
842 struct extension_language_defn *.
843 (init_loaded_scripts_info): Initialize
844 unsupported_script_warning_printed.
845 (maybe_add_script): Make static. Change type of language arg to
846 struct extension_language_defn *.
847 (clear_section_scripts): Reset unsupported_script_warning_printed.
848 (auto_load_objfile_script_1): Rewrite to use extension language API.
849 (auto_load_objfile_script): Make public. Remove support-compiled-in
850 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
851 (source_section_scripts): Rewrite to use extension language API.
852 (load_auto_scripts_for_objfile): Rewrite to use
853 auto_load_scripts_for_objfile.
854 (collect_matching_scripts_data): Change type of language member to
855 struct extension_language_defn *.
856 (auto_load_info_scripts): Change type of language arg to
857 struct extension_language_defn *.
858 (unsupported_script_warning_print): New function.
859 (script_not_found_warning_print): Make static.
860 (_initialize_auto_load): Rewrite construction of scripts-directory
862 * auto-load.h (struct objfile): Add forward decl.
863 (struct script_language): Delete.
864 (struct auto_load_pspace_info): Add forward decl.
865 (struct extension_language_defn): Add forward decl.
866 (maybe_add_script): Delete.
867 (auto_load_objfile_script): Declare.
868 (script_not_found_warning_print): Delete.
869 (auto_load_info_scripts): Update prototype.
870 (auto_load_gdb_scripts_enabled): Declare.
871 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
872 auto_load_python_scripts_enabled and made public.
873 (script_language_python): Delete, moved to python.c.
874 (gdbpy_script_language_defn): Delete.
875 (info_auto_load_python_scripts): Update to use
876 extension_language_python.
878 * breakpoint.c (condition_command): Replace call to
879 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
880 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
881 with call to breakpoint_ext_lang_cond_says_stop.
882 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
883 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
884 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
885 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
887 (local_setattro): Print name of extension language with existing
890 * valprint.c (val_print, value_print): Update to call
891 apply_ext_lang_val_pretty_printer.
892 * cp-valprint.c (cp_print_value): Update call to
893 apply_ext_lang_val_pretty_printer.
894 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
895 (gdbpy_apply_val_pretty_printer): Renamed from
896 apply_val_pretty_printer. New arg extlang.
897 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
899 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
900 extension language API.
901 * cli/cli-script.c (execute_control_command): Update to call
902 eval_ext_lang_from_control_command.
904 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
905 enum ext_lang_bt_status values. Update call to
906 apply_ext_lang_frame_filter.
907 (mi_cmd_stack_list_locals): Ditto.
908 (mi_cmd_stack_list_args): Ditto.
909 (mi_cmd_stack_list_variables): Ditto.
910 * mi/mi-main.c: Delete #include "python/python-internal.h".
911 Add #include "extension.h".
912 (mi_cmd_list_features): Replace reference to python internal variable
913 gdb_python_initialized with call to ext_lang_initialized_p.
915 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
916 Update to use enum ext_lang_frame_args. Update to call
917 apply_ext_lang_frame_filter.
918 * python/py-framefilter.c (extract_sym): Update to use enum
920 (extract_value, py_print_type, py_print_value): Ditto.
921 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
922 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
923 (py_print_frame): Ditto.
924 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
925 New arg extlang. Update to use enum ext_lang_bt_status.
927 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
928 finish_python_initialization. Replace with call to
929 finish_ext_lang_initialization.
931 * typeprint.c (do_free_global_table): Update to call
932 free_ext_lang_type_printers.
933 (create_global_typedef_table): Update to call
934 start_ext_lang_type_printers.
935 (find_global_typedef): Update to call apply_ext_lang_type_printers.
936 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
937 (type_print_options): Change type of global_printers from "void *"
938 to "struct ext_lang_type_printers *".
940 * value.c (preserve_values): Update to call preserve_ext_lang_values.
941 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
942 (gdbpy_preserve_values): Renamed from preserve_python_values.
944 (!HAVE_PYTHON, preserve_python_values): Delete.
946 * utils.c (quit_flag): Delete, moved to extension.c.
947 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
950 * eval.c: Delete #include "python/python.h".
951 * main.c: Delete #include "python/python.h".
953 * defs.h: Update comment.
955 2014-02-06 Joel Brobecker <brobecker@adacore.com>
959 2014-02-05 Mark Kettenis <kettenis@gnu.org>
961 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
964 2014-02-05 Yao Qi <yao@codesourcery.com>
966 * remote.c (remote_pass_signals): Remove local 'buf' and use
968 (remote_program_signals): Likewise.
970 2014-02-05 Yao Qi <yao@codesourcery.com>
972 * ctf.c: Include "inferior.h" and "gdbthread.h".
973 (CTF_PID): A new macro.
974 (ctf_open): Call inferior_appeared and add_thread_silent.
975 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
976 (ctf_thread_alive): New function.
977 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
979 2014-02-05 Yao Qi <yao@codesourcery.com>
983 2013-05-24 Yao Qi <yao@codesourcery.com>
985 * tracepoint.c (TFILE_PID): Remove.
986 (tfile_open): Don't add thread and inferior.
987 (tfile_close): Don't set 'inferior_ptid'. Don't call
988 exit_inferior_silent.
989 (tfile_thread_alive): Remove.
990 (init_tfile_ops): Don't set field 'to_thread_alive' of
993 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
995 * remote.c (remote_start_remote): Call remote_check_symbols even
996 if only symbol-file (not file) has been given.
998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1000 * gdbarch.sh (skip_entrypoint): New callback.
1001 * gdbarch.c, gdbarch.h: Regenerate.
1002 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1003 * infrun.c (fill_in_stop_func): Likewise.
1004 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1005 (ppc_elfv2_elf_make_msymbol_special): New function.
1006 (ppc_elfv2_skip_entrypoint): Likewise.
1007 (ppc_linux_init_abi): Install them for ELFv2.
1009 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1011 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1012 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1013 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1014 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1015 structures returned in GPRs.
1017 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1019 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1020 offset to the stack parameter list for the ELFv2 ABI.
1022 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1024 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1025 set_gdbarch_convert_from_func_ptr_addr and
1026 set_gdbarch_elf_make_msymbol_special for ELFv1.
1027 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1028 function descriptors on ELFv1.
1029 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1030 set up r12 at function entry.
1032 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1034 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1035 (struct gdbarch_tdep): New member elf_abi.
1037 * rs6000-tdep.c: Include "elf/ppc64.h".
1038 (rs6000_gdbarch_init): Detect ELF ABI version.
1040 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1043 within a register pair holding a DFP 128-bit value on little-endian.
1044 (ppc64_sysv_abi_return_value_base): Likewise.
1045 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1046 (dfp_pseudo_register_write): Likewise.
1048 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1050 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1051 offset on little-endian when passing _Decimal32.
1052 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1054 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1056 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1057 of the overlapped FP register within the VSX register on little-
1059 (efpr_pseudo_register_write): Likewise.
1061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1063 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1064 offset on little-endian when passing small structures.
1066 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1068 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1069 (struct ppc64_sysv_argpos): New data structure.
1070 (ppc64_sysv_abi_push_float): Remove.
1071 (ppc64_sysv_abi_push_val): New function.
1072 (ppc64_sysv_abi_push_integer): Likewise.
1073 (ppc64_sysv_abi_push_freg): Likewise.
1074 (ppc64_sysv_abi_push_vreg): Likewise.
1075 (ppc64_sysv_abi_push_param): Likewise.
1076 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1077 (ppc64_sysv_abi_return_value_base): New function.
1078 (ppc64_sysv_abi_return_value): Refactor to use it.
1080 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1082 * NEWS: Document new target powerpc64le-*-linux*.
1084 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1086 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1087 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1089 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1090 register set used in ELF core dumps. Add floating-point register set.
1092 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1094 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1095 dwarf2_to_gdb[] table using symbolic constants. Adjust
1096 penultimate entry from number representing the PC register
1097 to symbolic constant representing the MDR register. Add
1098 constant for the PC register to the end of the table.
1100 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1102 * bsd-kvm.c: Include <sys/param.h>
1104 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1106 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1108 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1110 * ada-lang.h (clear_ada_sym_cache): Delete.
1112 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1114 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1116 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1118 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1119 the sigreturn register save area only if the syscall is
1122 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1124 * valops.c (value_slice): Minor reformatting.
1126 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1128 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1130 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1132 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1134 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1135 (ada_ignore_descriptive_types_p): New static global.
1136 (find_parallel_type_by_descriptive_type): Return immediately
1137 if ada_ignore_descriptive_types_p is set.
1138 (_initialize_ada_language): Register new commands "maintenance
1139 set ada", "maintenance show ada", "maintenance set ada
1140 ignore-descriptive-types" and "maintenance show ada
1141 ignore-descriptive-types".
1142 * NEWS: Add entry for new "maint ada set/show
1143 ignore-descriptive-types" commands.
1145 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1147 * record-btrace.c (record_btrace_close): Call btrace_teardown
1150 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1152 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1155 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1157 * ada-typeprint (type_is_full_subrange_of_target_type):
1159 (print_range): Add parameter bounds_prefered_p. If not set,
1160 try printing range types using the name of their base type.
1161 (print_range_type): Add parameter bounds_prefered_p.
1162 Use it in call to print_range.
1163 (print_array_type, ada_print_type): Update calls to print_range
1164 and print_range_type.
1166 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1168 * ada-typeprint.c (print_array_type, print_choices, print_range)
1169 (print_range_bound, print_dynamic_range_bound, print_range_type):
1172 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1174 * ada-typeprint.c (print_range): Add missing empty line
1175 after local declaration.
1177 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1179 * ada-valprint.c (print_optional_low_bound): Get index_type's
1180 target type for as long as it is a TYPE_CODE_RANGE.
1182 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1184 * procfs.c (procfs_make_note_section): Remove assertion and
1187 2014-01-24 Yao Qi <yao@codesourcery.com>
1189 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1190 * corelow.c (get_core_siginfo): Likewise.
1192 2014-01-24 Yao Qi <yao@codesourcery.com>
1194 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1195 ULONGEST. Don't check 'len' is negative.
1196 (remote_write_bytes): Change type of 'len' to ULONGEST.
1198 2014-01-23 Tom Tromey <tromey@redhat.com>
1201 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1202 Handle exception from frame.block.
1203 (FrameVars.fetch_frame_locals): Likewise.
1205 2014-01-23 Tom Tromey <tromey@redhat.com>
1208 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1209 on a NULL pointer. Move "goto error" to correct place.
1211 2014-01-23 Tom Tromey <tromey@redhat.com>
1214 * python/py-framefilter.c (apply_frame_filter): Call
1215 ensure_python_env after computing gdbarch.
1217 2014-01-23 Yao Qi <yao@codesourcery.com>
1219 * target.c (raw_memory_xfer_partial): Change argument type
1220 from void * to gdb_byte *.
1221 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1223 2014-01-22 Doug Evans <dje@google.com>
1225 New gdbserver option --debug-format=timestamp.
1228 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1230 * syscalls/s390x-linux.xml: New file.
1231 * syscalls/s390-linux.xml: New file.
1232 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1233 (XML_SYSCALL_FILENAME_S390X): Likewise.
1234 (op_svc): New enum value for SVC opcode.
1235 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1236 (s390_linux_get_syscall_number): New function.
1237 (s390_gdbarch_init): Register '*get_syscall_number' and the
1238 syscall xml file name.
1239 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1240 "s390-linux.xml" and "s390x-linux.xml".
1241 * NEWS: Announce new feature.
1243 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1245 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1247 2014-01-22 Pedro Alves <palves@redhat.com>
1249 * xtensa-config.c: Include defs.h.
1251 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1253 * common/common-utils.h: Add "ARI:" comment beside __func__
1256 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1258 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1259 documentation a bit.
1261 2014-01-21 Roland McGrath <mcgrathr@google.com>
1263 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1264 * configure: Regenerate.
1265 * aclocal.m4: Regenerate.
1266 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1267 New substituted variables.
1268 (install-strip): New target.
1269 (INSTALL_SCRIPT): New substituted variable.
1270 (FLAGS_TO_PASS): Add it.
1271 (install-only): Use $(INSTALL_SCRIPT) rather than
1272 $(INSTALL_PROGRAM) for gcore.
1274 2014-01-20 Tom Tromey <tromey@redhat.com>
1276 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1279 2014-01-20 Tom Tromey <tromey@redhat.com>
1281 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1282 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1283 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1284 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1285 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1286 (struct cmd_list_element) <flags>: Remove.
1287 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1288 doc_allocated>: New fields.
1289 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1291 * maint.c (maintenance_do_deprecate): Update.
1292 * top.c (execute_command): Update.
1294 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1296 * xtensa-linux-nat.c: Include asm/ptrace.h.
1298 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1300 * Makefile.in (SFILES): Add d-support.c.
1301 (COMMON_OBS): Add d-support.o.
1302 * d-lang.h (d_parse_symbol): Add comment, now defined in
1304 * d-lang.c (parse_call_convention)
1305 (parse_attributes, parse_function_types)
1306 (parse_function_args, parse_type, parse_identifier)
1307 (call_convention_p, d_parse_symbol): Move functions to ...
1308 * d-support.c: ... New file.
1310 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1312 * d-lang.h (d_parse_symbol): Add declaration.
1313 * d-lang.c (extract_identifiers)
1314 (extract_type_info): Remove functions.
1315 (parse_call_convention, parse_attributes)
1316 (parse_function_types, parse_function_args)
1317 (parse_type, parse_identifier, call_convention_p)
1318 (d_parse_symbol): New functions.
1319 (d_demangle): Use d_parse_symbol to demangle D symbols.
1321 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1323 * d-lang.h (struct builtin_d_type): New data type.
1324 (builtin_d_type): Add declaration.
1325 * d-lang.c (d_language_arch_info, build_d_types)
1326 (builtin_d_type): New functions.
1327 (enum d_primitive_types): New data type.
1328 (d_language_defn): Change c_language_arch_info to
1329 d_language_arch_info.
1330 (d_type_data): New static variable.
1331 (_initialize_d_language): Initialize d_type_data.
1333 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1335 * d-lang.h (d_main_name): Add declaration.
1336 * d-lang.c (d_main_name): New function.
1337 * symtab.c (find_main_name): Add call to d_main_name.
1339 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1341 * d-lang.c (d_language_defn): Change macro_expansion_c to
1344 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1346 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1348 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1350 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1351 gdb_exception" declaration.
1352 * remote.c (getpkt_or_notif_sane): Likewise.
1354 2014-01-17 Doug Evans <dje@google.com>
1356 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1357 function, contents of dirnames_to_char_ptr_vec_append moved here.
1358 (delim_string_to_char_ptr_vec): New function.
1359 (dirnames_to_char_ptr_vec_append): Rewrite.
1360 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1362 2014-01-17 Doug Evans <dje@google.com>
1364 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1366 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1367 #include "common-utils.h".
1368 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1369 * common/vec.h (VEC_ASSERT_PASS): Update.
1370 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1371 (MACH_CHECK_ERROR): Update.
1373 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1375 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1377 * gdbarch.h: Regenerate.
1379 2014-01-16 Tom Tromey <tromey@redhat.com>
1381 * value.c (struct value) <regnum>: Move earlier.
1383 2014-01-16 Tom Tromey <tromey@redhat.com>
1385 * remote.c (extended_remote_create_inferior): Rename from
1386 extended_remote_create_inferior_1. Add "ops" argument. Remove
1389 2014-01-16 Pedro Alves <palves@redhat.com>
1391 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1392 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1395 2014-01-16 Doug Evans <dje@google.com>
1397 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1401 * btrace.h (btrace_thread_flag): New.
1402 (struct btrace_thread_info) <flags>: New.
1403 * record-btrace.c (record_btrace_resume_thread)
1404 (record_btrace_find_thread_to_move, btrace_step_no_history)
1405 (btrace_step_stopped, record_btrace_start_replaying)
1406 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1407 (record_btrace_find_resume_thread): New.
1408 (record_btrace_resume, record_btrace_wait): Extend.
1409 (record_btrace_can_execute_reverse): New.
1410 (record_btrace_open): Fail in non-stop mode.
1411 (record_btrace_set_replay): Split into this, ...
1412 (record_btrace_stop_replaying): ... this, ...
1413 (record_btrace_clear_histories): ... and this.
1414 (init_record_btrace_ops): Init to_can_execute_reverse.
1415 * NEWS: Announce it.
1417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1419 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1420 (forward_target_decr_pc_after_break)
1421 (target_decr_pc_after_break): New.
1422 * target.c (forward_target_decr_pc_after_break)
1423 (target_decr_pc_after_break): New.
1424 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1425 instead of gdbarch_decr_pc_after_break.
1426 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1427 instead of gdbarch_decr_pc_after_break.
1428 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1429 instead of gdbarch_decr_pc_after_break.
1430 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1431 instead of gdbarch_decr_pc_after_break.
1432 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1433 instead of gdbarch_decr_pc_after_break.
1434 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1435 instead of gdbarch_decr_pc_after_break.
1437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1439 * btrace.c: Include regcache.h.
1440 (btrace_add_pc): New.
1441 (btrace_enable): Call btrace_add_pc.
1442 (btrace_is_empty): New.
1443 * btrace.h (btrace_is_empty): New.
1444 * record-btrace.c (require_btrace, record_btrace_info): Call
1447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1449 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1450 Support delta reads.
1451 (linux_disable_btrace): Change return type.
1452 * common/linux-btrace.h (linux_read_btrace): Change parameters
1453 and return type to allow error reporting. Update users.
1454 (linux_disable_btrace): Change return type. Update users.
1455 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1457 (btrace_error): New.
1458 (btrace_block) <begin>: Comment on BEGIN == 0.
1459 * btrace.c (btrace_compute_ftrace): Start from the end of
1461 (btrace_stitch_trace, btrace_clear_history): New.
1462 (btrace_fetch): Read delta trace, return if replaying.
1463 (btrace_clear): Move clear history code to btrace_clear_history.
1464 (parse_xml_btrace): Throw an error if parsing failed.
1465 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1466 and return type to allow error reporting.
1467 (target_read_btrace): Change parameters and return type to allow
1469 * target.c (target_read_btrace): Update.
1470 * remote.c (remote_read_btrace): Support delta reads. Pass
1472 * NEWS: Announce it.
1474 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1476 * record.h (record_btrace_frame_unwind)
1477 (record_btrace_tailcall_frame_unwind): New declarations.
1478 * dwarf2-frame: Include record.h
1479 (dwarf2_frame_cfa): Throw an error for btrace frames.
1480 * record-btrace.c: Include hashtab.h.
1481 (btrace_get_bfun_name): New.
1482 (btrace_call_history): Call btrace_get_bfun_name.
1483 (struct btrace_frame_cache): New.
1485 (bfcache_hash, bfcache_eq, bfcache_new): New.
1486 (btrace_get_frame_function): New.
1487 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1488 (record_btrace_frame_this_id): Compute own id.
1489 (record_btrace_frame_prev_register): Provide PC, throw_error
1490 for all other registers.
1491 (record_btrace_frame_sniffer): Detect btrace frames.
1492 (record_btrace_tailcall_frame_sniffer): New.
1493 (record_btrace_frame_dealloc_cache): New.
1494 (record_btrace_frame_unwind): Add new functions.
1495 (record_btrace_tailcall_frame_unwind): New.
1496 (_initialize_record_btrace): Allocate cache.
1497 * btrace.c (btrace_clear): Call reinit_frame_cache.
1498 * NEWS: Announce it.
1500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1502 * record-btrace.c (record_btrace_set_replay)
1503 (record_btrace_goto_begin, record_btrace_goto_end)
1504 (record_btrace_goto): New.
1505 (init_record_btrace_ops): Initialize them.
1506 * NEWS: Announce it.
1508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1510 * record-btrace.c (record_btrace_find_new_threads)
1511 (record_btrace_thread_alive): New.
1512 (init_record_btrace_ops): Initialize to_find_new_threads and
1515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1517 * record-btrace.c (record_btrace_resume): New.
1518 (record_btrace_wait): New.
1519 (init_record_btrace_ops): Initialize to_wait and to_resume.
1521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1523 * record-btrace.c (record_btrace_xfer_partial)
1524 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1525 (record_btrace_allow_memory_access): New.
1526 (init_record_btrace_ops): Initialize new methods.
1527 * target.c (raw_memory_xfer_partial): Bail out if target reports
1528 that this memory is not available.
1530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1532 * target.h (target_ops) <to_insert_breakpoint>
1533 <to_remove_breakpoint>: Add target_ops parameter.
1534 (forward_target_insert_breakpoint): New.
1535 (forward_target_remove_breakpoint): New.
1536 (memory_remove_breakpoint, memory_insert_breakpoint):
1537 Add target_ops parameter.
1538 * target.c (target_insert_breakpoint): Split into this and ...
1539 (forward_target_insert_breakpoint): ... this.
1540 (target_remove_breakpoint): Split into this and ...
1541 (forward_target_remove_breakpoint): ... this.
1542 (debug_to_insert_breakpoint): Add target_ops parameter.
1543 Call forward_target_insert_breakpoint.
1544 (debug_to_remove_breakpoint): Add target_ops parameter.
1545 Call forward_target_remove_breakpoint.
1546 (update_current_target): Do not inherit or default to_insert_breakpoint
1547 and to_remove_breakpoint.
1548 * corelow.c (ignore): Add target_ops parameter.
1549 * exec.c (ignore): Add target_ops parameter.
1550 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1551 Add target_ops parameter.
1552 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1553 Add target_ops parameter.
1554 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1555 Add target_ops parameter.
1556 * record-full.c (record_full_beneath_to_insert_breakpoint)
1557 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1558 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1559 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1560 (record_full_core_remove_breakpoint): Add target_ops parameter.
1562 (record_full_beneath_to_insert_breakpoint_ops)
1563 (record_full_beneath_to_remove_breakpoint_ops)
1564 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1565 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1566 tmp_to_remove_breakpoint_ops,
1567 record_full_beneath_to_insert_breakpoint_ops, and
1568 record_full_beneath_to_remove_breakpoint_ops.
1569 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1570 (m32r_remove_breakpoint): Add target_ops parameter.
1571 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1572 Add target_ops parameter.
1573 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1574 Add target_ops parameter.
1576 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1577 Markus Metzger <markus.t.metzger@intel.com>
1579 * record-btrace.c: Include frame-unwind.h.
1580 (record_btrace_frame_unwind_stop_reason)
1581 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1582 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1584 (init_record_btrace_ops): Install it.
1586 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1591 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1593 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1596 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1598 * frame-unwind.c: Include target.h.
1599 (frame_unwind_try_unwinder): New function with code from ...
1600 (frame_unwind_find_by_frame): ... here. New variable
1601 unwinder_from_target, call also target_get_unwinder)
1602 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1603 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1604 * target.h (struct target_ops): New fields to_get_unwinder and
1605 to_get_tailcall_unwinder.
1606 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1610 * record-btrace.c (record_btrace_fetch_registers)
1611 (record_btrace_store_registers)
1612 (record_btrace_to_prepare_to_store): New.
1613 (init_record_btrace_ops): Add the above.
1615 2014-01-16 Tom Tromey <tromey@redhat.com>
1617 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1618 * target.h (struct target_ops) <to_prepare_to_store>: Add
1620 (target_prepare_to_store): Add argument.
1621 * target.c (debug_to_prepare_to_store): Add argument.
1622 (update_current_target): Update.
1623 * remote.c (remote_prepare_to_store): Add 'self' argument.
1624 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1625 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1626 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1627 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1629 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1630 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1631 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1632 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1633 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1637 * btrace.h (replay) <replay>: New.
1638 (btrace_is_replaying): New.
1639 * btrace.c (btrace_clear): Free replay iterator.
1640 (btrace_is_replaying): New.
1641 * record-btrace.c (record_btrace_is_replaying): New.
1642 (record_btrace_info): Print insn number if replaying.
1643 (record_btrace_insn_history): Start at replay position.
1644 (record_btrace_call_history): Start at replay position.
1645 (init_record_btrace_ops): Init to_record_is_replaying.
1647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1649 * record-btrace.c (record_btrace_insn_history_range): Include
1651 (record_btrace_insn_history_from): Adjust range.
1652 (record_btrace_call_history_range): Include
1654 (record_btrace_call_history_from): Adjust range.
1655 * NEWS: Announce changes.
1657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1659 * record.h (enum record_print_flag)
1660 <record_print_indent_calls>: New.
1661 * record.c (get_call_history_modifiers): Recognize /c modifier.
1662 (_initialize_record): Document /c modifier.
1663 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1664 Reorder fields. Optionally indent the function name. Update
1666 * NEWS: Announce changes.
1668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1670 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1674 * btrace.c (ftrace_new_function): Start counting at one.
1675 * record-btrace.c (record_btrace_info): Adjust number of calls
1677 * NEWS: Announce it.
1679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1681 * record-btrace.c (btrace_call_history_insn_range): Print
1682 insn range as [begin, end].
1684 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1686 * btrace.h (struct btrace_func_link): New.
1687 (enum btrace_function_flag): New.
1688 (struct btrace_inst): Rename to ...
1689 (struct btrace_insn): ...this. Update all users.
1690 (struct btrace_func) <ibegin, iend>: Remove.
1691 (struct btrace_func_link): New.
1692 (struct btrace_func): Rename to ...
1693 (struct btrace_function): ...this. Update all users.
1694 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1695 (number, level, flags>: New.
1696 (struct btrace_insn_iterator): Rename to ...
1697 (struct btrace_insn_history): ...this.
1699 (struct btrace_insn_iterator, btrace_call_iterator): New.
1700 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1701 (struct btrace_target_info) <begin, end, level>
1702 <insn_history, call_history>: New.
1703 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1704 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1705 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1706 (btrace_call_number, btrace_call_begin, btrace_call_end)
1707 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1708 (btrace_find_function_by_number, btrace_set_insn_history)
1709 (btrace_set_call_history): New.
1710 * btrace.c (btrace_init_insn_iterator)
1711 (btrace_init_func_iterator, compute_itrace): Remove.
1712 (ftrace_print_function_name, ftrace_print_filename)
1713 (ftrace_skip_file): Change
1715 (ftrace_init_func): Remove.
1716 (ftrace_debug): Use new btrace_function fields.
1717 (ftrace_function_switched): Also consider gaining and
1718 losing symbol information).
1719 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
1720 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
1721 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
1723 (ftrace_new_function): Move. Remove debug print.
1724 (ftrace_update_lines, ftrace_update_insns): New.
1725 (ftrace_update_function): Check for call, ret, and jump.
1726 (compute_ftrace): Renamed to ...
1727 (btrace_compute_ftrace): ...this. Rewritten to compute call
1729 (btrace_fetch, btrace_clear): Updated.
1730 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1731 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1732 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1733 (btrace_call_number, btrace_call_begin, btrace_call_end)
1734 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1735 (btrace_find_function_by_number, btrace_set_insn_history)
1736 (btrace_set_call_history): New.
1737 * record-btrace.c (require_btrace): Use new btrace thread
1739 (record_btrace_info, btrace_insn_history)
1740 (record_btrace_insn_history, record_btrace_insn_history_range):
1741 Use new btrace thread info fields and new iterator.
1742 (btrace_func_history_src_line): Rename to ...
1743 (btrace_call_history_src_line): ...this. Use new btrace
1745 (btrace_func_history): Rename to ...
1746 (btrace_call_history): ...this. Use new btrace thread info
1747 fields and new iterator.
1748 (record_btrace_call_history, record_btrace_call_history_range):
1749 Use new btrace thread info fields and new iterator.
1751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1753 * frame.h (frame_id_build_unavailable_stack_special): New.
1754 * frame.c (frame_id_build_unavailable_stack_special): New.
1756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1758 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
1759 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
1760 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
1762 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
1763 (i386_insn_is_jump, i386_jmp_p): New.
1764 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
1765 insn_is_jump to gdbarch.
1766 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
1767 * gdbarch.h: Regenerated.
1768 * gdbarch.c: Regenerated.
1769 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
1770 (default_insn_is_jump): New.
1771 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
1772 (default_insn_is_jump): New.
1774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1776 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
1778 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
1779 (btrace_read_type) <btrace_read_new>: Change to ...
1780 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
1782 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1784 * common/linux-btrace.c (linux_read_btrace): Free trace from
1787 2014-01-15 Doug Evans <dje@google.com>
1789 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
1792 2014-01-15 Tom Tromey <tromey@redhat.com>
1794 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
1795 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
1796 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
1797 (set_objfile_main_name): New function.
1798 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
1799 language_of_main>: New fields.
1800 (set_objfile_main_name): Declare.
1801 * symtab.c (find_main_name): Loop over objfiles to find the main
1803 (set_main_name): Now static.
1804 (get_main_info): Add comment.
1805 * symtab.h (set_main_name): Don't declare.
1807 2014-01-15 Tom Tromey <tromey@redhat.com>
1809 * symtab.c (main_progspace_key): New global.
1810 (struct main_info): New.
1811 (name_of_main, language_of_main): Remove.
1812 (get_main_info, main_info_cleanup): New function.
1813 (set_main_name, main_name, main_language): Use get_main_info.
1814 (_initialize_symtab): Initialize main_progspace_key.
1816 2014-01-15 Tom Tromey <tromey@redhat.com>
1818 * dbxread.c (process_one_symbol): Update.
1819 * dwarf2read.c (read_partial_die): Update.
1820 * symfile.c (set_initial_language): Call main_language.
1821 * symtab.c (language_of_main): Now static.
1822 (set_main_name): Add 'lang' parameter.
1823 (find_main_name): Update.
1824 (main_language): New function.
1825 (symtab_observer_executable_changed): Update.
1826 * symtab.h (set_main_name): Update.
1827 (language_of_main): Remove.
1828 (main_language): Declare.
1830 2014-01-15 Tom Tromey <tromey@redhat.com>
1832 * symfile.c (init_entry_point_info): Use new "initialized" field.
1834 * objfiles.h (struct entry_point) <initialized>: New field.
1835 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
1836 (struct objfile) <ei>: ...here. Remove.
1837 * objfiles.c (entry_point_address_query): Update.
1839 2014-01-15 Tom Tromey <tromey@redhat.com>
1841 * objfiles.c (entry_point_address_query): Relocate entry point
1843 (objfile_relocate1): Do not relocate entry point address.
1844 * objfiles.h (struct entry_info) <entry_point>: Update comment.
1845 <the_bfd_section_index>: New field.
1846 * symfile.c (init_entry_point_info): Find the entry point's
1849 2014-01-15 Tom Tromey <tromey@redhat.com>
1851 * solib-frv.c (enable_break): Use entry_point_address_query.
1853 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1855 * NEWS: Add note on improved process record-replay on
1856 arm*-linux* targets.
1858 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1860 * arm-tdep.c (enum arm_record_result): New enum.
1861 (arm_record_unsupported_insn): New function.
1862 (arm_record_coproc_data_proc): Removed.
1863 (thumb2_record_ld_st_multiple): New function.
1864 (thumb2_record_ld_st_dual_ex_tbb): New function.
1865 (thumb2_record_data_proc_sreg_mimm): New function.
1866 (thumb2_record_ps_dest_generic): New function.
1867 (thumb2_record_branch_misc_cntrl): New function.
1868 (thumb2_record_str_single_data): New function.
1869 (thumb2_record_ld_mem_hints): New function.
1870 (thumb2_record_ld_word): New function.
1871 (thumb2_record_lmul_lmla_div): New function.
1872 (thumb2_record_decode_insn_handler): New function.
1873 (decode_insn): Add thumb32 instruction handlers.
1875 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1877 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
1878 (struct arm_linux_record_tdep): Declare.
1879 (arm_canonicalize_syscall): New function.
1880 (arm_all_but_pc_registers_record): New function.
1881 (arm_linux_syscall_record): New function.
1882 (arm_linux_init_abi): Add syscall recording constructs.
1883 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
1884 decoding. (arm_record_coproc_data_proc): Update arm syscall
1886 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
1887 <arm_syscall_record>: New field.
1888 * configure.tgt (arm*-*-linux*): Add linux-record.o to
1891 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1893 * arm-tdep.c (thumb_record_misc): Update to use sp as base
1894 register for push instruction recording.
1896 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1898 * arm-tdep.c (thumb_record_misc): Update to correct logical
1899 error while recording ldm, ldmia and pop instructions.
1901 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1903 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
1905 2014-01-15 Pedro Alves <palves@redhat.com>
1907 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
1908 (go32_resume, go32_fetch_registers, store_register)
1909 (go32_store_registers, go32_prepare_to_store)
1910 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
1911 (go32_create_inferior, go32_can_run, go32_terminal_init)
1912 (go32_terminal_inferior, go32_terminal_ours): Delete forward
1915 2014-01-15 Tom Tromey <tromey@redhat.com>
1917 * target.h (async_callback_ftype): New typedef.
1918 (struct target_ops) <to_async>: Use it.
1920 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1922 * python/py-value.c (get_field_type): Remove unnecessary curly
1923 braces for single-statement if block.
1925 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1927 * python/py-type.c (convert_field): Add missing empty line
1930 2014-01-14 Doug Evans <dje@google.com>
1932 * symfile.h (expand_symtabs_matching): Renamed from
1933 expand_partial_symbol_names. Update prototype.
1934 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1935 * symfile.c (expand_symtabs_matching): Renamed from
1936 expand_partial_symbol_names. New args file_matcher, kind.
1937 Rename arg fun to symbol_matcher.
1938 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1939 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
1940 ada_expand_partial_symbol_name.
1941 (ada_make_symbol_completion_list): Update to call
1942 expand_symtabs_matching.
1943 (ada_add_global_exceptions): Call expand_symtabs_matching.
1944 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
1945 call map_symbol_filenames.
1946 * symtab.c (sources_info): Update to call map_symbol_filenames.
1947 (search_symbols): Call expand_symtabs_matching.
1948 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
1949 (default_make_symbol_completion_list_break_on): Update to call
1950 expand_symtabs_matching.
1951 (make_source_files_completion_list): Update to call
1952 map_symbol_filenames.
1954 2014-01-14 Doug Evans <dje@google.com>
1956 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
1957 (expand_symtabs_symbol_matcher_ftype): New typedef.
1958 (quick_symbol_functions.expand_symtabs_matching): Update to use.
1959 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1960 * symfile.c (expand_partial_symbol_names): Update to use
1961 expand_symtabs_symbol_matcher_ftype.
1962 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
1963 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1964 Arg name_matcher renamed to symbol_matcher.
1965 * psymtab.c (recursively_search_psymtabs): Update to use
1966 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
1968 (expand_symtabs_matching_via_partial): Update to use
1969 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1970 Arg name_matcher renamed to symbol_matcher.
1972 2014-01-14 Doug Evans <dje@google.com>
1974 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
1975 (map_partial_symbol_filenames): Ditto.
1976 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
1977 (map_partial_symbol_filenames): Ditto.
1978 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
1979 (map_partial_symbol_filenames): Ditto.
1980 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
1981 (map_partial_symbol_filenames): Ditto.
1982 * symtab.c: Delete #include "psymtab.h".
1984 2014-01-14 Pedro Alves <palves@redhat.com>
1985 Tom Tromey <tromey@redhat.com>
1987 * infrun.c (use_displaced_stepping): Use find_record_target
1988 instead of RECORD_IS_USED.
1989 (adjust_pc_after_break): Use record_full_is_used instead of
1991 * record-btrace.c (record_btrace_open): Call record_preopen
1992 instead of checking RECORD_IS_USED.
1993 * record-full.c (record_full_shortname)
1994 (record_full_core_shortname): New globals.
1995 (record_full_is_used): New function.
1996 (find_full_open): Call record_preopen instead of checking
1998 (init_record_full_ops): Set the target's shortname to
1999 record_full_shortname.
2000 (init_record_full_core_ops): Set the target's shortname to
2001 record_full_core_shortname.
2002 * record-full.h (record_full_is_used): Declare.
2003 * record.c (find_record_target): Make extern.
2004 (record_preopen): New function.
2005 * record.h (RECORD_IS_USED): Delete macro.
2006 (find_record_target, record_preopen): Declare functions.
2008 2014-01-14 Yao Qi <yao@codesourcery.com>
2010 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2011 'len''s type to ULONGEST.
2012 (core_xfer_shared_libraries_aix): Likewise.
2013 * gdbarch.c, gdbarch.h: Regenerated.
2014 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2015 Change type of 'len' to ULONGEST.
2016 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2017 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2019 2014-01-14 Yao Qi <yao@codesourcery.com>
2021 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2022 type of 'len' to ULONGEST.
2023 (linux_xfer_osdata_processgroups): Likewise.
2024 (linux_xfer_osdata_threads): Likewise.
2025 (linux_xfer_osdata_fds): Likewise.
2026 (linux_xfer_osdata_isockets): Likewise.
2027 (linux_xfer_osdata_shm): Likewise.
2028 (linux_xfer_osdata_sem): Likewise.
2029 (linux_xfer_osdata_msg): Likewise.
2030 (linux_common_xfer_osdata): Likewise.
2031 (struct osdata_type) <getter>: Likewise.
2032 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2035 2014-01-14 Yao Qi <yao@codesourcery.com>
2037 * target.h (target_xfer_partial_ftype): Update.
2038 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2040 * aix-thread.c (aix_thread_xfer_partial): Change type of
2041 argument 'len' to ULONGEST.
2042 * auxv.c (procfs_xfer_auxv): Likewise.
2043 (ld_so_xfer_auxv): Likewise.
2044 (memory_xfer_auxv): Likewise.
2045 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2046 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2047 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2048 * corelow.c (core_xfer_partial): Likewise.
2049 * ctf.c (ctf_xfer_partial): Likewise.
2050 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2052 (darwin_read_dyld_info): Likewise.
2053 (darwin_xfer_partial): Likewise.
2054 * exec.c (section_table_xfer_memory_partial): Likewise.
2055 (exec_xfer_partial): Likewise.
2056 * exec.h (section_table_xfer_memory_partial): Update
2058 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2059 instead of plongest.
2060 (gnu_xfer_partial): Likewise.
2061 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2062 (ia64_hpux_xfer_solib_got): Likewise.
2063 (ia64_hpux_xfer_partial): Likewise.
2064 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2065 * inf-ptrace.c (inf_ptrace_xfer_partial):
2066 * inf-ttrace.c (inf_ttrace_xfer_partial):
2067 * linux-nat.c (linux_xfer_siginfo): Likewise.
2068 (linux_nat_xfer_partial): Likewise.
2069 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2070 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2071 * monitor.c (monitor_xfer_memory): Likewise.
2072 (monitor_xfer_partial): Likewise.
2073 * procfs.c (procfs_xfer_partial): Likewise.
2074 * record-full.c (record_full_xfer_partial): Likewise.
2075 (record_full_core_xfer_partial): Likewise.
2076 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2077 instead of plongest.
2078 (gdbsim_xfer_partial): Likewise.
2079 * remote.c (remote_xfer_partial): Likewise.
2080 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2081 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2083 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2084 (rs6000_xfer_shared_libraries): Likewise.
2085 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2086 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2087 (sparc_xfer_partial): Likewise.
2088 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2089 (spu_xfer_partial): Likewise.
2090 * spu-multiarch.c (spu_xfer_partial): Likewise.
2091 * target.c (target_read_live_memory): Likewise.
2092 (memory_xfer_live_readonly_partial): Likewise.
2093 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2094 (target_xfer_partial, default_xfer_partial): Likewise.
2095 (current_xfer_partial): Likewise.
2096 * tracepoint.c (tfile_xfer_partial): Likewise.
2097 * windows-nat.c (windows_xfer_memory): Likewise. Call
2098 pulongest instead of plongest.
2099 (windows_xfer_partial): Likewise.
2100 (windows_xfer_shared_libraries): Likewise.
2102 2014-01-14 Yao Qi <yao@codesourcery.com>
2104 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2105 target_xfer_partial_ftype.
2107 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2111 * valops.c (value_struct_elt_bitpos): New function
2112 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2113 object to 'None' if the field name is an empty string ("").
2114 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2115 attribute to look for a field when 'name' is 'None'.
2116 (get_field_type): New function
2118 2014-01-13 Doug Evans <dje@google.com>
2121 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2122 (try_open_dwop_file): Ditto.
2123 * gdb_bfd.c: #include "vec.h".
2124 (bfdp): New typedef.
2125 (struct gdb_bfd_data): New member included_bfds.
2126 (gdb_bfd_unref): Unref all included bfds.
2127 (gdb_bfd_record_inclusion): New function.
2128 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2130 2014-01-13 Tom Tromey <tromey@redhat.com>
2132 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2134 2014-01-13 Tom Tromey <tromey@redhat.com>
2136 * defs.h (use_windows): Remove.
2137 * gdb.c (main): Update.
2138 * main.c (captured_main, gdb_main): Update.
2139 * main.h (struct captured_main_args) <use_windows>: Remove.
2140 * top.c (use_windows): Remove.
2142 2014-01-13 Tom Tromey <tromey@redhat.com>
2144 * defs.h (deprecated_flush_hook): Remove.
2146 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * linux-thread-db.c (try_thread_db_load): Add parameter
2150 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2151 (try_thread_db_load_from_pdir_1): Move it there from here.
2152 (try_thread_db_load_from_sdir): Update caller.
2153 (try_thread_db_load_from_dir): Move it there from here.
2155 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2157 * regformats/regdat.sh: Always rewrite the register file.
2159 2014-01-13 Pedro Alves <palves@redhat.com>
2161 * Makefile.in (CHECK_HEADERS): New variable.
2162 (check-headers:): New rule.
2164 2014-01-13 Tom Tromey <tromey@redhat.com>
2166 * cli/cli-setshow.c (do_set_command): Update.
2167 * defs.h (deprecated_set_hook): Remove.
2168 * top.c (deprecated_set_hook): Remove.
2170 2014-01-13 Pedro Alves <palves@redhat.com>
2172 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2173 the tracepoint if the PC is a pseudo-register.
2175 2014-01-13 Tom Tromey <tromey@redhat.com>
2177 * defs.h (XCALLOC): Remove.
2178 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2179 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2180 * dwarf2loc.c (allocate_piece_closure): Likewise.
2181 * elfread.c (elf_symfile_segments): Likewise.
2182 (elf_symfile_segments): Likewise.
2183 * gdbtypes.c (copy_type_recursive): Likewise.
2184 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2185 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2186 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2188 * mt-tdep.c (mt_gdbarch_init): Likewise.
2189 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2191 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2192 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2193 * registry.c (registry_alloc_data): Likewise.
2194 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2195 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2196 * serial.c (serial_fdopen_ops): Likewise.
2197 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2199 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2200 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2203 2014-01-13 Tom Tromey <tromey@redhat.com>
2205 * defs.h (XMALLOC): Remove.
2206 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2207 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2208 * cli-out.c (struct ui_out *): Likewise.
2209 * cli/cli-dump.c (add_dump_command): Likewise.
2210 (add_dump_command): Likewise.
2211 * complaints.c (get_complaints): Likewise.
2212 (find_complaint): Likewise.
2213 * dwarf2-frame.c (execute_cfa_program): Likewise.
2214 * dwarf2read.c (abbrev_table_read_table): Likewise.
2215 * gdbarch.sh: Likewise.
2216 * gdbarch.c: Rebuild.
2217 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2218 * interps.c (interp_new): Likewise.
2219 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2220 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2221 * mi/mi-console.c (mi_console_file_new): Likewise.
2222 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2223 * mi/mi-out.c (mi_out_new): Likewise.
2224 * mi/mi-parse.c (mi_parse): Likewise.
2225 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2226 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2227 * observer.c (xalloc_observer_list_node): Likewise.
2228 * regcache.c (regcache_xmalloc_1): Likewise.
2229 * reggroups.c (reggroup_new): Likewise.
2230 (_initialize_reggroup): Likewise.
2231 * registry.c (register_data_with_cleanup): Likewise.
2232 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2233 * ser-base.c (serial_ttystate): Likewise.
2234 * ser-mingw.c (make_pipe_state): Likewise.
2235 * ser-pipe.c (pipe_open): Likewise.
2236 * serial.c (serial_open): Likewise.
2237 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2238 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2239 (tui_alloc_win_info): Likewise.
2240 (tui_add_content_elements): Likewise.
2241 * tui/tui-file.c (tui_file_new): Likewise.
2242 * tui/tui-out.c (tui_out_new): Likewise.
2243 * ui-file.c (mem_file_new): Likewise.
2244 * ui-out.c (push_level): Likewise.
2245 (make_cleanup_ui_out_end): Likewise.
2246 (append_header_to_list): Likewise.
2247 (ui_out_new): Likewise.
2248 * user-regs.c (user_reg_add_builtin): Likewise.
2250 2014-01-13 Tom Tromey <tromey@redhat.com>
2252 * defs.h (XZALLOC): Remove.
2253 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2254 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2255 (get_ada_tasks_inferior_data): Likewise.
2256 * auto-load.c (get_auto_load_pspace_data): Likewise.
2257 * auxv.c (get_auxv_inferior_data): Likewise.
2258 * bfd-target.c (target_bfd_reopen): Likewise.
2259 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2260 (deprecated_insert_raw_breakpoint): Likewise.
2261 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2262 * corelow.c (core_open): Likewise.
2263 * darwin-nat.c (darwin_check_new_threads): Likewise.
2264 (darwin_attach_pid): Likewise.
2265 * dummy-frame.c (dummy_frame_push): Likewise.
2266 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2267 * dwarf2loc.c (allocate_piece_closure): Likewise.
2268 * elfread.c (elf_symfile_segments): Likewise.
2269 * eval.c (ptrmath_type_p): Likewise.
2270 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2271 * gdbtypes.c (alloc_type_arch): Likewise.
2272 (alloc_type_instance): Likewise.
2273 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2274 * inf-child.c (inf_child_can_use_agent): Likewise.
2275 * inflow.c (get_inflow_inferior_data): Likewise.
2276 * infrun.c (save_infcall_suspend_state): Likewise.
2277 * jit.c (jit_reader_load): Likewise.
2278 (get_jit_objfile_data): Likewise.
2279 (get_jit_program_space_data): Likewise.
2280 (jit_object_open_impl): Likewise.
2281 (jit_symtab_open_impl): Likewise.
2282 (jit_block_open_impl): Likewise.
2283 (jit_frame_sniffer): Likewise.
2284 * linux-fork.c (add_fork): Likewise.
2285 * maint.c (make_command_stats_cleanup): Likewise.
2286 * objfiles.c (get_objfile_pspace_data): Likewise.
2287 * opencl-lang.c (struct lval_closure): Likewise.
2288 * osdata.c (osdata_start_osdata): Likewise.
2289 * progspace.c (new_address_space): Likewise.
2290 (add_program_space): Likewise.
2291 * remote-sim.c (get_sim_inferior_data): Likewise.
2292 * sh-tdep.c (sh_gdbarch_init): Likewise.
2293 * skip.c (Ignore): Likewise.
2294 (skip_delete_command): Likewise.
2295 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2296 (library_list_start_library): Likewise.
2297 (solib_aix_current_sos): Likewise.
2298 * solib-darwin.c (get_darwin_info): Likewise.
2299 (darwin_current_sos): Likewise.
2300 * solib-dsbt.c (get_dsbt_info): Likewise.
2301 * solib-ia64-hpux.c (new_so_list): Likewise.
2302 (ia64_hpux_get_solib_linkage_addr): Likewise.
2303 * solib-spu.c (append_ocl_sos): Likewise.
2304 (spu_current_sos): Likewise.
2305 * solib-svr4.c (get_svr4_info): Likewise.
2306 (svr4_keep_data_in_core): Likewise.
2307 (library_list_start_library): Likewise.
2308 (svr4_default_sos): Likewise.
2309 (svr4_read_so_list): Likewise.
2310 * solib-target.c (library_list_start_library): Likewise.
2311 (solib_target_current_sos): Likewise.
2312 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2313 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2314 * symfile.c (default_symfile_segments): Likewise.
2315 * target-descriptions.c (tdesc_data_init): Likewise.
2316 (tdesc_create_reg): Likewise.
2317 (struct tdesc_type *): Likewise.
2318 (tdesc_create_vector): Likewise.
2319 (tdesc_set_struct_size): Likewise.
2320 (struct tdesc_type *): Likewise.
2321 (tdesc_free_feature): Likewise.
2322 (tdesc_create_feature): Likewise.
2323 * windows-nat.c (windows_add_thread): Likewise.
2324 (windows_make_so): Likewise.
2325 * xml-support.c (gdb_xml_body_text): Likewise.
2326 (gdb_xml_create_parser_and_cleanup): Likewise.
2327 (xml_process_xincludes): Likewise.
2328 * xml-syscall.c (allocate_syscalls_info): Likewise.
2329 (syscall_create_syscall_desc): Likewise.
2331 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2333 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2334 function, with code from i386_stap_parse_special_token.
2335 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2336 (i386_stap_parse_special_token): Move code to the two functions
2339 2014-01-09 Pedro Alves <palves@redhat.com>
2340 Hui Zhu <hui@codesourcery.com>
2343 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2344 bp_err_string. Don't mark the location shlib_disabled if the
2345 error thrown wasn't a generic or memory error. Catch errors
2346 thrown while inserting breakpoints in overlayed code. Output
2347 error message of software breakpoints.
2348 * remote.c (remote_insert_breakpoint): If this breakpoint has
2349 target-side commands but this stub doesn't support Z0 packets,
2350 throw NOT_SUPPORTED_ERROR error.
2351 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2352 * target.h (target_insert_breakpoint): Extend comment.
2353 (target_insert_hw_breakpoint): Add comment.
2355 2014-01-08 Pedro Alves <palves@redhat.com>
2357 * remote.c (remote_add_thread): Add threads silently if starting
2359 (remote_notice_new_inferior): If in all-stop, and starting up,
2360 don't call notice_new_inferior.
2361 (get_current_thread): New function, factored out from ...
2362 (add_current_inferior_and_thread): ... this. Adjust.
2363 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2364 found any thread, then select the remote's current thread as GDB's
2367 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2369 * NEWS: Create a new section for the next release branch.
2370 Rename the section of the current branch, now that it has
2373 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2375 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2376 * version.in: Bump version to 7.7.50.DATE-cvs.
2378 2014-01-08 Yao Qi <yao@codesourcery.com>
2380 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2381 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2382 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2384 2014-01-08 Yao Qi <yao@codesourcery.com>
2386 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2387 return value of bfd_get_filename to symbol_file_add_from_bfd.
2389 2014-01-08 Pierre Muller <muller@sourceware.org>
2392 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2393 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2394 to prim_record_mininal_symbol_and_info.
2395 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2396 in call to prim_record_minimal_symbol_and_info.
2397 (read_pe_exported_syms): Set index field of section_data.
2399 2014-01-07 Andrew Pinski <apinski@cavium.com>
2401 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2402 * features/aarch64.c: Regenerate.
2404 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2406 * target.c (return_null): Define.
2407 (update_current_target): Use it instead of return_zero for
2408 functions that return a pointer.
2410 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2412 * source.c (add_path): Fix check for duplicated paths in the previously
2415 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2417 * ada-lang.c: Remove duplicated include statements.
2418 * alphabsd-nat.c: Ditto.
2419 * amd64-darwin-tdep.c: Ditto.
2420 * amd64fbsd-nat.c: Ditto.
2421 * auto-load.c: Ditto.
2423 * breakpoint.c: Ditto.
2425 * fork-child.c: Ditto.
2426 * gdb_usleep.c: Ditto.
2427 * i386-darwin-tdep.c: Ditto.
2428 * i386fbsd-nat.c: Ditto.
2430 * inferior.c: Ditto.
2432 * linux-nat.c: Ditto.
2433 * linux-tdep.c: Ditto.
2434 * m68kbsd-nat.c: Ditto.
2435 * m68klinux-nat.c: Ditto.
2436 * microblaze-tdep.c: Ditto.
2437 * mips-linux-tdep.c: Ditto.
2438 * mn10300-tdep.c: Ditto.
2439 * nto-tdep.c: Ditto.
2440 * opencl-lang.c: Ditto.
2442 * printcmd.c: Ditto.
2443 * regcache.c: Ditto.
2444 * remote-m32r-sdi.c: Ditto.
2448 * tilegx-linux-nat.c: Ditto.
2449 * tilegx-tdep.c: Ditto.
2450 * tracepoint.c: Ditto.
2452 * vaxbsd-nat.c: Ditto.
2453 * windows-nat.c: Ditto.
2454 * xtensa-tdep.c: Ditto.
2456 2014-01-07 Yao Qi <yao@codesourcery.com>
2458 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2460 2014-01-07 Yao Qi <yao@codesourcery.com>
2461 Joel Brobecker <brobecker@adacore.com>
2463 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2464 (pdc_write_regs): Likewise.
2465 (fetch_regs_kernel_thread): Likewise.
2466 (store_regs_kernel_thread): Likewise.
2468 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2470 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2471 tagged type objects to their actual type.
2473 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2475 * ada-valprint.c (print_field_values): Add "language" parameter.
2476 Update calls to print_field_values and print_variant_part.
2477 Pass new parameter "language" in call to val_print instead
2478 of "current_language". Replace call to ada_val_print by call
2480 (print_variant_part): Add "language" parameter.
2481 (ada_val_print_struct_union): Update call to print_field_values.
2483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2485 * ada-valprint.c (ui_memcpy): Delete.
2486 (ada_print_floating): Update documentation. Add empty line
2487 between between function documentation and implementation.
2488 Delete variable "buffer". Use ui_file_xstrdup in place of
2489 ui_file_put. Minor adjustments following this change.
2491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2493 * ada-valprint.c (ada_val_print_string): New function,
2494 extracted from ada_val_print_array.
2495 (ada_val_print_array): Replace extracted code by call
2496 to ada_val_print_string followed by a return. Move
2497 "else" branch to the function's top block.
2499 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2501 * ada-valprint.c (ada_val_print_array): Move implementation
2502 down. Rename parameter "offset" and "val" into "offset_aligned"
2503 and "original_value" respectively. Add parameter "offset".
2505 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2507 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2508 re-organizing the code. Change the "???" message printed
2509 when target type is a TYPE_CODE_UNDEF into
2510 "<ref to undefined type>".
2512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2514 * ada-valprint.c (print_record): Delete, implementation inlined...
2515 (ada_val_print_struct_union): ... here. Remove call to
2516 ada_check_typedef in inlined implementation.
2518 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2520 * ada-valprint.c (ada_val_print_gnat_array): New function,
2521 extracted from ada_val_print_1;
2522 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2523 (ada_val_print_flt, ada_val_print_struct_union)
2524 (ada_val_print_ref): Likewise.
2525 (ada_val_print_1): Delete variables i and elttype.
2526 Replace extracted-out code by call to corresponding
2529 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2531 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2535 * ada-valprint.c (ada_val_print_1): Replace calls to
2536 ada_val_print_1 by calls to val_print.
2538 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2540 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2541 Update calls to self accordingly. Replace calls to c_val_print
2542 by calls to val_print.
2544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2546 * ada-valprint.c (print_record): Delete declaration.
2547 (adjust_type_signedness, ada_val_print_1): Likewise.
2548 (ada_val_print): Move function implementation down.
2549 (print_variant_part, print_field_values, print_record):
2550 Move function implementation up.
2552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2554 * python/py-type.c (typy_get_name): New function.
2555 (type_object_getset): Add entry for attribute "name".
2556 * NEWS: Add entry mentioning this new attribute.
2558 2014-01-07 Yao Qi <yao@codesourcery.com>
2560 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2563 2014-01-07 Yao Qi <yao@codesourcery.com>
2565 * gnu-nat.c (info_port_rights): Add qualifier const to
2568 2014-01-07 Yao Qi <yao@codesourcery.com>
2570 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2572 2014-01-07 Yao Qi <yao@codesourcery.com>
2574 * gnu-nat.c (make_inf) Update declaration.
2575 (make_inf): Make it static.
2576 (inf_set_traced): Likewise.
2577 (inf_port_to_thread, inf_task_died_status): Likewise.
2579 2014-01-07 Yao Qi <yao@codesourcery.com>
2581 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2583 2014-01-07 Yao Qi <yao@codesourcery.com>
2585 * gnu-nat.c (_initialize_gnu_nat): Declare.
2587 2014-01-07 Yao Qi <yao@codesourcery.com>
2589 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2591 (struct gdbarch_info) <byte_order>: Change type to
2593 <byte_order_for_code>: Likewise.
2594 * gdbarch.c, gdbarch.h: Regenerated.
2596 2014-01-06 Sasha Smundak <asmundak@google.com>
2598 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2600 2014-01-06 Tom Tromey <tromey@redhat.com>
2602 * doublest.c (convert_doublest_to_floatformat): Use const, not
2604 * somread.c (som_symtab_read): Likewise.
2606 2014-01-07 Hui Zhu <hui@codesourcery.com>
2608 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2609 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2610 (gdb_bfd_fopen): Ditto.
2611 (gdb_bfd_openr): Ditto.
2612 (gdb_bfd_openw): Ditto.
2613 (gdb_bfd_openr_iovec): Ditto.
2614 (gdb_bfd_fdopenr): Ditto.
2615 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2616 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2618 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2620 * symfile-mem.c (symbol_file_add_from_memory): Removed
2621 gdb_bfd_stash_filename.
2623 2014-01-03 Doug Evans <dje@google.com>
2625 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2628 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2630 Update year range in copyright notice of all files.
2632 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2634 * top.c (print_gdb_version): Set copyright year to 2014.
2636 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2638 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2640 For older changes see ChangeLog-2013.
2646 version-control: never