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