[ARI] Remove trailing new-line in argument of call to warning.
[external/binutils.git] / gdb / ChangeLog
1 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
2
3         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4         new-line in argument of call to "warning".
5
6 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
7
8         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9         in static block, then try searching for primitive types.
10
11 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12
13         * top.h (gdb_add_history): Declare.
14         * top.c (command_count): New variable.
15         (gdb_add_history): New function.
16         (gdb_safe_append_history): New static function.
17         (quit_force): Call it.
18         (command_line_input): Use gdb_add_history instead of
19         add_history.
20         * event-top.c (command_line_handler): Likewise.
21
22 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
23
24         PR gdb/17046
25         * darwin-nat.c: Replace <machine/setjmp.h> #include by
26         <setjmp.h> #include.
27
28 2015-01-11  Doug Evans  <xdje42@gmail.com>
29
30         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
31
32 2015-01-11  Doug Evans  <xdje42@gmail.com>
33
34         PR gdb/15830
35         * NEWS: The "maint demangle" command is renamed as "demangle".
36         * demangle.c: #include cli/cli-utils.h, language.h.
37         (demangle_command): New function.
38         (_initialize_demangle): Add new command "demangle".
39         * maint.c (maintenance_demangle): Stub out.
40         (_initialize_maint_cmds): Update help text for "maint demangle",
41         and mark as deprecated.
42
43 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
44
45         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
46         inferior_thread is a function.
47
48 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
49
50         * Makefile.in (.y.c): Don't munge yacc's #line
51         directives.
52
53 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
54
55         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
56         to prompt for input.
57         * tui/tui-hooks.c (tui_query_hook): Remove.
58         (tui_install_hooks): Don't set deprecated_query_hook.
59         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
60         height calculation.  Always update the command window's cur_line.
61
62 2015-01-09  Pedro Alves  <palves@redhat.com>
63
64         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
65         function.
66         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
67         declaration.
68         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
69         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
70         stop_reason.
71         (check_stopped_by_watchpoint): New function.
72         (save_sigtrap): Reimplement.
73         (linux_nat_stopped_by_watchpoint): Adjust.
74         (linux_nat_lp_status_is_event): Delete.
75         (stop_wait_callback): Only call save_sigtrap after storing the
76         pending status.
77         (status_callback): If the thread had been stopped for a breakpoint
78         that has since been removed, discard the event and resume the LWP.
79         (count_events_callback, select_event_lwp_callback): Use
80         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
81         (cancel_breakpoint): Rename to ...
82         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
83         stopped for a software breakpoint or hardware breakpoint.
84         (select_event_lwp): Only give preference to the stepping LWP in
85         all-stop mode.  Adjust comments.
86         (stop_and_resume_callback): Remove references to new_pending_p.
87         (linux_nat_filter_event): Likewise.  Leave exit events of the
88         leader thread pending here.  Handle signal short circuiting here.
89         Only call save_sigtrap after storing the pending waitstatus.
90         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
91         new_pending.  Don't handle leaving events the caller is not
92         interested in pending here, nor handle signal short-circuiting
93         here.  Also give equal priority to all LWPs that have had events
94         in non-stop mode.  If reporting a software breakpoint event,
95         unadjust the LWP's PC.
96         * linux-nat.h (enum lwp_stop_reason): New.
97         (struct lwp_info) <stop_pc>: New field.
98         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
99         (struct lwp_info) <stop_reason>: New field.
100         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
101
102 2015-01-09  Pedro Alves  <palves@redhat.com>
103
104         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
105         Set the LWP's 'resumed' flag.
106
107 2015-01-09  Pedro Alves  <palves@redhat.com>
108
109         * linux-nat.c (linux_resume_one_lwp): New function.
110         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
111         (linux_nat_resume): Use lwp_status_pending_p and
112         linux_resume_one_lwp.
113         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
114         (linux_handle_extended_wait): Use linux_resume_one_lwp.
115         (status_callback, running_callback): Use lwp_status_pending_p.
116         (lwp_status_pending_p): New function.
117         (stop_and_resume_callback): Use lwp_status_pending_p.
118         (linux_nat_filter_event): Use linux_resume_one_lwp.
119         (linux_nat_wait_1): Always use status_callback to look for an LWP
120         with a pending status.  Use linux_resume_one_lwp.
121         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
122         linux_resume_one_lwp.
123
124 2015-01-09  Pedro Alves  <palves@redhat.com>
125
126         * breakpoint.c (bp_location_inserted_here_p): New function,
127         factored out from ...
128         (breakpoint_inserted_here_p): ... here.  Use
129         ALL_BP_LOCATIONS_AT_ADDR.
130         (software_breakpoint_inserted_here_p): Use
131         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
132
133 2014-01-09  Pedro Alves  <palves@redhat.com>
134
135         Skip enabling event reporting if the kernel supports
136         PTRACE_EVENT_CLONE.
137         * linux-thread-db.c: Include "nat/linux-ptrace.h".
138         (thread_db_use_events): New function.
139         (try_thread_db_load_1): Check thread_db_use_events before enabling
140         event reporting.
141         (update_thread_state): New function.
142         (attach_thread): Use it.  Check thread_db_use_events before
143         enabling event reporting.
144         (thread_db_detach): Check thread_db_use_events before disabling
145         event reporting.
146         (find_new_threads_callback): Check thread_db_use_events before
147         enabling event reporting.  Update the thread's state if not using
148         libthread_db events.
149
150 2015-01-09  Pedro Alves  <palves@redhat.com>
151
152         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
153         about to wait for is > 0.
154         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
155         the kernel thread ID is -1.
156
157 2015-01-09  Pedro Alves  <palves@redhat.com>
158
159         * linux-nat.c (attach_proc_task_lwp_callback): New function.
160         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
161         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
162         ptrace option flags.
163         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
164         field.
165         * nat/linux-procfs.c: Include <dirent.h>.
166         (linux_proc_get_int): New parameter "warn".  Handle it.
167         (linux_proc_get_tgid): Adjust.
168         (linux_proc_get_tracerpid): Rename to ...
169         (linux_proc_get_tracerpid_nowarn): ... this.
170         (linux_proc_pid_get_state): New function, factored out from
171         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
172         and handle it.
173         (linux_proc_pid_is_gone): New function.
174         (linux_proc_pid_is_stopped): Adjust.
175         (linux_proc_pid_is_zombie_maybe_warn)
176         (linux_proc_pid_is_zombie_nowarn): New functions.
177         (linux_proc_pid_is_zombie): Use
178         linux_proc_pid_is_zombie_maybe_warn.
179         (linux_proc_attach_tgid_threads): New function.
180         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
181         (linux_proc_get_tracerpid): Rename to ...
182         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
183         (linux_proc_pid_is_gone): New declaration.
184         (linux_proc_pid_is_zombie): Update comment.
185         (linux_proc_pid_is_zombie_nowarn): New declaration.
186         (linux_proc_attach_lwp_func): New typedef.
187         (linux_proc_attach_tgid_threads): New declaration.
188         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
189         use nowarn functions.
190         (linux_ptrace_attach_fail_reason_string): Move here from
191         gdbserver/linux-low.c and rename.
192         (ptrace_supports_feature): If the current ptrace options are not
193         known yet, check them now, instead of asserting.
194         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
195         Declare.
196
197 2015-01-09  Pedro Alves  <palves@redhat.com>
198
199         * linux-thread-db.c (thread_db_find_new_threads_silently)
200         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
201         (find_new_threads_once): Print debug output on gdb_stdlog.
202
203 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
204             Pedro Alves  <palves@redhat.com>
205
206         * compile/compile.c: Include "gdb_wait.h".
207         (do_rmdir): Check return value, and free 'zap'.
208
209 2015-01-08  Pedro Alves  <palves@redhat.com>
210             Yao Qi  <yao@codesourcery.com>
211
212         * dwarf2loc.c (indirect_pieced_value): Don't call
213         gdb_sign_extend.  Call extract_signed_integer instead.
214         * utils.c (gdb_sign_extend): Remove.
215         * utils.h (gdb_sign_extend): Remove declaration.
216
217 2015-01-07  Pierre Muller  <muller@sourceware.org>
218
219         PR symtab/17811
220         * stabsread.c (define_symbol): Set language for C++ special symbols.
221
222 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
223
224         * inflow.c (initial_gdb_ttystate): Tweak comment.
225
226 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
227
228         * inflow.c (set_initial_gdb_ttystate): Add empty line after
229         comment documenting function.
230
231 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
232
233         * terminal.h (set_initial_gdb_ttystate): Declare.
234         * inflow.c (initial_gdb_ttystate): New static variable.
235         (set_initial_gdb_ttystate): New setter.
236         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
237         instead of our current terminal state.
238         * top.c (gdb_init): Call set_initial_gdb_ttystate.
239
240 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
241
242         * guile/scm-type.c (tyscm_array_1): Add comment.
243         * python/py-type.c (typy_array_1): Add comment.
244
245 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
246
247         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
248         error if N2 is equal to N1 - 1.
249
250 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
251
252         * python/py-type.c (typy_array_1): Do not raise negative-length
253         exception if N2 is equal to N1 - 1.
254
255 2015-01-03  Doug Evans  <xdje42@gmail.com>
256
257         * c-exp.y: Whitespace cleanup.
258         (classify_inner_name): Remove extra ;.
259
260 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
261
262         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
263         offset signed.
264
265 2015-01-02  Doug Evans  <dje@google.com>
266
267         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
268
269 2015-01-02  Doug Evans  <dje@google.com>
270
271         * symtab.h (struct symbol): Fix typo in comment.
272
273 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
274
275         Update year range in copyright notice of all files.
276
277 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
278
279         * top.c (print_gdb_version): Update copyright year to 2015.
280
281 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
282
283         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
284
285 For older changes see ChangeLog-2014.
286 \f
287 Local Variables:
288 mode: change-log
289 left-margin: 8
290 fill-column: 74
291 version-control: never
292 coding: utf-8
293 End: