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