Linux: Skip thread_db thread event reporting if PTRACE_EVENT_CLONE is supported
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-01-09 Pedro Alves <palves@redhat.com>
2
3 Skip enabling event reporting if the kernel supports
4 PTRACE_EVENT_CLONE.
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
8 event reporting.
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
13 event reporting.
14 (find_new_threads_callback): Check thread_db_use_events before
15 enabling event reporting. Update the thread's state if not using
16 libthread_db events.
17
18 2015-01-09 Pedro Alves <palves@redhat.com>
19
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.
24
25 2015-01-09 Pedro Alves <palves@redhat.com>
26
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
30 ptrace option flags.
31 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
32 field.
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"
40 and handle it.
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
57 use nowarn functions.
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):
63 Declare.
64
65 2015-01-09 Pedro Alves <palves@redhat.com>
66
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.
70
71 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
72 Pedro Alves <palves@redhat.com>
73
74 * compile/compile.c: Include "gdb_wait.h".
75 (do_rmdir): Check return value, and free 'zap'.
76
77 2015-01-08 Pedro Alves <palves@redhat.com>
78 Yao Qi <yao@codesourcery.com>
79
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.
84
85 2015-01-07 Pierre Muller <muller@sourceware.org>
86
87 PR symtab/17811
88 * stabsread.c (define_symbol): Set language for C++ special symbols.
89
90 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
91
92 * inflow.c (initial_gdb_ttystate): Tweak comment.
93
94 2015-01-07 Joel Brobecker <brobecker@adacore.com>
95
96 * inflow.c (set_initial_gdb_ttystate): Add empty line after
97 comment documenting function.
98
99 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
100
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.
107
108 2015-01-07 Joel Brobecker <brobecker@adacore.com>
109
110 * guile/scm-type.c (tyscm_array_1): Add comment.
111 * python/py-type.c (typy_array_1): Add comment.
112
113 2015-01-06 Joel Brobecker <brobecker@adacore.com>
114
115 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
116 error if N2 is equal to N1 - 1.
117
118 2015-01-06 Joel Brobecker <brobecker@adacore.com>
119
120 * python/py-type.c (typy_array_1): Do not raise negative-length
121 exception if N2 is equal to N1 - 1.
122
123 2015-01-03 Doug Evans <xdje42@gmail.com>
124
125 * c-exp.y: Whitespace cleanup.
126 (classify_inner_name): Remove extra ;.
127
128 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
129
130 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
131 offset signed.
132
133 2015-01-02 Doug Evans <dje@google.com>
134
135 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
136
137 2015-01-02 Doug Evans <dje@google.com>
138
139 * symtab.h (struct symbol): Fix typo in comment.
140
141 2015-01-01 Joel Brobecker <brobecker@adacore.com>
142
143 Update year range in copyright notice of all files.
144
145 2015-01-01 Joel Brobecker <brobecker@adacore.com>
146
147 * top.c (print_gdb_version): Update copyright year to 2015.
148
149 2015-01-01 Joel Brobecker <brobecker@adacore.com>
150
151 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
152
153 For older changes see ChangeLog-2014.
154 \f
155 Local Variables:
156 mode: change-log
157 left-margin: 8
158 fill-column: 74
159 version-control: never
160 coding: utf-8
161 End:
This page took 0.033477 seconds and 5 git commands to generate.