+
+ * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
+ * aclocal.m4, configure: Regenerate.
+
+
+ PR build/15414:
+ * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
+ -Wformat-nonliteral with -Wno-format.
+
+
+ * acinclude.m4: Regenerate.
+
+
+ * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
+ which do not support dv-sockser.o. Add always as option to
+ first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
+ is always required to be enabled by simulator.
+
+
+ * gennltvals.sh: Use libgloss/syscall.h for cr16.
+ * nltvals.def: Regenerate.
+
+
+ * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
+ * config.in, configure: Regenerate.
+
+
+ * sim-signal.h (sim_signal_to_target): Rename to ...
+ (sim_signal_to_gdb_signal): ... this.
+ * sim-signal.c (sim_signal_to_target): Rename to ...
+ (sim_signal_to_gdb_signal): ... this.
+ * sim-reason.c (sim_stop_reason): Adjust to rename.
+
+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
+
+ PR gdb/7205
+
+ Replace target_signal with gdb_signal throughout.
+
+
+ PR 14072
+ * callback.c: Include config.h before system header files.
+ * cgen-trace.c: Likewise.
+ * cgen-utils.c: Likewise.
+ * gentmap.c: Likewise.
+
+
+ * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
+
+
+ * sim-trace.c: Update the function prototype of save_data_size.
+ Move the enum data_fmt from here...
+ * sim-trace.h: ...to here.
+ Add function prototype of save_data.
+
+
+ * sim-core.h (sim_core_trans_addr): Add prototype.
+
+
+ * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
+ missing in last change.
+
+
+ * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
+ * nrun.c: Include string.h/strings.h.
+ * aclocal.m4, config.in, configure: Regenerate.
+
+
+ * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
+ WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
+ out -Werror initialization.
+
+
+ * Make-common.in (TAGS): Change a-z to [:lower:].
+ * acinclude.m4 (sim-trace): Likewise.
+ * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
+ Change A-Za-z0-9 to [:alnum:].
+
+
+ * nrun.c (main): Display strsignal of sigrc.
+
+
+ * Makefile.in (abs_srcdir): Declare.
+ (srcroot): Define in terms of abs_srcdir.
+ (headers): Change srcdir to abs_srcdir.
+
+
+ * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
+ header.
+
+
+ * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
+ system bourne shell.
+
+
+ * syscall.c (cb_get_string): Rename from "get_string".
+ (get_path): Rename get_string call to cb_get_string.
+
+
+ * Make-common.in (VPATH): Add $(srccom).
+ (DEP): Delete.
+ (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
+ POSTCOMPILE): New variables.
+ (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
+ Include dependency files, when using GNU Make. Delete all
+ dependency-only rules.
+ * aclocal.m4: Include ../../config/depstand.m4. Call
+ ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
+ (MAKE, GMAKE): New substs.
+
+
+ PR sim/13161
+ * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
+ * configure, config.in: Regenerate.
+ * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
+
+
+ * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
+
+
+ * sim-profile.c (profile_info): Only print the title once.
+
+
+ * acinclude.m4: Rename from aclocal.m4.
+ * aclocal.m4: Regenerate.
+
+
+ * aclocal.m4: Change AC_PREREQ comment to 2.64.
+ * common.m4: Delete.
+ * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
+ call and common.m4 include with SIM_AC_COMMON(cconfig.h).
+ * configure: Regenerate.
+
+
+ * sim-alu.h (ALU32_AND): Clear carry flag.
+ (ALU32_AND): Clear carry flag.
+
+
+ * dv-cfi.c: Include stdbool.h.
+
+
+ * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
+
+
+ * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
+ ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
+
+
+ * sim-command.c: Include sim-options.h.
+
+
+ * aclocal.m4: Move sinclude comment after AC_INIT comment.
+
+
+ * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
+ Delete direct call to AC_PROG_CC.
+
+
+ * sim-command.c: New file.
+ * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
+ (sim-command.o): New rule.
+
+
+ * sim-options.c (standard_option_handler): Remove arg[0] check
+ when freeing simulator_sysroot. Only strdup arg when arg[0] is
+ not an empty string, otherwise assign "" back to it.
+
+
+ * nltvals.def: Regenerate to include Blackfin syscalls again.
+
+
+ * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
+ (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
+ (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
+ (trace_idx_to_str): Likewise.
+ * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
+ (TRACE_syscall): Define.
+ (WITH_TRACE_SYSCALL_P): Likewise.
+ (TRACE_SYSCALL_P): Likewise.
+
+
+ * dv-glue.c (hw_glue_finish): Move "name" to function scope and
+ remove now-unnecessary sub-scope for glue->type setting.
+ Check to see if the "reg" property exists before we use it, and
+ if it doesn't exist, error out for "glue" devices.
+
+
+ * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
+ glue-or, and set type to glue_xor when name is glue-xor.
+ (hw_glue_port_event): Return immediately when type is glue_io
+ or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
+ and hw_port_event calls from glue_and to end of function.
+
+
+ * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
+ hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
+ sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
+ sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
+ sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
+ around function arguments.
+
+
+ * sim-options.c (complete_option_list, sim_complete_command):
+ New functions.
+
+
+ * dv-glue.c: Fix up style.
+
+
+ * hw-alloc.c (hw_alloc_data): Adjust brace.
+ * hw-base.c (hw_base_data): Likewise.
+ (generic_hw_unit_decode): Fix indentation.
+ * hw-device.h (_hw_unit, enum, hw): Adjust braces.
+ * hw-events.c (hw_event, hw_event_data): Likewise.
+ * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
+ * hw-instances.c (hw_instance_data): Likewise.
+ * hw-instances.h (hw_instance): Likewise.
+ * hw-main.h (hw_descriptor, enum): Likewise.
+ * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
+ * hw-ports.h (hw_port_descriptor): Likewise.
+ * hw-properties.c (hw_property_data): Likewise.
+ * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
+ _range_property_spec, _reg_property_spec): Likewise.
+ * hw-tree.c (_name_specifier, printer): Likewise.
+ (split_device_specifier, parse_string_property, hw_tree_traverse,
+ print_size, print_reg_property, print_string, print_properties):
+ Fix indentation.
+
+
+ * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
+ * Make-common.in (dv-cfi.o): New rule.
+ * dv-cfi.c, dv-cfi.h: New files.
+
+
+ * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
+ fcntl.h and sys/fcntl.h, for constants.
+ * nltvals.def: Regenerate.
+ * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
+ * sim-io.h (sys/types.h, sys/stat.h): Include.
+ (sim_io_stat, sim_io_fstat): Declare.
+
+
+ * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
+ hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
+ hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
+ run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
+ sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
+ sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
+ sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
+ sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
+ syscall.c: Trim trailing whitespace.
+
+
+ * gennltvals.sh: Handle bfin targets.
+ * nltvals.def: Regenerate.
+
+
+ * callback.c (fdbad): Return EBADF rather than EINVAL for bad
+ file descriptors.
+
+
+ * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
+ (hw_zalloc, hw_malloc): Delete zalloc_p reference.
+ (hw_free): Drop zfree logic and always call free.
+ * hw-base.c (hw_delete): Change zfree to free.
+ * hw-handles.c (hw_handle_remove_ihandle): Likewise.
+ (hw_handle_remove_phandle): Likewise.
+ * hw-instances.c (hw_instance_delete): Likewise.
+ * hw-tree.c (parse_reg_property): Likewise.
+ (parse_ranges_property): Likewise.
+ (parse_string_property): Likewise.
+ * sim-core.c (sim_core_uninstall): Likewise.
+ * sim-cpu.c (sim_cpu_free_all): Likewise.
+ * sim-hw.c (sim_hw_uninstall): Likewise.
+ * sim-memopt.c (do_memopt_delete): Likewise.
+ (sim_memory_uninstall): Likewise.
+ * sim-module.c (sim_module_uninstall): Likewise.
+ * sim-options.c (sim_parse_args): Likewise.
+ * sim-profile.c (profile_pc_cleanup): Likewise.
+ (profile_uninstall): Likewise.
+ * sim-watch.c (do_watchpoint_delete): Likewise.
+ * sim-utils.c (zfree): Delete.
+ (sim_state_free): Change zfree to free.
+ * sim-utils.h (zfree): Delete.
+
+
+ * sim-events.h (_sim_events.time_from_event): Change type to signed64.
+
+
+ * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
+
+
+ * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
+ fails.
+ * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
+ when asprintf fails.
+ * sim-utils.c (sim_do_commandf): Issue an error and return when
+ asprintf fails.
+ * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
+ asprintf fails.
+
+
+ * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
+ bytes has been calculated and when mmap_next_fd is valid and
+ nr_bytes is 0.
+ (memory_option_handler): Allow missing size when mmap_next_fd is
+ valid.
+
+
+ * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
+ not empty, and always append $3 to $hardware.
+
+
+ * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
+ * sim-hw.h (sim_hw_abort): Likewise.
+
+
+ * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
+
+
+ * run.1: Copyright year update.
+
+
+ * hw-alloc.h (HW_NALLOC): Define.
+
+
+ * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
+
+
+ * sim-memopt.c (OPTION_MAP_INFO): Define.
+ (memory_options): Handle --map-info.
+ (memory_option_handler): Handle OPTION_MAP_INFO.
+
+
+ * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
+ PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
+ PROFILE_INSN_COUNT): Add stubs when profile is disabled.
+
+
+ * sim-core.c (WITH_HW): Add device casts to device_error,
+ device_io_read_buffer, and device_io_write_buffer.
+
+
+ * dv-sockser.c (dv_sockser_write_buffer): New function.
+ (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
+ * dv-sockser.h (dv_sockser_write_buffer): New prototype.
+
* callback.c (os_lseek): Call wrap on lseek result.