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