Fix PR threads/19422 - show which thread caused stop
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 15dbdf4d7d75356486cc8d92872283d9f13d9e12..8fe13814f54fb951b19dbab8a34ebcd5fd096e10 100644 (file)
@@ -1,3 +1,88 @@
+2016-01-18  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention that GDB now displays the ID and name of the
+       thread that hit a breakpoint or received a signal.
+       * break-catch-sig.c (signal_catchpoint_print_it): Use
+       maybe_print_thread_hit_breakpoint.
+       * break-catch-syscall.c (print_it_catch_syscall): Likewise.
+       * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
+       * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
+       (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
+       (print_it_catch_exec, print_it_ranged_breakpoint)
+       (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
+       Use maybe_print_thread_hit_breakpoint.
+       * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
+       * gdbthread.h (show_thread_that_caused_stop): Declare.
+       * infrun.c (print_signal_received_reason): Print which thread
+       received signal.
+       * thread.c (show_thread_that_caused_stop): New function.
+
+2016-01-18  Gary Benson  <gbenson@redhat.com>
+
+       * nat/linux-namespaces.c (do_fork): New function.
+       (linux_mntns_get_helper): Use the above.
+
+2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
+
+       Pushed by Joel Brobecker  <brobecker@adacore.com>.
+       PR gdb/19208
+       * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
+       if the function has no name.
+
+2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
+       Conditionalize for Windows host.
+       (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
+       (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
+       (phony_iconv_open): Handle both UTF-32 endiannesses.
+       (phony_iconv): Likewise.  Check for output overflow and clean up
+       out-of-input cases.  Correct adjustment to input buffer pointer.
+       (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
+       phony_iconv_open.
+
+2016-01-15  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention star wildcard ranges.
+       * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
+       (number_range_setup_range): New function.
+       * cli/cli-utils.h (number_range_setup_range): New declaration.
+       * thread.c (thread_apply_command): Support star TID ranges.
+       * tid-parse.c (tid_range_parser_finished)
+       (tid_range_parser_string, tid_range_parser_skip)
+       (get_tid_or_range, get_tid_or_range): Handle
+       TID_RANGE_STATE_STAR_RANGE.
+       (tid_range_parser_star_range): New function.
+       * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
+       New value.
+       (tid_range_parser_star_range): New declaration.
+
+2016-01-15  Pedro Alves  <palves@redhat.com>
+
+       * thread.c (thread_apply_command): Use the tid range parser to
+       advance past the thread ID list.
+       * tid-parse.c (get_positive_number_trailer): New function.
+       (parse_thread_id): Use it.
+       (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
+       thread ID error.
+       (get_tid_or_range): Detect negative values.  Return 0 instead of
+       throwing invalid thread ID error.
+
+2016-01-14  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
+       Declare.
+       (arm_linux_get_next_pcs_ops): Install
+       arm_linux_get_next_pcs_syscall_next_pc.
+       (arm_linux_syscall_next_pc): Change to ...
+       (arm_linux_get_next_pcs_syscall_next_pc): ... it.
+       (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
+       * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
+       (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
+       call tdep->syscall_next_pc.
+       * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
+       (arm_get_next_pcs_syscall_next_pc): Remove.
+
 2016-01-14  Yao Qi  <yao.qi@linaro.org>
 
        * remote.c (remote_set_syscall_catchpoint): Cast to char *.
This page took 0.024972 seconds and 4 git commands to generate.