linux-nat.c: always mark execing LWP as resumed
[external/binutils.git] / gdb / ChangeLog
1 2015-01-09  Pedro Alves  <palves@redhat.com>
2
3         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4         Set the LWP's 'resumed' flag.
5
6 2015-01-09  Pedro Alves  <palves@redhat.com>
7
8         * linux-nat.c (linux_resume_one_lwp): New function.
9         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10         (linux_nat_resume): Use lwp_status_pending_p and
11         linux_resume_one_lwp.
12         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13         (linux_handle_extended_wait): Use linux_resume_one_lwp.
14         (status_callback, running_callback): Use lwp_status_pending_p.
15         (lwp_status_pending_p): New function.
16         (stop_and_resume_callback): Use lwp_status_pending_p.
17         (linux_nat_filter_event): Use linux_resume_one_lwp.
18         (linux_nat_wait_1): Always use status_callback to look for an LWP
19         with a pending status.  Use linux_resume_one_lwp.
20         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
21         linux_resume_one_lwp.
22
23 2015-01-09  Pedro Alves  <palves@redhat.com>
24
25         * breakpoint.c (bp_location_inserted_here_p): New function,
26         factored out from ...
27         (breakpoint_inserted_here_p): ... here.  Use
28         ALL_BP_LOCATIONS_AT_ADDR.
29         (software_breakpoint_inserted_here_p): Use
30         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
31
32 2014-01-09  Pedro Alves  <palves@redhat.com>
33
34         Skip enabling event reporting if the kernel supports
35         PTRACE_EVENT_CLONE.
36         * linux-thread-db.c: Include "nat/linux-ptrace.h".
37         (thread_db_use_events): New function.
38         (try_thread_db_load_1): Check thread_db_use_events before enabling
39         event reporting.
40         (update_thread_state): New function.
41         (attach_thread): Use it.  Check thread_db_use_events before
42         enabling event reporting.
43         (thread_db_detach): Check thread_db_use_events before disabling
44         event reporting.
45         (find_new_threads_callback): Check thread_db_use_events before
46         enabling event reporting.  Update the thread's state if not using
47         libthread_db events.
48
49 2015-01-09  Pedro Alves  <palves@redhat.com>
50
51         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
52         about to wait for is > 0.
53         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
54         the kernel thread ID is -1.
55
56 2015-01-09  Pedro Alves  <palves@redhat.com>
57
58         * linux-nat.c (attach_proc_task_lwp_callback): New function.
59         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
60         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
61         ptrace option flags.
62         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
63         field.
64         * nat/linux-procfs.c: Include <dirent.h>.
65         (linux_proc_get_int): New parameter "warn".  Handle it.
66         (linux_proc_get_tgid): Adjust.
67         (linux_proc_get_tracerpid): Rename to ...
68         (linux_proc_get_tracerpid_nowarn): ... this.
69         (linux_proc_pid_get_state): New function, factored out from
70         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
71         and handle it.
72         (linux_proc_pid_is_gone): New function.
73         (linux_proc_pid_is_stopped): Adjust.
74         (linux_proc_pid_is_zombie_maybe_warn)
75         (linux_proc_pid_is_zombie_nowarn): New functions.
76         (linux_proc_pid_is_zombie): Use
77         linux_proc_pid_is_zombie_maybe_warn.
78         (linux_proc_attach_tgid_threads): New function.
79         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
80         (linux_proc_get_tracerpid): Rename to ...
81         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
82         (linux_proc_pid_is_gone): New declaration.
83         (linux_proc_pid_is_zombie): Update comment.
84         (linux_proc_pid_is_zombie_nowarn): New declaration.
85         (linux_proc_attach_lwp_func): New typedef.
86         (linux_proc_attach_tgid_threads): New declaration.
87         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
88         use nowarn functions.
89         (linux_ptrace_attach_fail_reason_string): Move here from
90         gdbserver/linux-low.c and rename.
91         (ptrace_supports_feature): If the current ptrace options are not
92         known yet, check them now, instead of asserting.
93         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
94         Declare.
95
96 2015-01-09  Pedro Alves  <palves@redhat.com>
97
98         * linux-thread-db.c (thread_db_find_new_threads_silently)
99         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
100         (find_new_threads_once): Print debug output on gdb_stdlog.
101
102 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
103             Pedro Alves  <palves@redhat.com>
104
105         * compile/compile.c: Include "gdb_wait.h".
106         (do_rmdir): Check return value, and free 'zap'.
107
108 2015-01-08  Pedro Alves  <palves@redhat.com>
109             Yao Qi  <yao@codesourcery.com>
110
111         * dwarf2loc.c (indirect_pieced_value): Don't call
112         gdb_sign_extend.  Call extract_signed_integer instead.
113         * utils.c (gdb_sign_extend): Remove.
114         * utils.h (gdb_sign_extend): Remove declaration.
115
116 2015-01-07  Pierre Muller  <muller@sourceware.org>
117
118         PR symtab/17811
119         * stabsread.c (define_symbol): Set language for C++ special symbols.
120
121 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
122
123         * inflow.c (initial_gdb_ttystate): Tweak comment.
124
125 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
126
127         * inflow.c (set_initial_gdb_ttystate): Add empty line after
128         comment documenting function.
129
130 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
131
132         * terminal.h (set_initial_gdb_ttystate): Declare.
133         * inflow.c (initial_gdb_ttystate): New static variable.
134         (set_initial_gdb_ttystate): New setter.
135         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
136         instead of our current terminal state.
137         * top.c (gdb_init): Call set_initial_gdb_ttystate.
138
139 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
140
141         * guile/scm-type.c (tyscm_array_1): Add comment.
142         * python/py-type.c (typy_array_1): Add comment.
143
144 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
145
146         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
147         error if N2 is equal to N1 - 1.
148
149 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
150
151         * python/py-type.c (typy_array_1): Do not raise negative-length
152         exception if N2 is equal to N1 - 1.
153
154 2015-01-03  Doug Evans  <xdje42@gmail.com>
155
156         * c-exp.y: Whitespace cleanup.
157         (classify_inner_name): Remove extra ;.
158
159 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
160
161         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
162         offset signed.
163
164 2015-01-02  Doug Evans  <dje@google.com>
165
166         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
167
168 2015-01-02  Doug Evans  <dje@google.com>
169
170         * symtab.h (struct symbol): Fix typo in comment.
171
172 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
173
174         Update year range in copyright notice of all files.
175
176 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
177
178         * top.c (print_gdb_version): Update copyright year to 2015.
179
180 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
181
182         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
183
184 For older changes see ChangeLog-2014.
185 \f
186 Local Variables:
187 mode: change-log
188 left-margin: 8
189 fill-column: 74
190 version-control: never
191 coding: utf-8
192 End: