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