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