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