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