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