1 2015-01-31 Doug Evans <xdje42@gmail.com>
3 Add symbol lookup cache.
4 * NEWS: Document new options and commands.
5 * symtab.c (symbol_cache_key): New static global.
6 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
7 (SYMBOL_LOOKUP_FAILED): New macro.
8 (symbol_cache_slot_state): New enum.
9 (block_symbol_cache): New struct.
10 (symbol_cache): New struct.
11 (new_symbol_cache_size, symbol_cache_size): New static globals.
12 (hash_symbol_entry, eq_symbol_entry): New functions.
13 (symbol_cache_byte_size, resize_symbol_cache): New functions.
14 (make_symbol_cache, free_symbol_cache): New functions.
15 (get_symbol_cache, symbol_cache_cleanup): New function.
16 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
17 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
18 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
19 (symbol_cache_flush, symbol_cache_dump): New functions.
20 (maintenance_print_symbol_cache): New function.
21 (maintenance_flush_symbol_cache): New function.
22 (symbol_cache_stats): New function.
23 (maintenance_print_symbol_cache_statistics): New function.
24 (symtab_new_objfile_observer): New function.
25 (symtab_free_objfile_observer): New function.
26 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
27 (_initialize_symtab): Init symbol_cache_key. New parameter
28 maint symbol-cache-size. New maint commands print symbol-cache,
29 print symbol-cache-statistics, flush-symbol-cache.
30 Install new_objfile, free_objfile observers.
32 2015-01-31 Joel Brobecker <brobecker@adacore.com>
35 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
38 2015-01-31 Doug Evans <xdje42@gmail.com>
40 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
41 * auto-load.c: #include ctype.h.
42 (struct auto_load_pspace_info): Replace member loaded_scripts with
43 new members loaded_script_files, loaded_script_texts.
44 (auto_load_pspace_data_cleanup): Update.
45 (init_loaded_scripts_info): Update.
46 (get_auto_load_pspace_data_for_loading): Update.
47 (maybe_add_script_file): Renamed from maybe_add_script. All callers
49 (maybe_add_script_text): New function.
50 (clear_section_scripts): Update.
51 (source_script_file, execute_script_contents): New functions.
52 (source_section_scripts): Add support for
53 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
54 (print_scripts): New function.
55 (auto_load_info_scripts): Also print inlined scripts.
56 (maybe_print_unsupported_script_warning): Renamed from
57 unsupported_script_warning_print. All callers updated.
58 (maybe_print_script_not_found_warning): Renamed from
59 script_not_found_warning_print. All callers updated.
60 * extension-priv.h (struct extension_language_script_ops): New member
61 objfile_script_executor.
62 * extension.c (ext_lang_objfile_script_executor): New function.
63 * extension.h (objfile_script_executor_func): New typedef.
64 (ext_lang_objfile_script_executor): Declare.
65 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
66 * guile/guile.c (guile_extension_script_ops): Update.
67 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
68 * python/python.c (python_extension_script_ops): Update.
69 (gdbpy_execute_objfile_script): New function.
71 2015-01-31 Eli Zaretskii <eliz@gnu.org>
73 * tui/tui-io.c (tui_expand_tabs): New function.
74 (tui_puts, tui_redisplay_readline): Expand TABs into the
75 appropriate number of spaces.
76 * tui/tui-regs.c: Include tui-io.h.
77 (tui_register_format): Call tui_expand_tabs to expand TABs into
78 the appropriate number of spaces.
79 * tui/tui-io.h: Add prototype for tui_expand_tabs.
81 2015-01-30 Doug Evans <dje@google.com>
83 * NEWS: "info source" command now display producer string if present.
84 * source.c (source_info): Print producer string if present.
86 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
88 * varobj.c (varobj_delete): Fix comment.
90 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
92 * varobj.c (create_child): Modify comment.
94 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
96 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
98 (ada_name_of_variable): Same.
99 (ada_path_expr_of_child): Same.
100 (ada_value_of_variable): Same.
101 (ada_value_is_changeable_p): Same.
102 (ada_value_has_mutated): Same.
103 * c-varobj.c (varobj_is_anonymous_child): Same.
104 (c_is_path_expr_parent): Same.
105 (c_number_of_children): Same.
106 (c_name_of_variable): Same.
107 (c_path_expr_of_child): Same.
109 (c_value_of_variable): Same.
110 (cplus_number_of_children): Same.
111 (cplus_name_of_variable): Same.
112 (cplus_path_expr_of_child): Same.
113 (cplus_value_of_variable): Same.
114 * jv-varobj.c (java_number_of_children): Same.
115 (java_name_of_variable): Same.
116 (java_path_expr_of_child): Same.
117 (java_value_of_variable): Same.
118 * varobj.c (number_of_children): Same.
119 (name_of_variable): Same.
121 (varobj_ensure_python_env): Same.
122 (varobj_get_objname): Same.
123 (varobj_get_expression): Same.
124 (varobj_get_display_format): Same.
125 (varobj_get_display_hint): Same.
126 (varobj_has_more): Same.
127 (varobj_get_thread_id): Same.
128 (varobj_get_frozen): Same.
129 (dynamic_varobj_has_child_method): Same.
130 (varobj_get_gdb_type): Same.
131 (is_path_expr_parent): Same.
132 (varobj_default_is_path_expr_parent): Same.
133 (varobj_get_language): Same.
134 (varobj_get_attributes): Same.
135 (varobj_is_dynamic_p): Same.
136 (varobj_get_child_range): Same.
137 (varobj_value_has_mutated): Same.
138 (varobj_get_value_type): Same.
139 (number_of_children): Same.
140 (name_of_variable): Same.
142 (varobj_editable_p): Same.
143 (varobj_value_is_changeable_p): Same.
144 (varobj_floating_p): Same.
145 (varobj_default_value_is_changeable_p): Same.
147 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
149 * varobj.c (varobj_get_path_expr): Set var->path_expr.
150 * c-varobj.c (c_path_expr_of_child): Set local var instead of
152 (cplus_path_expr_of_child): Same.
154 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
156 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
158 (mi_cmd_var_info_expression): Same.
159 * varobj.c (varobj_get_expression): Mention in the comment that
160 the result must by freed by the caller.
162 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
164 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
166 (varobj_update_one): Same.
167 * varobj.c (update_type_if_necessary): Free curr_type_str and
169 (varobj_get_type): Specify in comment that the result needs to be
172 2015-01-29 Doug Evans <dje@google.com>
175 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
177 2015-01-25 Mark Wielaard <mjw@redhat.com>
179 * dwarf2read.c (checkproducer): Call producer_is_gcc.
180 * utils.c (producer_is_gcc_ge_4): Likewise.
181 (producer_is_gcc): New function.
182 * utils.h (producer_is_gcc): New declaration.
184 2015-01-29 Joel Brobecker <brobecker@adacore.com>
186 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
188 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
189 parameter by "addr_stack" parameter.
190 (resolve_dynamic_range): Replace "addr" parameter by
191 "stack_addr" parameter. Update function documentation.
192 Update code accordingly.
193 (resolve_dynamic_array, resolve_dynamic_union)
194 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
195 (resolve_dynamic_type): Update code, following the changes made
196 to resolve_dynamic_type_internal's interface.
197 * dwarf2loc.h (struct property_addr_info): New.
198 (dwarf2_evaluate_property): Replace "address" parameter
199 by "addr_stack" parameter. Adjust function documentation.
200 (struct dwarf2_offset_baton): New.
201 (struct dwarf2_property_baton): Update documentation of
202 field "referenced_type" to be more general. New field
203 "offset_info" in union data field.
204 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
205 parameter by "addr_stack" parameter. Adjust code accordingly.
206 Add support for PROP_ADDR_OFFSET properties.
207 * dwarf2read.c (attr_to_dynamic_prop): Add support for
208 DW_AT_data_member_location attributes as well. Use case
209 statements instead of if/else condition.
211 2015-01-29 Joel Brobecker <brobecker@adacore.com>
213 * ada-varobj.c (ada_varobj_get_array_number_of_children):
214 Return zero if PARENT_VALUE is NULL and parent_type's
215 range type is dynamic.
217 2015-01-29 Joel Brobecker <brobecker@adacore.com>
219 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
220 nonzero if the type's subtype is dynamic.
221 (resolve_dynamic_range): Also resolve the range's subtype.
223 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
225 Pushed by Joel Brobecker <brobecker@adacore.com>.
226 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
228 2015-01-27 Doug Evans <dje@google.com>
230 * NEWS: Mention gdb.Objfile.username.
231 * python/py-objfile.c (objfpy_get_username): New function.
232 (objfile_getset): Add "username".
234 2015-01-24 Mark Wielaard <mjw@redhat.com>
236 * stack.c (return_command): Markup warning message with _.
238 2015-01-24 Doug Evans <xdje42@gmail.com>
240 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
242 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
244 Fix 100x slowdown regression on DWZ files.
245 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
246 (struct line_header): Add offset and offset_in_dwz.
247 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
248 (free_line_header_voidp): New declaration.
249 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
251 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
252 (handle_DW_AT_stmt_list): Use line_header_hash.
253 (free_line_header_voidp): New function.
254 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
255 (dwarf_decode_lines): New parameter decode_mapping, use it.
256 (dwarf2_free_objfile): Free line_header_hash.
258 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
261 * valops.c (value_rtti_indirect_type): Catch exception thrown by
264 2015-01-15 Mark Wielaard <mjw@redhat.com>
266 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
268 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
269 calling_convention an 8 bit bit field.
270 (TYPE_NO_RETURN): New macro.
271 * infcmd.c (finish_command): Query if function does not return
273 * stack.c (return_command): Likewise.
275 2015-01-23 Pedro Alves <palves@redhat.com>
277 * linux-nat.c (linux_is_async_p): New macro.
278 (linux_nat_is_async_p):
279 (linux_nat_terminal_inferior): Check whether the target can async
280 instead of whether it is already async.
281 (linux_nat_terminal_ours): Don't check whether the target is
283 (linux_async_pipe): Use linux_is_async_p.
285 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
287 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
289 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
290 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
291 Sort tp_array using tp_array_compar.
292 (_initialize_thread): Extend thread_apply_all_command help.
294 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
296 * corelow.c (core_open): Call also thread_command.
297 * gdbthread.h (thread_command): New prototype moved from ...
298 * thread.c (thread_command): ... here.
299 (thread_command): Make it global.
301 2015-01-22 Pedro Alves <palves@redhat.com>
303 * configure.ac [*mingw32*]: Check $curses_found instead of
305 * configure: Regenerate.
306 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
307 HAVE_NCURSES_NCURSES_H checks.
309 2015-01-22 Eli Zaretskii <eliz@gnu.org>
311 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
312 fails with the 1st arg NULL, try again with "unknown". Don't test
313 the "cup" capability: it isn't supported by the Windows port of
314 ncurses, but the Windows console driver is still capable of
317 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
319 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
321 2015-01-22 Eli Zaretskii <eliz@gnu.org>
323 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
324 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
325 reason that "make TAGS" is broken.
327 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
329 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
330 and check additional store instructions.
332 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
334 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
336 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
338 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
339 ppc_canonicalize_syscall, ppc_linux_syscall_record,
340 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
341 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
342 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
343 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
344 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
345 ppc_process_record_op19, ppc_process_record_op31,
346 ppc_process_record_op59, ppc_process_record_op60,
347 ppc_process_record_op63): Likewise.
349 2015-01-20 Joel Brobecker <brobecker@adacore.com>
351 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
352 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
355 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
357 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
358 ppc_process_record_op31, ppc_process_record_op59,
359 ppc_process_record_op60, ppc_process_record_op63,
360 ppc_process_record): Fix -Wformat warning.
361 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
362 Remove unused variables.
364 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
366 * MAINTAINERS (Write After Approval): Add "Chen Gang".
368 2015-01-19 Eli Zaretskii <eliz@gnu.org>
370 * configure.ac [*mingw32*]: Only add windows-termcap.o to
371 CONFIG_OBS if not building with a curses library.
372 * configure: Regenerate.
374 * windows-termcap.c: Include defs.h. Make the whole body empty if
375 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
376 HAVE_NCURSES_NCURSES_H is defined.
378 2015-01-19 Joel Brobecker <brobecker@adacore.com>
380 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
381 from end of line to start of next line.
383 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
385 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
386 Scan PLT stub backward for reverse debugging.
387 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
389 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
390 Ulrich Weigand <uweigand@de.ibm.com>
392 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
394 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
396 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
397 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
398 (ppc_linux_init_abi): Set process_record, process_record_signal.
399 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
400 ppc_linux_record_tdep to gdbarch_tdep.
401 (ppc_process_record): New declaration.
402 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
403 ppc_process_record_op19, ppc_process_record_op31,
404 ppc_process_record_op59, ppc_process_record_op60,
405 ppc_process_record_op63, ppc_process_record): New functions.
407 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
409 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
410 rs6000_in_function_epilogue_frame_p and add an argument
412 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
413 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
415 (rs6000_epilogue_frame_unwind): New.
416 (rs6000_gdbarch_init): Append epilogue unwinder.
418 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
420 * nat/linux-personality.c: Replace "#ifndef
421 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
422 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
425 2015-01-16 Eli Zaretskii <eliz@gnu.org>
427 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
429 (_initialize_tui_win) <border-kind, border-mode>:
430 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
431 (tui_set_tab_width_command): Fix the commentary.
433 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
435 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
437 (tui_set_tab_width_command): Delete and recreate the source and
438 the disassembly windows, to show the effect of the changed tab
441 * tui/tui-data.h (LINE_PREFIX): Make shorter
442 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
443 "Thread NNNNN.XXXX" thread ID notation on Windows.
445 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
447 Fix gcc-5 compilation.
448 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
450 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
452 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
453 (linux-personality.o): New rule.
454 * common/common-defs.h: Include <stdint.h>.
455 * config/aarch64/linux.mh (NATDEPFILES): Include
457 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
458 * config/arm/linux.mh (NATDEPFILES): Likewise.
459 * config/i386/linux64.mh (NATDEPFILES): Likewise.
460 * config/i386/linux.mh (NATDEPFILES): Likewise.
461 * config/ia64/linux.mh (NATDEPFILES): Likewise.
462 * config/m32r/linux.mh (NATDEPFILES): Likewise.
463 * config/m68k/linux.mh (NATDEPFILES): Likewise.
464 * config/mips/linux.mh (NATDEPFILES): Likewise.
465 * config/pa/linux.mh (NATDEPFILES): Likewise.
466 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
467 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
468 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
469 * config/s390/linux.mh (NATDEPFILES): Likewise.
470 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
471 * config/sparc/linux.mh (NATDEPFILES): Likewise.
472 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
473 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
474 * defs.h: Remove #include <stdint.h> (moved to
475 common/common-defs.h).
476 * linux-nat.c: Include nat/linux-personality.h. Remove #include
477 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
478 nat/linux-personality.c).
479 (linux_nat_create_inferior): Remove code to disable address space
480 randomization (moved to nat/linux-personality.c). Create cleanup
481 to disable address space randomization.
482 * nat/linux-personality.c: New file.
483 * nat/linux-personality.h: Likewise.
485 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
487 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
488 common/posix-strerror.c.
489 (posix-strerror.o): New rule.
490 (mingw-strerror.o): Likewise.
491 * common/common-utils.h (safe_strerror): Move prototype to here,
493 * common/common.host: New file.
494 * common/mingw-strerror.c: Likewise.
495 * common/posix-strerror.c: Likewise.
496 * configure: Regenerated.
497 * configure.ac: Source common/common.host. Add variable
498 common_host_obs to gdb_host_obs.
499 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
500 gdb/common/posix-strerror.c when warning about the use of
502 * mingw-hdep.c (safe_strerror): Remove definition; move it to
503 common/mingw-strerror.c.
504 * posix-hdep.c (safe_strerror): Remove definition; move it to
506 * utils.h (safe_strerror): Remove prototype; move to
507 common/common-utils.h.
509 2015-01-15 Joel Brobecker <brobecker@adacore.com>
513 2015-01-15 Joel Brobecker <brobecker@adacore.com>
515 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
516 ___XA type if the array has already been fixed.
518 2015-01-14 Yao Qi <yao@codesourcery.com>
520 * Makefile.in (ppc-linux.o): New rule.
521 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
522 * configure.ac: AC_CHECK_FUNCS(getauxval).
523 * config.in: Re-generated.
524 * configure: Re-generated.
525 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
527 * nat/ppc-linux.c: New file.
528 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
529 Call ppc64_64bit_inferior_p.
531 2015-01-14 Yao Qi <yao@codesourcery.com>
533 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
535 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
536 (PPC_FEATURE_HAS_DFP): Likewise.
537 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
538 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
539 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
540 Include "nat/ppc-linux.h".
541 * nat/ppc-linux.h: New file.
542 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
544 2015-01-14 Pedro Alves <palves@redhat.com>
547 * breakpoint.c: Include "interps.h".
548 (bpstat_do_actions_1): Also check whether the interpreter is
551 2015-01-14 Pedro Alves <palves@redhat.com>
554 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
555 reinstall if the interpreter is sync.
557 2015-01-13 Doug Evans <dje@google.com>
559 * objfiles.c (objfile_filename): New function.
560 * objfiles.h (objfile_filename): Declare it.
561 (objfile_name): Add function comment.
562 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
563 bfd file name (which may be realpath'd), and the original name.
565 2015-01-13 Joel Brobecker <brobecker@adacore.com>
567 * NEWS: Create a new section for the next release branch.
568 Rename the section of the current branch, now that it has
571 2015-01-13 Joel Brobecker <brobecker@adacore.com>
573 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
574 * version.in: Bump version to 7.9.50.DATE-cvs.
576 2015-01-13 Joel Brobecker <brobecker@adacore.com>
578 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
579 Remove trailing new-line in argument of call to warning.
581 2015-01-13 Joel Brobecker <brobecker@adacore.com>
583 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
584 new-line in argument of call to "warning".
586 2015-01-13 Joel Brobecker <brobecker@adacore.com>
588 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
589 in static block, then try searching for primitive types.
591 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
593 * top.h (gdb_add_history): Declare.
594 * top.c (command_count): New variable.
595 (gdb_add_history): New function.
596 (gdb_safe_append_history): New static function.
597 (quit_force): Call it.
598 (command_line_input): Use gdb_add_history instead of
600 * event-top.c (command_line_handler): Likewise.
602 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
605 * darwin-nat.c: Replace <machine/setjmp.h> #include by
608 2015-01-11 Doug Evans <xdje42@gmail.com>
610 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
612 2015-01-11 Doug Evans <xdje42@gmail.com>
615 * NEWS: The "maint demangle" command is renamed as "demangle".
616 * demangle.c: #include cli/cli-utils.h, language.h.
617 (demangle_command): New function.
618 (_initialize_demangle): Add new command "demangle".
619 * maint.c (maintenance_demangle): Stub out.
620 (_initialize_maint_cmds): Update help text for "maint demangle",
621 and mark as deprecated.
623 2015-01-11 Mark Kettenis <kettenis@gnu.org>
625 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
626 inferior_thread is a function.
628 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
630 * Makefile.in (.y.c): Don't munge yacc's #line
633 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
635 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
637 * tui/tui-hooks.c (tui_query_hook): Remove.
638 (tui_install_hooks): Don't set deprecated_query_hook.
639 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
640 height calculation. Always update the command window's cur_line.
642 2015-01-09 Pedro Alves <palves@redhat.com>
644 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
646 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
648 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
649 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
651 (check_stopped_by_watchpoint): New function.
652 (save_sigtrap): Reimplement.
653 (linux_nat_stopped_by_watchpoint): Adjust.
654 (linux_nat_lp_status_is_event): Delete.
655 (stop_wait_callback): Only call save_sigtrap after storing the
657 (status_callback): If the thread had been stopped for a breakpoint
658 that has since been removed, discard the event and resume the LWP.
659 (count_events_callback, select_event_lwp_callback): Use
660 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
661 (cancel_breakpoint): Rename to ...
662 (check_stopped_by_breakpoint): ... this. Record whether the LWP
663 stopped for a software breakpoint or hardware breakpoint.
664 (select_event_lwp): Only give preference to the stepping LWP in
665 all-stop mode. Adjust comments.
666 (stop_and_resume_callback): Remove references to new_pending_p.
667 (linux_nat_filter_event): Likewise. Leave exit events of the
668 leader thread pending here. Handle signal short circuiting here.
669 Only call save_sigtrap after storing the pending waitstatus.
670 (linux_nat_wait_1): Remove 'retry' label. Remove references to
671 new_pending. Don't handle leaving events the caller is not
672 interested in pending here, nor handle signal short-circuiting
673 here. Also give equal priority to all LWPs that have had events
674 in non-stop mode. If reporting a software breakpoint event,
675 unadjust the LWP's PC.
676 * linux-nat.h (enum lwp_stop_reason): New.
677 (struct lwp_info) <stop_pc>: New field.
678 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
679 (struct lwp_info) <stop_reason>: New field.
680 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
682 2015-01-09 Pedro Alves <palves@redhat.com>
684 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
685 Set the LWP's 'resumed' flag.
687 2015-01-09 Pedro Alves <palves@redhat.com>
689 * linux-nat.c (linux_resume_one_lwp): New function.
690 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
691 (linux_nat_resume): Use lwp_status_pending_p and
692 linux_resume_one_lwp.
693 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
694 (linux_handle_extended_wait): Use linux_resume_one_lwp.
695 (status_callback, running_callback): Use lwp_status_pending_p.
696 (lwp_status_pending_p): New function.
697 (stop_and_resume_callback): Use lwp_status_pending_p.
698 (linux_nat_filter_event): Use linux_resume_one_lwp.
699 (linux_nat_wait_1): Always use status_callback to look for an LWP
700 with a pending status. Use linux_resume_one_lwp.
701 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
702 linux_resume_one_lwp.
704 2015-01-09 Pedro Alves <palves@redhat.com>
706 * breakpoint.c (bp_location_inserted_here_p): New function,
707 factored out from ...
708 (breakpoint_inserted_here_p): ... here. Use
709 ALL_BP_LOCATIONS_AT_ADDR.
710 (software_breakpoint_inserted_here_p): Use
711 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
713 2014-01-09 Pedro Alves <palves@redhat.com>
715 Skip enabling event reporting if the kernel supports
717 * linux-thread-db.c: Include "nat/linux-ptrace.h".
718 (thread_db_use_events): New function.
719 (try_thread_db_load_1): Check thread_db_use_events before enabling
721 (update_thread_state): New function.
722 (attach_thread): Use it. Check thread_db_use_events before
723 enabling event reporting.
724 (thread_db_detach): Check thread_db_use_events before disabling
726 (find_new_threads_callback): Check thread_db_use_events before
727 enabling event reporting. Update the thread's state if not using
730 2015-01-09 Pedro Alves <palves@redhat.com>
732 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
733 about to wait for is > 0.
734 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
735 the kernel thread ID is -1.
737 2015-01-09 Pedro Alves <palves@redhat.com>
739 * linux-nat.c (attach_proc_task_lwp_callback): New function.
740 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
741 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
743 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
745 * nat/linux-procfs.c: Include <dirent.h>.
746 (linux_proc_get_int): New parameter "warn". Handle it.
747 (linux_proc_get_tgid): Adjust.
748 (linux_proc_get_tracerpid): Rename to ...
749 (linux_proc_get_tracerpid_nowarn): ... this.
750 (linux_proc_pid_get_state): New function, factored out from
751 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
753 (linux_proc_pid_is_gone): New function.
754 (linux_proc_pid_is_stopped): Adjust.
755 (linux_proc_pid_is_zombie_maybe_warn)
756 (linux_proc_pid_is_zombie_nowarn): New functions.
757 (linux_proc_pid_is_zombie): Use
758 linux_proc_pid_is_zombie_maybe_warn.
759 (linux_proc_attach_tgid_threads): New function.
760 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
761 (linux_proc_get_tracerpid): Rename to ...
762 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
763 (linux_proc_pid_is_gone): New declaration.
764 (linux_proc_pid_is_zombie): Update comment.
765 (linux_proc_pid_is_zombie_nowarn): New declaration.
766 (linux_proc_attach_lwp_func): New typedef.
767 (linux_proc_attach_tgid_threads): New declaration.
768 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
769 use nowarn functions.
770 (linux_ptrace_attach_fail_reason_string): Move here from
771 gdbserver/linux-low.c and rename.
772 (ptrace_supports_feature): If the current ptrace options are not
773 known yet, check them now, instead of asserting.
774 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
777 2015-01-09 Pedro Alves <palves@redhat.com>
779 * linux-thread-db.c (thread_db_find_new_threads_silently)
780 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
781 (find_new_threads_once): Print debug output on gdb_stdlog.
783 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
784 Pedro Alves <palves@redhat.com>
786 * compile/compile.c: Include "gdb_wait.h".
787 (do_rmdir): Check return value, and free 'zap'.
789 2015-01-08 Pedro Alves <palves@redhat.com>
790 Yao Qi <yao@codesourcery.com>
792 * dwarf2loc.c (indirect_pieced_value): Don't call
793 gdb_sign_extend. Call extract_signed_integer instead.
794 * utils.c (gdb_sign_extend): Remove.
795 * utils.h (gdb_sign_extend): Remove declaration.
797 2015-01-07 Pierre Muller <muller@sourceware.org>
800 * stabsread.c (define_symbol): Set language for C++ special symbols.
802 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
804 * inflow.c (initial_gdb_ttystate): Tweak comment.
806 2015-01-07 Joel Brobecker <brobecker@adacore.com>
808 * inflow.c (set_initial_gdb_ttystate): Add empty line after
809 comment documenting function.
811 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
813 * terminal.h (set_initial_gdb_ttystate): Declare.
814 * inflow.c (initial_gdb_ttystate): New static variable.
815 (set_initial_gdb_ttystate): New setter.
816 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
817 instead of our current terminal state.
818 * top.c (gdb_init): Call set_initial_gdb_ttystate.
820 2015-01-07 Joel Brobecker <brobecker@adacore.com>
822 * guile/scm-type.c (tyscm_array_1): Add comment.
823 * python/py-type.c (typy_array_1): Add comment.
825 2015-01-06 Joel Brobecker <brobecker@adacore.com>
827 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
828 error if N2 is equal to N1 - 1.
830 2015-01-06 Joel Brobecker <brobecker@adacore.com>
832 * python/py-type.c (typy_array_1): Do not raise negative-length
833 exception if N2 is equal to N1 - 1.
835 2015-01-03 Doug Evans <xdje42@gmail.com>
837 * c-exp.y: Whitespace cleanup.
838 (classify_inner_name): Remove extra ;.
840 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
842 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
845 2015-01-02 Doug Evans <dje@google.com>
847 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
849 2015-01-02 Doug Evans <dje@google.com>
851 * symtab.h (struct symbol): Fix typo in comment.
853 2015-01-01 Joel Brobecker <brobecker@adacore.com>
855 Update year range in copyright notice of all files.
857 2015-01-01 Joel Brobecker <brobecker@adacore.com>
859 * top.c (print_gdb_version): Update copyright year to 2015.
861 2015-01-01 Joel Brobecker <brobecker@adacore.com>
863 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
865 For older changes see ChangeLog-2014.
871 version-control: never