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