gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
[external/binutils.git] / gdb / ChangeLog
1 2015-01-24  Doug Evans  <xdje42@gmail.com>
2
3         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
4
5 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6
7         Fix 100x slowdown regression on DWZ files.
8         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9         (struct line_header): Add offset and offset_in_dwz.
10         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11         (free_line_header_voidp): New declaration.
12         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13         functions.
14         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
15         (handle_DW_AT_stmt_list): Use line_header_hash.
16         (free_line_header_voidp): New function.
17         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
18         (dwarf_decode_lines): New parameter decode_mapping, use it.
19         (dwarf2_free_objfile): Free line_header_hash.
20
21 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
22
23         PR gdb/17416
24         * valops.c (value_rtti_indirect_type): Catch exception thrown by
25         value_ind.
26
27 2015-01-15  Mark Wielaard  <mjw@redhat.com>
28
29         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
30         DW_AT_noreturn.
31         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
32         calling_convention an 8 bit bit field.
33         (TYPE_NO_RETURN): New macro.
34         * infcmd.c (finish_command): Query if function does not return
35         normally.
36         * stack.c (return_command): Likewise.
37
38 2015-01-23  Pedro Alves  <palves@redhat.com>
39
40         * linux-nat.c (linux_is_async_p): New macro.
41         (linux_nat_is_async_p):
42         (linux_nat_terminal_inferior): Check whether the target can async
43         instead of whether it is already async.
44         (linux_nat_terminal_ours): Don't check whether the target is
45         async.
46         (linux_async_pipe): Use linux_is_async_p.
47
48 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
49
50         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
51         '-ascending'.
52         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
53         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
54         Sort tp_array using tp_array_compar.
55         (_initialize_thread): Extend thread_apply_all_command help.
56
57 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
58
59         * corelow.c (core_open): Call also thread_command.
60         * gdbthread.h (thread_command): New prototype moved from ...
61         * thread.c (thread_command): ... here.
62         (thread_command): Make it global.
63
64 2015-01-22  Pedro Alves  <palves@redhat.com>
65
66         * configure.ac [*mingw32*]: Check $curses_found instead of
67         $prefer_curses.
68         * configure: Regenerate.
69         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
70         HAVE_NCURSES_NCURSES_H checks.
71
72 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
73
74         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
75         fails with the 1st arg NULL, try again with "unknown".  Don't test
76         the "cup" capability: it isn't supported by the Windows port of
77         ncurses, but the Windows console driver is still capable of
78         supporting TUI.
79
80 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
81
82         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
83
84 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
85
86         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
87         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
88         reason that "make TAGS" is broken.
89
90 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
91
92         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
93         and check additional store instructions.
94
95 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
96
97         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
98
99 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
100
101         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
102         ppc_canonicalize_syscall, ppc_linux_syscall_record,
103         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
104         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
105         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
106         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
107         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
108         ppc_process_record_op19, ppc_process_record_op31,
109         ppc_process_record_op59, ppc_process_record_op60,
110         ppc_process_record_op63): Likewise.
111
112 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
113
114         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
115         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
116         strerror.
117
118 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
119
120         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
121         ppc_process_record_op31, ppc_process_record_op59,
122         ppc_process_record_op60, ppc_process_record_op63,
123         ppc_process_record): Fix -Wformat warning.
124         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
125         Remove unused variables.
126
127 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
128
129         * MAINTAINERS (Write After Approval): Add "Chen Gang".
130
131 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
132
133         * configure.ac [*mingw32*]: Only add windows-termcap.o to
134         CONFIG_OBS if not building with a curses library.
135         * configure: Regenerate.
136
137         * windows-termcap.c: Include defs.h.  Make the whole body empty if
138         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
139         HAVE_NCURSES_NCURSES_H is defined.
140
141 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
142
143         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
144         from end of line to start of next line.
145
146 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
147
148         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
149         Scan PLT stub backward for reverse debugging.
150         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
151
152 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
153             Ulrich Weigand  <uweigand@de.ibm.com>
154
155         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
156         gdb_target_obs.
157         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
158         record.
159         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
160         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
161         (ppc_linux_init_abi): Set process_record, process_record_signal.
162         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
163         ppc_linux_record_tdep to gdbarch_tdep.
164         (ppc_process_record): New declaration.
165         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
166         ppc_process_record_op19, ppc_process_record_op31,
167         ppc_process_record_op59, ppc_process_record_op60,
168         ppc_process_record_op63, ppc_process_record): New functions.
169
170 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
171
172         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
173         rs6000_in_function_epilogue_frame_p and add an argument
174         for frame_info.
175         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
176         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
177         New functions.
178         (rs6000_epilogue_frame_unwind): New.
179         (rs6000_gdbarch_init): Append epilogue unwinder.
180
181 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
182
183         * nat/linux-personality.c: Replace "#ifndef
184         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
185         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
186         systems.
187
188 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
189
190         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
191         functions.
192         (_initialize_tui_win) <border-kind, border-mode>:
193         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
194         (tui_set_tab_width_command): Fix the commentary.
195
196         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
197
198         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
199         Doc fix.
200         (tui_set_tab_width_command): Delete and recreate the source and
201         the disassembly windows, to show the effect of the changed tab
202         size immediately.
203
204         * tui/tui-data.h (LINE_PREFIX): Make shorter
205         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
206         "Thread NNNNN.XXXX" thread ID notation on Windows.
207
208 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
209
210         Fix gcc-5 compilation.
211         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
212
213 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
214
215         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
216         (linux-personality.o): New rule.
217         * common/common-defs.h: Include <stdint.h>.
218         * config/aarch64/linux.mh (NATDEPFILES): Include
219         linux-personality.o.
220         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
221         * config/arm/linux.mh (NATDEPFILES): Likewise.
222         * config/i386/linux64.mh (NATDEPFILES): Likewise.
223         * config/i386/linux.mh (NATDEPFILES): Likewise.
224         * config/ia64/linux.mh (NATDEPFILES): Likewise.
225         * config/m32r/linux.mh (NATDEPFILES): Likewise.
226         * config/m68k/linux.mh (NATDEPFILES): Likewise.
227         * config/mips/linux.mh (NATDEPFILES): Likewise.
228         * config/pa/linux.mh (NATDEPFILES): Likewise.
229         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
230         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
231         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
232         * config/s390/linux.mh (NATDEPFILES): Likewise.
233         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
234         * config/sparc/linux.mh (NATDEPFILES): Likewise.
235         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
236         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
237         * defs.h: Remove #include <stdint.h> (moved to
238         common/common-defs.h).
239         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
240         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
241         nat/linux-personality.c).
242         (linux_nat_create_inferior): Remove code to disable address space
243         randomization (moved to nat/linux-personality.c).  Create cleanup
244         to disable address space randomization.
245         * nat/linux-personality.c: New file.
246         * nat/linux-personality.h: Likewise.
247
248 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
249
250         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
251         common/posix-strerror.c.
252         (posix-strerror.o): New rule.
253         (mingw-strerror.o): Likewise.
254         * common/common-utils.h (safe_strerror): Move prototype to here,
255         from utils.h.
256         * common/common.host: New file.
257         * common/mingw-strerror.c: Likewise.
258         * common/posix-strerror.c: Likewise.
259         * configure: Regenerated.
260         * configure.ac: Source common/common.host.  Add variable
261         common_host_obs to gdb_host_obs.
262         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
263         gdb/common/posix-strerror.c when warning about the use of
264         strerror.
265         * mingw-hdep.c (safe_strerror): Remove definition; move it to
266         common/mingw-strerror.c.
267         * posix-hdep.c (safe_strerror): Remove definition; move it to
268         common/posix-hdep.c.
269         * utils.h (safe_strerror): Remove prototype; move to
270         common/common-utils.h.
271
272 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
273
274         GDB 7.8.2 released.
275
276 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
277
278         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
279         ___XA type if the array has already been fixed.
280
281 2015-01-14  Yao Qi  <yao@codesourcery.com>
282
283         * Makefile.in (ppc-linux.o): New rule.
284         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
285         * configure.ac: AC_CHECK_FUNCS(getauxval).
286         * config.in: Re-generated.
287         * configure: Re-generated.
288         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
289         Declare.
290         * nat/ppc-linux.c: New file.
291         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
292         Call ppc64_64bit_inferior_p.
293
294 2015-01-14  Yao Qi  <yao@codesourcery.com>
295
296         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
297         nat/ppc-linux.h.
298         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
299         (PPC_FEATURE_HAS_DFP): Likewise.
300         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
301         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
302         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
303         Include "nat/ppc-linux.h".
304         * nat/ppc-linux.h: New file.
305         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
306
307 2015-01-14  Pedro Alves  <palves@redhat.com>
308
309         PR gdb/17525
310         * breakpoint.c: Include "interps.h".
311         (bpstat_do_actions_1): Also check whether the interpreter is
312         async.
313
314 2015-01-14  Pedro Alves  <palves@redhat.com>
315
316         PR cli/17828
317         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
318         reinstall if the interpreter is sync.
319
320 2015-01-13  Doug Evans  <dje@google.com>
321
322         * objfiles.c (objfile_filename): New function.
323         * objfiles.h (objfile_filename): Declare it.
324         (objfile_name): Add function comment.
325         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
326         bfd file name (which may be realpath'd), and the original name.
327
328 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
329
330         * NEWS: Create a new section for the next release branch.
331         Rename the section of the current branch, now that it has
332         been cut.
333
334 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
335
336         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
337         * version.in: Bump version to 7.9.50.DATE-cvs.
338
339 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
340
341         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
342         Remove trailing new-line in argument of call to warning.
343
344 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
345
346         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
347         new-line in argument of call to "warning".
348
349 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
350
351         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
352         in static block, then try searching for primitive types.
353
354 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
355
356         * top.h (gdb_add_history): Declare.
357         * top.c (command_count): New variable.
358         (gdb_add_history): New function.
359         (gdb_safe_append_history): New static function.
360         (quit_force): Call it.
361         (command_line_input): Use gdb_add_history instead of
362         add_history.
363         * event-top.c (command_line_handler): Likewise.
364
365 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
366
367         PR gdb/17046
368         * darwin-nat.c: Replace <machine/setjmp.h> #include by
369         <setjmp.h> #include.
370
371 2015-01-11  Doug Evans  <xdje42@gmail.com>
372
373         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
374
375 2015-01-11  Doug Evans  <xdje42@gmail.com>
376
377         PR gdb/15830
378         * NEWS: The "maint demangle" command is renamed as "demangle".
379         * demangle.c: #include cli/cli-utils.h, language.h.
380         (demangle_command): New function.
381         (_initialize_demangle): Add new command "demangle".
382         * maint.c (maintenance_demangle): Stub out.
383         (_initialize_maint_cmds): Update help text for "maint demangle",
384         and mark as deprecated.
385
386 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
387
388         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
389         inferior_thread is a function.
390
391 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
392
393         * Makefile.in (.y.c): Don't munge yacc's #line
394         directives.
395
396 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
397
398         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
399         to prompt for input.
400         * tui/tui-hooks.c (tui_query_hook): Remove.
401         (tui_install_hooks): Don't set deprecated_query_hook.
402         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
403         height calculation.  Always update the command window's cur_line.
404
405 2015-01-09  Pedro Alves  <palves@redhat.com>
406
407         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
408         function.
409         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
410         declaration.
411         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
412         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
413         stop_reason.
414         (check_stopped_by_watchpoint): New function.
415         (save_sigtrap): Reimplement.
416         (linux_nat_stopped_by_watchpoint): Adjust.
417         (linux_nat_lp_status_is_event): Delete.
418         (stop_wait_callback): Only call save_sigtrap after storing the
419         pending status.
420         (status_callback): If the thread had been stopped for a breakpoint
421         that has since been removed, discard the event and resume the LWP.
422         (count_events_callback, select_event_lwp_callback): Use
423         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
424         (cancel_breakpoint): Rename to ...
425         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
426         stopped for a software breakpoint or hardware breakpoint.
427         (select_event_lwp): Only give preference to the stepping LWP in
428         all-stop mode.  Adjust comments.
429         (stop_and_resume_callback): Remove references to new_pending_p.
430         (linux_nat_filter_event): Likewise.  Leave exit events of the
431         leader thread pending here.  Handle signal short circuiting here.
432         Only call save_sigtrap after storing the pending waitstatus.
433         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
434         new_pending.  Don't handle leaving events the caller is not
435         interested in pending here, nor handle signal short-circuiting
436         here.  Also give equal priority to all LWPs that have had events
437         in non-stop mode.  If reporting a software breakpoint event,
438         unadjust the LWP's PC.
439         * linux-nat.h (enum lwp_stop_reason): New.
440         (struct lwp_info) <stop_pc>: New field.
441         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
442         (struct lwp_info) <stop_reason>: New field.
443         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
444
445 2015-01-09  Pedro Alves  <palves@redhat.com>
446
447         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
448         Set the LWP's 'resumed' flag.
449
450 2015-01-09  Pedro Alves  <palves@redhat.com>
451
452         * linux-nat.c (linux_resume_one_lwp): New function.
453         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
454         (linux_nat_resume): Use lwp_status_pending_p and
455         linux_resume_one_lwp.
456         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
457         (linux_handle_extended_wait): Use linux_resume_one_lwp.
458         (status_callback, running_callback): Use lwp_status_pending_p.
459         (lwp_status_pending_p): New function.
460         (stop_and_resume_callback): Use lwp_status_pending_p.
461         (linux_nat_filter_event): Use linux_resume_one_lwp.
462         (linux_nat_wait_1): Always use status_callback to look for an LWP
463         with a pending status.  Use linux_resume_one_lwp.
464         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
465         linux_resume_one_lwp.
466
467 2015-01-09  Pedro Alves  <palves@redhat.com>
468
469         * breakpoint.c (bp_location_inserted_here_p): New function,
470         factored out from ...
471         (breakpoint_inserted_here_p): ... here.  Use
472         ALL_BP_LOCATIONS_AT_ADDR.
473         (software_breakpoint_inserted_here_p): Use
474         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
475
476 2014-01-09  Pedro Alves  <palves@redhat.com>
477
478         Skip enabling event reporting if the kernel supports
479         PTRACE_EVENT_CLONE.
480         * linux-thread-db.c: Include "nat/linux-ptrace.h".
481         (thread_db_use_events): New function.
482         (try_thread_db_load_1): Check thread_db_use_events before enabling
483         event reporting.
484         (update_thread_state): New function.
485         (attach_thread): Use it.  Check thread_db_use_events before
486         enabling event reporting.
487         (thread_db_detach): Check thread_db_use_events before disabling
488         event reporting.
489         (find_new_threads_callback): Check thread_db_use_events before
490         enabling event reporting.  Update the thread's state if not using
491         libthread_db events.
492
493 2015-01-09  Pedro Alves  <palves@redhat.com>
494
495         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
496         about to wait for is > 0.
497         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
498         the kernel thread ID is -1.
499
500 2015-01-09  Pedro Alves  <palves@redhat.com>
501
502         * linux-nat.c (attach_proc_task_lwp_callback): New function.
503         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
504         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
505         ptrace option flags.
506         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
507         field.
508         * nat/linux-procfs.c: Include <dirent.h>.
509         (linux_proc_get_int): New parameter "warn".  Handle it.
510         (linux_proc_get_tgid): Adjust.
511         (linux_proc_get_tracerpid): Rename to ...
512         (linux_proc_get_tracerpid_nowarn): ... this.
513         (linux_proc_pid_get_state): New function, factored out from
514         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
515         and handle it.
516         (linux_proc_pid_is_gone): New function.
517         (linux_proc_pid_is_stopped): Adjust.
518         (linux_proc_pid_is_zombie_maybe_warn)
519         (linux_proc_pid_is_zombie_nowarn): New functions.
520         (linux_proc_pid_is_zombie): Use
521         linux_proc_pid_is_zombie_maybe_warn.
522         (linux_proc_attach_tgid_threads): New function.
523         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
524         (linux_proc_get_tracerpid): Rename to ...
525         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
526         (linux_proc_pid_is_gone): New declaration.
527         (linux_proc_pid_is_zombie): Update comment.
528         (linux_proc_pid_is_zombie_nowarn): New declaration.
529         (linux_proc_attach_lwp_func): New typedef.
530         (linux_proc_attach_tgid_threads): New declaration.
531         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
532         use nowarn functions.
533         (linux_ptrace_attach_fail_reason_string): Move here from
534         gdbserver/linux-low.c and rename.
535         (ptrace_supports_feature): If the current ptrace options are not
536         known yet, check them now, instead of asserting.
537         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
538         Declare.
539
540 2015-01-09  Pedro Alves  <palves@redhat.com>
541
542         * linux-thread-db.c (thread_db_find_new_threads_silently)
543         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
544         (find_new_threads_once): Print debug output on gdb_stdlog.
545
546 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
547             Pedro Alves  <palves@redhat.com>
548
549         * compile/compile.c: Include "gdb_wait.h".
550         (do_rmdir): Check return value, and free 'zap'.
551
552 2015-01-08  Pedro Alves  <palves@redhat.com>
553             Yao Qi  <yao@codesourcery.com>
554
555         * dwarf2loc.c (indirect_pieced_value): Don't call
556         gdb_sign_extend.  Call extract_signed_integer instead.
557         * utils.c (gdb_sign_extend): Remove.
558         * utils.h (gdb_sign_extend): Remove declaration.
559
560 2015-01-07  Pierre Muller  <muller@sourceware.org>
561
562         PR symtab/17811
563         * stabsread.c (define_symbol): Set language for C++ special symbols.
564
565 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
566
567         * inflow.c (initial_gdb_ttystate): Tweak comment.
568
569 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
570
571         * inflow.c (set_initial_gdb_ttystate): Add empty line after
572         comment documenting function.
573
574 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
575
576         * terminal.h (set_initial_gdb_ttystate): Declare.
577         * inflow.c (initial_gdb_ttystate): New static variable.
578         (set_initial_gdb_ttystate): New setter.
579         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
580         instead of our current terminal state.
581         * top.c (gdb_init): Call set_initial_gdb_ttystate.
582
583 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
584
585         * guile/scm-type.c (tyscm_array_1): Add comment.
586         * python/py-type.c (typy_array_1): Add comment.
587
588 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
589
590         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
591         error if N2 is equal to N1 - 1.
592
593 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
594
595         * python/py-type.c (typy_array_1): Do not raise negative-length
596         exception if N2 is equal to N1 - 1.
597
598 2015-01-03  Doug Evans  <xdje42@gmail.com>
599
600         * c-exp.y: Whitespace cleanup.
601         (classify_inner_name): Remove extra ;.
602
603 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
604
605         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
606         offset signed.
607
608 2015-01-02  Doug Evans  <dje@google.com>
609
610         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
611
612 2015-01-02  Doug Evans  <dje@google.com>
613
614         * symtab.h (struct symbol): Fix typo in comment.
615
616 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
617
618         Update year range in copyright notice of all files.
619
620 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
621
622         * top.c (print_gdb_version): Update copyright year to 2015.
623
624 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
625
626         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
627
628 For older changes see ChangeLog-2014.
629 \f
630 Local Variables:
631 mode: change-log
632 left-margin: 8
633 fill-column: 74
634 version-control: never
635 coding: utf-8
636 End: