Improve ptrace-error detection on Linux targets
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 48f90186ffab0b9b57124d8e7ed34e7d4a38c872..37626bdd1e1e576f9bae7e44889dccf7318edbb5 100644 (file)
@@ -1,3 +1,132 @@
+2019-09-26  Sergio Durigan Junior  <sergiodj@redhat.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * gdbsupport/gdb-dlfcn.h (gdb_dlopen): Update comment and
+       mention that the function throws an error.
+       * inf-ptrace.c (default_inf_ptrace_me_fail_reason): New
+       function.
+       (inf_ptrace_me_fail_reason): New variable.
+       (inf_ptrace_me): Update call to 'trace_start_error_with_name'.
+       * inf-ptrace.h (inf_ptrace_me_fail_reason): New variable.
+       * linux-nat.c (attach_proc_task_lwp_callback): Call
+       'linux_ptrace_attach_fail_reason_lwp'.
+       (linux_nat_target::attach): Update call to
+       'linux_ptrace_attach_fail_reason'.
+       (_initialize_linux_nat): Set 'inf_ptrace_me_fail_reason'.
+       * nat/fork-inferior.c (trace_start_error_with_name): Add
+       optional 'append' argument.
+       * nat/fork-inferior.h (trace_start_error_with_name): Update
+       prototype.
+       * nat/linux-ptrace.c: Include "gdbsupport/gdb-dlfcn.h",
+       "gdbsupport/filestuff.h" and "nat/fork-inferior.h".
+       (selinux_ftype): New typedef.
+       (linux_ptrace_restricted_fail_reason): New function.
+       (linux_ptrace_attach_fail_reason_1): New function.
+       (linux_ptrace_attach_fail_reason): Change first argument type
+       from 'ptid_t' to 'pid_t'.  Call
+       'linux_ptrace_attach_fail_reason_1' and
+       'linux_ptrace_restricted_fail_reason'.
+       (linux_ptrace_attach_fail_reason_lwp): New function.
+       (linux_ptrace_me_fail_reason): New function.
+       (errno_pipe): New variable.
+       (linux_fork_to_function): Initialize pipe before forking.
+       (linux_child_function): Deal with errno-passing from child.
+       Handle ptrace error.
+       (linux_check_child_ptrace_errno): New function.
+       (linux_check_child_ptrace_errno): Call
+       'linux_check_child_ptrace_errno'.
+       * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Update
+       prototype.
+       (linux_ptrace_attach_fail_reason_lwp): New prototype.
+       (linux_ptrace_me_fail_reason): New prototype.
+       * remote.c (extended_remote_target::attach): Handle error
+       message passed by the server when attach fails.
+
+2019-09-26  Christian Biesinger  <cbiesinger@google.com>
+
+       * blockframe.c (find_pc_partial_function): Change return type to bool.
+       * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
+       * minsyms.c (in_gnu_ifunc_stub): Likewise.
+       (stub_gnu_ifunc_resolve_name): Likewise.
+       * symtab.c (compare_filenames_for_search): Likewise.
+       (compare_glob_filenames_for_search): Likewise.
+       (matching_obj_sections): Likewise.
+       (symbol_matches_domain): Likewise.
+       (find_line_symtab): Change out param EXACT_MATCH to bool *.
+       (find_line_pc): Change return type to bool.
+       (find_line_pc_range): Likewise.
+       (producer_is_realview): Likewise.
+       * symtab.h (symbol_matches_domain): Likewise.
+       (find_pc_partial_function): Likewise.
+       (find_pc_line_pc_range): Likewise.
+       (in_gnu_ifunc_stub): Likewise.
+       (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
+       (find_line_pc): Likewise.
+       (find_line_pc_range): Likewise.
+       (matching_obj_sections): Likewise.
+       (find_line_symtab): Change out parameter to bool.
+       (producer_is_realview): Change return type to bool.
+       (compare_filenames_for_search): Likewise.
+       (compare_glob_filenames_for_search): Likewise.
+
+2019-09-26  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
+       (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
+       * gdb_usleep.h: Remove.
+       * gdb_usleep.c: Remove.
+       * utils.c: Don't include gdb_usleep.h.
+
+2019-09-26  Tom Tromey  <tromey@adacore.com>
+
+       * python/py-type.c (type_to_type_object): Call check_typedef
+       for stub types.
+
+2019-09-26  Tom Tromey  <tom@tromey.com>
+
+       * utils.h (initialize_utils): Don't declare.
+       * top.c (gdb_init): Don't call initialize_utils.
+       * utils.c (initialize_utils): Remove.  Move contents...
+       (_initialize_utils): ... here.
+
+2019-09-25  Tom Tromey  <tom@tromey.com>
+
+       * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
+       * utils.h (make_hex_string): Don't declare.
+       * utils.c (make_hex_string): Remove.
+
+2019-09-24  Tom de Vries  <tdevries@suse.de>
+
+       PR gdb/23815
+       * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
+       Initialize xstateregs before ptrace PTRACE_GETREGSET call.
+
+2019-09-23  Dimitar Dimitrov  <dimitar@dinux.eu>
+
+       * NEWS: Mention new simulator port for PRU.
+
+2019-09-23  Christian Biesinger  <cbiesinger@google.com>
+
+       * ada-exp.y (write_object_remaining): Update.
+       * ada-lang.c (ada_decode): Return a std::string instead of a char*
+       and eliminate the static buffer.
+       (ada_decode_symbol): Update.
+       (ada_la_decode): Update.
+       (ada_sniff_from_mangled_name): Update.
+       (is_valid_name_for_wild_match): Update.
+       (ada_lookup_name_info::matches): Update and simplify.
+       (name_matches_regex): Update.
+       (ada_add_global_exceptions): Update.
+       * ada-lang.h (ada_decode): Update signature.
+       * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
+       * dwarf-index-write.c (debug_names::insert): Update.
+
+2019-09-21  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
+       formatting.
+
 2019-09-21  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
This page took 0.02562 seconds and 4 git commands to generate.