1 2014-01-09 Pedro Alves <palves@redhat.com>
3 Skip enabling event reporting if the kernel supports
5 * linux-thread-db.c: Include "nat/linux-ptrace.h".
6 (thread_db_use_events): New function.
7 (try_thread_db_load_1): Check thread_db_use_events before enabling
9 (update_thread_state): New function.
10 (attach_thread): Use it. Check thread_db_use_events before
11 enabling event reporting.
12 (thread_db_detach): Check thread_db_use_events before disabling
14 (find_new_threads_callback): Check thread_db_use_events before
15 enabling event reporting. Update the thread's state if not using
18 2015-01-09 Pedro Alves <palves@redhat.com>
20 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
21 about to wait for is > 0.
22 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
23 the kernel thread ID is -1.
25 2015-01-09 Pedro Alves <palves@redhat.com>
27 * linux-nat.c (attach_proc_task_lwp_callback): New function.
28 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
29 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
31 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
33 * nat/linux-procfs.c: Include <dirent.h>.
34 (linux_proc_get_int): New parameter "warn". Handle it.
35 (linux_proc_get_tgid): Adjust.
36 (linux_proc_get_tracerpid): Rename to ...
37 (linux_proc_get_tracerpid_nowarn): ... this.
38 (linux_proc_pid_get_state): New function, factored out from
39 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
41 (linux_proc_pid_is_gone): New function.
42 (linux_proc_pid_is_stopped): Adjust.
43 (linux_proc_pid_is_zombie_maybe_warn)
44 (linux_proc_pid_is_zombie_nowarn): New functions.
45 (linux_proc_pid_is_zombie): Use
46 linux_proc_pid_is_zombie_maybe_warn.
47 (linux_proc_attach_tgid_threads): New function.
48 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
49 (linux_proc_get_tracerpid): Rename to ...
50 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
51 (linux_proc_pid_is_gone): New declaration.
52 (linux_proc_pid_is_zombie): Update comment.
53 (linux_proc_pid_is_zombie_nowarn): New declaration.
54 (linux_proc_attach_lwp_func): New typedef.
55 (linux_proc_attach_tgid_threads): New declaration.
56 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
58 (linux_ptrace_attach_fail_reason_string): Move here from
59 gdbserver/linux-low.c and rename.
60 (ptrace_supports_feature): If the current ptrace options are not
61 known yet, check them now, instead of asserting.
62 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
65 2015-01-09 Pedro Alves <palves@redhat.com>
67 * linux-thread-db.c (thread_db_find_new_threads_silently)
68 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
69 (find_new_threads_once): Print debug output on gdb_stdlog.
71 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
72 Pedro Alves <palves@redhat.com>
74 * compile/compile.c: Include "gdb_wait.h".
75 (do_rmdir): Check return value, and free 'zap'.
77 2015-01-08 Pedro Alves <palves@redhat.com>
78 Yao Qi <yao@codesourcery.com>
80 * dwarf2loc.c (indirect_pieced_value): Don't call
81 gdb_sign_extend. Call extract_signed_integer instead.
82 * utils.c (gdb_sign_extend): Remove.
83 * utils.h (gdb_sign_extend): Remove declaration.
85 2015-01-07 Pierre Muller <muller@sourceware.org>
88 * stabsread.c (define_symbol): Set language for C++ special symbols.
90 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
92 * inflow.c (initial_gdb_ttystate): Tweak comment.
94 2015-01-07 Joel Brobecker <brobecker@adacore.com>
96 * inflow.c (set_initial_gdb_ttystate): Add empty line after
97 comment documenting function.
99 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
101 * terminal.h (set_initial_gdb_ttystate): Declare.
102 * inflow.c (initial_gdb_ttystate): New static variable.
103 (set_initial_gdb_ttystate): New setter.
104 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
105 instead of our current terminal state.
106 * top.c (gdb_init): Call set_initial_gdb_ttystate.
108 2015-01-07 Joel Brobecker <brobecker@adacore.com>
110 * guile/scm-type.c (tyscm_array_1): Add comment.
111 * python/py-type.c (typy_array_1): Add comment.
113 2015-01-06 Joel Brobecker <brobecker@adacore.com>
115 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
116 error if N2 is equal to N1 - 1.
118 2015-01-06 Joel Brobecker <brobecker@adacore.com>
120 * python/py-type.c (typy_array_1): Do not raise negative-length
121 exception if N2 is equal to N1 - 1.
123 2015-01-03 Doug Evans <xdje42@gmail.com>
125 * c-exp.y: Whitespace cleanup.
126 (classify_inner_name): Remove extra ;.
128 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
130 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
133 2015-01-02 Doug Evans <dje@google.com>
135 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
137 2015-01-02 Doug Evans <dje@google.com>
139 * symtab.h (struct symbol): Fix typo in comment.
141 2015-01-01 Joel Brobecker <brobecker@adacore.com>
143 Update year range in copyright notice of all files.
145 2015-01-01 Joel Brobecker <brobecker@adacore.com>
147 * top.c (print_gdb_version): Update copyright year to 2015.
149 2015-01-01 Joel Brobecker <brobecker@adacore.com>
151 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
153 For older changes see ChangeLog-2014.
159 version-control: never