1 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
3 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
4 (ILL_RPC): ... new macro.
5 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9 functions with ILL_RPC macro.
10 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
15 (S_proc_getlogin_reply, S_proc_getsid_reply)
16 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
17 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
18 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
19 (S_proc_getnports_reply, S_proc_is_important_reply)
20 (S_proc_get_code_reply): New stub functions, generated with
23 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
24 collected the type check structures.
26 * reply_mig_hack.awk: Don't expect to see the auto keyword.
28 2014-02-14 Doug Evans <dje@google.com>
30 * target.c (target_write_partial): Fix result type.
32 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
34 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
35 the proper offsets to access fpregset_t.
37 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
39 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
40 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
41 * h8300-tdep.c (setmachinelist): Remove global.
42 * hppa-tdep.c (hppa_sigtramp): Remove global.
43 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
44 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
45 * ravenscar-thread.c (update_target_observer): Remove global.
46 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
48 2014-02-12 Tom Tromey <tromey@redhat.com>
50 * common/rsp-low.c: Update comments.
51 * common/rsp-low.h: Update comments.
53 2014-02-12 Tom Tromey <tromey@redhat.com>
55 * common/rsp-low.c (convert_ascii_to_int): Remove.
56 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
58 2014-02-12 Tom Tromey <tromey@redhat.com>
60 * common/rsp-low.h (unhexify): Don't declare.
61 * common/rsp-low.c (unhexify): Remove.
63 2014-02-12 Tom Tromey <tromey@redhat.com>
65 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
66 * common/rsp-low.c (convert_int_to_ascii): Remove.
68 2014-02-12 Tom Tromey <tromey@redhat.com>
70 * common/rsp-low.h (hexify): Don't declare.
71 * common/rsp-low.c (hexify): Remove.
73 2014-02-12 Tom Tromey <tromey@redhat.com>
75 * common/rsp-low.c (hexify): Never take strlen of argument.
77 2014-02-12 Tom Tromey <tromey@redhat.com>
79 * common/rsp-low.c (bin2hex): Never take strlen of argument.
80 * remote.c (extended_remote_run, remote_rcmd)
81 (remote_download_trace_state_variable, remote_save_trace_data)
82 (remote_set_trace_notes): Update.
83 * tracepoint.c (encode_source_string, tfile_write_status)
84 (tfile_write_uploaded_tsv): Update.
86 2014-02-12 Tom Tromey <tromey@redhat.com>
88 * tracepoint.c: Include rsp-low.h.
89 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
90 * remote.c: Include rsp-low.h.
91 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
92 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
93 (remote_unescape_input): Move to common/rsp-low.c.
94 * common/rsp-low.h: New file.
95 * common/rsp-low.c: New file.
96 * Makefile.in (SFILES): Add common/rsp-low.c.
97 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
98 (COMMON_OBS): Add rsp-low.o.
99 (rsp-low.o): New target.
101 2014-02-12 Tom Tromey <tromey@redhat.com>
103 * utils.h: Include print-utils.h.
104 (host_address_to_string, plongest, pulongest, phex, phex_nz)
105 (int_string, core_addr_to_string, core_addr_to_string_nz)
106 (hex_string, hex_string_custom): Don't declare.
107 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
108 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
109 (hex_string_custom, int_string, core_addr_to_string)
110 (core_addr_to_string_nz, host_address_to_string): Move to
111 common/print-utils.c.
112 * common/print-utils.h: New file.
113 * common/print-utils.c: New file
114 * Makefile.in (SFILES): Add common/print-utils.c.
115 (HFILES_NO_SRCDIR): Add common/print-utils.h.
116 (COMMON_OBS): Add print-utils.o.
117 (print-utils.o): New target.
119 2014-02-12 Tom Tromey <tromey@redhat.com>
121 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
123 2014-02-12 Mark Kettenis <kettenis@gnu.org>
125 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
127 2014-02-12 Mark Kettenis <kettenis@gnu.org>
129 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
130 if a PT_IO ptrace request returns sucessfully but indicates that 0
131 bytes were transferred.
133 2014-02-12 Pedro Alves <palves@redhat.com>
134 Kevin Buettner <kevinb@redhat.com>
136 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
137 TYPE_INSTANCE_FLAG_CODE_SPACE.
139 2014-02-12 Pedro Alves <palves@redhat.com>
141 * h8300-tdep.c (pseudo_from_raw_register)
142 (raw_from_pseudo_register): New functions.
143 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
146 2014-02-12 Pedro Alves <palves@redhat.com>
148 * h8300-tdep.c (h8300_register_sim_regno): New function.
149 (h8300_gdbarch_init): Install h8300_register_sim_regno as
150 gdbarch_register_sim_regno hook.
152 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
154 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
156 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
158 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
160 2014-02-12 Mark Kettenis <kettenis@gnu.org>
162 * obsd-tdep.h (obsd_init_abi): New prototype.
163 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
164 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
165 (obsd_init_abi): New functions.
166 * i386obsd-tdep.c: Include "obsd-tdep.h".
167 (i386obsd_init_abi): Call obsd_init_abi.
168 * amd64obsd-tdep.c: Include "obsd-tdep.h".
169 (amd64obsd_init_abi): Call obsd_init_abi.
170 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
171 obsd-tdep.c to gdb_target_obs.
173 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
175 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
176 double float arguments to 16-byte in the argument slots.
178 2014-02-11 Doug Evans <xdje42@gmail.com>
180 * configure.ac: Don't crash if pkg-config is not found and guile
181 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
183 * configure: Regenerate.
185 2014-02-11 Yao Qi <yao@codesourcery.com>
187 * aix-thread.c (aix_thread_xfer_partial): Update comments.
188 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
189 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
190 * gnu-nat.c (gnu_xfer_memory): Likewise.
191 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
192 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
193 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
194 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
196 2014-02-11 Yao Qi <yao@codesourcery.com>
198 * target.h (enum target_xfer_error): Rename to ...
199 (enum target_xfer_status): ... it. New. All users updated.
200 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
202 (TARGET_XFER_STATUS_ERROR_P): New macro.
203 (target_xfer_error_to_string): Remove declaration.
204 (target_xfer_status_to_string): Declare.
205 (target_xfer_partial_ftype): Adjust it.
206 (struct target_ops) <to_xfer_partial>: Return
207 target_xfer_status. Add argument xfered_len. Update
209 * target.c (target_xfer_error_to_string): Rename to ...
210 (target_xfer_status_to_string): ... it. New. All callers
212 (target_read_live_memory): Likewise. Call target_xfer_partial
213 instead of target_read.
214 (memory_xfer_live_readonly_partial): Return
215 target_xfer_status. Add argument xfered_len.
216 (raw_memory_xfer_partial): Likewise.
217 (memory_xfer_partial_1): Likewise.
218 (memory_xfer_partial): Likewise.
219 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
220 properly. Update debug message.
221 (default_xfer_partial, current_xfer_partial): Likewise.
222 (target_write_partial): Likewise.
223 (target_read_partial): Likewise. All callers updated.
224 (read_whatever_is_readable): Likewise.
225 (target_write_with_progress): Likewise.
226 (target_read_alloc_1): Likewise.
228 * aix-thread.c (aix_thread_xfer_partial): Likewise.
229 * auxv.c (procfs_xfer_auxv): Likewise.
230 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
231 * bfd-target.c (target_bfd_xfer_partial): Likewise.
232 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
233 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
234 * corefile.c (read_memory): Adjust.
235 * corelow.c (core_xfer_partial): Likewise.
236 * ctf.c (ctf_xfer_partial): Likewise.
237 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
239 (darwin_xfer_partial): Likewise.
240 * exec.c (section_table_xfer_memory_partial): Likewise. All
242 (exec_xfer_partial): Likewise.
243 * exec.h (section_table_xfer_memory_partial): Update
245 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
247 (gnu_xfer_partial): Likewise.
248 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
249 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
250 (ia64_hpux_xfer_solib_got): Likewise.
251 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
252 type of 'partial_len' to ULONGEST.
253 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
254 * linux-nat.c (linux_xfer_siginfo ): Likewise.
255 (linux_nat_xfer_partial): Likewise.
256 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
257 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
258 * monitor.c (monitor_xfer_memory): Likewise.
259 (monitor_xfer_partial): Likewise.
260 * procfs.c (procfs_xfer_partial): Likewise.
261 * record-btrace.c (record_btrace_xfer_partial): Likewise.
262 * record-full.c (record_full_xfer_partial): Likewise.
263 (record_full_core_xfer_partial): Likewise.
264 * remote-sim.c (gdbsim_xfer_memory): Likewise.
265 (gdbsim_xfer_partial): Likewise.
266 * remote.c (remote_write_bytes_aux): Likewise. All callers
268 (remote_write_bytes, remote_read_bytes): Likewise. All
270 (remote_flash_erase): Likewise. All callers updated.
271 (remote_write_qxfer): Likewise. All callers updated.
272 (remote_read_qxfer): Likewise. All callers updated.
273 (remote_xfer_partial): Likewise.
274 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
275 (rs6000_xfer_shared_libraries): Likewise.
276 * sol-thread.c (sol_thread_xfer_partial): Likewise.
277 (sol_thread_xfer_partial): Likewise.
278 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
279 (sparc_xfer_partial): Likewise.
280 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
282 (spu_xfer_partial): Likewise.
283 * spu-multiarch.c (spu_xfer_partial): Likewise.
284 * tracepoint.c (tfile_xfer_partial): Likewise.
285 * windows-nat.c (windows_xfer_memory): Likewise.
286 (windows_xfer_shared_libraries): Likewise.
287 (windows_xfer_partial): Likewise.
288 * valprint.c: Replace 'target_xfer_error' with
289 'target_xfer_status' in comments.
291 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
293 Checked in by Joel Brobecker <brobecker@adacore.com>.
294 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
296 2014-02-11 Joel Brobecker <brobecker@adacore.com>
298 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
301 2014-02-10 Will Newton <will.newton@linaro.org>
303 * elfread.c (elf_rel_plt_read): Look for a .got section if
304 looking up .got.plt fails.
305 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
306 on address passed to elf_gnu_ifunc_record_cache.
307 (elf_gnu_ifunc_resolve_addr): Likewise.
308 (elf_gnu_ifunc_resolver_return_stop): Likewise.
310 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
312 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
313 (X_RETTURN): New macro.
314 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
316 * sparc64-tdep.c (sparc64_init_abi): Hook
317 sparc_in_function_epilogue_p.
319 2014-02-10 Gary Benson <gbenson@redhat.com>
321 * symfile-debug.c (debug_qf_expand_symtabs_matching):
322 Rename name_matcher to symbol_matcher.
324 2014-02-10 Gary Benson <gbenson@redhat.com>
326 * symfile-debug.c (debug_qf_expand_symtabs_matching):
327 Use expand_symtabs_file_matcher_ftype and
328 expand_symtabs_symbol_matcher_ftype.
330 2014-02-10 Joel Brobecker <brobecker@adacore.com>
332 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
333 (struct ada_symbol_cache): New.
334 (ada_free_symbol_cache): Forward declare.
335 (struct ada_pspace_data): New.
336 (ada_pspace_data_handle): New static global.
337 (get_ada_pspace_data, ada_pspace_data_cleanup)
338 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
339 (cache_space, cache): Delete, now folded inside struct
341 (ada_get_symbol_cache): New function.
342 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
344 (_initialize_ada_language): Remove initialization of cache_space.
345 Move call to observer_attach_inferior_exit up, grouping it
346 with the other observer registrations inside this function.
347 Rename command to be more general. Add call to
348 register_program_space_data_with_cleanup.
350 2014-02-10 Joel Brobecker <brobecker@adacore.com>
352 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
353 ada_new_objfile_observer.
354 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
355 (_initialize_tasks): Update uses of ada_new_objfile_observer
356 and ada_tasks_normal_stop_observer.
358 2014-02-10 Joel Brobecker <brobecker@adacore.com>
360 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
361 returned by the 'Length attribute to integer.
363 2014-02-10 Joel Brobecker <brobecker@adacore.com>
365 * ada-lang.c (_initialize_ada_language): Initialize
368 2014-02-10 Joel Brobecker <brobecker@adacore.com>
370 * ada-lang.c (HASH_SIZE): New macro.
371 (struct cache_entry): New type.
372 (cache_space, cache): New static globals.
373 (ada_clear_symbol_cache, find_entry): New functions.
374 (lookup_cached_symbol, cache_symbol): Implement.
375 (ada_new_objfile_observer, ada_free_objfile_observer): New.
376 (_initialize_ada_language): Attach ada_new_objfile_observer
377 and ada_free_objfile_observer.
379 2014-02-10 Joel Brobecker <brobecker@adacore.com>
381 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
382 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
383 struct block * parameter.
384 (ada_lookup_symbol_list_worker): Constify local variable "block".
385 Remove cast which is no longer necessary.
387 2014-02-10 Doug Evans <xdje42@gmail.com>
389 Add Guile as an extension language.
390 * NEWS: Mention Guile scripting.
391 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
392 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
393 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
394 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
395 (CLIBS): Add GUILE_LIBS.
396 (install-guile): New rule.
398 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
399 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
400 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
401 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
402 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
403 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
404 (scm-type.o, scm-utils.o, scm-value.o): New rules.
405 * configure.ac: New option --with-guile.
406 * configure: Regenerate.
407 * config.in: Regenerate.
408 * auto-load.c: Remove #include "python/python.h". Add #include
409 "gdb/section-scripts.h".
410 (source_section_scripts): Handle Guile scripts.
411 (_initialize_auto_load): Add name of Guile objfile script to
412 scripts-directory help text.
413 * breakpoint.c (condition_command): Tweak comment to include Scheme.
414 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
415 (struct breakpoint): New member scm_bp_object.
416 * defs.h (enum command_control_type): New value guile_control.
417 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
419 (show_user): Update comment.
420 (_initialize_cli_cmds): Update help text for "show user". Update help
421 text for max-user-call-depth.
422 * cli/cli-script.c: Remove #include "python/python.h". Add #include
424 (multi_line_command_p): Add guile_control.
425 (print_command_lines): Handle guile_control.
426 (execute_control_command, recurse_read_control_structure): Ditto.
427 (process_next_line): Recognize "guile" commands.
428 * disasm.c (gdb_disassemble_info): Make non-static.
429 * disasm.h: #include "dis-asm.h".
430 (struct gdbarch): Add forward decl.
431 (gdb_disassemble_info): Declare.
432 * extension.c: #include "guile/guile.h".
433 (extension_languages): Add guile.
434 (get_ext_lang_defn): Handle EXT_LANG_GDB.
435 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
436 * gdbtypes.c (get_unsigned_type_max): New function.
437 (get_signed_type_minmax): New function.
438 * gdbtypes.h (get_unsigned_type_max): Declare.
439 (get_signed_type_minmax): Declare.
440 * guile/README: New file.
441 * guile/guile-internal.h: New file.
442 * guile/guile.c: New file.
443 * guile/guile.h: New file.
444 * guile/scm-arch.c: New file.
445 * guile/scm-auto-load.c: New file.
446 * guile/scm-block.c: New file.
447 * guile/scm-breakpoint.c: New file.
448 * guile/scm-disasm.c: New file.
449 * guile/scm-exception.c: New file.
450 * guile/scm-frame.c: New file.
451 * guile/scm-gsmob.c: New file.
452 * guile/scm-iterator.c: New file.
453 * guile/scm-lazy-string.c: New file.
454 * guile/scm-math.c: New file.
455 * guile/scm-objfile.c: New file.
456 * guile/scm-ports.c: New file.
457 * guile/scm-pretty-print.c: New file.
458 * guile/scm-safe-call.c: New file.
459 * guile/scm-string.c: New file.
460 * guile/scm-symbol.c: New file.
461 * guile/scm-symtab.c: New file.
462 * guile/scm-type.c: New file.
463 * guile/scm-utils.c: New file.
464 * guile/scm-value.c: New file.
465 * guile/lib/gdb.scm: New file.
466 * guile/lib/gdb/boot.scm: New file.
467 * guile/lib/gdb/experimental.scm: New file.
468 * guile/lib/gdb/init.scm: New file.
469 * guile/lib/gdb/iterator.scm: New file.
470 * guile/lib/gdb/printing.scm: New file.
471 * guile/lib/gdb/types.scm: New file.
472 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
473 (VPATH): Add $(GUILE_SRCDIR).
474 (GUILE_DIR): New variable.
475 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
476 (all): Add stamp-guile dependency.
477 (stamp-guile): New rule.
478 (clean-guile, install-guile, uninstall-guile): New rules.
479 (install-only): Add install-guile dependency.
480 (uninstall): Add uninstall-guile dependency.
481 (clean): Add clean-guile dependency.
483 2014-02-09 Doug Evans <xdje42@gmail.com>
485 Revert this patch (which I approved, mea culpa).
487 2014-02-08 Mark Kettenis <kettenis@gnu.org>
489 * Makefile.in (all-lib): Remove.
490 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
492 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
494 Fix Python stack corruption.
495 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
498 2014-02-08 Mark Kettenis <kettenis@gnu.org>
500 * Makefile.in (all-lib): Remove.
501 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
503 2014-02-07 Doug Evans <dje@google.com>
505 * extension-priv.h (extension_language_script_ops): Add comment.
506 (extension_language_ops): Add comment.
507 (active_ext_lang_state): Fix typo in comment.
509 2014-02-07 Pedro Alves <palves@redhat.com>
511 * infrun.c (handle_signal_stop) <signal arrives while stepping
512 over a breakpoint>: Switch back to the stepping thread.
514 2014-02-07 Yao Qi <yao@codesourcery.com>
516 * target.c (target_xfer_partial): Return zero if LEN is zero.
518 2014-02-07 Yao Qi <yao@codesourcery.com>
520 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
521 (ld_so_xfer_auxv): Likewise.
522 * bfd-target.c (target_bfd_xfer_partial): Likewise.
523 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
524 * corelow.c (core_xfer_partial): Likewise.
525 * ctf.c (ctf_xfer_partial): Likewise.
526 * darwin-nat.c (darwin_read_dyld_info): Likewise.
527 (darwin_xfer_partial): Likewise.
528 * exec.c (exec_xfer_partial): Likewise.
529 * gnu-nat.c (gnu_xfer_partial): Likewise.
530 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
531 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
532 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
533 * linux-nat.c (linux_xfer_siginfo): Likewise.
534 (linux_proc_xfer_spu): Likewise.
535 * procfs.c (procfs_xfer_partial): Likewise.
536 * record-full.c (record_full_xfer_partial): Likewise.
537 (record_full_core_xfer_partial): Likewise.
538 * remote-sim.c (gdbsim_xfer_partial): Likewise.
539 * remote.c (remote_write_qxfer): Likewise.
540 (remote_write_qxfer, remote_read_qxfer): Likewise.
541 (remote_xfer_partial): Likewise.
542 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
543 (rs6000_xfer_shared_libraries): Likewise.
544 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
545 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
546 (spu_xfer_partial): Likewise.
547 * target.c (memory_xfer_partial_1): Likewise.
548 * tracepoint.c (tfile_xfer_partial): Likewise.
549 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
550 (windows_xfer_partial): Likewise.
552 2014-02-07 Yao Qi <yao@codesourcery.com>
554 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
556 (core_xfer_shared_libraries_aix): Likewise.
557 * gdbarch.c, gdbarch.h: Regenerated.
558 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
559 ULONGEST. Change 'len_avail' type to ULONGEST.
560 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
561 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
563 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
565 2014-02-07 Yao Qi <yao@codesourcery.com>
567 * corefile.c (memory_error): Get 'exception' from ERR and pass
568 'exception' to throw_error.
570 2014-02-06 Doug Evans <xdje42@gmail.com>
572 * configure.ac (libpython checking): Remove all but python.o from
573 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
574 * configure: Regenerate.
576 * Makefile.in (SFILES): Add extension.c.
577 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
578 (COMMON_OBS): Add extension.o.
579 * extension.h: New file.
580 * extension-priv.h: New file.
581 * extension.c: New file.
583 * python/python-internal.h: #include "extension.h".
584 (gdbpy_auto_load_enabled): Declare.
585 (gdbpy_apply_val_pretty_printer): Declare.
586 (gdbpy_apply_frame_filter): Declare.
587 (gdbpy_preserve_values): Declare.
588 (gdbpy_breakpoint_cond_says_stop): Declare.
589 (gdbpy_breakpoint_has_cond): Declare.
590 (void source_python_script_for_objfile): Delete.
591 * python/python.c: #include "extension-priv.h".
592 Delete inclusion of "observer.h".
593 (extension_language_python): Moved here and renamed from
594 script_language_python in py-auto-load.c.
595 Redefined to be of type extension_language_defn.
596 (python_extension_script_ops): New global.
597 (python_extension_ops): New global.
598 (struct python_env): New member previous_active.
599 (restore_python_env): Call restore_active_ext_lang.
600 (ensure_python_env): Call set_active_ext_lang.
601 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
603 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
605 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
607 (gdbpy_eval_from_control_command): Renamed from
608 eval_python_from_control_command, made static. New arg extlang.
609 (gdbpy_source_script) Renamed from source_python_script, made static.
611 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
612 result to int. New arg extlang.
613 (gdbpy_source_objfile_script): Renamed from
614 source_python_script_for_objfile, made static. New arg extlang.
615 (gdbpy_start_type_printers): Renamed from start_type_printers, made
616 static. New args extlang, extlang_printers. Change result type to
618 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
619 static. New arg extlang. Rename arg printers to extlang_printers
620 and change type to ext_lang_type_printers *.
621 (gdbpy_free_type_printers): Renamed from free_type_printers, made
622 static. Replace argument arg with extlang, extlang_printers.
623 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
624 (!HAVE_PYTHON, source_python_script): Delete.
625 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
626 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
627 (!HAVE_PYTHON, start_type_printers): Delete.
628 (!HAVE_PYTHON, apply_type_printers): Delete.
629 (!HAVE_PYTHON, free_type_printers): Delete.
630 (_initialize_python): Delete call to observer_attach_before_prompt.
631 (finalize_python): Set/restore active extension language.
632 (gdbpy_finish_initialization) Renamed from
633 finish_python_initialization, made static. New arg extlang.
634 (gdbpy_initialized): New function.
635 * python/python.h: #include "extension.h". Delete #include
636 "value.h", "mi/mi-cmds.h".
637 (extension_language_python): Declare.
638 (GDBPY_AUTO_FILE_NAME): Delete.
639 (enum py_bt_status): Moved to extension.h and renamed to
641 (enum frame_filter_flags): Moved to extension.h.
642 (enum py_frame_args): Moved to extension.h and renamed to
644 (finish_python_initialization): Delete.
645 (eval_python_from_control_command): Delete.
646 (source_python_script): Delete.
647 (apply_val_pretty_printer): Delete.
648 (apply_frame_filter): Delete.
649 (preserve_python_values): Delete.
650 (gdbpy_script_language_defn): Delete.
651 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
652 (start_type_printers, apply_type_printers, free_type_printers): Delete.
654 * auto-load.c: #include "extension.h".
655 (GDB_AUTO_FILE_NAME): Delete.
656 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
657 (script_language_gdb): Delete, moved to extension.c and renamed to
658 extension_language_gdb.
659 (source_gdb_script_for_objfile): Delete.
660 (auto_load_pspace_info): New member unsupported_script_warning_printed.
661 (loaded_script): Change type of language member to
662 struct extension_language_defn *.
663 (init_loaded_scripts_info): Initialize
664 unsupported_script_warning_printed.
665 (maybe_add_script): Make static. Change type of language arg to
666 struct extension_language_defn *.
667 (clear_section_scripts): Reset unsupported_script_warning_printed.
668 (auto_load_objfile_script_1): Rewrite to use extension language API.
669 (auto_load_objfile_script): Make public. Remove support-compiled-in
670 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
671 (source_section_scripts): Rewrite to use extension language API.
672 (load_auto_scripts_for_objfile): Rewrite to use
673 auto_load_scripts_for_objfile.
674 (collect_matching_scripts_data): Change type of language member to
675 struct extension_language_defn *.
676 (auto_load_info_scripts): Change type of language arg to
677 struct extension_language_defn *.
678 (unsupported_script_warning_print): New function.
679 (script_not_found_warning_print): Make static.
680 (_initialize_auto_load): Rewrite construction of scripts-directory
682 * auto-load.h (struct objfile): Add forward decl.
683 (struct script_language): Delete.
684 (struct auto_load_pspace_info): Add forward decl.
685 (struct extension_language_defn): Add forward decl.
686 (maybe_add_script): Delete.
687 (auto_load_objfile_script): Declare.
688 (script_not_found_warning_print): Delete.
689 (auto_load_info_scripts): Update prototype.
690 (auto_load_gdb_scripts_enabled): Declare.
691 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
692 auto_load_python_scripts_enabled and made public.
693 (script_language_python): Delete, moved to python.c.
694 (gdbpy_script_language_defn): Delete.
695 (info_auto_load_python_scripts): Update to use
696 extension_language_python.
698 * breakpoint.c (condition_command): Replace call to
699 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
700 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
701 with call to breakpoint_ext_lang_cond_says_stop.
702 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
703 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
704 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
705 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
707 (local_setattro): Print name of extension language with existing
710 * valprint.c (val_print, value_print): Update to call
711 apply_ext_lang_val_pretty_printer.
712 * cp-valprint.c (cp_print_value): Update call to
713 apply_ext_lang_val_pretty_printer.
714 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
715 (gdbpy_apply_val_pretty_printer): Renamed from
716 apply_val_pretty_printer. New arg extlang.
717 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
719 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
720 extension language API.
721 * cli/cli-script.c (execute_control_command): Update to call
722 eval_ext_lang_from_control_command.
724 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
725 enum ext_lang_bt_status values. Update call to
726 apply_ext_lang_frame_filter.
727 (mi_cmd_stack_list_locals): Ditto.
728 (mi_cmd_stack_list_args): Ditto.
729 (mi_cmd_stack_list_variables): Ditto.
730 * mi/mi-main.c: Delete #include "python/python-internal.h".
731 Add #include "extension.h".
732 (mi_cmd_list_features): Replace reference to python internal variable
733 gdb_python_initialized with call to ext_lang_initialized_p.
735 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
736 Update to use enum ext_lang_frame_args. Update to call
737 apply_ext_lang_frame_filter.
738 * python/py-framefilter.c (extract_sym): Update to use enum
740 (extract_value, py_print_type, py_print_value): Ditto.
741 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
742 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
743 (py_print_frame): Ditto.
744 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
745 New arg extlang. Update to use enum ext_lang_bt_status.
747 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
748 finish_python_initialization. Replace with call to
749 finish_ext_lang_initialization.
751 * typeprint.c (do_free_global_table): Update to call
752 free_ext_lang_type_printers.
753 (create_global_typedef_table): Update to call
754 start_ext_lang_type_printers.
755 (find_global_typedef): Update to call apply_ext_lang_type_printers.
756 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
757 (type_print_options): Change type of global_printers from "void *"
758 to "struct ext_lang_type_printers *".
760 * value.c (preserve_values): Update to call preserve_ext_lang_values.
761 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
762 (gdbpy_preserve_values): Renamed from preserve_python_values.
764 (!HAVE_PYTHON, preserve_python_values): Delete.
766 * utils.c (quit_flag): Delete, moved to extension.c.
767 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
770 * eval.c: Delete #include "python/python.h".
771 * main.c: Delete #include "python/python.h".
773 * defs.h: Update comment.
775 2014-02-06 Joel Brobecker <brobecker@adacore.com>
779 2014-02-05 Mark Kettenis <kettenis@gnu.org>
781 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
784 2014-02-05 Yao Qi <yao@codesourcery.com>
786 * remote.c (remote_pass_signals): Remove local 'buf' and use
788 (remote_program_signals): Likewise.
790 2014-02-05 Yao Qi <yao@codesourcery.com>
792 * ctf.c: Include "inferior.h" and "gdbthread.h".
793 (CTF_PID): A new macro.
794 (ctf_open): Call inferior_appeared and add_thread_silent.
795 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
796 (ctf_thread_alive): New function.
797 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
799 2014-02-05 Yao Qi <yao@codesourcery.com>
803 2013-05-24 Yao Qi <yao@codesourcery.com>
805 * tracepoint.c (TFILE_PID): Remove.
806 (tfile_open): Don't add thread and inferior.
807 (tfile_close): Don't set 'inferior_ptid'. Don't call
808 exit_inferior_silent.
809 (tfile_thread_alive): Remove.
810 (init_tfile_ops): Don't set field 'to_thread_alive' of
813 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
815 * remote.c (remote_start_remote): Call remote_check_symbols even
816 if only symbol-file (not file) has been given.
818 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
820 * gdbarch.sh (skip_entrypoint): New callback.
821 * gdbarch.c, gdbarch.h: Regenerate.
822 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
823 * infrun.c (fill_in_stop_func): Likewise.
824 * ppc-linux-tdep.c: Include "elf/ppc64.h".
825 (ppc_elfv2_elf_make_msymbol_special): New function.
826 (ppc_elfv2_skip_entrypoint): Likewise.
827 (ppc_linux_init_abi): Install them for ELFv2.
829 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
831 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
832 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
833 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
834 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
835 structures returned in GPRs.
837 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
839 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
840 offset to the stack parameter list for the ELFv2 ABI.
842 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
844 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
845 set_gdbarch_convert_from_func_ptr_addr and
846 set_gdbarch_elf_make_msymbol_special for ELFv1.
847 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
848 function descriptors on ELFv1.
849 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
850 set up r12 at function entry.
852 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
854 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
855 (struct gdbarch_tdep): New member elf_abi.
857 * rs6000-tdep.c: Include "elf/ppc64.h".
858 (rs6000_gdbarch_init): Detect ELF ABI version.
860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
862 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
863 within a register pair holding a DFP 128-bit value on little-endian.
864 (ppc64_sysv_abi_return_value_base): Likewise.
865 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
866 (dfp_pseudo_register_write): Likewise.
868 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
871 offset on little-endian when passing _Decimal32.
872 (ppc64_sysv_abi_return_value_base): Likewise for return values.
874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
876 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
877 of the overlapped FP register within the VSX register on little-
879 (efpr_pseudo_register_write): Likewise.
881 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
883 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
884 offset on little-endian when passing small structures.
886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
888 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
889 (struct ppc64_sysv_argpos): New data structure.
890 (ppc64_sysv_abi_push_float): Remove.
891 (ppc64_sysv_abi_push_val): New function.
892 (ppc64_sysv_abi_push_integer): Likewise.
893 (ppc64_sysv_abi_push_freg): Likewise.
894 (ppc64_sysv_abi_push_vreg): Likewise.
895 (ppc64_sysv_abi_push_param): Likewise.
896 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
897 (ppc64_sysv_abi_return_value_base): New function.
898 (ppc64_sysv_abi_return_value): Refactor to use it.
900 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
902 * NEWS: Document new target powerpc64le-*-linux*.
904 2014-02-04 Mark Kettenis <kettenis@gnu.org>
906 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
907 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
909 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
910 register set used in ELF core dumps. Add floating-point register set.
912 2014-02-03 Kevin Buettner <kevinb@redhat.com>
914 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
915 dwarf2_to_gdb[] table using symbolic constants. Adjust
916 penultimate entry from number representing the PC register
917 to symbolic constant representing the MDR register. Add
918 constant for the PC register to the end of the table.
920 2014-02-03 Mark Kettenis <kettenis@gnu.org>
922 * bsd-kvm.c: Include <sys/param.h>
924 2014-02-03 Mark Kettenis <kettenis@gnu.org>
926 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
928 2014-01-31 Joel Brobecker <brobecker@adacore.com>
930 * ada-lang.h (clear_ada_sym_cache): Delete.
932 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
934 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
936 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
938 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
939 the sigreturn register save area only if the syscall is
942 2014-01-29 Joel Brobecker <brobecker@adacore.com>
944 * valops.c (value_slice): Minor reformatting.
946 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
948 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
950 2014-01-28 Joel Brobecker <brobecker@adacore.com>
952 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
954 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
955 (ada_ignore_descriptive_types_p): New static global.
956 (find_parallel_type_by_descriptive_type): Return immediately
957 if ada_ignore_descriptive_types_p is set.
958 (_initialize_ada_language): Register new commands "maintenance
959 set ada", "maintenance show ada", "maintenance set ada
960 ignore-descriptive-types" and "maintenance show ada
961 ignore-descriptive-types".
962 * NEWS: Add entry for new "maint ada set/show
963 ignore-descriptive-types" commands.
965 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
967 * record-btrace.c (record_btrace_close): Call btrace_teardown
970 2014-01-27 Joel Brobecker <brobecker@adacore.com>
972 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
975 2014-01-27 Joel Brobecker <brobecker@adacore.com>
977 * ada-typeprint (type_is_full_subrange_of_target_type):
979 (print_range): Add parameter bounds_prefered_p. If not set,
980 try printing range types using the name of their base type.
981 (print_range_type): Add parameter bounds_prefered_p.
982 Use it in call to print_range.
983 (print_array_type, ada_print_type): Update calls to print_range
984 and print_range_type.
986 2014-01-27 Joel Brobecker <brobecker@adacore.com>
988 * ada-typeprint.c (print_array_type, print_choices, print_range)
989 (print_range_bound, print_dynamic_range_bound, print_range_type):
992 2014-01-27 Joel Brobecker <brobecker@adacore.com>
994 * ada-typeprint.c (print_range): Add missing empty line
995 after local declaration.
997 2014-01-27 Joel Brobecker <brobecker@adacore.com>
999 * ada-valprint.c (print_optional_low_bound): Get index_type's
1000 target type for as long as it is a TYPE_CODE_RANGE.
1002 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1004 * procfs.c (procfs_make_note_section): Remove assertion and
1007 2014-01-24 Yao Qi <yao@codesourcery.com>
1009 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1010 * corelow.c (get_core_siginfo): Likewise.
1012 2014-01-24 Yao Qi <yao@codesourcery.com>
1014 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1015 ULONGEST. Don't check 'len' is negative.
1016 (remote_write_bytes): Change type of 'len' to ULONGEST.
1018 2014-01-23 Tom Tromey <tromey@redhat.com>
1021 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1022 Handle exception from frame.block.
1023 (FrameVars.fetch_frame_locals): Likewise.
1025 2014-01-23 Tom Tromey <tromey@redhat.com>
1028 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1029 on a NULL pointer. Move "goto error" to correct place.
1031 2014-01-23 Tom Tromey <tromey@redhat.com>
1034 * python/py-framefilter.c (apply_frame_filter): Call
1035 ensure_python_env after computing gdbarch.
1037 2014-01-23 Yao Qi <yao@codesourcery.com>
1039 * target.c (raw_memory_xfer_partial): Change argument type
1040 from void * to gdb_byte *.
1041 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1043 2014-01-22 Doug Evans <dje@google.com>
1045 New gdbserver option --debug-format=timestamp.
1048 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1050 * syscalls/s390x-linux.xml: New file.
1051 * syscalls/s390-linux.xml: New file.
1052 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1053 (XML_SYSCALL_FILENAME_S390X): Likewise.
1054 (op_svc): New enum value for SVC opcode.
1055 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1056 (s390_linux_get_syscall_number): New function.
1057 (s390_gdbarch_init): Register '*get_syscall_number' and the
1058 syscall xml file name.
1059 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1060 "s390-linux.xml" and "s390x-linux.xml".
1061 * NEWS: Announce new feature.
1063 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1065 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1067 2014-01-22 Pedro Alves <palves@redhat.com>
1069 * xtensa-config.c: Include defs.h.
1071 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1073 * common/common-utils.h: Add "ARI:" comment beside __func__
1076 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1078 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1079 documentation a bit.
1081 2014-01-21 Roland McGrath <mcgrathr@google.com>
1083 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1084 * configure: Regenerate.
1085 * aclocal.m4: Regenerate.
1086 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1087 New substituted variables.
1088 (install-strip): New target.
1089 (INSTALL_SCRIPT): New substituted variable.
1090 (FLAGS_TO_PASS): Add it.
1091 (install-only): Use $(INSTALL_SCRIPT) rather than
1092 $(INSTALL_PROGRAM) for gcore.
1094 2014-01-20 Tom Tromey <tromey@redhat.com>
1096 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1099 2014-01-20 Tom Tromey <tromey@redhat.com>
1101 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1102 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1103 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1104 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1105 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1106 (struct cmd_list_element) <flags>: Remove.
1107 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1108 doc_allocated>: New fields.
1109 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1111 * maint.c (maintenance_do_deprecate): Update.
1112 * top.c (execute_command): Update.
1114 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1116 * xtensa-linux-nat.c: Include asm/ptrace.h.
1118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1120 * Makefile.in (SFILES): Add d-support.c.
1121 (COMMON_OBS): Add d-support.o.
1122 * d-lang.h (d_parse_symbol): Add comment, now defined in
1124 * d-lang.c (parse_call_convention)
1125 (parse_attributes, parse_function_types)
1126 (parse_function_args, parse_type, parse_identifier)
1127 (call_convention_p, d_parse_symbol): Move functions to ...
1128 * d-support.c: ... New file.
1130 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1132 * d-lang.h (d_parse_symbol): Add declaration.
1133 * d-lang.c (extract_identifiers)
1134 (extract_type_info): Remove functions.
1135 (parse_call_convention, parse_attributes)
1136 (parse_function_types, parse_function_args)
1137 (parse_type, parse_identifier, call_convention_p)
1138 (d_parse_symbol): New functions.
1139 (d_demangle): Use d_parse_symbol to demangle D symbols.
1141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1143 * d-lang.h (struct builtin_d_type): New data type.
1144 (builtin_d_type): Add declaration.
1145 * d-lang.c (d_language_arch_info, build_d_types)
1146 (builtin_d_type): New functions.
1147 (enum d_primitive_types): New data type.
1148 (d_language_defn): Change c_language_arch_info to
1149 d_language_arch_info.
1150 (d_type_data): New static variable.
1151 (_initialize_d_language): Initialize d_type_data.
1153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1155 * d-lang.h (d_main_name): Add declaration.
1156 * d-lang.c (d_main_name): New function.
1157 * symtab.c (find_main_name): Add call to d_main_name.
1159 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1161 * d-lang.c (d_language_defn): Change macro_expansion_c to
1164 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1166 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1168 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1170 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1171 gdb_exception" declaration.
1172 * remote.c (getpkt_or_notif_sane): Likewise.
1174 2014-01-17 Doug Evans <dje@google.com>
1176 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1177 function, contents of dirnames_to_char_ptr_vec_append moved here.
1178 (delim_string_to_char_ptr_vec): New function.
1179 (dirnames_to_char_ptr_vec_append): Rewrite.
1180 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1182 2014-01-17 Doug Evans <dje@google.com>
1184 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1186 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1187 #include "common-utils.h".
1188 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1189 * common/vec.h (VEC_ASSERT_PASS): Update.
1190 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1191 (MACH_CHECK_ERROR): Update.
1193 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1195 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1197 * gdbarch.h: Regenerate.
1199 2014-01-16 Tom Tromey <tromey@redhat.com>
1201 * value.c (struct value) <regnum>: Move earlier.
1203 2014-01-16 Tom Tromey <tromey@redhat.com>
1205 * remote.c (extended_remote_create_inferior): Rename from
1206 extended_remote_create_inferior_1. Add "ops" argument. Remove
1209 2014-01-16 Pedro Alves <palves@redhat.com>
1211 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1212 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1215 2014-01-16 Doug Evans <dje@google.com>
1217 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1221 * btrace.h (btrace_thread_flag): New.
1222 (struct btrace_thread_info) <flags>: New.
1223 * record-btrace.c (record_btrace_resume_thread)
1224 (record_btrace_find_thread_to_move, btrace_step_no_history)
1225 (btrace_step_stopped, record_btrace_start_replaying)
1226 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1227 (record_btrace_find_resume_thread): New.
1228 (record_btrace_resume, record_btrace_wait): Extend.
1229 (record_btrace_can_execute_reverse): New.
1230 (record_btrace_open): Fail in non-stop mode.
1231 (record_btrace_set_replay): Split into this, ...
1232 (record_btrace_stop_replaying): ... this, ...
1233 (record_btrace_clear_histories): ... and this.
1234 (init_record_btrace_ops): Init to_can_execute_reverse.
1235 * NEWS: Announce it.
1237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1239 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1240 (forward_target_decr_pc_after_break)
1241 (target_decr_pc_after_break): New.
1242 * target.c (forward_target_decr_pc_after_break)
1243 (target_decr_pc_after_break): New.
1244 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1245 instead of gdbarch_decr_pc_after_break.
1246 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1247 instead of gdbarch_decr_pc_after_break.
1248 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1249 instead of gdbarch_decr_pc_after_break.
1250 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1251 instead of gdbarch_decr_pc_after_break.
1252 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1253 instead of gdbarch_decr_pc_after_break.
1254 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1255 instead of gdbarch_decr_pc_after_break.
1257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1259 * btrace.c: Include regcache.h.
1260 (btrace_add_pc): New.
1261 (btrace_enable): Call btrace_add_pc.
1262 (btrace_is_empty): New.
1263 * btrace.h (btrace_is_empty): New.
1264 * record-btrace.c (require_btrace, record_btrace_info): Call
1267 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1269 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1270 Support delta reads.
1271 (linux_disable_btrace): Change return type.
1272 * common/linux-btrace.h (linux_read_btrace): Change parameters
1273 and return type to allow error reporting. Update users.
1274 (linux_disable_btrace): Change return type. Update users.
1275 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1277 (btrace_error): New.
1278 (btrace_block) <begin>: Comment on BEGIN == 0.
1279 * btrace.c (btrace_compute_ftrace): Start from the end of
1281 (btrace_stitch_trace, btrace_clear_history): New.
1282 (btrace_fetch): Read delta trace, return if replaying.
1283 (btrace_clear): Move clear history code to btrace_clear_history.
1284 (parse_xml_btrace): Throw an error if parsing failed.
1285 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1286 and return type to allow error reporting.
1287 (target_read_btrace): Change parameters and return type to allow
1289 * target.c (target_read_btrace): Update.
1290 * remote.c (remote_read_btrace): Support delta reads. Pass
1292 * NEWS: Announce it.
1294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1296 * record.h (record_btrace_frame_unwind)
1297 (record_btrace_tailcall_frame_unwind): New declarations.
1298 * dwarf2-frame: Include record.h
1299 (dwarf2_frame_cfa): Throw an error for btrace frames.
1300 * record-btrace.c: Include hashtab.h.
1301 (btrace_get_bfun_name): New.
1302 (btrace_call_history): Call btrace_get_bfun_name.
1303 (struct btrace_frame_cache): New.
1305 (bfcache_hash, bfcache_eq, bfcache_new): New.
1306 (btrace_get_frame_function): New.
1307 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1308 (record_btrace_frame_this_id): Compute own id.
1309 (record_btrace_frame_prev_register): Provide PC, throw_error
1310 for all other registers.
1311 (record_btrace_frame_sniffer): Detect btrace frames.
1312 (record_btrace_tailcall_frame_sniffer): New.
1313 (record_btrace_frame_dealloc_cache): New.
1314 (record_btrace_frame_unwind): Add new functions.
1315 (record_btrace_tailcall_frame_unwind): New.
1316 (_initialize_record_btrace): Allocate cache.
1317 * btrace.c (btrace_clear): Call reinit_frame_cache.
1318 * NEWS: Announce it.
1320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1322 * record-btrace.c (record_btrace_set_replay)
1323 (record_btrace_goto_begin, record_btrace_goto_end)
1324 (record_btrace_goto): New.
1325 (init_record_btrace_ops): Initialize them.
1326 * NEWS: Announce it.
1328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1330 * record-btrace.c (record_btrace_find_new_threads)
1331 (record_btrace_thread_alive): New.
1332 (init_record_btrace_ops): Initialize to_find_new_threads and
1335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1337 * record-btrace.c (record_btrace_resume): New.
1338 (record_btrace_wait): New.
1339 (init_record_btrace_ops): Initialize to_wait and to_resume.
1341 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1343 * record-btrace.c (record_btrace_xfer_partial)
1344 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1345 (record_btrace_allow_memory_access): New.
1346 (init_record_btrace_ops): Initialize new methods.
1347 * target.c (raw_memory_xfer_partial): Bail out if target reports
1348 that this memory is not available.
1350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1352 * target.h (target_ops) <to_insert_breakpoint>
1353 <to_remove_breakpoint>: Add target_ops parameter.
1354 (forward_target_insert_breakpoint): New.
1355 (forward_target_remove_breakpoint): New.
1356 (memory_remove_breakpoint, memory_insert_breakpoint):
1357 Add target_ops parameter.
1358 * target.c (target_insert_breakpoint): Split into this and ...
1359 (forward_target_insert_breakpoint): ... this.
1360 (target_remove_breakpoint): Split into this and ...
1361 (forward_target_remove_breakpoint): ... this.
1362 (debug_to_insert_breakpoint): Add target_ops parameter.
1363 Call forward_target_insert_breakpoint.
1364 (debug_to_remove_breakpoint): Add target_ops parameter.
1365 Call forward_target_remove_breakpoint.
1366 (update_current_target): Do not inherit or default to_insert_breakpoint
1367 and to_remove_breakpoint.
1368 * corelow.c (ignore): Add target_ops parameter.
1369 * exec.c (ignore): Add target_ops parameter.
1370 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1371 Add target_ops parameter.
1372 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1373 Add target_ops parameter.
1374 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1375 Add target_ops parameter.
1376 * record-full.c (record_full_beneath_to_insert_breakpoint)
1377 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1378 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1379 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1380 (record_full_core_remove_breakpoint): Add target_ops parameter.
1382 (record_full_beneath_to_insert_breakpoint_ops)
1383 (record_full_beneath_to_remove_breakpoint_ops)
1384 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1385 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1386 tmp_to_remove_breakpoint_ops,
1387 record_full_beneath_to_insert_breakpoint_ops, and
1388 record_full_beneath_to_remove_breakpoint_ops.
1389 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1390 (m32r_remove_breakpoint): Add target_ops parameter.
1391 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1392 Add target_ops parameter.
1393 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1394 Add target_ops parameter.
1396 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1397 Markus Metzger <markus.t.metzger@intel.com>
1399 * record-btrace.c: Include frame-unwind.h.
1400 (record_btrace_frame_unwind_stop_reason)
1401 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1402 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1404 (init_record_btrace_ops): Install it.
1406 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1408 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1411 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1413 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
1416 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1418 * frame-unwind.c: Include target.h.
1419 (frame_unwind_try_unwinder): New function with code from ...
1420 (frame_unwind_find_by_frame): ... here. New variable
1421 unwinder_from_target, call also target_get_unwinder)
1422 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
1423 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
1424 * target.h (struct target_ops): New fields to_get_unwinder and
1425 to_get_tailcall_unwinder.
1426 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
1428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1430 * record-btrace.c (record_btrace_fetch_registers)
1431 (record_btrace_store_registers)
1432 (record_btrace_to_prepare_to_store): New.
1433 (init_record_btrace_ops): Add the above.
1435 2014-01-16 Tom Tromey <tromey@redhat.com>
1437 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
1438 * target.h (struct target_ops) <to_prepare_to_store>: Add
1440 (target_prepare_to_store): Add argument.
1441 * target.c (debug_to_prepare_to_store): Add argument.
1442 (update_current_target): Update.
1443 * remote.c (remote_prepare_to_store): Add 'self' argument.
1444 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
1445 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
1446 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
1447 * record-full.c (record_full_core_prepare_to_store): Add 'self'
1449 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
1450 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
1451 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
1452 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
1453 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
1455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1457 * btrace.h (replay) <replay>: New.
1458 (btrace_is_replaying): New.
1459 * btrace.c (btrace_clear): Free replay iterator.
1460 (btrace_is_replaying): New.
1461 * record-btrace.c (record_btrace_is_replaying): New.
1462 (record_btrace_info): Print insn number if replaying.
1463 (record_btrace_insn_history): Start at replay position.
1464 (record_btrace_call_history): Start at replay position.
1465 (init_record_btrace_ops): Init to_record_is_replaying.
1467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1469 * record-btrace.c (record_btrace_insn_history_range): Include
1471 (record_btrace_insn_history_from): Adjust range.
1472 (record_btrace_call_history_range): Include
1474 (record_btrace_call_history_from): Adjust range.
1475 * NEWS: Announce changes.
1477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1479 * record.h (enum record_print_flag)
1480 <record_print_indent_calls>: New.
1481 * record.c (get_call_history_modifiers): Recognize /c modifier.
1482 (_initialize_record): Document /c modifier.
1483 * record-btrace.c (btrace_call_history): Add btinfo parameter.
1484 Reorder fields. Optionally indent the function name. Update
1486 * NEWS: Announce changes.
1488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1490 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
1492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1494 * btrace.c (ftrace_new_function): Start counting at one.
1495 * record-btrace.c (record_btrace_info): Adjust number of calls
1497 * NEWS: Announce it.
1499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1501 * record-btrace.c (btrace_call_history_insn_range): Print
1502 insn range as [begin, end].
1504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1506 * btrace.h (struct btrace_func_link): New.
1507 (enum btrace_function_flag): New.
1508 (struct btrace_inst): Rename to ...
1509 (struct btrace_insn): ...this. Update all users.
1510 (struct btrace_func) <ibegin, iend>: Remove.
1511 (struct btrace_func_link): New.
1512 (struct btrace_func): Rename to ...
1513 (struct btrace_function): ...this. Update all users.
1514 (struct btrace_function) <segment, flow, up, insn, insn_offset)
1515 (number, level, flags>: New.
1516 (struct btrace_insn_iterator): Rename to ...
1517 (struct btrace_insn_history): ...this.
1519 (struct btrace_insn_iterator, btrace_call_iterator): New.
1520 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
1521 (struct btrace_target_info) <begin, end, level>
1522 <insn_history, call_history>: New.
1523 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1524 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1525 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1526 (btrace_call_number, btrace_call_begin, btrace_call_end)
1527 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1528 (btrace_find_function_by_number, btrace_set_insn_history)
1529 (btrace_set_call_history): New.
1530 * btrace.c (btrace_init_insn_iterator)
1531 (btrace_init_func_iterator, compute_itrace): Remove.
1532 (ftrace_print_function_name, ftrace_print_filename)
1533 (ftrace_skip_file): Change
1535 (ftrace_init_func): Remove.
1536 (ftrace_debug): Use new btrace_function fields.
1537 (ftrace_function_switched): Also consider gaining and
1538 losing symbol information).
1539 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
1540 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
1541 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
1543 (ftrace_new_function): Move. Remove debug print.
1544 (ftrace_update_lines, ftrace_update_insns): New.
1545 (ftrace_update_function): Check for call, ret, and jump.
1546 (compute_ftrace): Renamed to ...
1547 (btrace_compute_ftrace): ...this. Rewritten to compute call
1549 (btrace_fetch, btrace_clear): Updated.
1550 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
1551 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
1552 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
1553 (btrace_call_number, btrace_call_begin, btrace_call_end)
1554 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
1555 (btrace_find_function_by_number, btrace_set_insn_history)
1556 (btrace_set_call_history): New.
1557 * record-btrace.c (require_btrace): Use new btrace thread
1559 (record_btrace_info, btrace_insn_history)
1560 (record_btrace_insn_history, record_btrace_insn_history_range):
1561 Use new btrace thread info fields and new iterator.
1562 (btrace_func_history_src_line): Rename to ...
1563 (btrace_call_history_src_line): ...this. Use new btrace
1565 (btrace_func_history): Rename to ...
1566 (btrace_call_history): ...this. Use new btrace thread info
1567 fields and new iterator.
1568 (record_btrace_call_history, record_btrace_call_history_range):
1569 Use new btrace thread info fields and new iterator.
1571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1573 * frame.h (frame_id_build_unavailable_stack_special): New.
1574 * frame.c (frame_id_build_unavailable_stack_special): New.
1576 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1578 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
1579 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
1580 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
1582 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
1583 (i386_insn_is_jump, i386_jmp_p): New.
1584 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
1585 insn_is_jump to gdbarch.
1586 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
1587 * gdbarch.h: Regenerated.
1588 * gdbarch.c: Regenerated.
1589 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
1590 (default_insn_is_jump): New.
1591 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
1592 (default_insn_is_jump): New.
1594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1596 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
1598 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
1599 (btrace_read_type) <btrace_read_new>: Change to ...
1600 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
1602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1604 * common/linux-btrace.c (linux_read_btrace): Free trace from
1607 2014-01-15 Doug Evans <dje@google.com>
1609 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
1612 2014-01-15 Tom Tromey <tromey@redhat.com>
1614 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
1615 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
1616 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
1617 (set_objfile_main_name): New function.
1618 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
1619 language_of_main>: New fields.
1620 (set_objfile_main_name): Declare.
1621 * symtab.c (find_main_name): Loop over objfiles to find the main
1623 (set_main_name): Now static.
1624 (get_main_info): Add comment.
1625 * symtab.h (set_main_name): Don't declare.
1627 2014-01-15 Tom Tromey <tromey@redhat.com>
1629 * symtab.c (main_progspace_key): New global.
1630 (struct main_info): New.
1631 (name_of_main, language_of_main): Remove.
1632 (get_main_info, main_info_cleanup): New function.
1633 (set_main_name, main_name, main_language): Use get_main_info.
1634 (_initialize_symtab): Initialize main_progspace_key.
1636 2014-01-15 Tom Tromey <tromey@redhat.com>
1638 * dbxread.c (process_one_symbol): Update.
1639 * dwarf2read.c (read_partial_die): Update.
1640 * symfile.c (set_initial_language): Call main_language.
1641 * symtab.c (language_of_main): Now static.
1642 (set_main_name): Add 'lang' parameter.
1643 (find_main_name): Update.
1644 (main_language): New function.
1645 (symtab_observer_executable_changed): Update.
1646 * symtab.h (set_main_name): Update.
1647 (language_of_main): Remove.
1648 (main_language): Declare.
1650 2014-01-15 Tom Tromey <tromey@redhat.com>
1652 * symfile.c (init_entry_point_info): Use new "initialized" field.
1654 * objfiles.h (struct entry_point) <initialized>: New field.
1655 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
1656 (struct objfile) <ei>: ...here. Remove.
1657 * objfiles.c (entry_point_address_query): Update.
1659 2014-01-15 Tom Tromey <tromey@redhat.com>
1661 * objfiles.c (entry_point_address_query): Relocate entry point
1663 (objfile_relocate1): Do not relocate entry point address.
1664 * objfiles.h (struct entry_info) <entry_point>: Update comment.
1665 <the_bfd_section_index>: New field.
1666 * symfile.c (init_entry_point_info): Find the entry point's
1669 2014-01-15 Tom Tromey <tromey@redhat.com>
1671 * solib-frv.c (enable_break): Use entry_point_address_query.
1673 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1675 * NEWS: Add note on improved process record-replay on
1676 arm*-linux* targets.
1678 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1680 * arm-tdep.c (enum arm_record_result): New enum.
1681 (arm_record_unsupported_insn): New function.
1682 (arm_record_coproc_data_proc): Removed.
1683 (thumb2_record_ld_st_multiple): New function.
1684 (thumb2_record_ld_st_dual_ex_tbb): New function.
1685 (thumb2_record_data_proc_sreg_mimm): New function.
1686 (thumb2_record_ps_dest_generic): New function.
1687 (thumb2_record_branch_misc_cntrl): New function.
1688 (thumb2_record_str_single_data): New function.
1689 (thumb2_record_ld_mem_hints): New function.
1690 (thumb2_record_ld_word): New function.
1691 (thumb2_record_lmul_lmla_div): New function.
1692 (thumb2_record_decode_insn_handler): New function.
1693 (decode_insn): Add thumb32 instruction handlers.
1695 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1697 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
1698 (struct arm_linux_record_tdep): Declare.
1699 (arm_canonicalize_syscall): New function.
1700 (arm_all_but_pc_registers_record): New function.
1701 (arm_linux_syscall_record): New function.
1702 (arm_linux_init_abi): Add syscall recording constructs.
1703 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
1704 decoding. (arm_record_coproc_data_proc): Update arm syscall
1706 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
1707 <arm_syscall_record>: New field.
1708 * configure.tgt (arm*-*-linux*): Add linux-record.o to
1711 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1713 * arm-tdep.c (thumb_record_misc): Update to use sp as base
1714 register for push instruction recording.
1716 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1718 * arm-tdep.c (thumb_record_misc): Update to correct logical
1719 error while recording ldm, ldmia and pop instructions.
1721 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
1723 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
1725 2014-01-15 Pedro Alves <palves@redhat.com>
1727 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
1728 (go32_resume, go32_fetch_registers, store_register)
1729 (go32_store_registers, go32_prepare_to_store)
1730 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
1731 (go32_create_inferior, go32_can_run, go32_terminal_init)
1732 (go32_terminal_inferior, go32_terminal_ours): Delete forward
1735 2014-01-15 Tom Tromey <tromey@redhat.com>
1737 * target.h (async_callback_ftype): New typedef.
1738 (struct target_ops) <to_async>: Use it.
1740 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1742 * python/py-value.c (get_field_type): Remove unnecessary curly
1743 braces for single-statement if block.
1745 2014-01-15 Joel Brobecker <brobecker@adacore.com>
1747 * python/py-type.c (convert_field): Add missing empty line
1750 2014-01-14 Doug Evans <dje@google.com>
1752 * symfile.h (expand_symtabs_matching): Renamed from
1753 expand_partial_symbol_names. Update prototype.
1754 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1755 * symfile.c (expand_symtabs_matching): Renamed from
1756 expand_partial_symbol_names. New args file_matcher, kind.
1757 Rename arg fun to symbol_matcher.
1758 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
1759 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
1760 ada_expand_partial_symbol_name.
1761 (ada_make_symbol_completion_list): Update to call
1762 expand_symtabs_matching.
1763 (ada_add_global_exceptions): Call expand_symtabs_matching.
1764 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
1765 call map_symbol_filenames.
1766 * symtab.c (sources_info): Update to call map_symbol_filenames.
1767 (search_symbols): Call expand_symtabs_matching.
1768 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
1769 (default_make_symbol_completion_list_break_on): Update to call
1770 expand_symtabs_matching.
1771 (make_source_files_completion_list): Update to call
1772 map_symbol_filenames.
1774 2014-01-14 Doug Evans <dje@google.com>
1776 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
1777 (expand_symtabs_symbol_matcher_ftype): New typedef.
1778 (quick_symbol_functions.expand_symtabs_matching): Update to use.
1779 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1780 * symfile.c (expand_partial_symbol_names): Update to use
1781 expand_symtabs_symbol_matcher_ftype.
1782 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
1783 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1784 Arg name_matcher renamed to symbol_matcher.
1785 * psymtab.c (recursively_search_psymtabs): Update to use
1786 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
1788 (expand_symtabs_matching_via_partial): Update to use
1789 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1790 Arg name_matcher renamed to symbol_matcher.
1792 2014-01-14 Doug Evans <dje@google.com>
1794 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
1795 (map_partial_symbol_filenames): Ditto.
1796 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
1797 (map_partial_symbol_filenames): Ditto.
1798 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
1799 (map_partial_symbol_filenames): Ditto.
1800 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
1801 (map_partial_symbol_filenames): Ditto.
1802 * symtab.c: Delete #include "psymtab.h".
1804 2014-01-14 Pedro Alves <palves@redhat.com>
1805 Tom Tromey <tromey@redhat.com>
1807 * infrun.c (use_displaced_stepping): Use find_record_target
1808 instead of RECORD_IS_USED.
1809 (adjust_pc_after_break): Use record_full_is_used instead of
1811 * record-btrace.c (record_btrace_open): Call record_preopen
1812 instead of checking RECORD_IS_USED.
1813 * record-full.c (record_full_shortname)
1814 (record_full_core_shortname): New globals.
1815 (record_full_is_used): New function.
1816 (find_full_open): Call record_preopen instead of checking
1818 (init_record_full_ops): Set the target's shortname to
1819 record_full_shortname.
1820 (init_record_full_core_ops): Set the target's shortname to
1821 record_full_core_shortname.
1822 * record-full.h (record_full_is_used): Declare.
1823 * record.c (find_record_target): Make extern.
1824 (record_preopen): New function.
1825 * record.h (RECORD_IS_USED): Delete macro.
1826 (find_record_target, record_preopen): Declare functions.
1828 2014-01-14 Yao Qi <yao@codesourcery.com>
1830 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
1831 'len''s type to ULONGEST.
1832 (core_xfer_shared_libraries_aix): Likewise.
1833 * gdbarch.c, gdbarch.h: Regenerated.
1834 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
1835 Change type of 'len' to ULONGEST.
1836 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1837 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1839 2014-01-14 Yao Qi <yao@codesourcery.com>
1841 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
1842 type of 'len' to ULONGEST.
1843 (linux_xfer_osdata_processgroups): Likewise.
1844 (linux_xfer_osdata_threads): Likewise.
1845 (linux_xfer_osdata_fds): Likewise.
1846 (linux_xfer_osdata_isockets): Likewise.
1847 (linux_xfer_osdata_shm): Likewise.
1848 (linux_xfer_osdata_sem): Likewise.
1849 (linux_xfer_osdata_msg): Likewise.
1850 (linux_common_xfer_osdata): Likewise.
1851 (struct osdata_type) <getter>: Likewise.
1852 * common/linux-osdata.h (linux_common_xfer_osdata): Update
1855 2014-01-14 Yao Qi <yao@codesourcery.com>
1857 * target.h (target_xfer_partial_ftype): Update.
1858 (struct target_ops) <to_xfer_partial>: Change 'len' type to
1860 * aix-thread.c (aix_thread_xfer_partial): Change type of
1861 argument 'len' to ULONGEST.
1862 * auxv.c (procfs_xfer_auxv): Likewise.
1863 (ld_so_xfer_auxv): Likewise.
1864 (memory_xfer_auxv): Likewise.
1865 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1866 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1867 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1868 * corelow.c (core_xfer_partial): Likewise.
1869 * ctf.c (ctf_xfer_partial): Likewise.
1870 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
1872 (darwin_read_dyld_info): Likewise.
1873 (darwin_xfer_partial): Likewise.
1874 * exec.c (section_table_xfer_memory_partial): Likewise.
1875 (exec_xfer_partial): Likewise.
1876 * exec.h (section_table_xfer_memory_partial): Update
1878 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
1879 instead of plongest.
1880 (gnu_xfer_partial): Likewise.
1881 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
1882 (ia64_hpux_xfer_solib_got): Likewise.
1883 (ia64_hpux_xfer_partial): Likewise.
1884 * ia64-linux-nat.c (ia64_linux_xfer_partial):
1885 * inf-ptrace.c (inf_ptrace_xfer_partial):
1886 * inf-ttrace.c (inf_ttrace_xfer_partial):
1887 * linux-nat.c (linux_xfer_siginfo): Likewise.
1888 (linux_nat_xfer_partial): Likewise.
1889 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
1890 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
1891 * monitor.c (monitor_xfer_memory): Likewise.
1892 (monitor_xfer_partial): Likewise.
1893 * procfs.c (procfs_xfer_partial): Likewise.
1894 * record-full.c (record_full_xfer_partial): Likewise.
1895 (record_full_core_xfer_partial): Likewise.
1896 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
1897 instead of plongest.
1898 (gdbsim_xfer_partial): Likewise.
1899 * remote.c (remote_xfer_partial): Likewise.
1900 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1901 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1903 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1904 (rs6000_xfer_shared_libraries): Likewise.
1905 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1906 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1907 (sparc_xfer_partial): Likewise.
1908 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1909 (spu_xfer_partial): Likewise.
1910 * spu-multiarch.c (spu_xfer_partial): Likewise.
1911 * target.c (target_read_live_memory): Likewise.
1912 (memory_xfer_live_readonly_partial): Likewise.
1913 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
1914 (target_xfer_partial, default_xfer_partial): Likewise.
1915 (current_xfer_partial): Likewise.
1916 * tracepoint.c (tfile_xfer_partial): Likewise.
1917 * windows-nat.c (windows_xfer_memory): Likewise. Call
1918 pulongest instead of plongest.
1919 (windows_xfer_partial): Likewise.
1920 (windows_xfer_shared_libraries): Likewise.
1922 2014-01-14 Yao Qi <yao@codesourcery.com>
1924 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
1925 target_xfer_partial_ftype.
1927 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
1931 * valops.c (value_struct_elt_bitpos): New function
1932 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
1933 object to 'None' if the field name is an empty string ("").
1934 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
1935 attribute to look for a field when 'name' is 'None'.
1936 (get_field_type): New function
1938 2014-01-13 Doug Evans <dje@google.com>
1941 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
1942 (try_open_dwop_file): Ditto.
1943 * gdb_bfd.c: #include "vec.h".
1944 (bfdp): New typedef.
1945 (struct gdb_bfd_data): New member included_bfds.
1946 (gdb_bfd_unref): Unref all included bfds.
1947 (gdb_bfd_record_inclusion): New function.
1948 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
1950 2014-01-13 Tom Tromey <tromey@redhat.com>
1952 * gdbcore.h (deprecated_core_resize_section_table): Remove.
1954 2014-01-13 Tom Tromey <tromey@redhat.com>
1956 * defs.h (use_windows): Remove.
1957 * gdb.c (main): Update.
1958 * main.c (captured_main, gdb_main): Update.
1959 * main.h (struct captured_main_args) <use_windows>: Remove.
1960 * top.c (use_windows): Remove.
1962 2014-01-13 Tom Tromey <tromey@redhat.com>
1964 * defs.h (deprecated_flush_hook): Remove.
1966 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1969 * linux-thread-db.c (try_thread_db_load): Add parameter
1970 check_auto_load_safe. Move here the file_is_auto_load_safe call.
1971 (try_thread_db_load_from_pdir_1): Move it there from here.
1972 (try_thread_db_load_from_sdir): Update caller.
1973 (try_thread_db_load_from_dir): Move it there from here.
1975 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
1977 * regformats/regdat.sh: Always rewrite the register file.
1979 2014-01-13 Pedro Alves <palves@redhat.com>
1981 * Makefile.in (CHECK_HEADERS): New variable.
1982 (check-headers:): New rule.
1984 2014-01-13 Tom Tromey <tromey@redhat.com>
1986 * cli/cli-setshow.c (do_set_command): Update.
1987 * defs.h (deprecated_set_hook): Remove.
1988 * top.c (deprecated_set_hook): Remove.
1990 2014-01-13 Pedro Alves <palves@redhat.com>
1992 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
1993 the tracepoint if the PC is a pseudo-register.
1995 2014-01-13 Tom Tromey <tromey@redhat.com>
1997 * defs.h (XCALLOC): Remove.
1998 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
1999 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2000 * dwarf2loc.c (allocate_piece_closure): Likewise.
2001 * elfread.c (elf_symfile_segments): Likewise.
2002 (elf_symfile_segments): Likewise.
2003 * gdbtypes.c (copy_type_recursive): Likewise.
2004 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2005 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2006 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2008 * mt-tdep.c (mt_gdbarch_init): Likewise.
2009 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2011 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2012 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2013 * registry.c (registry_alloc_data): Likewise.
2014 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2015 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2016 * serial.c (serial_fdopen_ops): Likewise.
2017 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2019 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2020 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2023 2014-01-13 Tom Tromey <tromey@redhat.com>
2025 * defs.h (XMALLOC): Remove.
2026 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2027 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2028 * cli-out.c (struct ui_out *): Likewise.
2029 * cli/cli-dump.c (add_dump_command): Likewise.
2030 (add_dump_command): Likewise.
2031 * complaints.c (get_complaints): Likewise.
2032 (find_complaint): Likewise.
2033 * dwarf2-frame.c (execute_cfa_program): Likewise.
2034 * dwarf2read.c (abbrev_table_read_table): Likewise.
2035 * gdbarch.sh: Likewise.
2036 * gdbarch.c: Rebuild.
2037 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2038 * interps.c (interp_new): Likewise.
2039 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2040 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2041 * mi/mi-console.c (mi_console_file_new): Likewise.
2042 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2043 * mi/mi-out.c (mi_out_new): Likewise.
2044 * mi/mi-parse.c (mi_parse): Likewise.
2045 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2046 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2047 * observer.c (xalloc_observer_list_node): Likewise.
2048 * regcache.c (regcache_xmalloc_1): Likewise.
2049 * reggroups.c (reggroup_new): Likewise.
2050 (_initialize_reggroup): Likewise.
2051 * registry.c (register_data_with_cleanup): Likewise.
2052 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2053 * ser-base.c (serial_ttystate): Likewise.
2054 * ser-mingw.c (make_pipe_state): Likewise.
2055 * ser-pipe.c (pipe_open): Likewise.
2056 * serial.c (serial_open): Likewise.
2057 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2058 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2059 (tui_alloc_win_info): Likewise.
2060 (tui_add_content_elements): Likewise.
2061 * tui/tui-file.c (tui_file_new): Likewise.
2062 * tui/tui-out.c (tui_out_new): Likewise.
2063 * ui-file.c (mem_file_new): Likewise.
2064 * ui-out.c (push_level): Likewise.
2065 (make_cleanup_ui_out_end): Likewise.
2066 (append_header_to_list): Likewise.
2067 (ui_out_new): Likewise.
2068 * user-regs.c (user_reg_add_builtin): Likewise.
2070 2014-01-13 Tom Tromey <tromey@redhat.com>
2072 * defs.h (XZALLOC): Remove.
2073 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2074 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2075 (get_ada_tasks_inferior_data): Likewise.
2076 * auto-load.c (get_auto_load_pspace_data): Likewise.
2077 * auxv.c (get_auxv_inferior_data): Likewise.
2078 * bfd-target.c (target_bfd_reopen): Likewise.
2079 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2080 (deprecated_insert_raw_breakpoint): Likewise.
2081 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2082 * corelow.c (core_open): Likewise.
2083 * darwin-nat.c (darwin_check_new_threads): Likewise.
2084 (darwin_attach_pid): Likewise.
2085 * dummy-frame.c (dummy_frame_push): Likewise.
2086 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2087 * dwarf2loc.c (allocate_piece_closure): Likewise.
2088 * elfread.c (elf_symfile_segments): Likewise.
2089 * eval.c (ptrmath_type_p): Likewise.
2090 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2091 * gdbtypes.c (alloc_type_arch): Likewise.
2092 (alloc_type_instance): Likewise.
2093 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2094 * inf-child.c (inf_child_can_use_agent): Likewise.
2095 * inflow.c (get_inflow_inferior_data): Likewise.
2096 * infrun.c (save_infcall_suspend_state): Likewise.
2097 * jit.c (jit_reader_load): Likewise.
2098 (get_jit_objfile_data): Likewise.
2099 (get_jit_program_space_data): Likewise.
2100 (jit_object_open_impl): Likewise.
2101 (jit_symtab_open_impl): Likewise.
2102 (jit_block_open_impl): Likewise.
2103 (jit_frame_sniffer): Likewise.
2104 * linux-fork.c (add_fork): Likewise.
2105 * maint.c (make_command_stats_cleanup): Likewise.
2106 * objfiles.c (get_objfile_pspace_data): Likewise.
2107 * opencl-lang.c (struct lval_closure): Likewise.
2108 * osdata.c (osdata_start_osdata): Likewise.
2109 * progspace.c (new_address_space): Likewise.
2110 (add_program_space): Likewise.
2111 * remote-sim.c (get_sim_inferior_data): Likewise.
2112 * sh-tdep.c (sh_gdbarch_init): Likewise.
2113 * skip.c (Ignore): Likewise.
2114 (skip_delete_command): Likewise.
2115 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2116 (library_list_start_library): Likewise.
2117 (solib_aix_current_sos): Likewise.
2118 * solib-darwin.c (get_darwin_info): Likewise.
2119 (darwin_current_sos): Likewise.
2120 * solib-dsbt.c (get_dsbt_info): Likewise.
2121 * solib-ia64-hpux.c (new_so_list): Likewise.
2122 (ia64_hpux_get_solib_linkage_addr): Likewise.
2123 * solib-spu.c (append_ocl_sos): Likewise.
2124 (spu_current_sos): Likewise.
2125 * solib-svr4.c (get_svr4_info): Likewise.
2126 (svr4_keep_data_in_core): Likewise.
2127 (library_list_start_library): Likewise.
2128 (svr4_default_sos): Likewise.
2129 (svr4_read_so_list): Likewise.
2130 * solib-target.c (library_list_start_library): Likewise.
2131 (solib_target_current_sos): Likewise.
2132 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2133 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2134 * symfile.c (default_symfile_segments): Likewise.
2135 * target-descriptions.c (tdesc_data_init): Likewise.
2136 (tdesc_create_reg): Likewise.
2137 (struct tdesc_type *): Likewise.
2138 (tdesc_create_vector): Likewise.
2139 (tdesc_set_struct_size): Likewise.
2140 (struct tdesc_type *): Likewise.
2141 (tdesc_free_feature): Likewise.
2142 (tdesc_create_feature): Likewise.
2143 * windows-nat.c (windows_add_thread): Likewise.
2144 (windows_make_so): Likewise.
2145 * xml-support.c (gdb_xml_body_text): Likewise.
2146 (gdb_xml_create_parser_and_cleanup): Likewise.
2147 (xml_process_xincludes): Likewise.
2148 * xml-syscall.c (allocate_syscalls_info): Likewise.
2149 (syscall_create_syscall_desc): Likewise.
2151 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2153 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2154 function, with code from i386_stap_parse_special_token.
2155 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2156 (i386_stap_parse_special_token): Move code to the two functions
2159 2014-01-09 Pedro Alves <palves@redhat.com>
2160 Hui Zhu <hui@codesourcery.com>
2163 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2164 bp_err_string. Don't mark the location shlib_disabled if the
2165 error thrown wasn't a generic or memory error. Catch errors
2166 thrown while inserting breakpoints in overlayed code. Output
2167 error message of software breakpoints.
2168 * remote.c (remote_insert_breakpoint): If this breakpoint has
2169 target-side commands but this stub doesn't support Z0 packets,
2170 throw NOT_SUPPORTED_ERROR error.
2171 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2172 * target.h (target_insert_breakpoint): Extend comment.
2173 (target_insert_hw_breakpoint): Add comment.
2175 2014-01-08 Pedro Alves <palves@redhat.com>
2177 * remote.c (remote_add_thread): Add threads silently if starting
2179 (remote_notice_new_inferior): If in all-stop, and starting up,
2180 don't call notice_new_inferior.
2181 (get_current_thread): New function, factored out from ...
2182 (add_current_inferior_and_thread): ... this. Adjust.
2183 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2184 found any thread, then select the remote's current thread as GDB's
2187 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2189 * NEWS: Create a new section for the next release branch.
2190 Rename the section of the current branch, now that it has
2193 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2195 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2196 * version.in: Bump version to 7.7.50.DATE-cvs.
2198 2014-01-08 Yao Qi <yao@codesourcery.com>
2200 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2201 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2202 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2204 2014-01-08 Yao Qi <yao@codesourcery.com>
2206 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2207 return value of bfd_get_filename to symbol_file_add_from_bfd.
2209 2014-01-08 Pierre Muller <muller@sourceware.org>
2212 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2213 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2214 to prim_record_mininal_symbol_and_info.
2215 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2216 in call to prim_record_minimal_symbol_and_info.
2217 (read_pe_exported_syms): Set index field of section_data.
2219 2014-01-07 Andrew Pinski <apinski@cavium.com>
2221 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2222 * features/aarch64.c: Regenerate.
2224 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2226 * target.c (return_null): Define.
2227 (update_current_target): Use it instead of return_zero for
2228 functions that return a pointer.
2230 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2232 * source.c (add_path): Fix check for duplicated paths in the previously
2235 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2237 * ada-lang.c: Remove duplicated include statements.
2238 * alphabsd-nat.c: Ditto.
2239 * amd64-darwin-tdep.c: Ditto.
2240 * amd64fbsd-nat.c: Ditto.
2241 * auto-load.c: Ditto.
2243 * breakpoint.c: Ditto.
2245 * fork-child.c: Ditto.
2246 * gdb_usleep.c: Ditto.
2247 * i386-darwin-tdep.c: Ditto.
2248 * i386fbsd-nat.c: Ditto.
2250 * inferior.c: Ditto.
2252 * linux-nat.c: Ditto.
2253 * linux-tdep.c: Ditto.
2254 * m68kbsd-nat.c: Ditto.
2255 * m68klinux-nat.c: Ditto.
2256 * microblaze-tdep.c: Ditto.
2257 * mips-linux-tdep.c: Ditto.
2258 * mn10300-tdep.c: Ditto.
2259 * nto-tdep.c: Ditto.
2260 * opencl-lang.c: Ditto.
2262 * printcmd.c: Ditto.
2263 * regcache.c: Ditto.
2264 * remote-m32r-sdi.c: Ditto.
2268 * tilegx-linux-nat.c: Ditto.
2269 * tilegx-tdep.c: Ditto.
2270 * tracepoint.c: Ditto.
2272 * vaxbsd-nat.c: Ditto.
2273 * windows-nat.c: Ditto.
2274 * xtensa-tdep.c: Ditto.
2276 2014-01-07 Yao Qi <yao@codesourcery.com>
2278 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2280 2014-01-07 Yao Qi <yao@codesourcery.com>
2281 Joel Brobecker <brobecker@adacore.com>
2283 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2284 (pdc_write_regs): Likewise.
2285 (fetch_regs_kernel_thread): Likewise.
2286 (store_regs_kernel_thread): Likewise.
2288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2290 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2291 tagged type objects to their actual type.
2293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2295 * ada-valprint.c (print_field_values): Add "language" parameter.
2296 Update calls to print_field_values and print_variant_part.
2297 Pass new parameter "language" in call to val_print instead
2298 of "current_language". Replace call to ada_val_print by call
2300 (print_variant_part): Add "language" parameter.
2301 (ada_val_print_struct_union): Update call to print_field_values.
2303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2305 * ada-valprint.c (ui_memcpy): Delete.
2306 (ada_print_floating): Update documentation. Add empty line
2307 between between function documentation and implementation.
2308 Delete variable "buffer". Use ui_file_xstrdup in place of
2309 ui_file_put. Minor adjustments following this change.
2311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2313 * ada-valprint.c (ada_val_print_string): New function,
2314 extracted from ada_val_print_array.
2315 (ada_val_print_array): Replace extracted code by call
2316 to ada_val_print_string followed by a return. Move
2317 "else" branch to the function's top block.
2319 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2321 * ada-valprint.c (ada_val_print_array): Move implementation
2322 down. Rename parameter "offset" and "val" into "offset_aligned"
2323 and "original_value" respectively. Add parameter "offset".
2325 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2327 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2328 re-organizing the code. Change the "???" message printed
2329 when target type is a TYPE_CODE_UNDEF into
2330 "<ref to undefined type>".
2332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2334 * ada-valprint.c (print_record): Delete, implementation inlined...
2335 (ada_val_print_struct_union): ... here. Remove call to
2336 ada_check_typedef in inlined implementation.
2338 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2340 * ada-valprint.c (ada_val_print_gnat_array): New function,
2341 extracted from ada_val_print_1;
2342 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2343 (ada_val_print_flt, ada_val_print_struct_union)
2344 (ada_val_print_ref): Likewise.
2345 (ada_val_print_1): Delete variables i and elttype.
2346 Replace extracted-out code by call to corresponding
2349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2351 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2353 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2355 * ada-valprint.c (ada_val_print_1): Replace calls to
2356 ada_val_print_1 by calls to val_print.
2358 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2360 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2361 Update calls to self accordingly. Replace calls to c_val_print
2362 by calls to val_print.
2364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2366 * ada-valprint.c (print_record): Delete declaration.
2367 (adjust_type_signedness, ada_val_print_1): Likewise.
2368 (ada_val_print): Move function implementation down.
2369 (print_variant_part, print_field_values, print_record):
2370 Move function implementation up.
2372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2374 * python/py-type.c (typy_get_name): New function.
2375 (type_object_getset): Add entry for attribute "name".
2376 * NEWS: Add entry mentioning this new attribute.
2378 2014-01-07 Yao Qi <yao@codesourcery.com>
2380 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2383 2014-01-07 Yao Qi <yao@codesourcery.com>
2385 * gnu-nat.c (info_port_rights): Add qualifier const to
2388 2014-01-07 Yao Qi <yao@codesourcery.com>
2390 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2392 2014-01-07 Yao Qi <yao@codesourcery.com>
2394 * gnu-nat.c (make_inf) Update declaration.
2395 (make_inf): Make it static.
2396 (inf_set_traced): Likewise.
2397 (inf_port_to_thread, inf_task_died_status): Likewise.
2399 2014-01-07 Yao Qi <yao@codesourcery.com>
2401 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2403 2014-01-07 Yao Qi <yao@codesourcery.com>
2405 * gnu-nat.c (_initialize_gnu_nat): Declare.
2407 2014-01-07 Yao Qi <yao@codesourcery.com>
2409 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2411 (struct gdbarch_info) <byte_order>: Change type to
2413 <byte_order_for_code>: Likewise.
2414 * gdbarch.c, gdbarch.h: Regenerated.
2416 2014-01-06 Sasha Smundak <asmundak@google.com>
2418 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
2420 2014-01-06 Tom Tromey <tromey@redhat.com>
2422 * doublest.c (convert_doublest_to_floatformat): Use const, not
2424 * somread.c (som_symtab_read): Likewise.
2426 2014-01-07 Hui Zhu <hui@codesourcery.com>
2428 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
2429 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
2430 (gdb_bfd_fopen): Ditto.
2431 (gdb_bfd_openr): Ditto.
2432 (gdb_bfd_openw): Ditto.
2433 (gdb_bfd_openr_iovec): Ditto.
2434 (gdb_bfd_fdopenr): Ditto.
2435 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
2436 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
2438 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
2440 * symfile-mem.c (symbol_file_add_from_memory): Removed
2441 gdb_bfd_stash_filename.
2443 2014-01-03 Doug Evans <dje@google.com>
2445 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
2448 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2450 Update year range in copyright notice of all files.
2452 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2454 * top.c (print_gdb_version): Set copyright year to 2014.
2456 2014-01-01 Joel Brobecker <brobecker@adacore.com>
2458 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
2460 For older changes see ChangeLog-2013.
2466 version-control: never