X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=5cd6da760c4e0e65b932b628950e4f6a62aa0f70;hb=dab999b116b507ad431c70fab0a28074dfea29df;hp=476666690e5bdf6ceab395069a8ff5458a0a2b87;hpb=528e15722bf67d126e17218708c0314bcfadbf6a;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 476666690e..5cd6da760c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1322 @@ +2018-08-31 Sergio Durigan Junior + + * gnulib/Makefile.in (aclocal_m4_deps): Update according to + the files present in "gnulib/import/m4/". + +2018-08-30 Andrew Burgess + + * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, + c.sw, c.swsp, and c.sdsp. + +2018-08-30 Andrew Burgess + + * riscv-tdep.c (struct riscv_inferior_data): Delete. + (riscv_read_misa_reg): Don't cache value read into inferior data. + (riscv_new_inferior_data): Delete. + (riscv_inferior_data_cleanup): Delete. + (riscv_inferior_data): Delete. + (riscv_invalidate_inferior_data): Delete. + (_initialize_riscv_tdep): Remove initialisation of inferior data. + +2018-08-30 Simon Marchi + + * compile/compile-cplus-types.c + (compile_cplus_instance::leave_scope): Take the address of scope + object. + (compile_cplus_instance::convert_qualified_base): Compare quals + to 0. + +2018-08-30 Keith Seitz + + * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): + Use "%s" and host_address_to_string instead of "%p" in printf. + +2018-08-29 Keith Seitz + + * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c + and compile-cplus-types.c. + (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. + * c-lang.c (cplus_language_defn): Set C++ compile functions. + * c-lang.h (cplus_get_compile_context, cplus_compute_program): + Declare. + * compile/compile-c-support.c: Include compile-cplus.h. + (load_libcompile): Templatize. + (get_compile_context): "New" function. + (c_get_compile_context): Use get_compile_context. + (cplus_get_compile_context): New function. + (cplus_push_user_expression, cplus_pop_user_expression) + (cplus_add_code_header, cplus_add_input, cplus_compile_program) + (cplus_compute_program): Define new structs/functions. + * compile/compile-cplus-symmbols.c: New file. + * compile/compile-cplus-types.c: New file. + * compile/compile-cplus.h: New file. + * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): + Declare. + * compile/compile-object-load.c (get_out_value_type): Use + strncmp_iw when comparing symbol names. + (compile_object_load): Add mst_bss and mst_data. + * compile/compile.c (_initialize_compile): Remove + -Wno-implicit-function-declaration from `compile_args'. + * compile/gcc-cp-plugin.h: New file. + * NEWS: Mention C++ compile support and new debug options. + +2018-08-29 Keith Seitz + + * linespec.c (collect_info::add_symbol): Make virtual. + (struct symbol_searcher_collect_info): New struct. + (symbol_searcher::find_all_symbols): New method. + * symtab.h (class symbol_searcher): New class. + +2018-08-29 Keith Seitz + + * linespec.c (struct linespec) : + Change to vector of block_symbol. Update all users. + (struct collect_info) : Likewise. + (collect_info::add_symbol): Take block_symbol as argument. + Update all callers. + (decode_compound_collector) : Change type to vector + of block_symbol. Update all users. + (decode_compound_collector::operator ()): Change parameter type + to block_symbol. + (find_method, find_function_symbols, find_linespec_symbols) + (find_label_symbols_in_block, find_label_symbols): Change symbol + vectors to block_symbol vectors. + * symtab.h (symbol_found_callback_ftype): Change parameter type to + block_symbol. + +2018-08-29 Keith Seitz + + * linespec.c (symbolp): Remove typedef and VEC definitions. + (bound_minimal_symbol_d): Likewise. + +2018-08-29 Keith Seitz + + * linespec.c (decode_compound_collector::decode_compound_collector): + Remove initialization for `m_symtabs'. + (decode_compound_collector::release_symbols): Change return type + to std::vector. Update all callers. + (class decode_compound_collector) : Change type to + std::vector. + (lookup_prefix_sym): Change return type to std::vector. Update all + callers. + (compare_symbols): Remove. + (std_compare_symbols): Rename to `compare_symbols'. + (find_method): Change `sym_classes' parameter to std::vector. + Update all callers. Use std::sort to sort sym_classes. + (find_linespec_symbols): Remove cleanup. + +2018-08-29 Keith Seitz + + * linespec.c (struct linespec) : Change type to + std::vector. Update all users. + (convert_linespec_to_sals): Use std::sort to sort minimal symbols. + (struct collect_info) : Likewise. + (compare_msymbols): Return bool. Change parameters to const + bound_minimal_symbol references. + (find_method, find_function_symbols, find_linespec_symbols): Change + `minsyms' parameter to std::vector. Update all callers. + +2018-08-29 Keith Seitz + + * linespec.c (struct linespec) : Change type to + std::vector. Update all users. + (find_label_symbols_in_block): Change `result' parameter to + std::vector. Update all callers. + (find_label_symbols): Return std::vector. Update all callers. + +2018-08-29 Keith Seitz + + * linespec.c (struct linespec) : Change type to + std::vector. Update all users. + (struct collect_info) : Likewise. + (convert_linespec_to_sals): Use std::sort to sort function_symbols. + (std_compare_symbols): New function. + (find_method, find_function_symbols, find_linespec_symbols) + (find_label_symbols_in_block): Change `symbols' parameter to + std::vector. Update all callers. + (find_label_symbols): Likewise for `function_symbols' and + `label_funcs_ret'. + +2018-08-29 Keith Seitz + + * linespec.c (symtab_vector_up): Define. + (struct linespec) : Change type to std::vector *. + Update all uses. + (struct collect_info) : Likewise. + (collect_symtabs_from_filename): Return symtab_vector_up. + Update all callers. + (decode_objc): Remove cleanup. + (symtab_collector::symtab_collector): Initialize `m_symtabs'. + (symtab_collector::release_symtabs): Return symtab_vector_up. + Update all callers. + (class symtab_collector) : Change type to symtab_vector_up. + Update all users. + (collect_symtabs_from_filename, symtabs_from_filename): Return + symtab_vector_up. Update all callers. + +2018-08-29 Tom Tromey + + * csky-tdep.c (csky_analyze_prologue): Use + core_addr_to_string_nz. + +2018-08-29 Tom Tromey + + * windows-nat.c (struct xlate_exception) : Change type to + DWORD. + (xlate): Fix formatting. Remove last entry. + (struct xlate_exception, xlate): Comment out. + (windows_nat_target::resume): Use ranged for. + +2018-08-29 Jim Wilson + + * riscv-linux-nat.c: Include elf/common.h instead of elf.h. + (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead + of NT_PRFPREG. + (riscv_linux_nat_target::store_registers): Likewise. + +2018-08-29 Sergio Durigan Junior + + PR gdb/23555 + PR gdb/23558 + * gnulib/aclocal.m4: Regenerate. + * gnulib/config.in: Regenerate. + * gnulib/configure: Regenerate. + * gnulib/import/Makefile.am: Update. + * gnulib/import/Makefile.in: Update. + * gnulib/import/extra/snippet/_Noreturn.h: Rename to... + * gnulib/import/_Noreturn.h: ... this. + * gnulib/import/alloca.in.h: Update. + * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... + * gnulib/import/arg-nonnull.h: ... this. + * gnulib/import/assure.h: Update. + * gnulib/import/at-func.c: Update. + * gnulib/import/basename-lgpl.c: Update. + * gnulib/import/extra/snippet/c++defs.h: Rename to... + * gnulib/import/c++defs.h: ... this. + * gnulib/import/canonicalize-lgpl.c: Update. + * gnulib/import/cdefs.h: Update. + * gnulib/import/chdir-long.c: Update. + * gnulib/import/chdir-long.h: Update. + * gnulib/import/cloexec.c: Update. + * gnulib/import/cloexec.h: Update. + * gnulib/import/close.c: Update. + * gnulib/import/closedir.c: Update. + * gnulib/import/config.charset: Update. + * gnulib/import/dirent-private.h: Update. + * gnulib/import/dirent.in.h: Update. + * gnulib/import/dirfd.c: Update. + * gnulib/import/dirname-lgpl.c: Update. + * gnulib/import/dirname.h: Update. + * gnulib/import/dosname.h: Update. + * gnulib/import/dup-safer-flag.c: Update. + * gnulib/import/dup-safer.c: Update. + * gnulib/import/dup.c: Update. + * gnulib/import/dup2.c: Update. + * gnulib/import/errno.in.h: Update. + * gnulib/import/error.c: Update. + * gnulib/import/error.h: Update. + * gnulib/import/exitfail.c: Update. + * gnulib/import/exitfail.h: Update. + * gnulib/import/extra/update-copyright: Update. + * gnulib/import/fchdir.c: Update. + * gnulib/import/fcntl.c: Update. + * gnulib/import/fcntl.in.h: Update. + * gnulib/import/fd-hook.c: Update. + * gnulib/import/fd-hook.h: Update. + * gnulib/import/fd-safer-flag.c: Update. + * gnulib/import/fd-safer.c: Update. + * gnulib/import/fdopendir.c: Update. + * gnulib/import/filename.h: Update. + * gnulib/import/filenamecat-lgpl.c: Update. + * gnulib/import/filenamecat.h: Update. + * gnulib/import/flexmember.h: Update. + * gnulib/import/float+.h: Update. + * gnulib/import/float.c: Update. + * gnulib/import/float.in.h: Update. + * gnulib/import/fnmatch.c: Update. + * gnulib/import/fnmatch.in.h: Update. + * gnulib/import/fnmatch_loop.c: Update. + * gnulib/import/fpucw.h: Update. + * gnulib/import/frexp.c: Update. + * gnulib/import/frexpl.c: Update. + * gnulib/import/fstat.c: Update. + * gnulib/import/fstatat.c: Update. + * gnulib/import/getcwd-lgpl.c: Update. + * gnulib/import/getcwd.c: Update. + * gnulib/import/getdtablesize.c: Update. + * gnulib/import/getlogin_r.c: Update. + * gnulib/import/getprogname.c: Update. + * gnulib/import/getprogname.h: Update. + * gnulib/import/gettext.h: Update. + * gnulib/import/gettimeofday.c: Update. + * gnulib/import/glob-libc.h: Update. + * gnulib/import/glob.c: Update. + * gnulib/import/glob.in.h: Update. + * gnulib/import/glob_internal.h: Update. + * gnulib/import/glob_pattern_p.c: Update. + * gnulib/import/globfree.c: Update. + * gnulib/import/hard-locale.c: Update. + * gnulib/import/hard-locale.h: Update. + * gnulib/import/intprops.h: Update. + * gnulib/import/inttypes.in.h: Update. + * gnulib/import/isnan.c: Update. + * gnulib/import/isnand-nolibm.h: Update. + * gnulib/import/isnand.c: Update. + * gnulib/import/isnanl-nolibm.h: Update. + * gnulib/import/isnanl.c: Update. + * gnulib/import/itold.c: Update. + * gnulib/import/libc-config.h: Update. + * gnulib/import/limits.in.h: Update. + * gnulib/import/localcharset.c: Update. + * gnulib/import/localcharset.h: Update. + * gnulib/import/localtime-buffer.c: Update. + * gnulib/import/localtime-buffer.h: Update. + * gnulib/import/lstat.c: Update. + * gnulib/import/m4/00gnulib.m4: Update. + * gnulib/import/m4/__inline.m4: Update. + * gnulib/import/m4/absolute-header.m4: Update. + * gnulib/import/m4/alloca.m4: Update. + * gnulib/import/m4/builtin-expect.m4: Update. + * gnulib/import/m4/canonicalize.m4: Update. + * gnulib/import/m4/chdir-long.m4: Update. + * gnulib/import/m4/close.m4: Update. + * gnulib/import/m4/closedir.m4: Update. + * gnulib/import/m4/configmake.m4: Update. + * gnulib/import/m4/d-ino.m4: Update. + * gnulib/import/m4/d-type.m4: Update. + * gnulib/import/m4/dirent_h.m4: Update. + * gnulib/import/m4/dirfd.m4: Update. + * gnulib/import/m4/dirname.m4: Update. + * gnulib/import/m4/double-slash-root.m4: Update. + * gnulib/import/m4/dup.m4: Update. + * gnulib/import/m4/dup2.m4: Update. + * gnulib/import/m4/eealloc.m4: Update. + * gnulib/import/m4/environ.m4: Update. + * gnulib/import/m4/errno_h.m4: Update. + * gnulib/import/m4/error.m4: Update. + * gnulib/import/m4/exponentd.m4: Update. + * gnulib/import/m4/exponentl.m4: Update. + * gnulib/import/m4/extensions.m4: Update. + * gnulib/import/m4/extern-inline.m4: Update. + * gnulib/import/m4/fchdir.m4: Update. + * gnulib/import/m4/fcntl-o.m4: Update. + * gnulib/import/m4/fcntl.m4: Update. + * gnulib/import/m4/fcntl_h.m4: Update. + * gnulib/import/m4/fdopendir.m4: Update. + * gnulib/import/m4/filenamecat.m4: Update. + * gnulib/import/m4/flexmember.m4: Update. + * gnulib/import/m4/float_h.m4: Update. + * gnulib/import/m4/fnmatch.m4: Update. + * gnulib/import/m4/fnmatch_h.m4: Update. + * gnulib/import/m4/fpieee.m4: Update. + * gnulib/import/m4/frexp.m4: Update. + * gnulib/import/m4/frexpl.m4: Update. + * gnulib/import/m4/fstat.m4: Update. + * gnulib/import/m4/fstatat.m4: Update. + * gnulib/import/m4/getcwd-abort-bug.m4: Update. + * gnulib/import/m4/getcwd-path-max.m4: Update. + * gnulib/import/m4/getcwd.m4: Update. + * gnulib/import/m4/getdtablesize.m4: Update. + * gnulib/import/m4/getlogin.m4: Update. + * gnulib/import/m4/getlogin_r.m4: Update. + * gnulib/import/m4/getpagesize.m4: Update. + * gnulib/import/m4/getprogname.m4: Update. + * gnulib/import/m4/gettimeofday.m4: Update. + * gnulib/import/m4/glibc21.m4: Update. + * gnulib/import/m4/glob.m4: Update. + * gnulib/import/m4/glob_h.m4: Update. + * gnulib/import/m4/gnulib-cache.m4: Update. + * gnulib/import/m4/gnulib-common.m4: Update. + * gnulib/import/m4/gnulib-comp.m4: Update. + * gnulib/import/m4/gnulib-tool.m4: Update. + * gnulib/import/m4/hard-locale.m4: Update. + * gnulib/import/m4/include_next.m4: Update. + * gnulib/import/m4/inttypes-pri.m4: Update. + * gnulib/import/m4/inttypes.m4: Update. + * gnulib/import/m4/isnand.m4: Update. + * gnulib/import/m4/isnanl.m4: Update. + * gnulib/import/m4/largefile.m4: Update. + * gnulib/import/m4/limits-h.m4: Update. + * gnulib/import/m4/localcharset.m4: Update. + * gnulib/import/m4/locale-fr.m4: Update. + * gnulib/import/m4/locale-ja.m4: Update. + * gnulib/import/m4/locale-zh.m4: Update. + * gnulib/import/m4/localtime-buffer.m4: Update. + * gnulib/import/m4/longlong.m4: Update. + * gnulib/import/m4/lstat.m4: Update. + * gnulib/import/m4/malloc.m4: Update. + * gnulib/import/m4/malloca.m4: Update. + * gnulib/import/m4/math_h.m4: Update. + * gnulib/import/m4/mbrtowc.m4: Update. + * gnulib/import/m4/mbsinit.m4: Update. + * gnulib/import/m4/mbsrtowcs.m4: Update. + * gnulib/import/m4/mbstate_t.m4: Update. + * gnulib/import/m4/memchr.m4: Update. + * gnulib/import/m4/memmem.m4: Update. + * gnulib/import/m4/mempcpy.m4: Update. + * gnulib/import/m4/memrchr.m4: Update. + * gnulib/import/m4/mkdir.m4: Update. + * gnulib/import/m4/mkstemp.m4: Update. + * gnulib/import/m4/mmap-anon.m4: Update. + * gnulib/import/m4/mode_t.m4: Update. + * gnulib/import/m4/msvc-inval.m4: Update. + * gnulib/import/m4/msvc-nothrow.m4: Update. + * gnulib/import/m4/multiarch.m4: Update. + * gnulib/import/m4/nocrash.m4: Update. + * gnulib/import/m4/off_t.m4: Update. + * gnulib/import/m4/onceonly.m4: Update. + * gnulib/import/m4/open-cloexec.m4: Update. + * gnulib/import/m4/open.m4: Update. + * gnulib/import/m4/openat.m4: Update. + * gnulib/import/m4/opendir.m4: Update. + * gnulib/import/m4/pathmax.m4: Update. + * gnulib/import/m4/rawmemchr.m4: Update. + * gnulib/import/m4/readdir.m4: Update. + * gnulib/import/m4/readlink.m4: Update. + * gnulib/import/m4/realloc.m4: Update. + * gnulib/import/m4/rename.m4: Update. + * gnulib/import/m4/rewinddir.m4: Update. + * gnulib/import/m4/rmdir.m4: Update. + * gnulib/import/m4/save-cwd.m4: Update. + * gnulib/import/m4/secure_getenv.m4: Update. + * gnulib/import/m4/setenv.m4: Update. + * gnulib/import/m4/signal_h.m4: Update. + * gnulib/import/m4/ssize_t.m4: Update. + * gnulib/import/m4/stat-time.m4: Update. + * gnulib/import/m4/stat.m4: Update. + * gnulib/import/m4/std-gnu11.m4: Update. + * gnulib/import/m4/stdbool.m4: Update. + * gnulib/import/m4/stddef_h.m4: Update. + * gnulib/import/m4/stdint.m4: Update. + * gnulib/import/m4/stdio_h.m4: Update. + * gnulib/import/m4/stdlib_h.m4: Update. + * gnulib/import/m4/strchrnul.m4: Update. + * gnulib/import/m4/strdup.m4: Update. + * gnulib/import/m4/strerror.m4: Update. + * gnulib/import/m4/string_h.m4: Update. + * gnulib/import/m4/strstr.m4: Update. + * gnulib/import/m4/strtok_r.m4: Update. + * gnulib/import/m4/sys_socket_h.m4: Update. + * gnulib/import/m4/sys_stat_h.m4: Update. + * gnulib/import/m4/sys_time_h.m4: Update. + * gnulib/import/m4/sys_types_h.m4: Update. + * gnulib/import/m4/tempname.m4: Update. + * gnulib/import/m4/time_h.m4: Update. + * gnulib/import/m4/unistd-safer.m4: Update. + * gnulib/import/m4/unistd_h.m4: Update. + * gnulib/import/m4/warn-on-use.m4: Update. + * gnulib/import/m4/wchar_h.m4: Update. + * gnulib/import/m4/wchar_t.m4: Update. + * gnulib/import/m4/wctype_h.m4: Update. + * gnulib/import/m4/wint_t.m4: Update. + * gnulib/import/malloc.c: Update. + * gnulib/import/malloc/scratch_buffer.h: Update. + * gnulib/import/malloc/scratch_buffer_grow.c: Update. + * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. + * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. + * gnulib/import/malloca.c: Update. + * gnulib/import/malloca.h: Update. + * gnulib/import/malloca.valgrind: Update. + * gnulib/import/math.in.h: Update. + * gnulib/import/mbrtowc.c: Update. + * gnulib/import/mbsinit.c: Update. + * gnulib/import/mbsrtowcs-impl.h: Update. + * gnulib/import/mbsrtowcs-state.c: Update. + * gnulib/import/mbsrtowcs.c: Update. + * gnulib/import/memchr.c: Update. + * gnulib/import/memmem.c: Update. + * gnulib/import/mempcpy.c: Update. + * gnulib/import/memrchr.c: Update. + * gnulib/import/mkdir.c: Update. + * gnulib/import/mkstemp.c: Update. + * gnulib/import/msvc-inval.c: Update. + * gnulib/import/msvc-inval.h: Update. + * gnulib/import/msvc-nothrow.c: Update. + * gnulib/import/msvc-nothrow.h: Update. + * gnulib/import/open.c: Update. + * gnulib/import/openat-die.c: Update. + * gnulib/import/openat-priv.h: Update. + * gnulib/import/openat-proc.c: Update. + * gnulib/import/openat.c: Update. + * gnulib/import/openat.h: Update. + * gnulib/import/opendir.c: Update. + * gnulib/import/pathmax.h: Update. + * gnulib/import/pipe-safer.c: Update. + * gnulib/import/rawmemchr.c: Update. + * gnulib/import/readdir.c: Update. + * gnulib/import/readlink.c: Update. + * gnulib/import/realloc.c: Update. + * gnulib/import/ref-add.sin: Update. + * gnulib/import/ref-del.sin: Update. + * gnulib/import/rename.c: Update. + * gnulib/import/rewinddir.c: Update. + * gnulib/import/rmdir.c: Update. + * gnulib/import/same-inode.h: Update. + * gnulib/import/save-cwd.c: Update. + * gnulib/import/save-cwd.h: Update. + * gnulib/import/scratch_buffer.h: Update. + * gnulib/import/secure_getenv.c: Update. + * gnulib/import/setenv.c: Update. + * gnulib/import/signal.in.h: Update. + * gnulib/import/stat-time.c: Update. + * gnulib/import/stat-time.h: Update. + * gnulib/import/stat-w32.c: Update. + * gnulib/import/stat-w32.h: Update. + * gnulib/import/stat.c: Update. + * gnulib/import/stdbool.in.h: Update. + * gnulib/import/stddef.in.h: Update. + * gnulib/import/stdint.in.h: Update. + * gnulib/import/stdio.in.h: Update. + * gnulib/import/stdlib.in.h: Update. + * gnulib/import/str-two-way.h: Update. + * gnulib/import/strchrnul.c: Update. + * gnulib/import/strdup.c: Update. + * gnulib/import/streq.h: Update. + * gnulib/import/strerror-override.c: Update. + * gnulib/import/strerror-override.h: Update. + * gnulib/import/strerror.c: Update. + * gnulib/import/string.in.h: Update. + * gnulib/import/stripslash.c: Update. + * gnulib/import/strnlen1.c: Update. + * gnulib/import/strnlen1.h: Update. + * gnulib/import/strstr.c: Update. + * gnulib/import/strtok_r.c: Update. + * gnulib/import/sys_stat.in.h: Update. + * gnulib/import/sys_time.in.h: Update. + * gnulib/import/sys_types.in.h: Update. + * gnulib/import/tempname.c: Update. + * gnulib/import/tempname.h: Update. + * gnulib/import/time.in.h: Update. + * gnulib/import/unistd--.h: Update. + * gnulib/import/unistd-safer.h: Update. + * gnulib/import/unistd.in.h: Update. + * gnulib/import/unsetenv.c: Update. + * gnulib/import/verify.h: Update. + * gnulib/import/extra/snippet/warn-on-use.h: Update. + * gnulib/import/wchar.in.h: Update. + * gnulib/import/wctype.in.h: Update. + * gnulib/import/xalloc-oversized.h: Update. + * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to + "53e2c179f26a890fa6685af4b6c1397ee370433b". + +2018-08-16 Gary Benson + + PR gdb/13000: + * gdb/main.c (captured_main_1): Exit with nonzero status + in batch mode if the last command to be executed failed. + * NEWS: Mention the above. + +2018-08-29 Simon Marchi + + * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at + end of warning message. + +2018-08-29 Alan Hayward + + PR gdb/22943: + * aarch64-tdep.c (is_hfa_or_hva): Remove function. + (aarch64_extract_return_value): Use + aapcs_is_vfp_call_or_return_candidate. + (aarch64_return_in_memory): Likewise. + (aarch64_store_return_value): Likewise. + +2018-08-29 Alan Hayward + + * aarch64-tdep.c + (aapcs_is_vfp_call_or_return_candidate): Make static + (pass_in_v_or_stack): Remove function. + (pass_in_v_vfp_candidate): New function. + (aarch64_push_dummy_call): Check for float register candidates. + +2018-08-29 Alan Hayward + + * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. + (aapcs_is_vfp_call_or_return_candidate_1): New function. + (aapcs_is_vfp_call_or_return_candidate): Likewise. + +2018-08-28 Simon Marchi + + PR build/23399 + * common/agent.c (IPA_SYM_STRUCT_NAME): Define. + (struct ipa_sym_addresses): Rename to... + (struct ipa_sym_addresses_common): ... this. + * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. + +2018-08-28 Tom Tromey + + * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. + (token_fifo): Now a std::vector. + (yylex, c_parse): Update. + * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. + (token_fifo): Now a std::vector. + (yylex, d_parse): Update. + * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. + (token_fifo): Now a std::vector. + (yylex, go_parse): Update. + +2018-08-28 Simon Marchi + + * parser-defs.h (struct type_stack) : Change type to + std::vector. + : Remove. + * parse.c (parse_exp_in_context_1): Adjust. + (type_stack_reserve): Remove. + (check_type_stack_depth): Remove. + (insert_into_type_stack): Adjust to std::vector. + (insert_type): Likewise. + (push_type): Likewise. + (push_type_int): Likewise. + (insert_type_address_space): Likewise. + (pop_type): Likewise. + (pop_type_int): Likewise. + (pop_typelist): Likewise. + (pop_type_stack): Likewise. + (append_type_stack): Likewise. + (push_type_stack): Likewise. + (get_type_stack): Likewise. + (type_stack_cleanup): Likewise. + (push_typelist): Likewise. + (follow_types): Likewise. + (_initialize_parse): Likewise. + +2018-08-28 Hafiz Abid Qadeer + + * NEWS: Mention csky target. + +2018-08-28 Jiangshuai Li + Hafiz Abid Qadeer + Don Breazeal + + * csky-linux-tdep.c: New file. + * csky-tdep.c: Likewise. + * csky-tdep.h: Likewise. + * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and + csky-tdep.o. + (HFILES_NO_SRCDIR): Add csky-tdep.h. + (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c + * configure.tgt: Add csky support. + +2018-08-27 Jan Vrany + + * python/py-framefilter.c (py_print_frame): Print frame architecture + when printing on an MI output. + +2018-08-27 Tom Tromey + + PR build/23087: + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. + +2018-08-27 Tom Tromey + + * aarch64-linux-tdep.c + (aarch64_linux_iterate_over_regset_sections) : Add + casts to int. + +2018-08-27 Tom Tromey + + * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to + unsigned. + (ppc64_standard_linkage1, ppc64_standard_linkage2) + (ppc64_standard_linkage3, ppc64_standard_linkage4) + (ppc64_standard_linkage5, ppc64_standard_linkage6) + (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to + unsigned. + +2018-08-27 Tom Tromey + + * xtensa-tdep.h (XTREG_END): Add cast to unsigned. + (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. + +2018-08-27 Tom Tromey + + * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. + * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use + ULONGEST_MAX. + * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use + ULONGEST_MAX. + * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use + ULONGEST_MAX. + * sparc-linux-tdep.c (sparc32_linux_sigframe) + (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. + * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use + ULONGEST_MAX. + * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) + (ppc64_linux_sigaction_tramp_frame) + (ppc32_linux_sighandler_tramp_frame) + (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. + * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) + (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. + * mn10300-linux-tdep.c (am33_linux_sigframe) + (am33_linux_rt_sigframe): Use ULONGEST_MAX. + * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. + * mips-linux-tdep.c (mips_linux_o32_sigframe) + (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) + (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) + (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) + (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. + * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) + (mips64_fbsd_sigframe): Use ULONGEST_MAX. + * microblaze-linux-tdep.c + (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. + * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) + (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) + (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. + * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. + * common/common-types.h (ULONGEST_MAX): New define. + (CORE_ADDR_MAX): Fix formatting. + * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. + * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. + * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) + (arm_linux_rt_sigreturn_tramp_frame) + (arm_eabi_linux_sigreturn_tramp_frame) + (arm_eabi_linux_rt_sigreturn_tramp_frame) + (thumb2_eabi_linux_sigreturn_tramp_frame) + (thumb2_eabi_linux_rt_sigreturn_tramp_frame) + (arm_linux_restart_syscall_tramp_frame) + (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. + * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. + * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use + ULONGEST_MAX. + * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. + +2018-08-27 Tom Tromey + + * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use + CORE_ADDR_MAX. + * mips-tdep.c (mips_deal_with_atomic_sequence) + (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. + * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) + (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. + * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use + CORE_ADDR_MAX. + * aarch64-tdep.c (aarch64_software_single_step): Use + CORE_ADDR_MAX. + +2018-08-27 Tom Tromey + + * linespec.c (complete_linespec_component): Add cast to "char". + * completer.c (completion_tracker::build_completion_result): Add + cast to "char". + +2018-08-26 Simon Marchi + + * solist.h (struct solist, struct target_so_ops): Fix + indentation. + +2018-08-26 Simon Marchi + + * ada-tasks.c (ada_task_info_s): Remove typedef. + (DEF_VEC_O(ada_task_info_s)): Remove. + (struct ada_tasks_inferior_data): Initialize fields. + : Make an std::vector. + (get_ada_tasks_inferior_data): Allocate with new. + (ada_get_task_number): Adjust. + (get_task_number_from_id): Likewise. + (valid_task_id): Likewise. + (ada_get_task_info_from_ptid): Likewise. + (iterate_over_live_ada_tasks): Likewise. + (add_ada_task): Likewise. + (read_known_tasks): Likewise. + (ada_build_task_list): Likewise. + (print_ada_task_info): Likewise. + (info_task): Likewise. + (task_command_1): Likewise. + +2018-08-26 Simon Marchi + + * ada-lang.c (add_angle_brackets): Return std::string. + +2018-08-25 Simon Marchi + + * python/py-threadevent.c (py_get_event_thread): Initialize + pythread. + +2018-08-24 Pedro Alves + + * python/py-bpevent.c (create_breakpoint_event_object): Use + copy-initialization. + * python/py-continueevent.c (emit_continue_event): Use + copy-initialization. + * python/py-exitedevent.c (create_exited_event_object): Return a + gdbpy_ref<>. + (emit_exited_event): Use copy-initialization. + * python/py-inferior.c (python_new_inferior) + (python_inferior_deleted, add_thread_object): Use + copy-initialization. + * python/py-infevents.c (create_inferior_call_event_object) + (create_register_changed_event_object) + (create_memory_changed_event_object): Return a gdbpy_ref<>. + (emit_inferior_call_event, emit_memory_changed_event) + (emit_register_changed_event): Use copy-initialization. + * python/py-newobjfileevent.c (create_new_objfile_event_object): + Return a gdbpy_ref<>. + (emit_new_objfile_event): Use copy-initialization. + (create_clear_objfiles_event_object): Return a gdbpy_ref<>. + (emit_clear_objfiles_event): Use copy-initialization. + * python/py-signalevent.c (create_signal_event_object): Use + copy-initialization. + * python/py-threadevent.c (create_thread_event_object): Use + copy-initialization. + +2018-08-24 Pedro Alves + Simon Marchi + + PR gdb/23379 + * python/py-continueevent.c: Include "gdbthread.h". + (create_continue_event_object): Add intro comment. Add 'ptid' + parameter. Use it to find thread to pass to + create_thread_event_object. + (emit_continue_event): Pass PTID down to + create_continue_event_object. + * python/py-event.h (py_get_event_thread): Declare. + (create_thread_event_object): Remove default from 'thread' + parameter. + * python/py-stopevent.c (create_stop_event_object): Use + py_get_event_thread. + * python/py-threadevent.c (get_event_thread): Rename to ... + (py_get_event_thread): ... this, make extern, add 'ptid' parameter + and use it to find the thread. + (create_thread_event_object): Assert that THREAD isn't null. + Don't find the event thread here. + +2018-08-23 Kevin Buettner + + * block.h (blockrange, blockranges): New struct declarations. + (struct block): Add new field named `ranges'. + (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) + (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New + macros for accessing ranges in struct block. + (make_blockranges): New declaration. + block.c (make_blockranges): New function. + * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES + for block. + * symtab.h (find_pc_partial_function): Add new parameter `block'. + * blockframe.c (cache_pc_function_block): New static global. + (clear_pc_function_cache): Clear cache_pc_function_block. + (find_pc_partial_function): Move comment to symtab.h. Add + support for non-contiguous blocks. + * cli/cli-cmds.c (block.h): Include. + (print_disassembly): Handle printing of non-contiguous blocks. + (disassemble_current_function): Likewise. + (disassemble_command): Likewise. + + * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of + BLOCK_START. + * blockframe.c (get_pc_function_start): Likewise. + * compile/compile-c-symbols.c (convert_one_symbol): Likewise. + (gcc_symbol_address): Likewise. + * compile/compile-object-run.c (compile_object_run): Likewise. + * compile/compile.c (get_expr_block_and_pc): Likewise. + * dwarf2loc.c (dwarf2_find_location_expression): Likewise. + (func_addr_to_tail_call_list): Likewise. + * findvar.c (default_read_var_value): Likewise. + * inline-frame.c (inline_frame_this_id): Likewise. + (skip-inline_frames): Likewise. + * infcmd.c (until_next_command): Likewise. + * linespec.c (convert_linespec_to_sals): Likewise. + * parse.c (parse_exp_in_context_1): Likewise. + * printcmd.c (build_address_symbolic): likewise. + (info_address_command): Likewise. + symtab.c (find_function_start_sal): Likewise. + (skip_prologue_sal): Likewise. + (find_function_alias_target): Likewise. + (find_gnu_ifunc): Likewise. + * stack.c (find_frame_funname): Likewise. + * symtab.c (fixup_symbol_section): Likewise. + (find_function_start_sal): Likewise. + (skip_prologue_sal): Likewsie. + (find_function_alias_target): Likewise. + (find_gnu_ifunc): Likewise. + * tracepoint.c (info_scope_command): Likewise. + * value.c (value_fn_field): Likewise. + + * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc + in place of find_pc_partial_function. + * blockframe.c (find_function_entry_range_from_pc): New function. + * symtab.h (find_function_entry_range_from_pc): Declare and document. + * objfiles.c (objfile_relocate1): Relocate start and end addresses + for each range in a block. + + +2018-08-23 Xavier Roirand + + * machoread.c (macho_symfile_read_all_oso): Remove uneeded + incrementation. + +2018-08-22 Simon Marchi + + * solib-svr4.c (read_program_headers_from_bfd): Return + gdb::optional. + (svr4_exec_displacement): Adjust. + +2018-08-22 Simon Marchi + + * solib-svr4.c (read_program_header): Return + gdb::optional, remove p_sect_size param. + (find_program_interpreter): Return + gdb::optional. + (scan_dyntag_auxv): Adjust. + (enable_break): Adjust. + (svr4_exec_displacement): Adjust. + +2018-08-22 Simon Marchi + + * inf-child.h (inf_child_target) : New. + * inf-child.c (inf_child_target::terminal_save_inferior): New. + +2018-08-22 Simon Marchi + + * guile/scm-string.c (gdbscm_scm_from_printf): Use + string_vprintf. + * guile/scm-utils.c (gdbscm_printf): Likewise. + * serial.c (serial_printf): Likewise. + * xml-support.c (gdb_xml_parser::vdebug): Likewise. + +2018-08-22 Jan Vrany + + * stack.c (print_frame): Print frame architecture when printing on + an MI output. + * NEWS: Mention new "arch" attribute in frame output. + +2018-08-21 Alan Hayward + + * arch/aarch64.h (aarch64_regnum): Update comment. + +2018-08-21 Alan Hayward + + * NEWS: Add SVE to 8.2 section. + +2018-08-21 Pedro Alves + + * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored + out from gdbscm_parse_function_args. + (gdbscm_parse_function_args): Rework to use gdbscm_wrap and + gdbscm_parse_function_args_1. + +2018-08-21 Simon Marchi + + PR gdb/17816 + * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary + operator. + +2018-08-19 Simon Marchi + + * solib-svr4.c (svr4_exec_displacement): Fix formatting. + +2018-08-19 Michael Spang + + PR gdb/11786 + * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields + for PT_TLS segments. + +2018-08-18 Kevin Buettner + + * dwarf2expr.h (struct dwarf_expr_context): Add virtual method + dwarf_variable_value. + * dwarf2-frame.c (class dwarf_expr_executor): + Add override for dwarf_variable_value. + * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. + (class symbol_needs_eval_context): Likewise. + (indirect_synthetic_pointer): Add forward declaration. + (sect_variable_value): New function. + (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. + * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case + for DW_OP_GNU_variable_value. + +2018-08-16 Tom Tromey + + * top.c (read_command_file): Update. + (command_line_input): Remove "repeat" argument. + * ada-lang.c (get_selections): Update. + * linespec.c (decode_line_2): Update. + * defs.h (command_line_input): Remove argument. + * cli/cli-script.c (read_next_line): Update. + * python/py-gdb-readline.c: Update. + +2018-08-17 Tom Tromey + + * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to + command_line_input. + +2018-08-15 Tom Tromey + + * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. + +2018-08-14 Jan Vrany + + * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. + If used, use find_pc_partial_function to find address range + to disassemble. + * mi/mi-main.c (mi_cmd_list_features): Report + "data-disassemble-a-option" feature. + * NEWS: Mention new -data-disassemble option -a. + +2018-08-13 Tom Tromey + + * common/common-defs.h (_FORTIFY_SOURCE): Define. + +2018-08-13 Alan Hayward + + * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. + (aarch64_linux_collect_sve_regset): Likewise. + (aarch64_linux_iterate_over_regset_sections): Check for SVE. + * regcache.h (regcache_map_entry_size): New function. + +2018-08-13 Alan Hayward + + * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. + (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. + (SVE_HEADER_VL_LENGTH): Likewise. + (SVE_HEADER_MAX_VL_LENGTH): Likewise. + (SVE_HEADER_FLAGS_LENGTH): Likewise. + (SVE_HEADER_RESERVED_LENGTH): Likewise. + (SVE_HEADER_SIZE_OFFSET): Likewise. + (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. + (SVE_HEADER_VL_OFFSET): Likewise. + (SVE_HEADER_MAX_VL_OFFSET): Likewise. + (SVE_HEADER_FLAGS_OFFSET): Likewise. + (SVE_HEADER_RESERVED_OFFSET): Likewise. + (SVE_HEADER_SIZE): Likewise. + (aarch64_linux_core_read_vq): Add function. + (aarch64_linux_core_read_description): Check for SVE section. + +2018-08-13 Alan Hayward + + * aarch64-fbsd-tdep.c + (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and + collect_size. + * aarch64-linux-tdep.c + (aarch64_linux_iterate_over_regset_sections): Likewise. + * alpha-linux-tdep.c + (alpha_linux_iterate_over_regset_sections): + * alpha-nbsd-tdep.c + (alphanbsd_iterate_over_regset_sections): Likewise. + * amd64-fbsd-tdep.c + (amd64fbsd_iterate_over_regset_sections): Likewise. + * amd64-linux-tdep.c + (amd64_linux_iterate_over_regset_sections): Likewise. + * arm-bsd-tdep.c + (armbsd_iterate_over_regset_sections): Likewise. + * arm-fbsd-tdep.c + (arm_fbsd_iterate_over_regset_sections): Likewise. + * arm-linux-tdep.c + (arm_linux_iterate_over_regset_sections): Likewise. + * corelow.c (get_core_registers_cb): Likewise. + (core_target::fetch_registers): Likewise. + * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. + * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. + * gdbarch.h (void): Regenerate. + * gdbarch.sh: Add supply_size and collect_size. + * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. + * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. + * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. + * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. + * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. + * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. + * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. + * linux-tdep.c (linux_collect_regset_section_cb): Likewise. + * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. + * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. + * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. + * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. + * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. + * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. + * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise. + * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. + * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. + * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. + * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. + * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. + * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. + * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise. + * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. + * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. + * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. + * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. + * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. + * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. + * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. + * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. + +2018-08-10 Simon Marchi + + * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf + with string_printf. + +2018-08-10 Keith Seitz + + * compile/compile-c-support.c (add_code_header, add_code_footer): + Move into policy class. + (c_push_user_expression, pop_user_expression_nop) + (c_add_code_header, c_add_code_footer, c_add_input): New policy class. + (compile_program): New host class. + (c_compile_program): New typedef. + (c_compute_porgram): Use c_compile_program. + +2018-08-10 Keith Seitz + + * compile/compile-internal.h (compile_instance::~compile_instance): + Remove calls to htab_delete. + : Switch type to htab_up. + * compile.c (compile_instance::compile_instance): Initialize + htab unique pointers. + (compile_instance::get_cached_type, compile_instance::insert_type) + (compile_instance::error_symbol_once): Update for unique_ptr. + +2018-08-10 Keith Seitz + + * compile/compile-c-symbols.c (struct symbol_error) + (hash_symbol_error, eq_symbol_error, del_symbol_error) + (compile_instance::insert_symbol_error) + (compile_instance::error_symbol_once): Move to ... + * compile/compile.c: ... here. + +2018-08-10 Keith Seitz + + * compile/compile-c-support.c (c_get_compile_context): Use `new' + instead of `new_compile_instance'. + * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): + Update description. + If the symbol error map is not initialized, create it. + (generate_c_for_for_one_symbol): Do not check/initialize + the symbol error map. + * compile/compile-c-types.c (compile_c_instance): Make a class. + Update all callers. + (compile_instance::compile_instance): Initialize the type cache. + (get_cached_type): New function. + (insert_type): Update description. + (compile_c_instance::m_default_cflags): Define. + (convert_type): Update description. Use get_cached_type. + (delete_instance): Moved to destructor. + (new_compile_instance): Moved to constructor. + * compile/compile-c.h (compile_c_instance): Make class inheriting + from compile_instance. + : Remove field. + : Move to base class. + : Rename to `m_plugin' and remove pointer type. + * compile/compile-internal.h (compile_instance): Make class. + : Define. + : Rename to `m_gcc_fe'. + : Add `m_' prefix. + : New fields, moved from + compile_c_instance. + : Remove. + (convert_type, new_compile_instance): Remove. + * compile/compile.c (cleanup_compile_instance): Remove. + (compile_to_object): Use unique_ptr to eliminate cleanups. + (compile_instance::set_print_callback, compile_instance::version) + (compile_instance::set_verbose) + (compile_instance::set_driver_filename) + (compile_instance::set_triplet_regexp) + (compile_instance::set_arguments) + (compile_instance::set_source_file) + (compile_instance::compile): Define. + +2018-08-10 Keith Seitz + + * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. + * compile/compile-c-types.c: Define GCC_METHODN macros and include + gcc-c-fe.def to define C plugin. + (delete_instance): Delete `c_plugin'. + (new_compile_instance): Initialize `c_plugin'. + * compile/compile-c.h: Include gcc_c_plugin.h. + (struct compile_c_instance) : New member. + * gcc-c-plugin.h: New file. + Update all callers with API change. + +2018-08-10 Keith Seitz + + * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... + (HFILES_NO_SRCDIR): ... to here. + Add compile-internal.h and compile-c.h. + * compile/compile-c-support.c: Include compile-c.h. + * compile/compile-c-symbols.c: Include compile-c.h. + (generate_c_for_variable_locations): Update comment. + * compile/compile-c-types.c: Include compile-c.h. + * compile/compile-c.h: New file -- moved C language declarations + from other files here. + * compile/compile-internal.h: Do not include hashtab.h or + common/enum-flags.h. + (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) + (gcc_convert_symbol, gcc_symbol_address) + (generate_c_for_variable_locations, c_get_mode_for_size) + (c_get_range_decl_name): Definitions moved to compile-c.h. + * compile/compile-loc2c.c: Include compile-c.h. + +2018-08-10 Keith Seitz + + * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... + (c_symbol_substitution_name): ... this. + Update all callers. + +2018-08-10 Keith Seitz + + * compile/compile-c-support.c (c_compute_program): Use + unique_xmalloc_ptr to eliminate cleanup. + * compile/compile-c-symbols.c (generate_c_for_variable_locations): + Return a unique_xmalloc_ptr and eliminate cleanup. + * compile/compile-internal.h (generate_c_for_variable_locations): + Return unique_xmalloc_ptr and update description. + +2018-08-10 Alan Hayward + + * corelow.c (core_target::get_core_register_section): Rename + min_size to section_min_size. + +2018-08-09 Jim Wilson + + * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. + (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. + * NEWS: Mention new GNU/Linux RISC-V target. + * configure.host: Add riscv*-*-linux*. + * configure.nat: Add riscv*. + * configure.tgt: Add riscv*-*-linux*. + * riscv-linux-nat.c: New file. + * riscv-linux-tdep.c: New file. + +2018-08-09 Andrew Burgess + + * infrun.c (resume): Make static, add forward declaration. + (proceed): Update header comment. + * infrun.h (resume): Delete declaration. + +2018-08-09 Tom Tromey + + * riscv-tdep.h: Minor formatting fixes. + +2018-08-09 Simon Marchi + + * common/scoped_mmap.c (mmap_file): Silence ARI warning. + * dwarf-index-cache.c (create_dir_and_check): Likewise. + (test_mkdir_recursive): Likewise. + * dwarf-index-write.c (write_psymtabs_to_index): Likewise. + +2018-08-09 Andrew Burgess + + * valarith.c (value_subscripted_rvalue): If an array is not in + memory, and we don't know the upper bound, then we can't know that + the requested element exists or not. + +2018-08-08 Simon Marchi + + * target.c (str_comma_list_concat_elem): Fix typo in comment. + (target_options_to_string): Add comment. + +2018-08-08 Tom Tromey + + * unittests/scoped_mmap-selftests.c: Check result of "write". + +2018-08-08 Jim Wilson + + * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. + (decode_register_index_short): New. + (decode_j_type_insn, decode_cj_type_insn): New. + (decode_b_type_insn, decode_cb_type_insn): New. + (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New + local xlen. Check xlen when decoding ambiguous compressed insns. In + compressed decode, use is_c_lui_insn instead of is_lui_insn, and + is_c_sw_insn instead of is_sw_insn. + (riscv_next_pc, riscv_next_pc_atomic_sequence): New. + (riscv_software_single_step): New. + * riscv-tdep.h (riscv_software_single_step): Declare. + + * riscv-tdep.c (riscv_isa_xlen): Drop static. + * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. + +2018-08-08 Andrew Burgess + + PR gdb/18050: + * target.c (dispose_inferior): Don't dispose of inferiors that are + already killed. + +2018-08-08 Szabolcs Nagy + + * remote.c (remote_target::download_tracepoint): Change char* to + const char*. + +2018-08-07 Simon Marchi + + * target.h (target_options_to_string): Return an std::string. + * target.c (str_comma_list_concat_elem): Return void, use + std::string. + (do_option): Likewise. + (target_options_to_string): Return an std::string. + * linux-nat.c (linux_nat_target::wait): Adjust. + * target-debug.h (target_debug_print_options): Adjust. + +2018-08-07 Tom Tromey + + * Makefile.in (CPPFLAGS): New variable. + (INTERNAL_CPPFLAGS): Use it. + +2018-08-07 Simon Marchi + + * NEWS: Mention the index cache. + +2018-08-07 Simon Marchi + + * common/pathstuff.h (get_standard_cache_dir): New. + * common/pathstuff.c (get_standard_cache_dir): New. + * build-id.h (build_id_to_string): New. + * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, + DEBUG_STR_SUFFIX): Move to here. + * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, + DEBUG_STR_SUFFIX): Move from there. + (write_psymtabs_to_index): Make non-static, add basename + parameter. Write to temporary files, rename when done. + (save_gdb_index_command): Adjust call to + write_psymtabs_to_index. + * dwarf2read.h (dwarf2_per_objfile) : New + field. + * dwarf2read.c (dwz_file) : New field. + (get_gdb_index_contents_from_cache): New. + (get_gdb_index_contents_from_cache_dwz): New. + (dwarf2_initialize_objfile): Read index from cache. + (dwarf2_build_psymtabs): Save to index. + * dwarf-index-cache.h: New file. + * dwarf-index-cache.c: New file. + * dwarf-index-write.h: New file. + +2018-08-07 Simon Marchi + + * gnulib/aclocal.m4: Re-generate. + * gnulib/config.in: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.am: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + * gnulib/import/m4/gnulib-cache.m4: Re-generate. + * gnulib/import/m4/gnulib-comp.m4: Re-generate. + * gnulib/import/m4/mkdir.m4: New file. + * gnulib/import/mkdir.c: New file. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir + module. + +2018-08-07 Simon Marchi + + * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. + * common/scoped_mmap.c: New file. + * common/scoped_mmap.h (destroy): New method. + (~scoped_mmap, reset): Use destroy. + (scoped_mmap): New move constructor. + (mmap_file): New declaration. + * unittests/scoped_mmap-selftests.c (test_normal, + test_invalid_filename, run_tests): New functions. + (_initialize_scoped_mmap_selftests): Register selftest. + +2018-08-07 Simon Marchi + + * dwarf2read.c (read_gdb_index_from_section): Rename to... + (read_gdb_index_from_buffer): ... this. Remove section + parameter, add buffer parameter. + (get_gdb_index_contents_ftype, + get_gdb_index_contents_dwz_ftype): New typedefs. + (dwarf2_read_gdb_index): Add callback parameters to get the + index contents. + (get_gdb_index_contents_from_section): New. + (dwarf2_initialize_objfile): Update call to + dwarf2_read_gdb_index. + 2018-08-07 Simon Marchi * common/filestuff.h (gdb_fopen_cloexec): New overload.