3 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
8 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
9 File already uses "gdb_dirent.h" header.
13 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
18 * target.h (inferior_has_forked, inferior_has_vforked)
19 (inferior_has_execd, inferior_has_called_syscall): Remove
24 * remote.c (remote_insert_hw_breakpoint): ARI fix,
25 add missing internalization markup.
31 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
35 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
40 * gnulib/update-gnulib.sh: New script.
44 * MAINTAINERS: Update my email address.
48 * frame.c (put_frame_register): Don't use temporary buffer.
52 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
53 child. Clear 'pending_detach'.
54 * infrun.c (handle_vfork_child_exec_or_exit): Clear
55 'pending_detach' in the vfork parent.
59 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
60 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
61 * dwarf2read.c: #include "elf-bfd.h".
62 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
63 (dwop_section_names): Renamed from dwo_section names. All uses
64 updated. Add entries for .debug_cu_index, .debug_tu_index.
65 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
67 (struct dwp_sections): New type.
68 (struct virtual_dwo_sections): New type.
69 (struct dwp_hash_table): New type.
70 (struct dwp_file): New type.
71 (init_cutu_and_read_dies): Ensure DWO info/types section has been
72 read in. Handle DWOs coming from DWP files.
73 (lookup_dwo_file_slot): New function.
74 (dwarf2_locate_dwo_sections): Move definition closer to use.
75 (create_dwo_debug_info_hash_table_reader): Renamed from
76 create_debug_info_hash_table_reader. All callers updated.
77 (create_dwo_debug_info_hash_table): Renamed from
78 create_debug_info_hash_table. All callers updated.
79 (create_dwp_hash_table): New function.
80 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
81 (lookup_dwo_in_dwp): New function.
82 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
83 is_dwp. All callers updated.
84 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
85 (open_and_init_dwo_file): Renamed from init_dwo_file.
87 (lookup_dwo_file): Delete.
88 (dwarf2_locate_dwp_sections): New function.
89 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
90 (allocate_dwp_loaded_cutus_table): New function.
91 (open_and_init_dwp_file): New function.
92 (lookup_dwo_cutu): New function.
93 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
98 * breakpoint.c (trace_pass_set_count): Call
99 observer_notify_breakpoint_modified instead of
100 observer_notify_tracepoint_modified.
101 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
105 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
106 argument to complete_on_enum.
110 * configure: Rebuild.
111 * configure.ac (build_warnings): Add -Wempty-body.
112 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
113 * remote.c (handle_notification): Use braces for empty 'else' body.
114 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
116 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
118 * solib-som.c (som_relocate_section_addresses): Use braces
119 for empty 'else' body.
120 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
121 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
127 * infrun.c (handle_inferior_event)
128 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
129 null_ptid before handling a vfork child exec or exit. Switch to
130 the event ptid afterwards.
134 * std-operator.def: Remove OP_LABELED.
135 * eval.c: Remove the declaration of 'get_label'.
137 (evaluate_struct_tuple): Remove code handling OP_LABELED.
139 Remove local variable 'variantno' and related code.
140 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
142 * expprint.c (print_subexp_standard): Likewise.
143 (dump_subexp_body_standard): Likewise.
144 * parse.c (operator_length_standard): Likewise.
148 Incorporate ARI web page generator into GDB sources.
149 * contrib/ari/create-web-ari-in-src.sh: New file.
150 * contrib/ari/gdb_ari.sh: New file.
151 * contrib/ari/gdb_find.sh: New file.
152 * contrib/ari/update-web-ari.sh: New file.
156 * gdbarch.c: Rebuild.
157 * gdbarch.sh: Remove references to gdbarch_swap.
158 * corelow.c (core_open): Remove obsolete comment.
163 * c-typeprint.c (c_print_type): Don't print a space for vector
164 types, this is handled within the suffix.
165 (c_type_print_varspec_suffix): Add a space to vector suffix.
169 * amd64-tdep.c (amd64_relocate_instruction): Use
170 store_unsigned_integer instead of memcpy.
171 * i386-tdep.c (i386_relocate_instruction): Ditto.
175 * infrun.c (handle_inferior_event): Merge handling of
176 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
181 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
186 * target.c (target_waitstatus_to_string): Handle
187 TARGET_WAITKIND_VFORK_DONE.
191 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
192 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
196 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
201 * ravenscar-thread.c (ravenscar_wait): Only update the list
202 of threads and inferior_ptid if the inferior is still alive.
206 * ada-lang.c (is_known_support_routine): Use lbasename when
207 matching the symtab's filename against
208 known_runtime_file_name_patterns.
212 * ada-lang.c (ada_same_array_size_p): New function.
213 (ada_promote_array_of_integrals): New function.
214 (coerce_for_assign): Add handling of arrays where the elements
215 are integrals of a smaller size than the size of the target
220 * doublest.c (convert_doublest_to_floatformat): Fix comparison
221 against maximum exponent value.
225 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
230 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
231 strip typedef layer when computing the fixed type's field type,
232 only when computing its size.
237 * i386-tdep.c (i386_return_value): Handle complex double and long
242 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
243 New local variable args_len.
244 Quote the name of the executable when computing the command line.
251 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
253 * amd64-tdep.c (amd64_classify): Classify complex types.
254 (amd64_return_value): Handle the COMPLEX_X87 class.
258 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
259 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
263 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
265 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
266 to amd64_windows_auto_wide_charset.
270 * event-top.c (mark_async_signal_handler_wrapper): Remove.
271 * event-top.h: Remove its declaration.
272 (async_request_quit): Call mark_async_signal_handler instead of
273 mark_async_signal_handler_wrapper.
274 (async_do_nothing, async_disconnect): Likewise.
275 (async_stop_sig): Likewise.
276 * remote.c (handle_remote_sigint): Likewise.
277 (handle_remote_sigint_twice): Likewise.
281 * event-top.c (sigint_token, sighup_token): Replace 'void *'
282 with 'static struct async_signal_handler *'.
283 (sighup_token, sigquit_token, sigstp_token): Likewise.
287 * gdbarch.sh (function_list): Use 'pstring' when printing
288 a variable which could return NULL.
289 * gdbarch.c: Regenerate.
294 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
295 inneffective if condition by gdb assertion. Add function
300 * parser-defs.h (struct exp_descriptor): Document constraint
301 on return value for "op_name" callbacks.
305 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
306 * symtab.c (iterate_over_some_symtabs): Constify.
307 * source.h (symtab_to_fullname): Return 'const char *'.
308 * source.c (symtab_to_fullname): Return 'const char *'.
309 * python/py-symtab.c (stpy_fullname): Constify.
310 * cli/cli-cmds.c (edit_command): Constify.
311 * breakpoint.c (print_breakpoint_location)
312 (update_static_tracepoint): Constify.
316 * breakpoint.c (compare_breakpoints): Fix comparison.
320 * valprint.c (generic_emit_char, generic_printstr): Pass size of
321 gdb_wchar_t to convert_between_encodings.
325 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
326 more parameter 'inferior'.
327 * corefile.c (write_memory_with_notification): Caller update.
329 * mi/mi-cmd-var.c: Include "mi-main.h".
330 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
331 to 1 and restore it later.
332 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
333 and "data-write-memory-bytes.
334 * mi/mi-interp.c: Include objfiles.h.
335 (mi_interpreter_init): Call observer_attach_memory_changed.
336 (mi_memory_changed): New.
337 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
340 * NEWS: Mention new MI notification "memory-changed".
344 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
348 New option -nh: inhibit loading of ~/.gdbinit.
350 * main.c (captured_main): Recognize and process -nh.
351 (print_gdb_help): Mention -nh.
352 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
358 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
360 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
361 nor pc_regnum_from_eax.
362 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
363 nor pc_regnum_from_eax.
367 Fix entry values resolving in inlined frames.
368 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
369 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
374 * configure.ac: Build with -DMS_WIN64 if building with Python
375 enabled using GCC on amd64-windows.
376 * configure: Regenerate.
381 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
387 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
391 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
392 reset thread numbering back to 1.
396 PR breakpoints/14643.
397 * linespec.c (struct ls_parser): New member keyword_ok.
398 (linespec_lexer_lex_string): Add comment.
399 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
401 (parse_linespec): Set keyword_ok.
405 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
406 "0x" prefix on address in log message.
408 * dwarf2read.c (read_1_byte): Add const to buf parameter.
409 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
410 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
411 (lookup_dwo_file): Add const to dwo_name parameter.
412 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
416 Fix crash during stepping on ppc32.
417 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
423 * buildsym.c (buildsym_init): Reset using_directives to NULL.
427 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
428 output and use uint32_t not long to ensure 4 byte size.
432 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
437 * target.c (simple_search_memory): Include access length in
444 * solib.c (solib_find): Prevent GDB from loading native libraries when
445 debugging a cross-target corefile.
449 Make definition match declaration.
451 * regcache.c (regcache_register_status): Change return type to
452 enum register_status.
456 * mi/mi-main.c (mi_cmd_data_write_memory): Call
457 write_memory_with_notification instead of write_memory.
458 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
459 instead of target_write_memory.
463 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
464 when the length of content is not an even number.
468 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
469 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
473 * sol-thread.c (sol_thread_fetch_registers)
474 (sol_thread_store_registers): Delete commented out code.
478 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
479 Move these functions to sparc-sol-thread.c.
480 * sparc-sol-thread.c: New file.
481 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
482 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
484 * configure: Regenerate.
488 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
489 Remove commented-out code.
493 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
494 Enable this code for sparc hosts only.
498 * procfs.h (procfs_find_LDT_entry): Add declaration.
499 * sol-thread.c (ps_lgetLDT): Delete local declaration of
500 function procfs_find_LDT_entry.
504 * procfs.c (proc_get_LDT_entry): Make static.
508 * procfs.c (proc_find_memory_regions): Fix declaration.
512 * amd64-tdep.c (amd64_return_value): Revert previous change
513 that used TYPE_LENGTH directly.
514 * bfin-tdep.c (bfin_extract_return_value): Likewise.
515 (bfin_store_return_value): Likewise.
516 * cris-tdep.c (cris_store_return_value): Likewise.
517 (cris_extract_return_value): Likewise.
518 * h8300-tdep.c (h8300_extract_return_value): Likewise.
519 * hppa-tdep.c (hppa64_return_value): Likewise.
520 * lm32-tdep.c (lm32_store_return_value): Likewise.
521 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
522 * spu-tdep.c (spu_value_from_register): Likewise.
523 * vax-tdep.c (vax_return_value): Likewise.
527 * gdbtypes.c (lookup_array_range_type): Expand parameters
528 LOW_BOUND and HIGH_BOUND to LONGEST.
529 (lookup_string_range_type): Likewise.
530 * gdbtypes.h (lookup_array_range_type): Likewise.
531 (lookup_string_range_type): Likewise.
532 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
533 Expand HIGHBOUND to ssize_t.
534 (value_string): Likewise.
535 * value.h (value_cstring): Expand parameter LEN to ssize_t.
536 (value_string): Likewise.
541 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
542 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
547 * procfs.c: Add gdb_bfd header.
548 * rs6000-nat.c: Likewise.
549 * solib-pa64.c: Likewise.
550 * spu-linux-nat.c: Likewise.
551 * windows-nat.c: Likewise.
555 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
559 * dwarf2read.c (mark_common_block_symbol_computed): New function.
560 (read_common_block): Handle child DIEs with
561 DW_AT_data_member_location.
562 (new_symbol_full): Add special case for common blocks.
567 * dwarf2read.c (read_common_block): Rewrite.
568 (new_symbol_full): Handle DW_TAG_common_block.
569 * f-lang.c (head_common_list, find_common_for_function):
571 * f-lang.h (struct common_entry, struct saved_f77_common,
572 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
573 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
574 BLANK_COMMON_NAME_LOCAL): Remove.
575 (struct common_block): New.
576 * f-valprint.c (list_all_visible_commons): Remove.
577 (info_common_command_for_block): New function.
578 (info_common_command): Use it.
579 * stack.c (iterate_over_block_locals): Special case for
581 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
583 (struct general_symbol_info) <value.common_block>: New field.
584 (SYMBOL_VALUE_COMMON_BLOCK): New define.
589 * f-lang.c (allocate_saved_bf_node,
590 allocate_saved_function_node, allocate_saved_f77_common_node,
591 allocate_common_entry_node, tail_common_list, current_common,
592 saved_bf_list, saved_bf_list_end, current_head_bf_list,
593 tmp_bf_ptr, add_common_block, add_common_entry,
594 find_first_common_named, patch_common_entries,
595 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
596 global_remote_debug, get_bf_for_fcn, saved_function_list,
597 saved_function_list_end, clear_function_list, struct saved_fcn,
598 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
599 SAVED_BF, SAVED_BF_PTR): Remove.
600 * f-lang.h (tail_common_list, current_common,
601 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
602 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
603 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
604 real_main_c_value): Remove.
605 * f-valprint.c (there_is_a_visible_common_named): Remove.
609 * breakpoint.c (update_global_location_list): Ignore previous
610 duplicate status of a breakpoint when starting a new scan for
611 duplicate breakpoints.
615 * arm-tdep.c (arm_skip_prologue): Extending producer check to
616 support LLVM compiler.
620 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
621 * bfin-tdep.c (bfin_extract_return_value): Likewise.
622 (bfin_store_return_value): Likewise.
623 * cris-tdep.c (cris_store_return_value): Likewise.
624 (cris_extract_return_value): Likewise.
625 * h8300-tdep.c (h8300_extract_return_value): Likewise.
626 * hppa-tdep.c (hppa64_return_value): Likewise.
627 * lm32-tdep.c (lm32_store_return_value): Likewise.
628 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
629 * spu-tdep.c (spu_value_from_register): Likewise.
630 * vax-tdep.c (vax_return_value): Likewise.
634 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
635 parameter LEN to ssize_t.
639 * ada-valprint.c (ada_val_print_1): Eliminate single-use
641 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
643 (alpha_store_return_value): Likewise.
644 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
645 (amd64_push_arguments): Likewise.
646 * ax-gdb.c (gen_trace_static_fields): Likewise.
647 (gen_traced_pop): Likewise.
648 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
649 * breakpoint.c (update_watchpoint): Likewise.
650 * findcmd.c (parse_find_args): Use local variable for type
652 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
653 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
654 (h8300_store_return_value): Likewise.
655 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
656 Use i386_darwin_arg_type_alignment directly.
657 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
658 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
659 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
660 (m68hc11_extract_return_value): Likewise.
661 * mep-tdep.c (mep_push_dummy_call): Likewise.
662 * printcmd.c (float_type_from_length): Likewise.
663 * s390-tdep.c (s390_value_from_register): Likewise.
664 * stack.c (read_frame_arg): Likewise.
665 * tracepoint.c (encode_actions_1): Likewise.
666 * valops.c (value_fetch_lazy): Use local variable for type
667 instead of length. Use TYPE_LENGTH directly.
668 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
672 * symtab.c (skip_prologue_sal): Fix typo in comment.
676 * linespec.c (create_sals_line_offset): Fix typo in comment.
680 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
681 use plongest to print the array size.
685 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
686 * p-valprint.c (pascal_type_print_base): Likewise.
690 * remote.c (remote_get_trace_status): Remove setting default
691 values of fields of 'ts'.
695 Fix internal error on canonicalization of clang types.
696 * cp-name-parser.y (operator): New comment at make_operator call for
697 new, delete, new[] and delete[].
698 (exp): Use "sizeof ". Add new comment at make_operator call.
702 Fix disassemble without parameters in tailcall frame.
703 * cli/cli-cmds.c (disassemble_current_function): Use
704 get_frame_address_in_block.
708 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
709 TYPE_CODE_UNION>: Unify, removing a goto.
713 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
717 * findvar.c (read_frame_register_value): Mark the result value as
718 optimized out if any of the input registers have been optimized out.
722 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
726 * eval.c (evaluate_subexp_standard): Eliminate single-use
731 * mi/mi-interp.c: Declare mi_record_changed.
732 (mi_interpreter_init): Call observer_attach_record_changed.
733 (mi_record_changed): New.
734 * record.c (record_open): Call observer_notify_record_changed.
735 (cmd_record_stop): Call observer_notify_record_changed.
741 * python/python.c (finalize_python): New function.
742 (_initialize_python): Make a final cleanup.
746 * buildsym.h (param_symbols): Delete, unused.
747 (context_stack): Delete member "params", unused.
748 * buildsym.c (push_context): Update.
749 * dwarf2read.c (read_func_scope): Update.
753 * sh-tdep.c (sh_register_convert_to_virtual)
754 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
755 all callers. Just do a memcpy if not the little-endian case.
757 * h8300-tdep.c (h8300_gdbarch_init): Invoke
758 set_gdbarch_double_format and set_gdbarch_long_double_format.
759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
760 set_gdbarch_double_format.
761 * sh-tdep.c (sh_gdbarch_init): Likewise.
763 * NEWS: Document the removal of SH's 'regs' command.
764 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
769 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
774 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
775 language when iterating over symbols.
779 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
780 (mi_interpreter_init): Call observer_attach_tsv_created and
781 observer_attach_tsv_deleted.
782 (mi_tsv_created, mi_tsv_deleted): New.
783 * tracepoint.c (delete_trace_state_variable): Call
784 observer_notify_tsv_deleted.
785 (trace_variable_command): Call observer_notify_tsv_created.
786 (delete_trace_variable_command): Call
787 observer_notify_tsv_deleted.
788 (create_tsv_from_upload): Call observer_notify_tsv_created.
793 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
794 if traceframe changed.
795 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
797 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
798 (mi_interpreter_init): Hook mi_traceframe_changed to observer
799 'traceframe_changed'.
800 (mi_traceframe_changed): New.
801 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
803 * NEWS: Mention the new MI notification.
807 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
811 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
812 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
813 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
814 Extend code also for PaX support. Convert all gdb_assert to warning
819 Implement auto-load user conveniences suggested by Doug Evans.
820 * auto-load.c: Include top.h.
821 (file_is_auto_load_safe): New variable advice_printed. Print advice.
822 (_initialize_auto_load): New variable scripts_directory_help. Mention
823 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
824 scripts-directory. Document in online help one can use also files for
825 set auto-load safe-path.
826 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
827 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
831 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
836 * m2-valprint.c (m2_print_array_contents): Eliminate variable
837 ELTLEN and use TYPE_LENGTH directly.
838 (m2_val_print): Likewise.
839 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
840 variable LEN and use TYPE_LENGTH directly.
841 (m68k_svr4_store_return_value): Likewise.
842 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
843 ARGLEN and use TYPE_LENGTH directly.
844 (mips_o64_push_dummy_call): Likewise.
845 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
846 variable LENGTH and use TYPE_LENGTH directly.
847 (s390_function_arg_float): Likewise.
848 (s390_function_arg_integer): Likewise.
849 (s390_push_dummy_call): Likewise.
850 (s390_return_value_convention): Likewise.
851 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
852 TYPE_LENGTH directly.
856 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
857 Update comment to add_setshow_integer_cmd.
858 * cli/cli-setshow.c (do_set_command): Handle case
859 'var_zuinteger_unlimited'.
860 (do_show_command): Likewise.
861 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
862 for command 'remotetimeout'.
863 * command.h (enum var_types): New zuinteger_unlimited. Update comment
865 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
866 for command 'set listsize'.
870 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
876 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
877 (frame_pop): Drop also TAILCALL_FRAME frames.
878 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
884 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
885 function start if we are already at function start. Both for
886 reverse-next and for reverse-step into function without line number
891 Code cleanup - rename 'inline' depth to 'artificial' depth.
892 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
893 frame_id_artificial_p, extend the comment.
894 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
895 * frame.c (fprint_frame_id): Rename at a user, change debug output
896 text to "artificial=".
897 (skip_inlined_frames): Rename to ...
898 (skip_artificial_frames): ... here. Extend the comment.
899 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
900 (frame_id_inlined_p): Rename to ...
901 (frame_id_artificial_p): ... here. Rename at a user.
902 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
903 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
905 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
907 (frame_id_inlined_p): Rename to ...
908 (frame_id_artificial_p): ... here.
909 * inline-frame.c (inline_frame_this_id): Rename at a user.
913 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
914 vector variables using vector_size syntax rather than array
919 * valarith.c (value_concat): Replace unsafe ALLOCA with
924 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
928 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
929 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
930 data-directory as appropriate.
934 * printcmd.c (ui_printf): Eliminate single-use variable
940 * valops.c (value_assign): Move observer_notify_target_changed
941 below to replace reinit_frame_cache.
945 Refactor Python "gdb" module into a proper Python package, by
946 introducing a new "_gdb" module for code implemented in C, and
947 using reload/__import__ instead of exec.
948 * python/lib/gdb/__init__.py: Import * from _gdb.
949 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
950 prompt_hook, sys.argv): Moved from finish_python_initialization.
951 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
952 (packages, auto_load_packages): New list and function replacing
953 module_dict and auto-loading code, using __file__ instead of
954 gdb.PYTHONDIR and reload/__import__ instead of exec.
955 (GdbSetPythonDirectory): Replacing function of the same name
956 from finish_python_initialization, using reload/__import__ instead
957 of exec, as well as call auto_load_packages.
958 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
959 gdb_python_module and not gdb_module.
960 * python/python-internal.h (gdb_python_module): Declare.
961 * python/python.c (gdb_python_module): New global.
962 (before_prompt_hook): Check gdb_python_module and not gdb_module.
963 (_initialize_python): Rename gdb module to _gdb.
964 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
965 (finish_python_initialization): Move Python code to
966 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
971 * Makefile.in (COMMON_OBS): Add registry.o.
972 * registry.c: New file.
973 * registry.h (struct registry_container): Declare.
974 (registry_data_callback): New typedef.
975 (struct registry_data, struct registry_data_registration, struct
976 registry_data_registry): New type.
977 (register_data_with_cleanup, registry_alloc_data)
978 (registry_callback_adaptor, registry_clear_data)
979 (registry_container_free_data, registry_set_data, registry_data):
981 (DEFINE_REGISTRY): Refactor structures and functions as shims over
982 the new common structures and functions.
983 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
988 * remote.c (remote_insert_hw_breakpoint): Throw exception if
989 there is an error inserting hardware breakpoints and use the
990 error message from the target.
992 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
993 Catch this exception and print the error message contained within. Do not
994 print the default hardware error breakpoint message in this case.
998 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1003 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1004 .gdb_index symbol attributes if there are none.
1008 * symtab.h (struct minimal_symbol) [has_size]: New field.
1009 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1010 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1011 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1012 minimal symbols if the symbol's size is actually known.
1013 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1014 of msymbol's size field. Add comment.
1015 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1016 SET_MSYMBOL_SIZE to set the minimal symbol size.
1020 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1021 minimal_symbol struct object, rather than setting some of its
1026 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1027 passed_a_ptr flag when displaying typedef types.
1031 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1032 the optimized_out flag is preserved.
1036 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1037 prologue changes in GCC.
1042 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1043 (BOOL_CONVERSION_BADNESS): ... this.
1044 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1045 (rank_one_type): Allow all boolean conversions
1046 permitted by the standard.
1050 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1051 Don't decref py_objfile.
1055 Do not enable -lmcheck by default when Python is enabled with
1057 * configure.ac: (python_has_threads) New variable, by testing
1058 if WITH_THREAD is defined in Python.h.
1059 Move --enable-lmcheck after --with-python.
1060 Do not enable -lmcheck by default if python_has_threads=yes.
1061 Warn if --enable-lmcheck and python_has_threads=yes.
1062 * configure: Regenerate.
1066 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1067 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1068 Update some commands.
1069 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1070 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1075 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1079 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1083 * main.c (print_gdb_help): Remove reference to
1084 --use-deprecated-index-sections.
1088 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1089 (init_cmds): Call add_setshow_uinteger_cmd for command
1090 'max-user-call-depth'.
1091 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1092 declaration of 'max_user_call_depth'.
1093 * frame.c (backtrace_limit): Add 'unsigned'.
1094 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1096 * remote.c (remoteaddresssize): Add 'unsigned'.
1097 (remote_address_masked): Change local var 'address_size' to
1099 (_initialize_remote): Call add_setshow_uinteger_cmd for
1100 'remoteaddresssize'.
1101 * top.c (history_size): Add 'unsigned'.
1102 (show_commands): Change local variables to 'unsigned'.
1103 (set_history_size_command): Don't check history_size is negative.
1104 Adjust the condition to call unstifle_history and set history_size
1111 * infcmd.c (default_print_one_register_info): New, factored out
1112 from default_print_registers_info.
1113 (default_print_registers_info): Use it. Mark value unavailable if
1115 (registers_info): Print user registers with
1116 default_print_one_register_info.
1121 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1122 is not NULL before referencing it.
1126 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1127 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1133 * auto-load.c (auto_load_objfile_script): Rename to ...
1134 (auto_load_objfile_script_1): ... here, change variable realname to
1135 parameter realname, document it, add return value, add variable retval.
1136 (auto_load_objfile_script): New function.
1140 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1141 followed by a whitespace.
1146 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1147 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1148 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1153 * memattr.c (create_mem_region): Fix memory region overlapping
1158 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1159 with xmalloc/cleanup.
1160 * mt-tdep.c (mt_push_dummy_call): Likewise.
1161 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1162 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1166 * jv-exp.y (push_expression_name): Add "." at the end of error
1171 Document how to return from "python-interactive" to GDB.
1172 * python/python.c (_initialize_python): Update documentation.
1176 * infrun.c (_initialize_infrun) <handle command help text>:
1177 Mention that multiple signals are supported.
1181 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1186 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1187 (tfind_1): Don't call registers_changed, set_traceframe_num,
1188 and clear_traceframe_info.
1189 Call set_current_traceframe.
1190 (set_current_traceframe): call set_traceframe_num.
1194 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1195 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1199 Enable readline in Python in a GDB-specific way and block the
1200 standard Python readline module to prevent conflicts with GDB.
1201 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1202 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1203 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1204 * python/py-gdb-readline.c: New file.
1205 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1207 * python/python.c (_initialize_python): Call
1208 gdbpy_initialize_gdb_readline.
1212 * defs.h: Include build-gnulib/config.h
1216 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1221 Add a new "python-interactive" command that starts a standard
1222 Python interactive prompt with "pi" as alias, and add "py" as
1223 an alias to "python".
1224 * NEWS: Mention the new commands.
1225 * python/python.c (eval_python_command): New function.
1226 (python_interactive_command): For "python-interactive" with
1227 arguments, call eval_python_command. For "python-interactive"
1228 without arguments, call PyRun_InteractiveLoop.
1229 (_initialize_python): Add "python-interactive" command with
1230 "pi" as alias, and add "py" as an alias to "python".
1234 * defs.h (quit_flag): Don't declare.
1235 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1236 (QUIT): Use new functions.
1237 * event-top.c (command_handler): Use clear_quit_flag.
1238 (handle_sigint): Use set_quit_flag.
1239 (async_request_quit): Use check_quit_flag. Don't check
1241 * exceptions.c (throw_exception): Use clear_quit_flag.
1242 * main.c (captured_main): Use clear_quit_flag.
1243 * python/python.c (clear_quit_flag, set_quit_flag)
1244 (check_quit_flag): New functions.
1245 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1247 * remote.c (remote_wait_as): Use check_quit_flag,
1249 (remote_start_remote): Call QUIT.
1250 * symfile.c (load_progress): Use check_quit_flag.
1251 * top.c (command_loop): Use clear_quit_flag.
1252 (command_line_input): Call QUIT.
1253 * utils.c (quit_flag): Conditionally define.
1254 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1256 (prompt_for_continue): Call QUIT. Use quit, not
1258 * remote-mips.c (mips_expect_timeout): Call QUIT.
1259 * monitor.c (monitor_expect): Call QUIT.
1263 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1264 (async_init_signals): Update.
1265 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1266 (SIGWINCH_HANDLER_BODY): Remove.
1270 * jit.c (jit_object_close_impl): Don't malloc the objfile
1272 * objfiles.c (allocate_objfile): Don't malloc the objfile
1274 (free_objfile): Don't free the objfile name.
1275 * objfiles.h (struct objfile) <name>: Update comment.
1276 * symfile.c (reread_symbols): Fix reference counting. Don't
1277 malloc objfile name.
1281 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1282 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1283 (symfile_bfd_open): Likewise.
1284 (generic_load): Likewise.
1285 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1286 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1288 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1290 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1291 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1292 (pmon_load_fast): Likewise.
1293 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1294 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1295 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1296 (macho_check_dsym): Likewise.
1297 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1298 (m32r_upload_command): Likewise.
1299 * gdb_bfd.h (gdb_bfd_cache): Declare.
1300 * gdb_bfd.c (struct gdb_bfd_data): New.
1301 (gdb_bfd_cache): New global.
1302 (struct gdb_bfd_cache_search): New.
1303 (hash_bfd): New function.
1305 (gdb_bfd_open): Likewise.
1306 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1307 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1309 * exec.c (exec_file_attach): Use gdb_bfd_open.
1310 * dsrec.c (load_srec): Use gdb_bfd_open.
1314 * dwarf2read.c (macro_start_file): Update.
1315 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1316 (free_objfile_per_bfd_storage): Destroy macro_cache.
1317 (allocate_objfile, free_objfile): Update.
1318 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1320 (struct objfile) <macro_cache>: Remove.
1321 * symfile.c (reread_symbols): Update.
1322 * symmisc.c (print_symbol_bcache_statistics): Update.
1323 (print_objfile_statistics): Update.
1327 * elfread.c (elf_symtab_read): Update.
1328 * objfiles.c (objfiles_bfd_data): New global.
1329 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1330 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1331 (allocate_objfile, free_objfile): Update.
1332 (_initialize_objfiles): Initialize objfiles_bfd_data.
1333 * objfiles.h (struct objfile_per_bfd_storage): New.
1334 (struct objfile) <per_bfd>: New field.
1335 <filename_cache>: Remove.
1336 (set_objfile_per_bfd): Declare.
1337 * symfile.c (reread_symbols): Update. Call
1338 set_objfile_per_bfd.
1339 (allocate_symtab): Update.
1340 * symmisc.c (print_symbol_bcache_statistics): Update.
1341 (print_objfile_statistics): Print the size of the BFD obstack.
1345 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1346 * gdb_bfd.c: Use DEFINE_REGISTRY.
1347 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1348 (gdb_bfd_ref): Call bfd_alloc_data.
1349 (gdb_bfd_unref): Call bfd_free_data.
1353 * registry.h (struct registry_fields): New.
1354 (REGISTRY_FIELDS): Redefine.
1355 (REGISTRY_ACCESS_FIELD): New macro.
1356 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1361 * auto-load.c (_initialize_auto_load): Update.
1362 * solib-svr4.c (_initialize_svr4_solib): Update
1363 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1364 * solib-darwin.c (_initialize_darwin_solib): Update.
1365 * registry.h: New file.
1366 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1367 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1368 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1369 (register_program_space_data_with_cleanup)
1370 (register_program_space_data, program_space_alloc_data)
1371 (clear_program_space_data, set_program_space_data)
1372 (program_space_data): Don't declare.
1373 * progspace.c: Use DEFINE_REGISTRY.
1374 (struct program_space_data, struct
1375 program_space_data_registration, struct
1376 program_space_data_registry, program_space_data_registry)
1377 (register_program_space_data_with_cleanup)
1378 (register_program_space_data, program_space_alloc_data)
1379 (program_space_free_data, clear_program_space_data)
1380 (set_program_space_data, program_space_data): Remove.
1381 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1382 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1383 (register_objfile_data_with_cleanup, register_objfile_data)
1384 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1386 * objfiles.c: Use DEFINE_REGISTRY.
1387 (struct objfile_data, struct objfile_data_registration, struct
1388 objfile_data_registry, objfile_data_registry)
1389 (register_objfile_data_with_cleanup, register_objfile_data)
1390 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1391 (set_objfile_data, objfile_data): Remove.
1392 (_initialize_objfiles): Update.
1393 * jit.c (_initialize_jit): Update.
1394 * inflow.c (_initialize_inflow): Update.
1395 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1396 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1397 (register_inferior_data_with_cleanup, register_inferior_data)
1398 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1400 * inferior.c: Use DEFINE_REGISTRY.
1401 (struct inferior_data, struct inferior_data_registration, struct
1402 inferior_data_registry, inferior_data_registry)
1403 (register_inferior_data_with_cleanup, register_inferior_data)
1404 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1405 (set_inferior_data, inferior_data): Remove.
1406 * auxv.c (_initialize_auxv): Update.
1407 * ada-lang.c (_initialize_ada_language): Update.
1408 * breakpoint.c (_initialize_breakpoint): Update.
1409 * i386-nat.c (i386_use_watchpoints): Update.
1413 * exec.c (exec_close, exec_file_attach): Update.
1414 (add_to_section_table): Initialize 'key' field.
1415 (add_target_sections, remove_target_sections): Add 'key' argument.
1416 * exec.h (add_target_sections, remove_target_sections): Add
1418 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1419 (reload_shared_libraries_1): Update.
1420 * target.h (struct target_section) <key>: New field.
1424 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1428 * symfile.c (allocate_symtab): Use host_address_to_string
1429 function instead of cast of pointer to long which is not
1430 compatible with x86_64-w64-mingw32 build.
1434 * mips-tdep.c (is_octeon): New function.
1435 (is_octeon_bbit_op): New function.
1436 (mips32_next_pc): Handle Octeon's bbit instructions.
1437 (mips32_instruction_has_delay_slot): Likewise.
1441 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1442 before the function.
1446 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1451 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1452 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1456 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1457 The typo broke "make TAGS".
1466 * gdbtypes.c (strict_type_checking): New variable.
1467 (show_strict_type_checking): New function.
1468 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1469 if strict type checking is disabled.
1470 (_initialize_gdbtypes): Add "check type" subcommand.
1471 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1475 * language.h (type_mode): Remove.
1476 (type_check): Remove.
1477 (struct language_defn): Remove la_type_check.
1478 (STRICT_TYPE): Remove unused macro.
1479 (type_error): Remove.
1480 * language.c (set_type_range_case): Renamed to ...
1481 (set_range_case): ... this. Update all callers.
1482 Remove type_mode/type_check.
1483 (type_mode): Remove.
1484 (type_check): Remove.
1485 (show_type_command): Remove.
1486 (set_type_command): Remove.
1487 (language_info): Remove type checking output.
1488 (type_error): Remove unused function.
1489 (range_error): Update comment.
1490 (unknown_language_defn): Remove la_type_check.
1491 (auto_language_defn): Likewise.
1492 (local_language_defn): Likewise.
1493 (_initialize_language): Remove "check type" subcommand.
1494 * ada-lang.c (ada_language_defn): Remove la_type_check.
1495 * c-lang.c (c_language_defn): Likewise.
1496 (cplus_language_defn): Likewise.
1497 (asm_language_defn): Likewise.
1498 (minimal_language_defn): Likewise.
1499 * d-lang.c (d_language_defn): Likewise.
1500 * f-lang.c (f_language_defn): Likewise.
1501 * go-lang.c (go_language_defn): Likewise.
1502 * jv-lang.c (java_language_defn): Likewise.
1503 * m2-lang.c (m2_language_defn): Likewise.
1504 * objc-lang.c (objc_language_defn): Likewise.
1505 * opencl-lang.c (opencl_language_defn): Likewise.
1506 * p-lang.c (pascal_language_defn): Likewise.
1510 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1514 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1516 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1517 using the regache. Use ia64_hpux_get_register_from_save_state_t
1518 to access the bsp and bspstore registers if not.
1522 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1523 * breakpoint.c (detach_breakpoints): Change pid parameter into
1524 a ptid. Adjust code accordingly.
1525 * infrun.c (handle_inferior_event): Delete variable child_pid.
1526 Update call to detach_breakpoints to pass the child ptid for
1528 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1529 assert that inferior_ptid's lwp is zero.
1530 (linux_handle_extended_wait): Update call to detach_breakpoints.
1531 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1536 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1537 parent, only call detach_breakpoints if tts.tts_event ==
1542 * dwarf2-frame.c (dwarf2_frame_cache): Use
1543 get_frame_address_in_block instead of get_frame_pc as
1544 the bound for executing the frame's FDE.
1548 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1549 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1550 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1551 (c_type_print_varspec_suffix): Likewise.
1552 * eval.c (evaluate_subexp_standard): Likewise.
1553 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1554 (f_type_print_varspec_suffix): Likewise.
1555 * gdbtypes.c (is_scalar_type): Likewise.
1556 (recursive_dump_type): Likewise.
1557 * infcall.c (value_arg_coerce): Likewise.
1558 * m2-valprint.c (m2_val_print): Likewise.
1559 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1560 (pascal_type_print_varspec_suffix): Likewise.
1561 (pascal_type_print_base): Likewise.
1562 * p-valprint.c (pascal_val_print): Likewise.
1563 (pascal_val_print): Likewise.
1564 * valops.c (value_slice): Likewise.
1565 * valprint.c (scalar_type_p): Likewise.
1566 * valarith.c (value_bitstring_subscript): Remove.
1567 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1568 Remove comment on TYPE_CODE_BITSTRING.
1570 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1571 TYPE_CODE_BITSTRING.
1573 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1578 * tracepoint.c (trace_find_none_command): Remove.
1579 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1583 * remote.c (handle_notification): Remove parameter 'length'.
1584 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1588 * gdbtypes.c (opaque_type_resolution): Make static.
1589 Add missing comment.
1590 (overload_debug): Add missing comment.
1591 (show_opaque_type_resolution): Likewise.
1592 (show_overload_debug): Likewise.
1593 (print_bit_vector): Remove unnecessary forward declaration.
1594 (print_arg_types): Likewise.
1595 (dump_fn_fieldlists): Likewise.
1596 (print_cplus_stuff): Likewise.
1600 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1601 (gdb_bfd_ref): Initialize new field.
1602 (gdb_bfd_unref): Unref the archive BFD.
1603 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1609 * python/py-bpevent.c (create_breakpoint_event_object): Update
1611 * python/py-event.c (evpy_add_attribute): Update comment.
1612 * python/py-exitedevent.c (create_exited_event_object): Fix
1613 reference counting and error handling.
1614 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1615 Fix reference counting.
1616 * python/py-signalevent.c (create_signal_event_object): Fix
1617 reference counting and error handling.
1618 * python/py-stopevent.c (emit_stop_event): Fix reference
1620 * python/py-threadevent.c (get_event_thread): Return a
1622 * python/py-type.c (convert_field): Fix reference counting.
1626 * dwarf2read.c (dwarf_decode_macro_bytes)
1627 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1632 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1633 stepi, nexti, finish, next, step, jump, and continue commands.
1634 * infrun.c (_initialize_infrun): Update help text for the handle
1639 * gdbtypes.c (struct extra): Delete, unused.
1641 * gdbtypes.c: Whitespace cleanup.
1642 (address_space_name_to_int): Remove "extern" from definition.
1643 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1645 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1646 TYPE_POINTER_TYPE (type).
1650 * solib-svr4.c (svr4_free_library_list): Use free_so.
1654 * .gitignore: Add go-exp.c.
1658 * value.c (show_convenience): Tweak comment.
1659 (_initialize_values): Mention convenience functions in the help text
1660 for "show convenience".
1664 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1665 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1667 * eval.c (evaluate_subexp_standard): Likewise.
1668 * expprint.c (print_subexp_standard): Likewise.
1669 (dump_subexp_body_standard): Likewise.
1670 * parse.c (operator_length_standard): Likewise.
1674 * std-operator.def: Remove OP_BITSTRING.
1675 * breakpoint.c (watchpoint_exp_is_const): Update.
1676 * eval.c (evaluate_subexp_standard): Remove handling to
1678 * expprint.c (print_subexp_standard): Likewise.
1679 (dump_subexp_body_standard): Likewise.
1680 * parse.c (operator_length_standard): Likewise.
1681 * valops.c (value_bitstring): Remove.
1682 * value.h: Remove the declaration of 'value_bitstring'.
1686 * linespec.c (find_methods): Remove unused variables `i1' and
1688 (decode_line_full): Likewise for `arg_start'.
1692 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1693 (zlib_decompress_section): Likewise for `section_data'.
1694 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1698 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1699 * NEWS: Document them.
1700 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1702 * python/py-type.c (typy_array_1): New function.
1703 (typy_array): Call it.
1704 (typy_vector): New function.
1705 (type_object_methods): Add "vector".
1706 * python/lib/gdb/function/__init__.py: New file.
1707 * python/lib/gdb/function/strfns.py: New file.
1711 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1712 for TYPE_FIELD_BITPOS.
1713 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1718 * common/vec.h (VEC_merge): Define.
1719 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1720 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1721 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1722 * completer.c: Include gdb_signals.h.
1723 (signal_completer): Define.
1724 * completer.h (signal_completer): Add prototype.
1725 * infcmd.c (_initialize_infcmd): Assign the command
1726 completer for "signal" to handle_completer.
1727 * infrun.c: Include completer.h.
1728 (handle_completer): Define.
1729 (_initialize_infrun): Declare a new local variable c. Store the
1730 result of add_com("handle") to it. Assign the command
1731 completer for "handle" to handle_completer.
1735 * cli/cli-decode.c (set_cmd_prefix): New.
1736 (lookup_cmd_for_prefixlist): New.
1737 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1738 of each cmd_list_element in *prefixlist.
1739 (add_setshow_cmd_full): set_cmd_prefix.
1740 (add_alias_cmd): Likewise.
1741 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1742 Declare 'auto_boolean_enums'.
1743 * cli/cli-setshow.c: Include "observer.h".
1744 (notify_command_param_changed_p): New.
1745 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1747 (do_setshow_command): Split it to ...
1748 (do_set_command, do_show_command): ... them. New.
1749 (do_set_command): Call observer_notify_command_param_changed if
1750 notify_command_param_changed_p returns true.
1751 (cmd_show_list): Caller update.
1752 * auto-load.c (set_auto_load_cmd): Likewise.
1753 * remote.c (show_remote_cmd): Likewise.
1754 * cli/cli-setshow.h: Update declarations.
1755 * top.c (execute_command): Call do_set_command and do_show_command.
1757 * NEWS: Mention new MI notification.
1758 * mi/mi-interp.c: Declare mi_command_param_changed.
1759 (mi_interpreter_init): Attach mi_command_param_changed to
1760 observer command_param_changed.
1761 (mi_command_param_changed): New.
1762 Remove mi_suppress_breakpoint_notifications.
1763 Define global variable mi_suppress_notification.
1764 (mi_breakpoint_created): Update.
1765 (mi_breakpoint_deleted): Likewise.
1766 (mi_breakpoint_modified): Likewise.
1767 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1768 'gdb-set' and set mi_suppress_notification.
1769 * mi/mi-main.h: (mi_suppress_notification): New struct.
1774 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1778 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1779 (skiplist): Move it to skip.c.
1780 (init_cmd_lists): Remove code setting enablebreaklist and
1782 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1783 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1785 * gdbcmd.h: Likewise.
1786 * skip.c (_initialize_step_skip): Move 'skiplist' from
1791 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1792 * gnu-nat.c, symfile.c: Likewise.
1796 * utils.c (prompt_for_continue_wait_time): New static global.
1797 (make_command_stats_cleanup): Initialize it.
1798 (report_command_stats): Subtract time waiting for user.
1799 (prompt_for_continue): Track time waiting for user.
1800 (defaulted_query): Track time waiting for user.
1804 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1806 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1807 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1808 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1809 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1810 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1811 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1813 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1814 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1815 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1816 (dump_prefix_expression): Handle OP_TYPE.
1820 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1825 * linux-thread-db.c: #include "gdb_vecs.h".
1826 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1828 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1829 (thread_db_load_search): Use a vector to iterate over path elements.
1830 Handle text appearing after "$pdir".
1832 * gdb_string.h: Moved to ...
1833 * common/gdb_string.h: ... here.
1834 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1835 gdb_string.h and gdb_assert.h.
1839 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1840 (tic6x_value_to_register): Likewise.
1841 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1842 and set_gdbarch_value_to_register.
1848 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1849 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1850 * gcore.c (gcore_create_callback): New function comment. Add modified
1851 parameter. Only write modified regions. Set SEC_READONLY exactly
1852 according to MODIFIED.
1853 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1854 the passed modified value to FUNC.
1855 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1856 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1857 first. New variables modified and has_anonymous. Parse the lines of
1858 smaps file. Add the passed MODIFIED value to FUNC.
1859 * procfs.c (find_memory_regions_callback): Add the passed modified
1864 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1865 (dwarf2_frame_cache): Use it.
1866 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1867 cache initialization constraint.
1872 * varobj.c (update_dynamic_varobj_children): Don't call
1878 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1882 * NEWS: New entry for 'cd' default parameters.
1883 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1887 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1892 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1893 to attempting lseek/write.
1894 (inf_child_fileio_pread): Likewise for pread.
1898 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1899 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1900 add_setshow_zinteger_cmd.
1901 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1902 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1903 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1904 instead of add_setshow_zinteger_cmd.
1905 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1906 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1907 instead of add_setshow_zinteger_cmd.
1908 * frame.c (frame_debug): Add 'unsigned'.
1909 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1910 add_setshow_zinteger_cmd.
1911 * frame.h: Update the declaration of 'frame_debug'.
1912 * gdbtypes.c (overload_debug): Add 'unsigned'.
1913 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1914 add_setshow_zinteger_cmd.
1915 * inferior.h: Update declaration of 'debug_infrun'.
1916 * infrun.c (debug_infrun): Add 'unsigned'.
1917 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1918 add_setshow_zinteger_cmd.
1919 * jit.c (jit_debug): Add 'unsigned'.
1920 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1921 add_setshow_zinteger_cmd.
1922 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1923 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1924 instead of add_setshow_zinteger_cmd.
1925 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1926 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1927 add_setshow_zinteger_cmd.
1928 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1929 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1930 instead of add_setshow_zinteger_cmd.
1931 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1932 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1933 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1934 intead of add_setshow_zinteger_cmd.
1935 * mips-tdep.c (mips_debug): Add 'unsigned'.
1936 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1937 instead of add_setshow_zinteger_cmd.
1938 * monitor.c (monitor_debug): Add 'unsigned'.
1939 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1940 add_setshow_zinteger_cmd.
1941 * observer.c (observer_debug): Add 'unsigned'.
1942 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1943 add_setshow_zinteger_cmd.
1944 * parse.c (expressiondebug): Add 'unsigned'.
1945 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1946 add_setshow_zinteger_cmd.
1947 * record.c (record_debug): Add 'unsigned'.
1948 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1949 add_setshow_zinteger_cmd.
1950 * record.h: Update the declaration of 'record_debug'.
1951 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1952 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1953 add_setshow_zinteger_cmd.
1954 * serial.c (global_serial_debug_p): Add 'unsigned'.
1955 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1956 add_setshow_zinteger_cmd.
1957 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1958 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1959 add_setshow_zinteger_cmd.
1960 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1961 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1962 add_setshow_zinteger_cmd.
1963 * target.c (targetdebug): Add 'unsigned'.
1964 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1965 add_setshow_zinteger_cmd.
1966 * valops.c (overload_debug): Add 'unsigned'.
1967 * varobj.c (varobjdebug): Add 'unsigned'.
1968 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1969 add_setshow_zinteger_cmd.
1970 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1971 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1972 instead of add_setshow_zinteger_cmd.
1974 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1975 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1976 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1977 instead of add_setshow_zinteger_cmd.
1978 * gdbarch.c, gdbarch.h: Re-generated.
1982 * nto-tdep.c: Don't include cli/cli-decode.h and
1984 (_initialize_nto_tdep): Remove.
1985 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1987 Remove macro nto_internal_debugging.
1991 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1992 (mep-*-*) [gdb_target_obs]: Likewise.
1996 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1997 linux_get_siginfo_type.
2001 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2003 (call_function_by_hand) <ON_STACK>: Call write_memory with
2004 gdbarch_breakpoint_from_pc, if possible.
2005 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2010 * tracepoint.c: Add 'static' for some variables.
2014 * go32-nat.c: Declare _initialize_go32_nat.
2015 * ser-go32.c: Declare _initialize_ser_dos.
2016 * top.c (do_chdir_cleanup): Add 'static'.
2020 * linespec.c (linespec_lex_number): A number followed
2021 by quotes is a valid number, too.
2025 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2029 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2030 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2034 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2035 invalid or reevaluated to prevent prevent references to possibly
2036 delete'd type objects being left in the varobj.
2041 * copying.awk: Print buffer-read-only and vi ro markers.
2042 * copying.c: Rebuild.
2043 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2044 * gdbarch.c, gdbarch.h: Rebuild.
2045 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2046 buffer-read-only and vi ro markers.
2047 * features/arm-with-iwmmxt.c: Rebuild.
2048 * features/arm-with-m-fpa-layout.c: Rebuild.
2049 * features/arm-with-m-vfp-d16.c: Rebuild.
2050 * features/arm-with-m.c: Rebuild.
2051 * features/arm-with-neon.c: Rebuild.
2052 * features/arm-with-vfpv2.c: Rebuild.
2053 * features/arm-with-vfpv3.c: Rebuild.
2054 * features/i386/amd64-avx-linux.c: Rebuild.
2055 * features/i386/amd64-avx.c: Rebuild.
2056 * features/i386/amd64-linux.c: Rebuild.
2057 * features/i386/amd64.c: Rebuild.
2058 * features/i386/i386-avx-linux.c: Rebuild.
2059 * features/i386/i386-avx.c: Rebuild.
2060 * features/i386/i386-linux.c: Rebuild.
2061 * features/i386/i386-mmx-linux.c: Rebuild.
2062 * features/i386/i386-mmx.c: Rebuild.
2063 * features/i386/i386.c: Rebuild.
2064 * features/i386/x32-avx-linux.c: Rebuild.
2065 * features/i386/x32-avx.c: Rebuild.
2066 * features/i386/x32-linux.c: Rebuild.
2067 * features/i386/x32.c: Rebuild.
2068 * features/mips-dsp-linux.c: Rebuild.
2069 * features/mips-linux.c: Rebuild.
2070 * features/mips64-dsp-linux.c: Rebuild.
2071 * features/mips64-linux.c: Rebuild.
2072 * features/rs6000/powerpc-32.c: Rebuild.
2073 * features/rs6000/powerpc-32l.c: Rebuild.
2074 * features/rs6000/powerpc-403.c: Rebuild.
2075 * features/rs6000/powerpc-403gc.c: Rebuild.
2076 * features/rs6000/powerpc-405.c: Rebuild.
2077 * features/rs6000/powerpc-505.c: Rebuild.
2078 * features/rs6000/powerpc-601.c: Rebuild.
2079 * features/rs6000/powerpc-602.c: Rebuild.
2080 * features/rs6000/powerpc-603.c: Rebuild.
2081 * features/rs6000/powerpc-604.c: Rebuild.
2082 * features/rs6000/powerpc-64.c: Rebuild.
2083 * features/rs6000/powerpc-64l.c: Rebuild.
2084 * features/rs6000/powerpc-7400.c: Rebuild.
2085 * features/rs6000/powerpc-750.c: Rebuild.
2086 * features/rs6000/powerpc-860.c: Rebuild.
2087 * features/rs6000/powerpc-altivec32.c: Rebuild.
2088 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2089 * features/rs6000/powerpc-altivec64.c: Rebuild.
2090 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2091 * features/rs6000/powerpc-cell32l.c: Rebuild.
2092 * features/rs6000/powerpc-cell64l.c: Rebuild.
2093 * features/rs6000/powerpc-e500.c: Rebuild.
2094 * features/rs6000/powerpc-e500l.c: Rebuild.
2095 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2096 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2097 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2098 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2099 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2100 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2101 * features/rs6000/powerpc-vsx32.c: Rebuild.
2102 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2103 * features/rs6000/powerpc-vsx64.c: Rebuild.
2104 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2105 * features/rs6000/rs6000.c: Rebuild.
2106 * features/s390-linux32.c: Rebuild.
2107 * features/s390-linux32v1.c: Rebuild.
2108 * features/s390-linux32v2.c: Rebuild.
2109 * features/s390-linux64.c: Rebuild.
2110 * features/s390-linux64v1.c: Rebuild.
2111 * features/s390-linux64v2.c: Rebuild.
2112 * features/s390x-linux64.c: Rebuild.
2113 * features/s390x-linux64v1.c: Rebuild.
2114 * features/s390x-linux64v2.c: Rebuild.
2115 * features/tic6x-c62x-linux.c: Rebuild.
2116 * features/tic6x-c62x.c: Rebuild.
2117 * features/tic6x-c64x-linux.c: Rebuild.
2118 * features/tic6x-c64x.c: Rebuild.
2119 * features/tic6x-c64xp-linux.c: Rebuild.
2120 * features/tic6x-c64xp.c: Rebuild.
2124 * c-exp.y (classify_name): Avoid assignment in condition.
2128 * amd64-windows-tdep.c: Include "frame.h".
2129 (amd64_windows_skip_trampoline_code): New function.
2130 (amd64_windows_init_abi): Add trampoline registration.
2134 * tracepoint.c (cur_traceframe_number): Remove.
2135 (set_tfile_traceframe): Remove.
2136 (tfile_trace_find, tfile_fetch_registers): Update callers.
2137 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2138 (tfile_open, tfile_trace_find): Likewise.
2142 * thread.c (switch_to_thread): Don't call registers_changed.
2146 * Makefile.in (SFILES): Remove objc-exp.y.
2147 (YYFILES): Remove objc-exp.c.
2148 (YYOBJ): Remove objc-exp.o.
2149 (local-maintainer-clean): Don't mention objc-exp.c.
2150 * c-exp.y: Include objc-lang.h.
2151 (%union) <class>: New field.
2152 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2153 (exp): Clone subscript production for OBJC_LBRAC. Add various
2154 Objective C productions.
2155 (msglist, msgarglist, msgarg): New productions.
2156 (array_mod, func_mod, operator): Clone productions for
2158 (parse_string_or_char): Handle '@' strings.
2159 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2160 (classify_name): Check la_name_of_this. Recognize ObjC class
2162 * objc-exp.y: Remove.
2163 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2164 * objc-lang.h (objc_parse, objc_error): Don't declare.
2168 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2172 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2177 * copying.c: Rebuild.
2178 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2183 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2185 (print_objfile_statistics): Likewise.
2186 (maintenance_print_symbols): Likewise.
2187 (maintenance_print_msymbols): Likewise.
2188 (maintenance_print_objfiles): Likewise.
2189 * psymtab.c (print_partial_symbols): Call QUIT.
2190 (maintenance_print_psymbols): Likewise. Don't modify
2192 * copying.c (show_copying_command): Don't modify immediate_quit.
2193 (show_warranty_command): Likewise.
2194 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2198 * linespec.c (linespec_lexer_lex_number): The input
2199 is also a valid number if the next character is a comma
2204 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2209 * machoread.c: Include gdb_bfd.h.
2213 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2220 (dwarf2_evaluate_loc_desc): Likewise.
2221 (dwarf2_loc_desc_needs_frame): Likewise.
2222 (locexpr_describe_location_1): Likewise.
2223 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2225 (struct dwarf2_loclist_baton): Likewise.
2226 * dwarf2read.c (struct dwarf_block): Likewise.
2227 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2228 (decode_locdesc): Expand SIZE and I to size_t.
2232 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2236 * doublest.c (convert_doublest_to_floatformat): If the exponent
2237 is too small, treat the value as zero. If the exponent is too
2238 large, treat the value as infinity.
2242 * configure.ac: Add --enable-lmcheck configure option.
2243 * configure: Regenerate.
2247 * NEWS: Mention maint info bfds.
2248 * gdb_bfd.c (all_bfds): New global.
2249 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2250 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2255 * configure.tgt: Add v850*-*-rtems*.
2259 * macrotab.c (macro_bcache_str): Remove cast.
2263 * linespec.c (linespec_lexer_lex_number): Update comments,
2264 change the return and add check to make sure the input is
2265 the decimal numbers.
2266 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2267 false, call linespec_lexer_lex_string.
2271 * symfile.c (symbol_file_add): Don't open BFD twice.
2275 * breakpoint.c (create_breakpoint): Store condition for pending
2280 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2281 (m68k_return_value): Handle complex types like structures.
2282 (m68k_svr4_return_value): Likewise.
2286 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2287 parameters to bfd_get_section_name.
2291 * cli/cli-setshow.c: Handle case 'var_uinteger'
2292 and 'var_zuninteger' together. Handle case 'var_integer' and
2293 'var_zinteger' together.
2297 * linespec.c (convert_linespec_to_sal): Don't add
2298 any symbols to the result vector if symbol_to_sal
2303 * linespec.c (decode_objc): Record the function name
2308 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2310 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2311 (map_vmap): Acquire a reference to the BFD.
2315 * p-valprint.c (pascal_object_print_value): Replace potentially
2316 unsafe alloca with xmalloc/xfree.
2317 * valops.c (search_struct_method): Likewise.
2321 * solib-svr4.c (enable_break): Update.
2322 * bfd-target.h (target_bfd_reopen): Update documentation.
2326 * symfile.c (separate_debug_file_exists): Update.
2327 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2328 (reread_symbols): Update.
2329 * elfread.c (build_id_verify): Update.
2330 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2331 bfd_open_maybe_remote.
2335 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2339 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2341 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2343 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2344 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2346 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2347 * objfiles.c (allocate_objfile): Acquire a new reference.
2348 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2349 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2350 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2351 a cleanup for 'nbfd'.
2352 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2354 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2355 make a cleanup for 'abfd'.
2356 (symbol_file_add): Make a BFD cleanup.
2360 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2361 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2362 * corelow.c (core_open): Use gdb_bfd_fopen.
2363 * dsrec.c (load_srec): Use gdb_bfd_openr.
2364 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2365 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2366 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2367 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2368 (gdb_bfd_fdopenr): New functions.
2369 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2370 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2371 (gdb_bfd_fdopenr): Declare.
2372 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2373 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2374 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2375 gdb_bfd_openr_next_archived_file.
2376 (macho_check_dsym): Use gdb_bfd_openr.
2377 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2378 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2379 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2380 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2382 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2383 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2384 gdb_bfd_openr_next_archived_file.
2385 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2387 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2389 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2390 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2391 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2392 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2393 (symfile_bfd_open): Use gdb_bfd_fopen.
2394 (generic_load): Use gdb_bfd_openr.
2395 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2399 * bfd-target.c (target_bfd_reopen): Update.
2400 * cli/cli-dump.c (bfd_openr_with_cleanup)
2401 (bfd_openw_with_cleanup): Update.
2402 * corelow.c (core_open): Update.
2403 * dsrec.c (load_srec): Update.
2404 * exec.c (exec_file_attach): Update.
2405 * gcore.c (create_gcore_bfd): Update.
2406 * gdb_bfd.c (gdb_bfd_ref): Return void.
2407 (gdb_bfd_open): Update.
2408 * gdb_bfd.h (gdb_bfd_ref): Return void.
2410 * jit.c (jit_bfd_try_read_symtab): Update.
2411 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2412 * machoread.c (macho_symfile_read_all_oso): Update.
2413 (macho_check_dsym): Update.
2414 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2415 * remote-m32r-sdi.c (m32r_load): Update.
2416 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2417 * rs6000-nat.c (add_vmap): Update.
2418 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2420 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2421 * solib-spu.c (spu_bfd_open): Update.
2422 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2423 * spu-linux-nat.c (spu_bfd_open): Update.
2424 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2425 (generic_load): Update.
2426 * windows-nat.c (windows_make_so): Update.
2430 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2434 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2435 SIGTRAMP_FRAME unwinding.
2439 * NEWS: Document new options "set/show use-deprecated-index-sections",
2440 and delete reference to --use-deprecated-index-sections.
2441 * symfile.h (use_deprecated_index_sections): Delete.
2442 * dwarf2read.c (use_deprecated_index_sections): Make static.
2443 (read_index_from_section): Update wording of how to load
2444 deprecated index sections.
2445 (_initialize_dwarf2_read): New options
2446 "set/show use-deprecated-index-sections".
2447 * main.c (captured_main): Delete --use-deprecated-index-sections.
2454 * infrun.c (handle_inferior_event) <new thread>: Don't special
2455 case minus_one_ptid.
2456 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2457 * linux-thread-db.c (thread_get_info_callback): Don't return early
2458 if the thread is zombie.
2459 (thread_from_lwp): Change return type to void. Rewrite stale
2461 (attach_thread): Don't return early if the thread is zombie,
2462 instead set its "dying" flag.
2463 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2464 (find_new_threads_callback): Don't return early if the thread is
2469 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2470 * target.c (target_wait): Likewise.
2471 (str_comma_list_concat_elem, do_option, target_options_to_string):
2473 * target.h (target_options_to_string): Declare.
2478 * dwarf2read.c (dwarf_decode_macros)
2479 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2480 DW_MACRO_GNU_transparent_include_alt>: New cases.
2481 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2482 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2486 * dwarf2read.c (try_open_dwo_file): Don't call
2487 gdb_bfd_stash_filename.
2491 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2492 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2493 (i386_process_record): Tweak description comments.
2497 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2498 (i386_process_record): Use record_read_memory.
2499 * record.c (record_read_memory): New function.
2500 (record_arch_list_add_mem, record_exec_insn): Use
2502 * record.h (record_read_memory): Declare.
2506 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2511 * record.c (record_resume): Ask the target beneath to report all
2516 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2517 there's no section at address zero.
2518 (dwarf2_record_block_ranges): Ditto.
2522 * command.h, remote.c: Fix a typo in comment.
2527 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2528 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2529 OP_DECLTYPE>: New cases.
2530 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2531 (type_exp): Add new productions.
2532 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2534 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2536 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2537 OP_DECLTYPE>: New case.
2538 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2540 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2541 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2545 * c-exp.y (enum token_flags): New.
2546 (struct token) <cxx_only>: Remove.
2548 (tokentab3, tokentab2, ident_tokens): Update.
2549 (lex_one_token): Update. Handle FLAG_SHADOW.
2553 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2554 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2555 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2556 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2557 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2558 type_exp production where appropriate.
2559 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2560 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2561 <UNOP_MEMVAL_TYPE>: New case.
2562 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2563 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2564 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2565 <UNOP_MEMVAL_TYPE>: New case.
2566 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2567 UNOP_REINTERPRET_CAST>: Update.
2568 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2569 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2570 UNOP_REINTERPRET_CAST>: Update.
2571 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2572 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2573 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2579 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2580 and case 'var_optional_filename' together.
2581 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2582 instead of add_setshow_optional_filename_cmd for setshow command
2583 'args'. Set completer for 'set args'.
2587 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2588 * common/gdb_vecs.c: New file, contents from utils.c.
2589 * common/host-defs.h: New file, contents from defs.h.
2590 * utils.h: New file, contents from defs.h.
2591 * defs.h: Move all declarations of objects defined in utils.c
2592 to utils.h (except QUIT() and related).
2593 #include "utils.h", "host-defs.h".
2594 * probe.h (probe_p): Move here from gdb_vecs.h.
2595 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2596 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2597 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2598 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2599 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2600 (COMMON_OBS): Add gdb_vecs.o.
2601 (gdb_vecs.o): New rule.
2605 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2606 parameter. If non-zero, use SYMNAME as the canonical name
2609 (convert_linespec_to_sals): Use add_sal_to_sals for
2611 (decode_line_full): No need to "fill in missing canonical names"
2612 anymore. Simply make cleanups for the allocated names.
2616 * linespec.c (struct linespec): Constify expression,
2617 source_filename, function_name, and label_name.
2618 (symbol_not_found_error): Make all parameters const.
2619 (linespec_parser_delete): No need to check for NULL
2620 when using xfree. Cast const char * to char * for xfree.
2624 * breakpoint.c (invalid_thread_id_error): New function.
2625 (find_condition_and_thread): Use invalid_thread_id_error.
2626 (watch_command_1): Likewise.
2630 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2631 * contrib/cc-with-tweaks.sh: New file.
2635 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2636 (locate_dwz_sections): Recognize .gdb_index.
2637 (create_cus_from_index_list): New function.
2638 (create_cus_from_index): Use it. Handle .dwz data.
2639 (read_index_from_section): New function, extracted from
2641 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2646 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2647 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2648 <is_dwz>: New field.
2649 (struct dwz_file): New.
2650 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2651 (locate_dwz_sections, dwarf2_get_dwz_file)
2652 (get_abbrev_section_for_cu): New functions.
2653 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2654 (read_and_check_type_unit_head): Add abbrev_section argument.
2655 (create_debug_types_hash_table): Update.
2656 (init_cutu_and_read_dies): Use proper abbrev section.
2657 (init_cutu_and_read_dies_no_follow): Likewise.
2658 (set_partial_user): Do nothing if PST==NULL.
2659 (read_comp_units_from_section): New function.
2660 (create_all_comp_units): Use it.
2661 (scan_partial_symbols, partial_die_parent_scope): Update.
2662 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2663 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2664 (find_partial_die): Add offset_in_dwz argument. Update.
2665 (guess_partial_die_structure_name, fixup_partial_die): Update.
2666 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2667 DW_FORM_GNU_strp_alt.
2668 (read_indirect_string_from_dwz): New function.
2669 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2670 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2671 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2672 (follow_die_offset): Add offset_in_dwz argument.
2673 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2674 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2675 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2676 Handle new macro forms.
2677 (dwarf_decode_macros): Update.
2678 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2679 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2680 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2681 (create_debug_types_hash_table): Use correct abbrev section.
2682 (get_debug_line_section): New function.
2683 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2684 (process_full_comp_unit): Pass 'required' argument to
2685 end_symtab_get_static_block.
2686 * buildsym.h (end_symtab_get_static_block): Update.
2687 * buildsym.c (end_symtab_get_static_block): Add 'required'
2689 (end_symtab, end_expandable_symtab): Update.
2693 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2695 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2696 (zlib_decompress_section): Remove.
2697 (dwarf2_read_section): Use gdb_bfd_map_section.
2698 (munmap_section_buffer): Remove.
2699 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2700 munmap_section_buffer.
2701 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2702 (struct gdb_bfd_section_data): New.
2703 (free_one_bfd_section): New function.
2704 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2705 (get_section_descriptor, zlib_decompress_section)
2706 (gdb_bfd_map_section): New functions.
2707 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2711 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2715 * gdb_bfd.c (struct gdb_bfd_data): New.
2716 (gdb_bfd_cache): New global.
2717 (struct gdb_bfd_cache_search): New.
2718 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2719 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2720 * gdb_bfd.h (gdb_bfd_open): Declare.
2724 * utils.c (make_cleanup_bfd_unref): Rename from
2725 make_cleanup_bfd_close.
2726 * defs.h (make_cleanup_bfd_unref): Rename from
2727 make_cleanup_bfd_close.
2728 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2729 (bfd_openw_with_cleanup): Update.
2730 * corelow.c (core_open): Update.
2731 * dsrec.c (load_srec): Update.
2732 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2733 * remote-m32r-sdi.c (m32r_load): Update.
2734 * remote-mips.c (mips_load_srec): Update.
2735 (pmon_load_fast): Update.
2736 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2738 (darwin_bfd_open): Update.
2739 * solib.c (solib_bfd_fopen): Update.
2740 * symfile-mem.c (symbol_file_add_from_memory): Update.
2741 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2742 (symfile_bfd_open): Update.
2743 (generic_load): Update.
2747 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2748 (pmon_load_fast): Likewise.
2749 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2750 (m32r_upload_command): Likewise.
2751 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2752 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2753 Use make_cleanup_bfd_close.
2757 * symfile.c (symfile_bfd_open): Don't copy name. Call
2758 gdb_bfd_stash_filename.
2759 (load_command): Open the new BFD before freeing the old.
2760 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2761 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2762 Call gdb_bfd_stash_filename.
2763 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2764 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2765 gdb_bfd_stash_filename.
2766 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2767 Free found_pathname.
2768 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2769 gdb_bfd_stash_filename.
2770 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2771 * machoread.c (macho_add_oso_symfile): Call
2772 gdb_bfd_stash_filename.
2773 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2774 gdb_bfd_stash_filename.
2775 (macho_check_dsym): Don't copy filename. Call
2776 gdb_bfd_stash_filename.
2777 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2778 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2779 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2780 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2781 * exec.c (exec_close): Don't free the BFD's filename.
2782 (exec_file_attach): Don't copy the filename. Call
2783 gdb_bfd_stash_filename.
2784 * corelow.c (core_close): Don't free the BFD's filename.
2785 (core_open): Call gdb_bfd_stash_filename.
2786 * corefile.c (reopen_exec_file): Remove #if 0 code.
2787 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2789 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2793 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2795 (free_dwo_file): Use gdb_bfd_unref.
2796 * cli/cli-dump.c: Include gdb_bfd.h.
2797 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2798 (bfd_openr_with_cleanup): Likewise.
2799 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2801 * utils.c: Include gdb_bfd.h.
2802 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2803 * symfile.c: Include gdb_bfd.h.
2804 (separate_debug_file_exists): Use gdb_bfd_unref.
2805 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2806 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2807 (generic_load): Use gdb_bfd_ref.
2808 (reread_symbols): Use gdb_bfd_unref.
2809 * symfile-mem.c: Include gdb_bfd.h.
2810 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2811 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2812 * solib.c: Include gdb_bfd.h.
2813 (solib_bfd_fopen): Use gdb_bfd_ref.
2814 (solib_bfd_open): Use gdb_bfd_unref.
2815 (free_so_symbols): Use gdb_bfd_unref.
2816 (reload_shared_libraries_1): Use gdb_bfd_unref.
2817 * solib-spu.c: Include gdb_bfd.h.
2818 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2819 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2821 * solib-frv.c: Include gdb_bfd.h.
2822 (enable_break2): Use gdb_bfd_unref.
2823 * solib-dsbt.c: Include gdb_bfd.h.
2824 (enable_break2): Use gdb_bfd_unref.
2825 * solib-darwin.c: Include gdb_bfd.h.
2826 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2828 (darwin_bfd_open): Use gdb_bfd_unref.
2829 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2830 * remote-mips.c: Include gdb_bfd.h.
2831 (mips_load_srec): Use gdb_bfd_ref.
2832 (pmon_load_fast): Use gdb_bfd_ref.
2833 * remote-m32r-sdi.c: Include gdb_bfd.h.
2834 (m32r_load): Use gdb_bfd_ref.
2835 * record.c: Include gdb_bfd.h.
2836 (record_save_cleanups): Use gdb_bfd_unref.
2837 (cmd_record_save): Use gdb_bfd_unref.
2838 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2840 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2841 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2842 * objfiles.c: Include gdb_bfd.h.
2843 (free_objfile): Use gdb_bfd_unref.
2844 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2846 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2847 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2848 (macho_check_dsym): Likewise.
2849 * m32r-rom.c: Include gdb_bfd.h.
2850 (m32r_load): Use gdb_bfd_ref.
2851 (m32r_upload_command): Use gdb_bfd_ref.
2852 * jit.c: Include gdb_bfd.h.
2853 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2854 * gdb_bfd.h: New file.
2855 * gdb_bfd.c: New file.
2856 * gcore.c: Include gdb_bfd.h.
2857 (create_gcore_bfd): Use gdb_bfd_ref.
2858 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2859 (gcore_command): Use gdb_bfd_unref.
2860 * exec.c: Include gdb_bfd.h.
2861 (exec_close): Use gdb_bfd_unref.
2862 (exec_close_1): Use gdb_bfd_unref.
2863 (exec_file_attach): Use gdb_bfd_ref.
2864 * elfread.c: Include gdb_bfd.h.
2865 (build_id_verify): Use gdb_bfd_unref.
2866 * dsrec.c: Include gdb_bfd.h.
2867 (load_srec): Use gdb_bfd_ref.
2868 * corelow.c: Include gdb_bfd.h.
2869 (core_close): Use gdb_bfd_unref.
2870 (core_open): Use gdb_bfd_ref.
2871 * bfd-target.c: Include gdb_bfd.h.
2872 (target_bfd_xclose): Use gdb_bfd_unref.
2873 (target_bfd_reopen): Use gdb_bfd_ref.
2874 * Makefile.in (SFILES): Add gdb_bfd.c.
2875 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2876 (COMMON_OBS): Add gdb_bfd.o.
2880 * breakpoint.c (find_condition_and_thread): Initialize
2882 (create_breakpiont): find_condition_and_thread will now
2883 initialize COND_STRING, THREAD, and REST (and TASK).
2884 (addr_string_to_sals): Likewise.
2888 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2889 Pull the single step breakpoints out of the target.
2893 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2894 * stap-probe.c (compile_probe_arg): Likewise.
2898 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2899 (elf_compile_to_ax): Likewise.
2900 * infrun.c (insert_exception_resume_from_probe): Likewise.
2901 (check_exception_resume): Remove `objfile' variable.
2902 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2903 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2904 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2905 (compare_entries): Rename to...
2906 (compare_probes): ...this. Adjust function to work with
2907 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2909 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2911 (print_ui_out_info): Adjust argument to be `struct probe *'.
2912 (info_probes_for_ops): Adjust internal computations to use
2914 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2915 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2916 gen_info_probes_table_values>: Remove `objfile' argument.
2917 (struct probe) <objfile>: New field.
2918 (find_probe_by_pc): Remove `objfile' argument.
2919 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2920 (stap_get_probe_argument_count): Likewise.
2921 (stap_get_arg): Likewise.
2922 (stap_evaluate_probe_argument): Likewise.
2923 (stap_compile_to_ax): Likewise.
2924 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2925 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2926 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2927 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2928 sym_compile_to_ax>: Likewise.
2933 * defs.h (GDB_MI_MSG_WIDTH): New.
2934 * ser_base (ser_base_read_error_fd): New function.
2935 (do_ser_base_readchar): Poll error file descriptor as well as
2937 (generic_readchar): Refactor error handling.
2941 * NEWS: Create a new section for the next release branch.
2942 Rename the section of the current branch, now that it has
2947 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2948 * version.in: Bump version to 7.5.50.20120718-cvs.
2952 * linespec.c (linespec_parse_line_offset): Make parameter
2958 * f-valprint.c (info_common_command): New variable frame_id.
2959 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2960 * printcmd.c (print_variable_and_value): Extend function comment.
2961 Add comment for invalidated FRAME.
2962 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2963 FI form FRAME_ID after each print_frame_local_vars.
2964 (struct print_variable_and_value_data): Change frame to frame_id.
2965 (do_print_variable_and_value): New variable frame, initialize it from
2966 p->frame_id. Add comment for invalidated FRAME.
2967 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2968 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2969 for invalidated FRAME.
2974 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2979 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2983 * dwarf2read.c (stmt_list_hash): New struct.
2984 (type_unit_group): Embed "per_cu" member, remove pointer.
2985 New union member "t", move member "tus" into it, all uses updated.
2986 New member "hash", replaces member "line_offset, all uses updated.
2987 (quick_file_names): Replace member "offset" with "hash", all uses
2989 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2990 (hash_file_name_entry, eq_file_name_entry): Call them.
2991 (hash_type_unit_group, eq_type_unit_group): Ditto.
2992 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2993 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2994 (dw2_get_file_names): Update.
2995 (create_type_unit_group): Replace "per_cu" arg with "cu".
2996 All callers updated. Fix "quick" (.gdb_index) handling.
2997 (get_type_unit_group): Replace "per_cu" arg with "cu".
2998 All callers updated.
2999 (build_type_unit_groups): Don't reset tu_stats.
3001 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3002 "tab_cur_size". Change member "tab" to be a htab_t.
3003 (create_filename_seen_cache): Update.
3004 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3005 (filename_seen): Update.
3009 * symtab.c (filename_seen): Update comment.
3014 * buildsym.c (end_symtab_1): Split it to ...
3015 (end_symtab_get_static_block): ... this ...
3016 (end_symtab_from_static_block): ... and this function.
3017 (end_symtab, end_expandable_symtab): Call them.
3018 * buildsym.h (end_symtab_get_static_block)
3019 (end_symtab_from_static_block): New declarations.
3020 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3021 Set its valid CU ranges.
3025 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3026 DW_OP_GNU_parameter_ref.
3030 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3031 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3035 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3036 (filename_seen_cache): New struct.
3037 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3038 (create_filename_seen_cache): New function.
3039 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3040 (filename_seen): Delete arg "first". New arg "cache". All callers
3042 (output_source_filename_data): New struct.
3043 (output_source_filename): Delete arg "first". New arg "data".
3044 All callers updated.
3045 (sources_info): Delete local "first". New locals "data", "cleanups".
3046 Rewrite to use filename_seen_cache.
3047 (add_partial_filename_data): Delete member "first". New member
3048 "filename_seen_cache". All uses updated.
3049 (make_source_files_completion_list): Rewrite to use
3050 filename_seen_cache.
3054 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3059 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3060 all_type_unit_groups, type_unit_groups, tu_stats.
3061 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3062 All uses updated. Add type_unit_group to union "s".
3063 (type_unit_group): New struct.
3064 (IS_TYPE_UNIT_GROUP): New macro.
3065 (abbrev_table): Delete unused member "section".
3066 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3067 (dw2_get_cu): Assert not used with type_unit_group.
3068 (dw2_get_primary_cu): New function.
3069 (dw2_build_type_unit_groups_reader): New function.
3070 (dw2_build_type_unit_groups): New function.
3071 (dw2_get_file_names): Assert not called on type units.
3072 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3073 Redo loop to iterate over type unit groups instead of type units.
3074 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3075 (read_abbrev_offset): New function.
3076 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3078 (create_partial_symtab): New function.
3079 (process_psymtab_comp_unit_reader): Assert not used with type units.
3080 Call create_partial_symtab.
3081 (process_psymtab_type_unit): Delete.
3082 (hash_type_unit_group, eq_type_unit_group): New functions.
3083 (allocate_type_unit_groups_table): New function.
3084 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3085 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3086 (create_type_unit_group, get_type_unit_group): New functions.
3087 (tu_abbrev_offset): New struct.
3088 (sort_tu_by_abbrev_offset): New function.
3089 (add_type_unit_group_to_table): New function.
3090 (build_type_unit_groups): New function.
3091 (build_type_psymtabs_reader): New function.
3092 (build_type_psymtab_dependencies): New function.
3093 (build_type_psymtabs): Rewrite.
3094 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3095 is seen in a type unit.
3096 (process_queue): Move symtab expansion debugging printfs here.
3097 Call process_full_type_unit for type units.
3098 (compute_symtab_includes): Assert not called for type units.
3099 (process_cu_includes): Don't call compute_symtab_includes for
3101 (process_full_type_unit): New function.
3102 (process_imported_unit_die): Flag an error if called for type units.
3103 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3104 updated. Assert not called for type units.
3105 (read_file_scope): Call dwarf2_start_symtab.
3106 (setup_type_unit_groups): New function.
3107 (read_type_unit_scope): Rewrite.
3108 (abbrev_table_read_table): Initialize abbrev_table->offset.
3109 (abbrev_table_free_cleanup): New function.
3110 (dwarf2_start_symtab): New function.
3111 (load_full_type_unit): Assert not called for type unit groups.
3112 * buildsym.c (finish_block_internal): New arg "expandable".
3113 All callers updated.
3114 (start_symtab): Move most contents to ...
3115 (restart_symtab): ... here. New function.
3116 (reset_symtab_globals): New function.
3117 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3118 Call reset_symtab_globals.
3119 (end_symtab, end_expandable_symtab): New functions.
3120 (set_missing_symtab, augment_type_symtab): New functions.
3121 * buildsym.h (end_expandable_symtab): Declare.
3122 (augment_type_symtab, restart_symtab): Declare.
3123 * psympriv.h (struct partial_symtab): New member "anonymous".
3124 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3126 (read_psymtabs_with_filename): Ditto.
3127 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3128 (expand_symtabs_matching_via_partial): Ditto.
3129 (dump_psymtab): Update.
3130 * dictionary.c (dict_add_pending): New function.
3131 * dictionary.h (dict_add_pending): Declare.
3135 * buildsym.c (start_subfile): Remove unnecessary check for
3138 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3140 * dwarf2read.c (load_full_type_unit): Simplify.
3142 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3143 to struct signatured_type **. All uses updated.
3145 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3146 All callers updated.
3150 * c-exp.y (check_parameter_typelist): New function.
3151 (parameter_typelist): Call it.
3152 * eval.c (make_params): Handle '(void)' case.
3153 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3158 * common/linux-ptrace.c: Include gdb_assert.h.
3159 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3160 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3162 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3164 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3165 * linux-nat.c (linux_child_post_attach)
3166 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3170 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3171 nptl <2.7 bug workaround for core files.
3175 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3177 (save_siginfo): Remove.
3178 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3180 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3181 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3182 * linux-nat.h (struct lwp_info): Remove field siginfo.
3186 Code cleanup for the next patch.
3187 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3188 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3190 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3191 (ia64_linux_stopped_data_address):
3192 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3194 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3195 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3196 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3202 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3203 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3207 * c-exp.y (DOTDOTDOT): New token.
3208 (func_mod, exp): Use parameter_typelist.
3209 (parameter_typelist): New production.
3210 (tokentab3): Add "..." token.
3211 * eval.c (make_params): Handle varargs.
3212 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3218 * c-exp.y (%union) <tvec>: Change type.
3219 (func_mod): Now uses <tvec> type.
3220 (exp): Update for tvec change.
3221 (direct_abs_decl): Push the typelist.
3222 (func_mod): Return a typelist.
3223 (nonempty_typelist): Update for tvec change.
3224 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3225 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3226 * parse.c (pop_type_list): New function.
3227 (push_typelist): New function.
3228 (follow_types): Handle tp_function_with_arguments.
3229 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3230 (enum type_pieces) <tp_function_with_arguments>: New constant.
3231 (union type_stack_elt) <typelist_val>: New field.
3232 (push_typelist): Declare.
3236 * c-exp.y (%union) <type_stack>: New field.
3237 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3238 (ptr_operator_ts): New production.
3240 * parse.c (type_stack_reserve): New function.
3241 (check_type_stack_depth): Use it.
3242 (pop_type_stack, append_type_stack, push_type_stack)
3243 (get_type_stack, type_stack_cleanup): New functions.
3244 (follow_types): Handle tp_type_stack.
3245 (_initialize_parse): Simplify initialization.
3246 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3248 (union type_stack_elt) <stack_val>: New field.
3249 (get_type_stack, append_type_stack, push_type_stack)
3250 (type_stack_cleanup): Declare.
3254 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3256 (struct type_stack): New.
3257 * parse.c (type_stack, type_stack_size, type_stack_depth):
3259 (type_stack): New global.
3260 (parse_exp_in_context, check_type_stack_depth)
3261 (insert_into_type_stack, insert_type, push_type, push_type_int)
3262 (insert_type_address_space, pop_type, pop_type_int)
3263 (_initialize_parse): Update.
3267 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3272 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3277 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3278 alloca with xmalloc/xfree.
3282 * MAINTAINERS (Write After Approval): Add myself to the list.
3286 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3290 * ax-gdb.c (cli/cli-utils.h): New include.
3291 (linespec.h): Ditto.
3292 (agent_eval_command_one): New function.
3293 (agent_command_1): Ditto.
3294 (agent_command): Call function agent_command_1.
3295 (agent_eval_command): Ditto.
3296 (_initialize_ax_gdb): Change help for "maint agent"
3297 and "maint agent-eval".
3301 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3302 * cli/cli-utils.c (check_for_argument): New function.
3303 * cli/cli-utils.h (check_for_argument): Ditto.
3307 * NEWS: Mention x32 ABI support.
3311 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3312 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3314 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3315 and pc_regnum_from_eax to -1. Update SP regnum from
3316 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3319 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3324 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3325 * dwarf2expr.h: Include gdbtypes.h.
3326 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3327 these forward declarations.
3328 (cu_offset, sect_offset): Move these ...
3329 * gdbtypes.h: Remove include dwarf2expr.h.
3330 (cu_offset, sect_offset): ... here.
3334 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3335 (amd64_linux_sigtramp_code): This.
3336 (amd64_x32_linux_sigtramp_code): New.
3337 (LINUX_SIGTRAMP_LEN): Updated.
3338 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3342 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3346 * config.in: Regenerate.
3347 * configure: Regenerate.
3348 * configure.ac: Remove check for gnu/libc-version.h.
3349 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3351 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3352 variables libc_version, libc_major and libc_minor. Replace sscanf by
3353 inferior_has_bug. Extend the comment.
3357 * linux-thread-db.c (inferior_has_bug): New function.
3358 (thread_db_find_new_threads_silently): Return boolean as checked by
3359 inferior_has_bug, describe it in the comments.
3360 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3361 earlier. Abort the initialization if it returned non-zero.
3362 (thread_db_new_objfile): Exclude debug files.
3363 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3368 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3369 related to queue management.
3371 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3372 instead of "debug dwarf2-die" in debugging printfs.
3373 (create_debug_info_hash_table_reader): Ditto.
3374 (create_debug_info_hash_table): Ditto.
3375 (init_dwo_file): Ditto.
3376 (init_cutu_and_read_dies): Add debugging printf.
3377 (init_cutu_and_read_dies_no_follow): Ditto.
3378 (process_psymtab_comp_unit_reader): Ditto.
3382 Add target-side support for dynamic printf.
3383 * NEWS: Mention the additional style.
3384 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3385 (struct bp_location): New field cmd_bytecode.
3386 * breakpoint.c: Include format.h.
3387 (disconnected_dprintf): New global.
3388 (parse_cmd_to_aexpr): New function.
3389 (build_target_command_list): New function.
3390 (insert_bp_location): Call it.
3391 (remove_breakpoints_pid): Skip dprintf breakpoints.
3392 (print_one_breakpoint_location): Ditto.
3393 (dprintf_style_agent): New global.
3394 (dprintf_style_enums): Add dprintf_style_agent.
3395 (update_dprintf_command_list): Add agent case.
3396 (agent_printf_command): New function.
3397 (_initialize_breakpoint): Add new commands.
3398 * common/ax.def (printf): New bytecode.
3399 * ax.h (ax_string): Declare.
3400 * ax-gdb.h (gen_printf): Declare.
3401 * ax-gdb.c: Include cli-utils.h, format.h.
3402 (gen_printf): New function.
3403 (maint_agent_print_command): New function.
3404 (_initialize_ax_gdb): Add maint agent-printf command.
3405 * ax-general.c (ax_string): New function.
3406 (ax_print): Add printf disassembly.
3407 * Makefile.in (SFILES): Add format.c
3408 (COMMON_OBS): Add format.o.
3409 * common/format.h: New file.
3410 * common/format.c: New file.
3411 * printcmd.c: Include format.h.
3412 (ui_printf): Call parse_format_string.
3413 * remote.c (remote_state): New field breakpoint_commands.
3414 (PACKET_BreakpointCommands): New enum.
3415 (remote_breakpoint_commands_feature): New function.
3416 (remote_protocol_features): Add new BreakpointCommands entry.
3417 (remote_can_run_breakpoint_commands): New function.
3418 (remote_add_target_side_commands): New function.
3419 (remote_insert_breakpoint): Call it.
3420 (remote_insert_hw_breakpoint): Ditto.
3421 (_initialize_remote): Add new packet configuration for
3422 target-side breakpoint commands.
3423 * target.h (struct target_ops): New field
3424 to_can_run_breakpoint_commands.
3425 (target_can_run_breakpoint_commands): New macro.
3426 * target.c (update_current_target): Handle
3427 to_can_run_breakpoint_commands.
3431 Execute -ix and -iex only after system and user gdbinit files.
3432 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3433 processing down after gdbinit files.
3437 Add fnmatch-gnu module.
3438 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3439 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3440 * gnulib/aclocal.m4: Regenerate.
3441 * gnulib/config.in: Regenerate.
3442 * gnulib/configure: Regenerate.
3443 * gnulib/import/dummy.c: Remove.
3444 * gnulib/import/Makefile.am: Regenerate.
3445 * gnulib/import/Makefile.in: Likewise.
3446 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3447 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3448 * gnulib/import/alloca.c: New file.
3449 * gnulib/import/alloca.in.h: Likewise.
3450 * gnulib/import/config.charset: Likewise.
3451 * gnulib/import/fnmatch.c: Likewise.
3452 * gnulib/import/fnmatch.in.h: Likewise.
3453 * gnulib/import/fnmatch_loop.c: Likewise.
3454 * gnulib/import/localcharset.c: Likewise.
3455 * gnulib/import/localcharset.h: Likewise.
3456 * gnulib/import/m4/alloca.m4: Likewise.
3457 * gnulib/import/m4/codeset.m4: Likewise.
3458 * gnulib/import/m4/configmake.m4: Likewise.
3459 * gnulib/import/m4/fcntl-o.m4: Likewise.
3460 * gnulib/import/m4/fnmatch.m4: Likewise.
3461 * gnulib/import/m4/glibc21.m4: Likewise.
3462 * gnulib/import/m4/localcharset.m4: Likewise.
3463 * gnulib/import/m4/locale-fr.m4: Likewise.
3464 * gnulib/import/m4/locale-ja.m4: Likewise.
3465 * gnulib/import/m4/locale-zh.m4: Likewise.
3466 * gnulib/import/m4/mbrtowc.m4: Likewise.
3467 * gnulib/import/m4/mbsinit.m4: Likewise.
3468 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3469 * gnulib/import/m4/mbstate_t.m4: Likewise.
3470 * gnulib/import/m4/stdbool.m4: Likewise.
3471 * gnulib/import/m4/wchar_h.m4: Likewise.
3472 * gnulib/import/m4/wctype_h.m4: Likewise.
3473 * gnulib/import/m4/wint_t.m4: Likewise.
3474 * gnulib/import/mbrtowc.c: Likewise.
3475 * gnulib/import/mbsinit.c: Likewise.
3476 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3477 * gnulib/import/mbsrtowcs-state.c: Likewise.
3478 * gnulib/import/mbsrtowcs.c: Likewise.
3479 * gnulib/import/ref-add.sin: Likewise.
3480 * gnulib/import/ref-del.sin: Likewise.
3481 * gnulib/import/stdbool.in.h: Likewise.
3482 * gnulib/import/streq.h: Likewise.
3483 * gnulib/import/strnlen1.c: Likewise.
3484 * gnulib/import/strnlen1.h: Likewise.
3485 * gnulib/import/verify.h: Likewise.
3486 * gnulib/import/wchar.in.h: Likewise.
3487 * gnulib/import/wctype.in.h: Likewise.
3491 Support shell wildcards for 'set auto-load safe-path'.
3492 * auto-load.c: Include fnmatch.h.
3493 (filename_is_in_dir): Rename to ...
3494 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3495 it. Update function comment. Rename dir_len to pattern_len. New
3496 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3497 messages. Use gdb_filename_fnmatch.
3498 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3500 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3501 * defs.h (gdb_filename_fnmatch): New declaration.
3502 * utils.c: Include fnmatch.h.
3503 (gdb_filename_fnmatch): New function.
3507 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3508 `-probe' and `-probe-stap' options.
3512 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3513 always_inserted_off, and always_inserted_enums.
3514 Change always_inserted_mode's type to 'enum auto_boolean'.
3515 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3517 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3518 of add_setshow_enum_cmd.
3519 * infrun.c: Remove can_use_displaced_stepping_auto,
3520 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3521 can_use_displaced_stepping_enum.
3522 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3523 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3524 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3525 add_setshow_enum_cmd.
3529 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3530 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3531 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3535 * linespec.c: #include "stack.h".
3536 (decode_line_with_current_source): Moved here from symtab.c and
3537 renamed from decode_line_spec. All callers updated.
3538 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3539 renamed from decode_line_spec_1. All callers updated.
3540 * linespec.h (decode_line_with_current_source): Move declaration here
3541 from symtab.h and renamed from decode_line_spec.
3542 (decode_line_with_last_displayed): Move declaration here from symtab.h
3543 and renamed from decode_line_spec_1.
3544 * macrocmd.c: #include "linespec.h".
3545 * symtab.c: Remove #include "linespec.h".
3549 * dwarf2read.c (get_cu_length): New function.
3550 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3551 (create_debug_types_hash_table): Ditto.
3552 (init_cutu_and_read_dies): Ditto.
3553 (init_cutu_and_read_dies_no_follow): Ditto.
3555 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3557 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3558 (struct abbrev_table): Define.
3559 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3561 (init_cutu_and_read_dies): Update.
3562 (abbrev_table_alloc_abbrev): New function. Replaces
3563 dwarf_alloc_abbrev. All callers updated.
3564 (abbrev_table_add_abbrev): New function.
3565 (abbrev_table_lookup_abbrev): New function. Replaces
3566 dwarf2_lookup_abbrev. All callers updated.
3567 (abbrev_table_read_table): New function. Contents moved here from
3568 dwarf2_read_abbrevs.
3569 (dwarf2_read_abbrevs): Call it.
3570 (abbrev_table_free): New function.
3571 (dwarf2_free_abbrev_table): Call it.
3575 * osdata.c (info_osdata_command): Filter out "Title" columns
3577 * common/linux-osdata.c (struct osdata_type): Add title field.
3578 (osdata_table): Add titles to each entry.
3579 (linux_command_xfer_osdata): Add a column for title data.
3583 Make logging work for MI.
3585 * interps.h (interp_set_logging_ftype): New typedef.
3586 (struct interp_procs): New field set_logging_proc.
3587 (current_interp_set_logging): Declare.
3588 * interps.c (current_interp_set_logging): New function.
3589 * cli/cli-logging.c: Include interps.h.
3590 (set_logging_redirect): Call current_interp_set_logging.
3591 (pop_output_files): Ditto.
3592 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3593 * mi/mi-console.h (mi_console_set_raw): Declare.
3594 * mi/mi-console.c (mi_console_set_raw): New function.
3595 * mi/mi-interp.c (saved_raw_stdout): New global.
3596 (mi_set_logging): New function.
3597 (_initialize_mi_interp): Add it to interp procs.
3601 * symtab.c (lookup_symbol_aux_objfile): Use
3602 ALL_OBJFILE_PRIMARY_SYMTABS.
3604 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3608 * common/buffer.c: Include inttypes.h and stdint.h.
3609 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3614 * gdbthread.h (ALL_THREADS): New macro.
3615 (thread_list): Declare.
3616 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3617 going, but instead fall through to the stepping handling.
3618 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3619 the passed in signal. Adjust debug output.
3620 (resume_callback): Rename to ...
3621 (linux_nat_resume_callback): ... this. Pass the thread's last
3622 stop signal, if in "pass" state.
3623 (linux_nat_resume): Adjust to rename.
3624 (stop_wait_callback): New assertion. Don't respawn signals;
3625 instead let the LWP remain with SIGNALLED set.
3626 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3627 * remote.c (append_pending_thread_resumptions): New.
3628 (remote_vcont_resume): Call it.
3629 * target.h (target_resume): Extend comment.
3633 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3637 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3638 Delete have_addr_base, unused. All uses updated.
3639 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3640 (dwarf2_get_pc_bounds): Add ranges_base.
3641 (dwarf2_record_block_ranges): Ditto.
3646 * varobj.c (varobj_create): Update.
3647 (varobj_set_value): Update.
3648 * tracepoint.c (validate_actionline): Update.
3649 (encode_actions_1): Update.
3650 * parse.c (parse_exp_1): Add 'pc' argument.
3651 (parse_exp_in_context): Add 'pc' argument. Change how
3652 expression_context_pc is set.
3653 (parse_expression): Update.
3654 (parse_field_expression): Update.
3655 * expression.h (parse_exp_1): Update.
3656 * eval.c (parse_to_comma_and_eval): Update.
3657 * breakpoint.c (set_breakpoint_condition): Update.
3658 (update_watchpoint): Update.
3659 (init_breakpoint_sal): Update
3660 (find_condition_and_thread): Update.
3661 (watch_command_1): Update.
3662 (update_breakpoint_locations): Update.
3663 * ada-lang.c (ada_read_renaming_var_value): Update.
3664 (create_excep_cond_exprs): Update.
3668 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3673 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3675 (error_check_comp_unit_head): New arg abbrev_section. All callers
3677 (read_and_check_comp_unit_head): Ditto.
3678 (read_and_check_type_unit_head): Ditto.
3682 New attribute 'last' for gdb.Symtab_and_line.
3683 * NEWS (Python Scripting): Add entry about the new attribute.
3684 * python/py-symtab.c (salpy_get_last): New function which
3685 implements the get method for the 'last' attribute of
3686 gdb.Symtab_and_line.
3687 (sal_object_getset): Add entry for the 'last' attribute.
3691 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3692 (dwo_sections): Add macinfo, macro.
3693 (dwarf2_locate_dwo_sections): Watch for macro sections.
3694 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3695 All callers updated. Handle DWO files.
3697 * NEWS: Mention new options "set debug dwarf2-read" and
3698 "set debug symtab-create".
3699 * dwarf2read.c (dwarf2_read_debug): New static global.
3700 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3701 (process_queue): Ditto.
3702 (process_full_comp_unit): Ditto.
3703 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3704 * elfread.c (elf_symfile_read): Add debugging printf.
3705 * minsyms.c (install_minimal_symbols): Ditto.
3706 * psymtab.c (allocate_psymtab): Ditto.
3707 * symfile.c (allocate_symtab): Ditto.
3708 * symtab.c (symtab_create_debug): New global.
3709 (_initialize_symtab): Add new option "set debug symtab-create".
3710 * symtab.h (symtab_create_debug): Declare.
3712 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3713 (lookup_dwo_type_unit): Ditto.
3718 * amd64-linux-nat.c: Include <sys/user.h>.
3719 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3720 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3721 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3723 * configure.ac: Check if the fs_base and gs_base members of
3724 `struct user_regs_struct' exist.
3725 * config.in: Regenerated.
3726 * configure: Likewise.
3731 * python/python.c (gdbpy_write): Check for interrupted output.
3735 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3736 register as a stack alignment in ARM mode.
3740 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3741 * gnulib/config.in: Regenerate.
3742 * gnulib/configure: Likewise.
3743 * gnulib/import/m4/extensions.m4: Update it.
3744 * gnulib/import/m4/gnulib-common.m4: Likewise.
3745 * gnulib/import/m4/memmem.m4: Likewise.
3746 * gnulib/import/m4/mmap-anon.m4: Likewise.
3747 * gnulib/import/m4/multiarch.m4: Likewise.
3748 * gnulib/import/stdint.in.h: Likewise.
3752 * corefile.c (write_memory_with_notification): New.
3753 * gdbcore.h: Declare write_memory_with_notification.
3754 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3755 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3756 * valops.c (value_assign): Likewise.
3757 * python/py-inferior.c (infpy_write_memory): Call
3758 'write_memory_with_notification'.
3762 * cc-with-index.sh: Use also -ex "set auto-load no".
3767 * NEWS: Document additions to .gdb_index.
3768 * dwarf2read.c: #include "gdb/gdb-index.h".
3769 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3770 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3771 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3772 (dwarf2_read_index): Recognize version 7.
3773 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3774 block_kind, domain): All callers updated.
3775 (dw2_find_symbol_file): Handle new index CU values.
3776 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3777 (add_index_entry): New args is_static, kind. All callers updated.
3778 (offset_type_compare, uniquify_cu_indices): New functions
3779 (symbol_kind): New function.
3780 (write_psymtabs_to_index): Remove duplicate CU values.
3781 (write_psymtabs_to_index): Write .gdb_index version 7.
3785 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3786 * configure: Regenerate.
3790 * python/py-inferior.c: Update comments of infpy_read_memory
3791 and infpy_write_memory.
3796 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3797 (push_type_address_space): Remove.
3798 * parse.c (insert_into_type_stack): New function.
3799 (insert_type): Likewise.
3800 (insert_type_address_space): Rename from push_type_address_space.
3801 Insert tp_space_identifier.
3802 * c-exp.y (ptr_operator): New production.
3803 (abs_decl): Use ptr_operator.
3804 (space_identifier): Call insert_type_address_space.
3805 (ptype): Don't use const_or_volatile_or_space_identifier.
3806 (const_or_volatile_noopt): Call insert_type.
3807 (conversion_type_id, conversion_declarator): New productions.
3808 (operator): Use conversion_type_id.
3812 * symtab.h (minimal_symbol): New member created_by_gdb.
3813 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3815 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3816 (search_symbols): Call it instead of lookup_symbol.
3817 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3819 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3820 Adjust address for DW_OP_GNU_addr_index.
3821 * dwarf2expr.h (dwarf_expr_context): Update comment.
3822 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3823 all callers updated. Handle TLS vars described with
3824 DW_OP_GNU_const_index.
3825 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3826 and DW_OP_GNU_const_index.
3827 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3829 * block.c (find_block_in_blockvector): Make explicit the fact that we
3830 ignore GLOBAL_BLOCK.
3834 * c-exp.y (operator): Remove trailing space after "delete" and
3840 Switch i386 and derived targets to ON_STACK.
3841 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3842 (amd64_dicos_init_abi): Remove its installment.
3843 * dicos-tdep.c (dicos_init_abi): Remove the
3844 set_gdbarch_call_dummy_location call. Update the comment here.
3845 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3846 (i386_dicos_init_abi): Remove its installment.
3847 * i386-tdep.c (i386_push_dummy_code): New function.
3848 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3849 i386_push_dummy_code.
3853 Remove stale dummy frames.
3854 * breakpoint.c: Include dummy-frame.h.
3855 (longjmp_breakpoint_ops): New variable.
3856 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3857 bp_longjmp_call_dummy.
3858 (bpstat_what, bptype_string, print_one_breakpoint_location)
3859 (init_bp_location): Support bp_longjmp_call_dummy.
3860 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3861 (set_longjmp_breakpoint_for_call_dummy)
3862 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3864 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3865 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3866 FIXME comment and extend the other comment for bp_call_dummy.
3867 (set_longjmp_breakpoint_for_call_dummy)
3868 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3869 * dummy-frame.c: Include gdbthread.h.
3870 (pop_dummy_frame_bpt): New function.
3871 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3872 (dummy_frame_discard): New function.
3873 (cleanup_dummy_frames): Update the comment about longjmps.
3874 * dummy-frame.h (dummy_frame_discard): New declaration.
3875 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3876 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3877 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3878 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3879 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3880 keep_going if IS_LONGJMP and there is no other reason to stop.
3884 * remote-sim.c (sim_command_completer): Initialize
3889 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3890 * dwarf2loc.c (call_site_parameter_matches): Support
3891 CALL_SITE_PARAMETER_PARAM_OFFSET.
3892 (needs_dwarf_reg_entry_value): Push stub value.
3893 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3894 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3895 * gdbtypes.h (enum call_site_parameter_kind): New item
3896 CALL_SITE_PARAMETER_PARAM_OFFSET.
3897 (struct call_site.parameter.u): New field param_offset.
3901 Code cleanup: Generalize call_site.parameter key.
3902 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3903 variable dwarf_reg. New variable kind_u. Update parameters to
3904 push_dwarf_reg_entry_value.
3905 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3906 * dwarf2expr.h (enum call_site_parameter_kind)
3907 (union call_site_parameter_u): Forward declarations.
3908 (struct dwarf_expr_context_funcs): Update parameters and their
3909 description for push_dwarf_reg_entry_value.
3910 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3911 * dwarf2loc.c (call_site_parameter_matches): New function.
3912 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3913 description. Use call_site_parameter_matches.
3914 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3915 Update parameters and their description.
3916 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3917 New variable kind_u. Adjust the caller for updated parameters.
3918 (needs_dwarf_reg_entry_value): Update parameters.
3919 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3920 instead of attr. Update for the changed fields of struct
3921 call_site_parameter.
3922 * gdbtypes.h: Include dwarf2expr.h.
3923 (enum call_site_parameter_kind): New.
3924 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3925 fb_offset into new union u.
3929 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3930 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3935 * amd64-linux-nat.c (compat_x32_clock_t): New.
3936 (compat_x32_siginfo_t): Likewise.
3937 (compat_x32_siginfo_from_siginfo): Likewise.
3938 (siginfo_from_compat_x32_siginfo): Likewise.
3939 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3940 and siginfo_from_compat_x32_siginfo for x32.
3944 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3948 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3949 instead of gdbarch_ptr_bit.
3950 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3951 (amd64_supply_native_gregset): Likewise.
3952 (amd64_collect_native_gregset): Likewise.
3953 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3954 (amd64_supply_xsave): Likewise.
3955 (amd64_collect_fxsave): Likewise.
3956 (amd64_collect_xsave): Likewise.
3960 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3961 (amd64_linux_read_description): Check DS segment register for
3966 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3967 init_cutu_and_read_dies.
3971 * MAINTAINERS (Write After Approval): Add myself to the list.
3975 * valops.c (value_find_oload_method_list): Now static.
3976 * value.h (value_find_oload_method_list): Don't declare.
3980 * valops.c (find_overload_match): Use value_ind.
3984 * infrun.c (handle_inferior_event): Correct indentation.
3988 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3989 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3991 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3992 updated. Handle DEBUG_LOC_START_LENGTH.
3993 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3994 (loclist_describe_location): Ditto.
3999 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4000 after hiding inline functions.
4004 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4005 _initialize_inf_ttrace.
4009 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4010 _initialize_hppa_hpux_nat.
4014 * remote-sim.c (sim_command_completer): Change type of return
4015 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4021 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4022 stack on a 16-byte boundary.
4026 * jit.c (finalize_symtab): Set function's return type to 'void' by
4032 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4033 Move bits common to both the classic LP64 and the new x32 ILP32
4035 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4036 (amd64_x32_linux_init_abi): New function.
4037 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4040 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4041 * i386-tdep.c (i386_pseudo_register_name): Make public.
4042 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4043 * amd64-tdep.c (amd64_dword_names): Add "eip".
4044 (amd64_x32_pseudo_register_type): New function
4045 (amd64_x32_init_abi): New function.
4050 * inferior.h (struct inferior_suspend_state): Comment out.
4051 (struct inferior): Comment out the field suspend.
4052 * infrun.c (struct infcall_suspend_state): Comment out the field
4054 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4059 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4060 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4061 function comment. Return ERROR for unresolved cases. Implement
4062 returning proper NAME.
4063 (yylex): Accept also NAME from classify_inner_name.
4064 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4065 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4067 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4071 * breakpoint.c (condition_completer): New function.
4072 (_initialize_breakpoint): Use it.
4073 * value.c (complete_internalvar): New function.
4074 * value.h (complete_internalvar): Declare.
4078 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4079 * breakpoint.c (catch_syscall_completer): Return a VEC.
4080 * cli/cli-cmds.c (complete_command): Update.
4081 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4082 (complete_on_enum): Likewise.
4083 * command.h: Include gdb_vecs.h.
4084 (completer_ftype): Change return type.
4085 (complete_on_cmdlist, complete_on_enum): Likewise.
4086 * completer.c (noop_completer, filename_completer)
4087 (location_completer): Return a VEC.
4088 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4090 (expression_completer, complete_line_internal, complete_line)
4091 (command_completer): Return a VEC.
4092 (gdb_completion_word_break_characters, line_completion_function):
4094 * completer.h: Include gdb_vecs.h.
4095 (complete_line, noop_completer, filename_completer)
4096 (expression_completer, location_completer, command_completer):
4098 * f-lang.c (f_word_break_characters): Return a VEC.
4099 * interps.c (interpreter_completer): Return a VEC.
4100 * language.h (struct language_defn)
4101 <la_make_symbol_completion_list>: Return a VEC.
4102 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4103 * symtab.c (free_completion_list): Take a VEC.
4104 (return_val_size, return_val_index): Remove.
4105 (return_val): Now a VEC.
4106 (completion_list_add_name): Update.
4107 (default_make_symbol_completion_list_break_on)
4108 (default_make_symbol_completion_list, make_symbol_completion_list)
4109 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4111 (add_filename_to_list): Update.
4112 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4114 (maybe_add_partial_symtab_filename): Update.
4115 (make_source_files_completion_list): Return a VEC.
4116 * symtab.h (default_make_symbol_completion_list_break_on)
4117 (default_make_symbol_completion_list, make_symbol_completion_list)
4118 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4119 (make_source_files_completion_list): Update.
4123 * breakpoint.c (add_catch_command): Use completer_ftype.
4124 * breakpoint.h: Include command.h.
4125 (add_catch_command): Use completer_ftype.
4126 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4127 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4128 Use completer_ftype.
4129 * command.h (completer_ftype): New typedef.
4130 (set_cmd_completer): Use it.
4131 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4136 Partial revert of previous change.
4138 * serial.c (scb_base): New global.
4139 (serial_for_fd): New.
4140 (serial_open, serial_fdopen_ops): Link new serial in open serials
4142 (do_serial_close): Unlink serial from the open serials chain.
4146 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4148 (prepare_for_detach): No longer context switch here in non-stop
4150 (fetch_inferior_event): Ditto.
4151 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4152 to the event thread before removing breakpoints. Switch to the
4153 event thread before inserting breakpoints and resuming.
4154 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4155 event thread before resuming.
4156 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4157 Switch to the event thread before removing breakpoints.
4161 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4162 special characters correctly for the Windows shells. See
4163 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4165 [!__MINGW32__]: Remove extra double quote character from special
4170 * ui-out.h: Remove #if 0 declarations.
4171 * ui-out.c: Remove #if 0 functions.
4175 * ser-base.c (run_async_handler_and_reschedule): New.
4176 (fd_event, push_event): Use it.
4177 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4178 reference count to 1.
4179 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4181 (serial_is_open, serial_ref, serial_unref): New.
4182 * serial.h (serial_open): Adjust comment.
4183 (serial_is_open): Declare.
4184 (serial_close): Adjust comment.
4185 (serial_ref, serial_unref) Declare.
4186 (struct serial): New field 'refcnt'.
4190 Remove #if 0'd "connect" command, and unnecessary associated
4191 refcounting and serial reuse bits.
4193 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4194 * serial.c (last_serial_opened): Delete.
4196 (serial_open): Adjust.
4197 (serial_for_fd): Delete.
4198 (serial_fdopen_ops, do_serial_close): Adjust.
4199 (serial_fdopen_ops): Adjust.
4203 * serial.c (do_serial_close): Remove early return when SCB is
4208 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4212 Fix regression by the "ambiguous linespec" series.
4213 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4214 get_last_displayed_symtab and get_last_displayed_line and depending
4219 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4220 (dw2_find_symbol_file): Use it.
4224 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4225 * mips-linux-tdep.h (mips_signals): New
4229 * infrun.c (handle_inferior_event)
4230 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4232 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4233 exception logic in all cases. Update comments.
4234 (insert_longjmp_resume_breakpoint): Set the exception resume
4239 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4243 * valarith.c (binop_types_user_defined_p): Fix a typo.
4248 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4249 * arch-utils.h: Declare.
4250 * gdbarch.sh: Add return_in_first_hidden_param_p.
4251 * gdbarch.c, gdbarch.h: Regenerated.
4252 * infcall.c (call_function_by_hand): Call
4253 gdbarch_return_in_first_hidden_param_p instead of
4254 language_pass_by_reference.
4256 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4257 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4258 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4259 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4260 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4261 `cplus_return_struct_by_reference'.
4262 (tic6x_return_value): Handle language cplusplus.
4263 (tic6x_return_in_first_hidden_param_p): New.
4264 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4268 * dwarf2read.c (dwarf2_cu): Add comment.
4272 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4274 (mips_eabi_push_dummy_call): Likewise.
4275 (mips_n32n64_push_dummy_call): Likewise.
4276 (mips_o32_push_dummy_call): Likewise.
4277 (mips_o64_push_dummy_call): Likewise.
4281 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4285 * mips-tdep.c (mips_pseudo_register_type): Use
4286 mips_float_register_p.
4290 * infrun.c (handle_inferior_event): Remove calls to
4291 reinit_frame_cache that follow a context_switch call.
4295 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4296 context_switch and remove stale comment.
4300 * infrun.c (struct execution_control_state): Remove
4301 `new_thread_event' field.
4302 (handle_inferior_event): Simplify new threads handling; don't
4303 resume the inferior if we find a new thread.
4307 * NEWS: Document the deprecation of SH's 'regs' command.
4308 * inferior.h (all_registers_info): Add function declaration.
4309 * sh-tdep.c (sh_show_regs): Remove variable.
4310 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4311 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4312 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4313 (sh_show_regs_command): Remove functions.
4314 (sh_gdbarch_init): Don't set sh_show_regs.
4315 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4316 'info all-registers'.
4317 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4318 (sh64_show_regs): Remove functions.
4319 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4323 * configure.ac: Move development=true below AC_INIT.
4324 * configure: Regenerate.
4328 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4333 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4334 argument as ssize_t.
4335 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4336 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4337 * target.c (target_read_stack, target_write_memory)
4338 (target_write_raw_memory): Likewise.
4339 * target.h (target_read_stack, target_write_memory)
4340 (target_write_raw_memory): Likewise.
4344 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4345 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4346 * target.c (target_read_memory): Change LEN to ssize_t.
4347 * target.h (target_read_memory): Change LEN to ssize_t.
4353 * breakpoint.c (until_break_command): Only fetch the selected
4354 frame after decode_line_1.
4358 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4359 event breakpoint at _start, __start or main if a program
4360 interpreter is not found.
4364 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4366 * windows-tdep.c: #include "objfiles.h".
4367 (windows_iterate_over_objfiles_in_search_order): New function.
4368 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4369 iterate_over_objfiles_in_search_order gdbarch method to
4370 windows_iterate_over_objfiles_in_search_order.
4371 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4375 * gdbarch.sh: Add generation of
4376 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4377 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4378 (iterate_over_objfiles_in_search_order): New gdbarch method.
4379 * gdbarch.h, gdbarch.c: Regenerate.
4380 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4382 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4384 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4385 out of lookup_symbol_aux_symtabs.
4386 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4387 call to lookup_symbol_aux_objfile.
4388 (struct global_sym_lookup_data): New type.
4389 (lookup_symbol_global_iterator_cb): New function.
4390 (lookup_symbol_global): Search for symbol using
4391 gdbarch_iterate_over_objfiles_in_search_order and
4392 lookup_symbol_global_iterator_cb.
4393 * findvar.c (struct minsym_lookup_data): New type.
4394 (minsym_lookup_iterator_cb): New function.
4395 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4396 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4397 and minsym_lookup_iterator_cb.
4401 Revert the following patch:
4402 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4403 try locating the symbol in the symbol's own objfile first, before
4404 extending the search to all objfiles.
4405 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4406 out of lookup_symbol_aux_symtabs.
4407 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4408 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4409 Do not search EXCLUDE_OBJFILE.
4410 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4411 (lookup_symbol_global): Search for matches in the block's objfile
4412 first, before searching all other objfiles.
4416 * breakpoint.c (find_condition_and_thread): Stop parsing
4417 as soon as the first invalid keyword is found.
4421 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4425 * config/djgpp/djcheck.sh: Add copyright header.
4429 * copyright.py (update_files, main): Fix path to update-copyright
4434 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4435 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4436 for which a reminder to update by hand is printed.
4440 * buildsym.c (make_blockvector): Add comment.
4444 * arch-utils.c (default_gdb_signal_from_target): Delete.
4445 * arch-utils.h (default_gdb_signal_from_target): Delete.
4446 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4447 gdbarch_gdb_signal_from_target_p.
4448 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4450 * gdbarch.h: Regenerate.
4451 * gdbarch.c: Regenerate.
4455 * gdbarch.sh (gdb_signal_from_target): Mention that the
4456 implementation of the method must be host independent.
4457 * gdbarch.h: Regenerate.
4461 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4463 (target_read_memory_bfd): New function.
4464 (symbol_file_add_from_memory): Use it.
4468 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4470 (basic_lookup_transparent_type): Ditto.
4472 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4473 (ALL_PRIMARY_SYMTABS): Use it.
4474 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4475 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4476 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4477 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4478 (basic_lookup_transparent_type): Ditto.
4482 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4483 it to optimize resolution of demangled name.
4487 * configure.ac (development): Define new variable.
4488 Call AC_CHECK_LIB for mcheck if $development.
4489 (ERROR_ON_WARNING): Enable it by default only if $development.
4490 * config.in: Regenerate.
4491 * configure: Regenerate.
4495 * target.c (target_read_memory): Make LEN argument as size_t.
4496 * target.h (target_read_memory): Likewise.
4500 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4504 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4505 BookE interface for PowerPC server processors if not available
4506 in the Linux Kernel.
4510 * linespec.c (decode_objc): Add cleanup to free
4512 (find_linespec_symbols): Add cleanup to free CLASSES.
4513 * symfile.c (find_separate_debug_file_by_debuglink): Add
4514 cleanup to free DEBUGLINK.
4515 * ui-out.c (clear_header_list): No need to check if
4516 HEADER_NEXT.COLHDR is NULL.
4517 Free HEADER_NEXT.COL_NAME.
4521 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4526 * configure.host (gdb_host_cpu): Handle tilegx*.
4527 (gdb_host): Handle tilegx-*-linux*.
4528 * tilegx-linux-nat.c: New file.
4529 * config/tilegx/linux.mh: New file.
4533 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4534 tilegx-linux-tdep.o.
4535 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4536 tilegx-linux-tdep.c.
4537 * configure.tgt: Handle tilegx-*-linux*.
4538 * tilegx-tdep.h: New file.
4539 * tilegx-tdep.c: New file.
4540 * tilegx-linux-tdep.c: New file.
4541 * regformats/reg-tilegx.dat: New file.
4545 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4546 accounting of hw watchpoints on ppc.
4550 * source.c (openp): Expand tilde in path entries.
4554 * buildsym.c (block_compar): Fix comment.
4555 (end_symtab): Fix and clarify some comments.
4557 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4558 cleanup_undefined_types.
4559 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4560 All callers updated.
4564 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4566 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4567 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4569 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4574 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4575 (struct darwin_info): ... New struct.
4576 (solib_darwin_pspace_data): New variable.
4577 (darwin_pspace_data_cleanup): New function.
4578 (get_darwin_info): Likewise.
4579 (darwin_dyld_version_ok, darwin_load_image_infos)
4580 (darwin_solib_get_all_image_info_addr_at_init)
4581 (darwin_solib_read_all_image_info_addr): Add info argument.
4583 (darwin_current_sos): Use per pspace structure.
4584 (darwin_solib_create_inferior_hook): Likewise.
4585 (darwin_clear_solib): Likewise.
4586 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4590 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4591 block that uses them. Clear ecss before handling each event.
4595 * solib-svr4.c (svr4_current_sos): New comment on
4596 svr4_current_sos_via_xfer_libraries fall back.
4600 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4601 it as a fallback for TYPE_IS_OPAQUE.
4602 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4603 symbols for lookup_symbol.
4607 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4608 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4609 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4610 (check_producer): ... this new function, which also checks for ICC
4611 and caches the result.
4612 (producer_is_icc): New function.
4613 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4620 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4621 (default_gdb_signal_to_target): ... this. Add comment.
4622 (default_gdb_signal_from_host): Rename to ...
4623 (default_gdb_signal_from_target): ... this. Add comment.
4624 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4625 (default_gdb_signal_to_target): ... this.
4626 (default_gdb_signal_from_host): Rename to ...
4627 (default_gdb_signal_from_target): ... this.
4628 * corelow.c (core_open): Adjust to naming change. Replace comment.
4629 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4630 (gdb_signal_from_target): ... this. Adjust to
4631 default_gdb_signal_from_host naming change. Extend comment.
4632 (gdb_signal_to_host): Rename to ...
4633 (gdb_signal_to_target): ... this. Adjust to
4634 default_gdb_signal_to_host naming change.
4635 * gdbarch.h, gdbarch.c: Renegerate.
4641 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4647 Replace target_signal with gdb_signal throughout.
4653 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4654 string, instead of reusing the va_list argument.
4658 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4663 * symtab.c (search_symbols): Formatting fixes.
4664 (print_symbol_info): Formatting fixes.
4666 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4667 int64_t change to leb128 API.
4668 (read_encoded_value, decode_frame_entry_1): Ditto.
4669 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4670 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4671 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4672 (execute_stack_op): Ditto.
4673 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4674 (safe_read_uleb128, safe_read_sleb128): Ditto.
4675 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4676 (dwarf2_compile_expr_to_ax): Ditto.
4677 (locexpr_describe_location_piece): Ditto.
4678 (disassemble_dwarf_expression): Ditto.
4679 (locexpr_describe_location_1): Ditto.
4684 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4685 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4686 (mi-cmd-info.o): New rule.
4687 * osdata.h (info_osdata_command): New declaration.
4688 * osdata.c (info_osdata_command): Change to non-static.
4689 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4690 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4691 * mi/mi-cmd-info.c: New file.
4695 * symtab.c (search_symbols): Pass NULL for file_matcher to
4696 expand_symtabs_matching if there are no files to match.
4698 * gdbtypes.c (lookup_typename): Simplify.
4702 * arch-utils.h (default_target_signal_to_host): Delete.
4703 * arch-utils.c (default_target_signal_to_host): Delete.
4704 * gdbarch.sh (target_signal_to_host): Remove.
4705 * gdbarch.h, gdbarch.c: Regenerate.
4709 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4711 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4712 (execute_cfa_program): Update to match API of leb128 functions.
4713 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4715 (read_unsigned_leb128, read_signed_leb128): Delete.
4716 (read_initial_length): Change type of buf argument to
4718 (read_encoded_value): Update to match API of leb128 functions.
4719 (decode_frame_entry): Change result to "const gdb_byte *", and
4720 similarly for "start" parameter.
4721 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4722 (dwarf2_build_frame_info): Change local frame_ptr to
4724 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4725 read_uleb128, read_sleb128. All callers updated.
4726 (safe_skip_leb128): New function.
4727 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4728 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4729 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4730 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4731 read_uleb128, read_sleb128.
4732 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4733 (execute_stack_op): Update to match API of leb128 functions.
4734 * dwarf2expr.h: #include "leb128.h".
4735 (read_uleb128, read_sleb128): Delete.
4736 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4737 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4738 * dwarf2loc.c (debug_loc_kind): New enum.
4739 (decode_debug_loc_addresses): New function.
4740 (decode_debug_loc_dwo_addresses): New function.
4741 (dwarf2_find_location_expression): Rewrite.
4742 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4743 (locexpr_describe_location_piece): Ditto.
4744 (disassemble_dwarf_expression): Ditto.
4745 (locexpr_describe_location_1): Ditto.
4746 (loclist_describe_location): Rewrite.
4747 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4748 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4749 (dwarf2_section_buffer_overflow_complaint): Renamed from
4750 dwarf2_macros_too_long_complaint. All callers updated.
4751 (skip_leb128): Delete.
4752 (init_cu_die_reader): Initialize reader->buffer_end.
4753 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4754 (skip_form_bytes): New arg buffer_end. All callers updated.
4755 Replace call to skip_leb128 with gdb_skip_leb128.
4756 (skip_unknown_opcode): New arg mac_end. All callers updated.
4757 (fill_in_loclist_baton): Initialize baton->from_dwo.
4761 * mips-linux-nat.c (mips_linux_read_description): Use a more
4762 verbose error message.
4766 * NEWS: Add MIPS/Linux DSP support.
4767 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4768 (SIGCONTEXT_DSPCTL): New macro.
4769 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4770 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4771 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4772 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4773 (N64_SIGCONTEXT_HI3): Likewise.
4774 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4775 (N64_SIGCONTEXT_LO3): Likewise.
4776 (N64_SIGCONTEXT_DSPCTL): Likewise.
4777 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4778 (mips_linux_o32_sigframe_init): Handle DSP registers.
4779 (mips_linux_n32n64_sigframe_init): Likewise.
4783 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4788 * target.h (store_waitstatus): Move declaration ...
4789 * inf-child.h (store_waitstatus): ... here.
4790 * target.c: Move inclusion of gdb_wait.h, and ...
4791 (store_waitstatus): ... this ...
4792 * inf-child.c: ... here.
4793 * linux-nat.c: Include inf-child.h.
4794 * rs6000-nat.c: Include inf-child.h.
4795 * spu-linux-nat.c: Include inf-child.h.
4799 * tracepoint.c (start_tracing): Add missing i18n markup.
4800 (stop_tracing, set_trace_user): Ditto.
4801 (set_trace_notes, set_trace_stop_notes): Ditto.
4806 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4808 * value.h (value_cast_pointers): Update.
4809 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4810 (value_cast): Update.
4811 (update_search_result): New function.
4812 (do_search_struct_field): New, from search_struct_field. Check
4813 for ambiguous results.
4814 (search_struct_field): Rewrite.
4815 * infcall.c (value_arg_coerce): Update.
4816 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4817 value_cast_pointers.
4818 * ada-lang.c (ada_convert_actual): Update.
4822 * macroexp.c (macro_stringify): Terminate the string.
4826 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4828 * auto-load.c (auto_load_expand_dir_vars): New function.
4829 (auto_load_safe_path_vec_update): Use it, remove the
4830 substitute_path_component call thanks to it.
4831 (auto_load_objfile_script): Remove the debug_file_directory processing.
4832 Use auto_load_expand_dir_vars, remove the substitute_path_component
4834 * configure: Regenerate.
4835 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4836 path. Escape $ also for $debugdir.
4837 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4838 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4842 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4843 before use. Check for symtab->includes == NULL before scanning it.
4847 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4851 * NEWS: Add microMIPS support and "set mips compression",
4852 "show mips compression" commands.
4853 * mips-tdep.h (mips_isa): New enum.
4854 (gdbarch_tdep): Add mips_isa.
4855 (mips_pc_is_mips16): Update prototype.
4856 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4857 * mips-tdep.c (mips_compression_mips16): New variable.
4858 (mips_compression_micromips): Likewise.
4859 (mips_compression_strings): Likewise.
4860 (mips_compression_string): Likewise.
4861 (is_mips16_isa, is_micromips_isa): New functions.
4862 (is_mips16_addr): Rename to...
4863 (is_compact_addr): ... this.
4864 (unmake_mips16_addr): Likewise to...
4865 (unmake_compact_addr): ... this.
4866 (make_mips16_addr): Likewise to...
4867 (make_compact_addr): ... this.
4868 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4870 (mips_elf_make_msymbol_special): Handle microMIPS code.
4871 (msymbol_is_special): Rename to...
4872 (msymbol_is_mips16): ... this.
4873 (mips_make_symbol_special, mips_pc_is_mips16): Update
4875 (msymbol_is_mips, msymbol_is_micromips): New functions.
4876 (mips16_to_32_reg): Rename to...
4877 (mips_reg3_to_reg): ... this.
4878 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4879 (mips_pc_isa): Likewise.
4880 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4882 (mips_fetch_instruction): Pass return status instead of printing
4883 an error message if requested. Handle microMIPS code. Bail out
4885 (micromips_op): New macro.
4886 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4887 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4888 (b6s4_op, b7s3_reg): Likewise.
4889 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4890 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4891 (mips_insn_size): New function.
4892 (mips32_next_pc): Update mips_fetch_instruction call.
4893 (micromips_relative_offset7): New function.
4894 (micromips_relative_offset10): Likewise.
4895 (micromips_relative_offset16): Likewise.
4896 (micromips_pc_insn_size): Likewise.
4897 (micromips_bc1_pc): Likewise.
4898 (micromips_next_pc): Likewise.
4899 (unpack_mips16): Update mips_fetch_instruction call.
4900 (extended_mips16_next_pc): Update according to change to
4902 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4904 (mips16_scan_prologue): Update mips_fetch_instruction call.
4905 Update according to change to mips16_to_32_reg.
4906 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4907 (mips_insn16_frame_base_sniffer): Likewise.
4908 (micromips_decode_imm9): New function.
4909 (micromips_scan_prologue): Likewise.
4910 (mips_micro_frame_cache): Likewise.
4911 (mips_micro_frame_this_id): Likewise.
4912 (mips_micro_frame_prev_register): Likewise.
4913 (mips_micro_frame_sniffer): Likewise.
4914 (mips_micro_frame_unwind): New variable.
4915 (mips_micro_frame_base_address): New function.
4916 (mips_micro_frame_base): New variable.
4917 (mips_micro_frame_base_sniffer): New function.
4918 (mips32_scan_prologue): Update mips_fetch_instruction call.
4919 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4920 rather than for MIPS16.
4921 (mips_insn32_frame_base_sniffer): Likewise.
4922 (mips_addr_bits_remove): Handle microMIPS code.
4923 (deal_with_atomic_sequence): Rename to...
4924 (mips_deal_with_atomic_sequence): ... this. Update the type
4925 of the variable used to hold an instruction. Remove the ISA bit
4926 check. Update mips_fetch_instruction call.
4927 (micromips_deal_with_atomic_sequence): New function.
4928 (deal_with_atomic_sequence): Likewise.
4929 (mips_about_to_return): Handle microMIPS code. Update
4930 mips_fetch_instruction call.
4931 (heuristic_proc_start): Check for the standard MIPS ISA rather
4932 than for MIPS16. Update mips_pc_is_mips16 and
4933 mips_fetch_instruction calls. Handle microMIPS code.
4934 (mips_push_dummy_code): Handle microMIPS code.
4935 (mips_eabi_push_dummy_call): Likewise.
4936 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4937 (mips_o64_push_dummy_call): Handle microMIPS code.
4938 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4939 (is_delayed): Remove function.
4940 (mips_single_step_through_delay): Replace the call to is_delayed
4941 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4942 Handle microMIPS code.
4943 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4945 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4947 (micromips_in_function_epilogue_p): New function.
4948 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4950 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4952 (gdb_print_insn_mips): Likewise.
4953 (mips_breakpoint_from_pc): Likewise.
4954 (mips_remote_breakpoint_from_pc): New function.
4955 (mips32_instruction_has_delay_slot): Simplify making use of the
4956 updated mips_fetch_instruction interface.
4957 (micromips_instruction_has_delay_slot): New function.
4958 (mips16_instruction_has_delay_slot): Simplify making use of the
4959 updated mips_fetch_instruction interface.
4960 (mips_adjust_breakpoint_address): Check for the standard MIPS
4961 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4962 calls. Handle microMIPS code.
4963 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4964 (mips_skip_trampoline_code): Handle microMIPS code.
4965 (global_mips_compression): New function.
4966 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4967 file flags. Register the microMIPS remote breakpoint handler
4968 and heuristic frame unwinder.
4969 (show_mips_compression): New function.
4970 (_initialize_mips_tdep): Add the "set mips compression" and
4971 "show mips compression" commands.
4978 * amd64-darwin-tdep.c:
4979 * arm-symbian-tdep.c:
4983 * bfin-linux-tdep.c:
4990 * dwarf2-frame-tailcall.c:
5019 * microblaze-tdep.c:
5020 * mips-linux-tdep.c:
5028 * python/py-finishbreakpoint.c:
5029 * python/py-inferior.c:
5030 * python/py-infthread.c:
5034 * remote-m32r-sdi.c:
5038 * rs6000-aix-tdep.c:
5064 * amd64-darwin-tdep.c:
5065 * arm-symbian-tdep.c:
5066 * arm-tdep.c: Delete unused variables.
5070 Rename $ddir to $datadir.
5071 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5072 * auto-load.c (auto_load_safe_path_vec_update)
5073 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5074 * configure: Regenerate.
5075 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5076 Likewise. Remove the 'use $ddir' help string.
5080 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5081 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5086 * valprint.h (struct value_print_options) <symbol_print>: New
5088 * valprint.c (user_print_options): Add default for symbol_print.
5089 (show_symbol_print): New function.
5090 (generic_val_print): Respect symbol_print.
5091 (_initialize_valprint): Add "print symbol" setting.
5092 * f-valprint.c (f_val_print): Respect symbol_print.
5093 * c-valprint.c (c_val_print): Respect symbol_print.
5095 * printcmd.c (print_address_symbolic): Return int. Ignore some
5097 (print_address_demangle): Return int.
5098 * defs.h: (print_address_symbolic): Return int.
5099 * value.h (print_address_demangle): Return int.
5103 * valprint.c (val_print_string): Don't print leading space.
5104 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5105 print space before string or vtbl.
5106 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5108 * jv-valprint.c (java_value_print): Print space before string.
5109 * go-valprint.c (print_go_string): Print space before string.
5110 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5111 space before string.
5112 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5113 space before string or vtbl.
5114 * auxv.c (fprint_target_auxv): Print space after address.
5118 * printcmd.c (print_address_demangle): Remove special case for 0.
5122 * printcmd.c (print_address_demangle): Add 'opts' argument.
5123 * p-valprint.c (pascal_val_print): Update.
5124 * jv-valprint.c (java_val_print): Update.
5126 * valprint.c (generic_val_print): Update.
5127 (print_function_pointer_address): Add 'options' argument. Remove
5128 'addressprint' argument. Update.
5129 * m2-valprint.c (print_unpacked_pointer): Update.
5130 * gnu-v3-abi.c (print_one_vtable): Update.
5131 (gnuv3_print_method_ptr): Update.
5132 * f-valprint.c (f_val_print): Update.
5133 * cp-valprint.c (cp_print_value_fields): Update.
5134 * valprint.h (print_function_pointer_address): Update.
5135 * c-valprint.c (c_val_print): Update.
5139 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5140 directly corresponding to the found psymtab.
5141 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5142 (dw2_find_pc_sect_symtab): Use it.
5143 * block.h (blockvector_contains_pc): Declare.
5144 * block.c (find_block_in_blockvector): New function.
5145 (blockvector_for_pc_sect): Use it.
5146 (blockvector_contains_pc): New function.
5150 * mips-tdep.h (mips_write_pc): New prototype.
5151 * mips-tdep.c (mips_write_pc): Make external, add description.
5152 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5157 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5159 (mips_unwind_pc, mips_write_pc): Likewise.
5160 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5165 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5166 proc_warn, proc_error, proc_get_status, proc_flags,
5167 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5168 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5169 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5170 proc_stop_process, proc_wait_for_stop, proc_run_process,
5171 proc_set_traced_signals, proc_set_traced_faults,
5172 proc_set_traced_sysentry, proc_set_traced_sysexit,
5173 proc_set_held_signals, proc_get_held_signals,
5174 proc_get_traced_signals, proc_get_traced_faults,
5175 proc_get_traced_sysentry, proc_get_traced_sysexit,
5176 proc_clear_current_fault, proc_set_current_signal,
5177 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5178 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5179 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5180 proc_get_current_thread, proc_get_current_thread,
5181 proc_get_current_thread, proc_update_threads,
5182 proc_update_threads, proc_update_threads, proc_update_threads,
5183 proc_iterate_over_threads, procfs_find_new_threads,
5184 procfs_pid_to_str): Make static. Remove advance declaration.
5185 (proc_cursig): Make static. Conditionalized defintion on
5186 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5187 (proc_syscall, proc_set_kill_on_last_close,
5188 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5189 proc_get_pending_signals, proc_get_signal_actions,
5190 proc_trace_signal, proc_ignore_signal): Delete.
5194 * coffread.c (cs_section_address): Passing proper argument for
5195 `bfd_get_section_vma'.
5196 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5197 `bfd_get_section_flags'.
5198 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5199 `bfd_get_section_vma'.
5204 * macrotab.h: (macro_define_special): Declare.
5205 (enum macro_special_kind): New.
5206 (struct macro_definition) <argc, replacement>: Update comments.
5207 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5208 (macro_define_object_internal): New function.
5209 (macro_define_object): Use it.
5210 (macro_define_special): New function.
5211 (fixup_definition): New function.
5212 (macro_lookup_definition, foreach_macro_in_scope)
5213 (foreach_macro): Use fixup_definition.
5214 * macroexp.h (macro_stringify): Declare.
5215 * macroexp.c (free_buffer_return_text): New function.
5216 (stringify): Constify "arg".
5217 (macro_stringify): New function.
5218 * dwarf2read.c (macro_start_file): Call macro_define_special.
5223 * breakpoint.h (bp_location): Add related_address member.
5224 * inferior.h (get_return_value): Take a pointer to struct value
5225 instead of struct type for the function requested.
5226 * value.h (using_struct_return): Likewise.
5227 * gdbarch.sh (return_value): Take a pointer to struct value
5228 instead of struct type for the function requested.
5229 * breakpoint.c (set_breakpoint_location_function): Initialize
5230 related_address for bp_gnu_ifunc_resolver breakpoints.
5231 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5232 requested function's address to gdbarch_return_value.
5233 * eval.c (evaluate_subexp_standard): Pass the requested
5234 function's address to using_struct_return.
5235 * infcall.c (call_function_by_hand): Pass the requested
5236 function's address to using_struct_return and
5237 gdbarch_return_value.
5238 * infcmd.c (get_return_value): Take a pointer to struct value
5239 instead of struct type for the function requested.
5240 (print_return_value): Update accordingly.
5241 (finish_command_continuation): Likewise.
5242 * stack.c (return_command): Pass the requested function's
5243 address to using_struct_return and gdbarch_return_value.
5244 * value.c (using_struct_return): Take a pointer to struct value
5245 instead of struct type for the function requested. Pass the
5246 requested function's address to gdbarch_return_value.
5247 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5248 New function_value member, replacing function_type.
5249 (bpfinishpy_dealloc): Update accordingly.
5250 (bpfinishpy_pre_stop_hook): Likewise.
5251 (bpfinishpy_init): Likewise. Record the requested function's
5253 * mips-tdep.c (mips_fval_reg): New enum.
5254 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5255 words put in GP registers.
5256 (mips_o64_push_dummy_call): Update a comment.
5257 (mips_o32_return_value): Take a pointer to struct value instead
5258 of struct type for the function requested and use it to check if
5259 using the MIPS16 calling convention. Return the designated
5260 general purpose registers for floating-point values returned in
5262 (mips_o64_return_value): Likewise.
5263 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5264 (ppc_sysv_abi_broken_return_value): Likewise.
5265 (ppc64_sysv_abi_return_value): Likewise.
5266 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5267 value instead of struct type for the function requested.
5268 * amd64-tdep.c (amd64_return_value): Likewise.
5269 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5270 * arm-tdep.c (arm_return_value): Likewise.
5271 * avr-tdep.c (avr_return_value): Likewise.
5272 * bfin-tdep.c (bfin_return_value): Likewise.
5273 * cris-tdep.c (cris_return_value): Likewise.
5274 * frv-tdep.c (frv_return_value): Likewise.
5275 * h8300-tdep.c (h8300_return_value): Likewise.
5276 (h8300h_return_value): Likewise.
5277 * hppa-tdep.c (hppa32_return_value): Likewise.
5278 (hppa64_return_value): Likewise.
5279 * i386-tdep.c (i386_return_value): Likewise.
5280 * ia64-tdep.c (ia64_return_value): Likewise.
5281 * iq2000-tdep.c (iq2000_return_value): Likewise.
5282 * lm32-tdep.c (lm32_return_value): Likewise.
5283 * m32c-tdep.c (m32c_return_value): Likewise.
5284 * m32r-tdep.c (m32r_return_value): Likewise.
5285 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5286 * m68k-tdep.c (m68k_return_value): Likewise.
5287 (m68k_svr4_return_value): Likewise.
5288 * m88k-tdep.c (m88k_return_value): Likewise.
5289 * mep-tdep.c (mep_return_value): Likewise.
5290 * microblaze-tdep.c (microblaze_return_value): Likewise.
5291 * mn10300-tdep.c (mn10300_return_value): Likewise.
5292 * moxie-tdep.c (moxie_return_value): Likewise.
5293 * mt-tdep.c (mt_return_value): Likewise.
5294 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5295 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5296 (ppc_sysv_abi_broken_return_value): Likewise.
5297 (ppc64_sysv_abi_return_value): Likewise.
5298 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5299 * rl78-tdep.c (rl78_return_value): Likewise.
5300 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5301 * rx-tdep.c (rx_return_value): Likewise.
5302 * s390-tdep.c (s390_return_value): Likewise.
5303 * score-tdep.c (score_return_value): Likewise.
5304 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5305 (sh_return_value_fpu): Likewise.
5306 * sh64-tdep.c (sh64_return_value): Likewise.
5307 * sparc-tdep.c (sparc32_return_value): Likewise.
5308 * sparc64-tdep.c (sparc64_return_value): Likewise.
5309 * spu-tdep.c (spu_return_value): Likewise.
5310 * tic6x-tdep.c (tic6x_return_value): Likewise.
5311 * v850-tdep.c (v850_return_value): Likewise.
5312 * vax-tdep.c (vax_return_value): Likewise.
5313 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5314 * xtensa-tdep.c (xtensa_return_value): Likewise.
5315 * gdbarch.c: Regenerate.
5316 * gdbarch.h: Regenerate.
5320 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5324 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5325 of command in two error message.
5329 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5333 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5337 * NEWS (show auto-load scripts-directory): Add forgotten command.
5341 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5346 * amd64-tdep.c: Include features/i386/x32.c and
5347 features/i386/x32-avx.c.
5348 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5349 initialize_tdesc_x32_avx.
5354 * breakpoint.h (enum bptype): New type bp_dprintf.
5355 (struct breakpoint): New field extra_string.
5356 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5357 (create_breakpoint): Add extra_string arg.
5358 * breakpoint.c (dprintf_breakpoint_ops): New.
5359 (is_breakpoint): Add bp_dprintf.
5360 (bpstat_what): Add dprintf case.
5361 (bptype_string): Ditto.
5362 (print_one_breakpoint_location): Ditto.
5363 (init_bp_location): Ditto.
5364 (bkpt_print_mention): Ditto.
5365 (dprintf_style_enums): New array.
5366 (dprintf_style): New global.
5367 (dprintf_function): New global.
5368 (dprintf_channel): New global.
5369 (update_dprintf_command_list): New function.
5370 (update_dprintf_commands): New function.
5371 (init_breakpoint_sal): Add extra_string argument, handle it.
5372 (create_breakpoint_sal): Add extra_string argument.
5373 (create_breakpoints_sal): Add extra_string argument, update callers.
5374 (find_condition_and_thread): Add extra argument.
5375 (create_breakpoint): Add extra_string argument, record it.
5376 (dprintf_command): New function.
5377 (break_command_1): Add arg to create_breakpoint call.
5378 (handle_gnu_v3_exceptions): Ditto.
5379 (trace_command): Ditto.
5380 (ftrace_command): Ditto.
5381 (strace_command): Ditto.
5382 (bkpt_print_mention): Add dprintf case.
5383 (create_breakpoint_sal_default): Add extra_string argument.
5384 (_initialize_breakpoint): Add new commands.
5385 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5386 * python/py-breakpoint.c (bppy_init): Ditto.
5387 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5391 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5395 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5400 Add a new function gdb.find_pc_line to the Python API.
5401 * NEWS (Python Scripting): Add entry about the new function.
5402 * python/python.c (gdbpy_find_pc_line): New function which
5403 implements gdb.find_pc_line.
5404 (GdbMethods): Add entry for the new function.
5408 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5409 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5413 * inferior.c: Include completer.h
5414 (initialize_inferiors): Set completer of add-inferior to
5419 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5420 gdbarch_ptr_bit for x32 core dump.
5424 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5425 and features/i386/x32-avx-linux.c.
5430 * NEWS: Describe new info os commands.
5431 * common/linux-osdata.c (PID_T, TIME_T): Define.
5432 (MAX_PID_T_STRLEN): New.
5433 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5435 (command_from_pid): Add comment. Change to use PID_T.
5436 (commandline_from_pid): Change to use PID_T.
5437 (user_from_pid): Add comment.
5438 (get_process_owner): Add comment. Change to use PID_T and
5440 (get_number_of_cpu_cores): Add comment.
5441 (get_cores_used_by_process): Add comment. Change to use PID_T and
5443 (linux_xfer_osdata_processes): Change to use PID_T and
5445 (compare_processes): New function.
5446 (linux_xfer_osdata_processgroups): New function.
5447 (linux_xfer_osdata_threads): Change to use PID_T.
5448 (linux_xfer_osdata_fds): New function.
5449 (format_socket_state, print_sockets): New functions.
5450 (union socket_addr): New union.
5451 (linux_xfer_osdata_isockets): New function.
5452 (time_from_time_t, group_from_gid): New functions.
5453 (linux_xfer_osdata_shm): New function.
5454 (linux_xfer_osdata_sem): New function.
5455 (linux_xfer_osdata_msg): New function.
5456 (linux_xfer_osdata_modules): New function.
5457 (osdata_table): Add new entries.
5458 * common/buffer.c (buffer_xml_printf): Add support for long and
5459 long long format specifiers.
5463 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5464 (tdesc_x32_avx_linux): Likewise.
5468 Implement multi-component --with-auto-load-dir.
5469 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5471 (--with-auto-load-safe-path): Update the default value description.
5472 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5474 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5475 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5476 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5477 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5478 "set auto-load scripts-directory".
5479 * config.in: Regenerate.
5480 * configure: Regenerate.
5481 * configure.ac (--with-auto-load-dir): New configure option.
5482 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5486 Provide $ddir substitution for --with-auto-load-safe-path.
5487 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5489 * auto-load.c: Include observer.h.
5490 (auto_load_safe_path_vec_update): Call substitute_path_component for
5491 each component. New variable ddir_subst.
5492 (auto_load_gdb_datadir_changed): New function.
5493 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5494 AUTO_LOAD_SAFE_PATH. New comment.
5495 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5496 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5497 * config.in: Regenerate.
5498 * configure: Regenerate.
5499 * configure.ac (--auto-load-safe-path): Rename
5500 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5501 GDB_DATADIR/auto-load.
5502 * defs.h (substitute_path_component): New declaration.
5503 * top.c: Include observer.h.
5504 (set_gdb_datadir): New function.
5505 (init_main): Install it for "set data-directory".
5506 * utils.c (substitute_path_component): New function.
5510 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5511 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5512 DEBUG_FILE_DIRECTORY. Handle multiple components of
5513 DEBUG_FILE_DIRECTORY.
5517 * dwarf2read.c (recursively_write_psymbols): New function.
5518 (write_psymtabs_to_index): Use it.
5520 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5522 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5523 (load_partial_comp_unit): Update.
5524 (queue_comp_unit): Add argument 'pretend_language'.
5525 (process_queue): Update.
5526 (psymtab_to_symtab_1): Skip dependencies that have a user.
5527 (load_partial_comp_unit_reader): Give meaning to the 'data'
5529 (load_full_comp_unit): Add 'pretend_language' argument.
5530 (process_full_comp_unit): Add 'pretend_language' argument. Set
5532 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5534 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5535 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5537 (prepare_one_comp_unit): Add 'pretend_language' argument.
5539 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5540 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5541 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5542 (dw2_do_instantiate_symtab): Check whether symtab was read in
5544 (dw2_instantiate_symtab): Add assertion. Call
5545 process_cu_includes.
5546 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5547 (partial_symtab_p): New typedef.
5548 (set_partial_user): New function.
5549 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5550 (scan_partial_symbols): Add imported CU to imported_symtabs.
5551 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5552 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5553 (get_symtab, recursively_compute_inclusions)
5554 (compute_symtab_includes, process_cu_includes)
5555 (process_imported_unit_die): New functions.
5556 (process_die) <DW_TAG_imported_unit>: New case.
5557 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5559 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5561 (struct partial_die_info) <locdesc>: Remove.
5563 (process_psymtab_comp_unit): Add 'read_partial' argument.
5565 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5566 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5567 (add_partial_symbol): Update.
5568 (process_die): Handle DW_TAG_partial_unit.
5569 (read_file_scope): Update comment.
5570 (load_partial_dies): Handle DW_TAG_imported_unit.
5571 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5572 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5576 * cc-with-dwz.sh: New file.
5580 * symtab.h (struct symtab) <includes, user>: New fields.
5581 * block.h (struct block_iterator) <d, idx, which>: New fields.
5582 * block.c (initialize_block_iterator, find_iterator_symtab)
5583 (block_iterator_step, block_iter_name_step)
5584 (block_iter_match_step): New functions.
5585 (block_iterator_first, block_iterator_next)
5586 (block_iter_name_first, block_iter_name_next)
5587 (block_iter_match_first, block_iter_match_next): Rewrite.
5588 (get_block_symtab): New function.
5592 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5594 * jit.c (finalize_symtab): Use allocate_global_block,
5596 * buildsym.c (finish_block_internal): New function, from old
5598 (finish_block): Rewrite.
5599 (end_symtab): Use finish_block_internal, set_block_symtab.
5600 * block.h (struct global_block): New.
5601 (allocate_global_block, set_block_symtab): Declare.
5602 * block.c (allocate_global_block, set_block_symtab): New
5607 * psymtab.c (partial_map_expand_apply): Add assertion.
5608 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5609 (psymtab_to_symtab): Find unshared psymtab.
5610 (dump_psymtab): Print including psymtabs.
5611 (recursively_search_psymtabs): New function.
5612 (expand_symtabs_matching_via_partial): Use it.
5613 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5615 (enum psymtab_search_status): New.
5619 * tracepoint.c (scope_info): Update.
5620 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5621 (find_pc_sect_symtab, search_symbols)
5622 (default_make_symbol_completion_list_break_on)
5623 (make_file_symbol_completion_list): Update.
5624 * symmisc.c (dump_symtab_1): Update.
5625 * stack.c (print_frame_args, iterate_over_block_locals)
5626 (print_frame_labels, iterate_over_block_arg_vars): Update.
5627 * python/py-block.c (block_object) <dict>: Remove.
5629 <iter>: Change type.
5630 (blpy_iter): Update.
5631 (blpy_block_syms_iternext): Update.
5632 * psymtab.c (map_block): Use block iterators.
5633 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5634 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5635 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5636 * infrun.c (check_exception_resume): Update.
5637 * cp-support.c (make_symbol_overload_list_block): Update.
5638 * coffread.c (patch_opaque_types): Update.
5639 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5640 * block.h (struct block_iterator): New.
5641 (block_iterator_first, block_iterator_next, block_iter_name_first)
5642 (block_iter_name_next, block_iter_match_first)
5643 (block_iter_match_next): Declare.
5644 (ALL_BLOCK_SYMBOLS): Redefine.
5645 * block.c (block_iterator_first, block_iterator_next)
5646 (block_iter_name_first, block_iter_name_next)
5647 (block_iter_match_first, block_iter_match_next): New functions.
5648 * ada-lang.c (ada_add_block_symbols)
5649 (ada_make_symbol_completion_list): Use block iterator.
5653 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5654 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5655 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5656 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5657 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5662 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5663 print-file-var-lib2.c, print-file-var-main.c and
5664 print-file-var.exp (located in gdb/testsuite/gdb.base).
5668 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5669 try locating the symbol in the symbol's own objfile first, before
5670 extending the search to all objfiles.
5671 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5672 out of lookup_symbol_aux_symtabs.
5673 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5674 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5675 Do not search EXCLUDE_OBJFILE.
5676 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5677 (lookup_symbol_global): Search for matches in the block's objfile
5678 first, before searching all other objfiles.
5682 * printcmd.c (set_command): Add pre/post inc/dec.
5686 * gdb.1: Document -ex option.
5690 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5691 * inferior.h (AT_SYMBOL): Delete.
5695 * mips-tdep.c (mips_push_dummy_code): New function.
5696 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5697 ON_STACK and install mips_push_dummy_code as our gdbarch
5698 push_dummy_code routine.
5702 * target.c (set_maintenance_target_async_permitted): Rename to ...
5703 (set_target_async_command): ... this.
5704 (show_maintenance_target_async_permitted): Rename to ...
5705 (show_target_async_command): ... this.
5706 (initialize_targets): Adjust.
5710 * go-exp.y (classify_name): Add missing assignment of fields of
5715 Display the ">" prompt in interactive mode while reading canned
5716 commands, even when the current interpreter is MI.
5718 * interps.c (interp_set_temp): New function.
5720 * interps.h (interp_set_temp): Add prototype.
5722 * cli/cli-script.c (restore_interp): New cleanup function.
5723 (read_command_lines): Temporarily override the current interpreter
5724 with CLI and arrange for restoring the original one.
5728 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5732 * probe.c (parse_probes): Move conditional to check for
5733 debuginfo files from here...
5734 * stap-probe.c (stap_get_probes): ... to here.
5739 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5740 `movl %esp, %ebp' for the X32 ABI.
5744 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5746 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5747 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5748 (dwarf_stack_op_name): Remove.
5749 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5750 (decode_locdesc): Use get_DW_OP_name.
5751 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5752 (dwarf2_compile_expr_to_ax): Likewise.
5753 (disassemble_dwarf_expression): Likewise.
5754 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5758 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5759 (sh_linux_sigtramp_cache): New function.
5760 (sh_linux_sigreturn_init): New function.
5761 (sh_linux_rt_sigreturn_init): New function.
5762 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5764 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5766 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5767 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5768 (sh_linux_init_abi): Add init calls to register new tramp_frame
5769 definitions under 32-bit SH, update comments.
5775 * amd64-linux-tdep.c: Include glibc-tdep.h.
5776 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5777 gdbarch_skip_solib_resolver callback.
5781 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5782 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5783 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5784 (add_auto_load_safe_path): Change the error message.
5785 (_initialize_auto_load): Change the "safe-path" help text.
5786 * configure: Regenerate
5787 * configure.ac (--without-auto-load-safe-path): Set
5788 WITH_AUTO_LOAD_SAFE_PATH to /.
5792 * stap-probe.h: Do not include unecessary `probe.h'.
5796 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5797 bfd_und_section_ptr.
5798 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5799 and bfd_com_section_ptr.
5803 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5807 * windows-nat.h (segment_register_p_ftype): New typedef.
5808 (windows_set_segment_register_p): Add declaration.
5809 * windows-nat.c (segment_register_p): New static global.
5810 (windows_set_segment_register_p): New function.
5811 (do_windows_fetch_inferior_registers): Add special handling
5812 for segment registers.
5813 * amd64-windows-nat.c: #include "amd64-tdep.h".
5814 (amd64_windows_segment_register_p): New function.
5815 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5816 * i386-windows-nat.c: #include "i386-tdep.h".
5817 (i386_windows_segment_register_p): New function.
5818 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5822 * printcmd.c (set_command): Emit a warning if the expression is not
5827 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5832 * stap-probe.c (stap_is_operator): Change declaration.
5833 (stap_get_opcode): Change return value.
5834 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5835 `stap_parse_argument_1'.
5839 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5844 Add two new methods global_block and static_block to gdb.Symtab
5846 * NEWS (Python scripting): Add entry about the new methods.
5847 * python/py-symtab.c (stpy_global_block): New function which
5848 implements the gdb.Symtab.global_block() method.
5849 (stpy_static_block): New function which implements the
5850 gdb.Symtab.static_block() method.
5851 (symtab_object_methods): Add entries for the two new methods.
5855 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5860 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5862 (i386_process_record): Ditto.
5866 * infcall.c (unwind_on_signal_p): Make static.
5870 * sol-thread.c (solaris_pid_to_str): Make static.
5871 (_initialize_sol_thread): Add prototype.
5875 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5879 * MAINTAINERS: Remove myself.
5883 Fix --without-auto-load-safe-path for MS-Windows host platform.
5884 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5888 * gdb_curses.h: Undefine KEY_EVENT before including curses
5889 headers. Move "#undef MOUSE_MOVED" before any curses header
5894 * features/i386/i386-mmx-linux.c: Regenerate.
5895 * features/rs6000/powerpc-32.c: Likewise.
5896 * features/rs6000/powerpc-32l.c: Likewise.
5897 * features/rs6000/powerpc-403.c: Likewise.
5898 * features/rs6000/powerpc-403gc.c: Likewise.
5899 * features/rs6000/powerpc-405.c: Likewise.
5900 * features/rs6000/powerpc-505.c: Likewise.
5901 * features/rs6000/powerpc-601.c: Likewise.
5902 * features/rs6000/powerpc-602.c: Likewise.
5903 * features/rs6000/powerpc-603.c: Likewise.
5904 * features/rs6000/powerpc-604.c: Likewise.
5905 * features/rs6000/powerpc-64.c: Likewise.
5906 * features/rs6000/powerpc-64l.c: Likewise.
5907 * features/rs6000/powerpc-750.c: Likewise.
5908 * features/rs6000/powerpc-860.c: Likewise.
5909 * features/rs6000/powerpc-e500.c: Likewise.
5910 * features/rs6000/powerpc-e500l.c: Likewise.
5911 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5912 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5913 * features/rs6000/rs6000.c: Likewise.
5917 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5919 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5920 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5921 (stap_parse_argument) <e>: Likewise.
5922 (handle_stap_probe) <byte_order>: Likewise.
5926 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5927 init_and_read_dies_worker. All callers updated.
5928 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5929 replaced with init_cutu_and_read_dies.
5930 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5931 (find_partial_die): Remove FIXME. Don't free current CU.
5935 * contrib: New directory.
5936 * contrib/test_pubnames_and_indexes.py: New file.
5940 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5941 All callers updated.
5942 (init_cu_die_reader): Verify the section is non-empty.
5943 (dwarf_decode_line_header): Don't dereference section->asection
5944 until we know the section is present.
5948 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5953 * gdb-code-style.el: New hook gdb-markup-hook
5954 and gdb-comment-hook.
5958 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5959 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5961 * symfile.h (dwarf2_debug_sections): New member addr.
5962 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5963 (ctx_no_get_addr_index): New function.
5964 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5965 (ctx_no_get_addr_index): Declare.
5966 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5967 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5968 (dwarf_expr_ctx_funcs): Update.
5969 (needs_get_addr_index): New function.
5970 (needs_frame_ctx_funcs): Update.
5971 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5972 * dwarf2read.c: #include "gdbcore.h".
5973 (dwarf2_per_objfile): New members addr, dwo_files.
5974 (dwarf2_elf_names): Add entry for addr.
5975 (struct dwo_section_names): New type.
5976 (dwo_section_names): New static global.
5977 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5978 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5979 old debug_types_section member updated to use this.
5980 Rename member debug_types_section to info_or_types_section,
5982 (signatured_type): Rename member type_offset to type_offset_in_tu,
5983 all uses updated. New member type_offset_in_section.
5984 (struct dwo_sections): New type.
5985 (struct dwo_unit): New type.
5986 (struct dwo_file): New type.
5987 (die_reader_specs): New member dwo_file.
5988 (dwarf2_locate_sections): Watch for .debug_addr.
5989 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5990 (dwarf2_read_section): Get bfd of section from bfd's asection,
5992 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5993 (create_signatured_type_table_from_index): Initialize
5994 sig_type->info_or_types_section.
5995 (dw2_get_file_names): Statement lists for type units with DWO files
5996 live in the DWO file.
5997 (create_debug_types_hash_table): New function.
5998 (create_all_type_units): Rewrite.
5999 (init_cu_die_reader): New arg dwo_file, all callers updated.
6000 (init_and_read_dies_worker): Get section from
6001 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6002 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6003 continue reading the CU/TU from there.
6004 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6005 updated. Get section from this_cu->info_or_types_section.
6006 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6007 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6008 DW_FORM_GNU_str_index.
6009 (hash_dwo_file, eq_dwo_file): New functions.
6010 (allocate_dwo_file_hash_table): New function.
6011 (hash_dwo_unit, eq_dwo_unit): New functions.
6012 (allocate_dwo_unit_table): New function.
6013 (dwarf2_locate_dwo_sections): New function.
6014 (struct create_dwo_info_table_data): New type.
6015 (create_debug_info_hash_table_reader): New function.
6016 (create_debug_info_hash_table): New function.
6017 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6018 (lookup_dwo_file): New function.
6019 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6020 (free_dwo_file, free_dwo_file_cleanup): New functions.
6021 (free_dwo_file_from_slot, free_dwo_files): New functions.
6022 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6023 (dwarf2_record_block_ranges): Ditto.
6024 (read_partial_die): Ditto.
6025 (process_enumeration_scope): Update to use type_offset_in_section.
6026 (read_full_die_1): New function.
6027 (read_full_die): Rewrite.
6028 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6029 DW_FORM_GNU_str_index.
6030 (read_addr_index_1, read_addr_index): New functions.
6031 (read_addr_index_from_leb128): New function.
6032 (struct dwarf2_read_addr_index_data): New type.
6033 (dwarf2_read_addr_index_reader): New function.
6034 (dwarf2_read_addr_index): New function.
6035 (read_str_index): New function.
6036 (leb128_size): New function.
6037 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6038 If processing a type unit from a DWO file, get the line section
6040 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6041 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6042 DW_FORM_GNU_str_index.
6043 (lookup_die_type): Check whether section offset of type's die is
6044 known before looking it up. Remove assert. Condition can
6045 legimately happen for inter-cu type references.
6046 (dwarf_attr_name): Handle Fission attributes.
6047 (dwarf_form_name): Handle Fission forms.
6048 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6049 DW_FORM_GNU_str_index.
6050 (follow_die_sig): Update to use type_offset_in_section.
6051 (decode_locdesc): New case DW_OP_GNU_addr_index.
6052 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6053 DW_FORM_GNU_str_index.
6054 (cu_debug_loc_section): New function.
6055 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6056 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6057 Free DWO files if present.
6058 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6060 Refactor DIE reading.
6061 * dwarf2read.c (dwarf2_per_objfile): Replace members
6062 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6063 (die_reader_specs): New member "die_section". Temporarily make
6064 member "buffer" non-const, pending constifying all info_ptr uses.
6065 (die_reader_func_ftype): New typedef.
6066 (dw2_get_file_names_reader): New function.
6067 (dw2_get_file_names): Rewrite.
6068 (read_and_check_type_unit_head): Rename arg type_offset to
6070 (create_all_type_units): Improve debugging message.
6071 Improve dummy type unit check.
6072 (init_cu_die_reader): New arg "section". All callers updated.
6073 (init_and_read_dies_worker): New function.
6074 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6075 (init_cutu_and_read_dies_no_follow): New function.
6076 (init_cutu_and_read_dies_simple): New function.
6077 (process_psymtab_comp_unit_reader): New function.
6078 (process_psymtab_comp_unit): Delete args section,
6079 is_debug_types_section. Rewrite. All callers updated.
6080 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6081 All callers updated. Rewrite.
6082 (load_partial_comp_unit_reader): New function.
6083 (load_partial_comp_unit): Rewrite.
6084 (skip_children): New arg reader. Delete args buffer, cu.
6085 All callers updated.
6086 (skip_one_die): New arg reader. Delete args buffer, cu.
6087 All callers updated.
6088 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6089 All callers updated.
6090 (load_full_comp_unit_reader): New function.
6091 (load_full_comp_unit): Rewrite.
6092 (read_comp_unit): Delete.
6093 (read_die_and_children_1): Delete, contents moved ...
6094 (read_die_and_children): ... here.
6095 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6096 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6097 All callers updated.
6098 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6099 All callers updated.
6100 (find_partial_die): Rewrite load_all_dies support.
6101 (read_attribute_value): New arg reader. Delete args abfd, cu.
6102 All callers updated.
6103 (read_attribute): New arg reader. Delete args abfd, cu.
6104 All callers updated.
6105 (load_full_type_unit): Add assert.
6106 (read_signatured_type_reader): New function.
6107 (read_signatured_type): Rewrite.
6108 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6109 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6110 All callers updated. Set per_cu->cu = NULL after freeing it.
6111 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6112 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6113 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6114 (set_die_type): Update.
6115 (get_die_type_at_offset): Update.
6116 (read_file_scope): Call prepare_one_comp_unit.
6117 (read_type_unit_scope): Ditto.
6118 (prepare_one_comp_unit): Set producer if present.
6122 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6123 gettext function on `error'.
6127 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6133 * breakpoint.c (struct breakpoint_objfile_data)
6134 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6135 <exception_probes>: New fields.
6136 (free_breakpoint_probes): New function.
6137 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6138 `_Unwind_DebugHook'.
6139 (create_exception_master_breakpoint): Likewise.
6140 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6141 * infrun.c: Including necessary header files for handling SystemTap
6143 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6144 via SystemTap probes.
6145 (check_exception_resume): Remove `func' argument. Handle exception
6146 unwinding breakpoint set via a SystemTap probe.
6147 (insert_exception_resume_from_probe): New function.
6153 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6154 (COMMON_OBS): Likewise.
6155 (HFILES_NO_SRCDIR): Add `probe'.
6156 * NEWS: Mention support for static and SystemTap probes.
6157 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6158 SystemTap probes' arguments parser.
6159 * arm-linux-tdep.c: Including headers needed to perform the parsing
6160 of SystemTap probes' arguments.
6161 (arm_stap_is_single_operand): New function.
6162 (arm_stap_parse_special_token): Likewise.
6163 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6164 probes' arguments parser.
6165 * ax-gdb.c (require_rvalue): Removing static declaration.
6166 (gen_expr): Likewise.
6167 * ax-gdb.h (gen_expr): Declaring function.
6168 (require_rvalue): Likewise.
6169 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6170 (bkpt_probe_breakpoint_ops): New variable.
6171 (momentary_breakpoint_from_master): Set the `probe' value.
6172 (add_location_to_breakpoint): Likewise.
6173 (break_command_1): Using proper breakpoint_ops according to the
6174 argument passed by the user in the command line.
6175 (bkpt_probe_insert_location): New function.
6176 (bkpt_probe_remove_location): Likewise.
6177 (bkpt_probe_create_sals_from_address): Likewise.
6178 (bkpt_probe_decode_linespec): Likewise.
6179 (tracepoint_probe_create_sals_from_address): Likewise.
6180 (tracepoint_probe_decode_linespec): Likewise.
6181 (tracepoint_probe_breakpoint_ops): New variable.
6182 (trace_command): Using proper breakpoint_ops according to the
6183 argument passed by the user in the command line.
6184 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6185 static probes on breakpoints and tracepoints.
6186 * breakpoint.h (struct bp_location) <probe>: New field.
6187 * cli-utils.c (skip_spaces_const): New function.
6188 (extract_arg): Likewise.
6189 * cli-utils.h (skip_spaces_const): Likewise.
6190 (extract_arg): Likewise.
6191 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6192 * configure.ac: Append `stap-probe.o' to be generated when ELF
6194 * configure: Regenerate.
6195 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6196 * elfread.c: Include `probe.h' and `arch-utils.h'.
6197 (probe_key): New variable.
6198 (elf_get_probes): New function.
6199 (elf_get_probe_argument_count): Likewise.
6200 (elf_evaluate_probe_argument): Likewise.
6201 (elf_compile_to_ax): Likewise.
6202 (elf_symfile_relocate_probe): Likewise.
6203 (stap_probe_key_free): Likewise.
6204 (elf_probe_fns): New variable.
6205 (elf_sym_fns): Add `sym_probe_fns' value.
6206 (elf_sym_fns_lazy_psyms): Likewise.
6207 (elf_sym_fns_gdb_index): Likewise.
6208 (_initialize_elfread): Initialize objfile cache for static
6210 * gdb_vecs.h (struct probe): New forward declaration.
6211 (probe_p): New VEC declaration.
6212 * gdbarch.c: Regenerate.
6213 * gdbarch.h: Regenerate.
6214 * gdbarch.sh (stap_integer_prefix): New variable.
6215 (stap_integer_suffix): Likewise.
6216 (stap_register_prefix): Likewise.
6217 (stap_register_suffix): Likewise.
6218 (stap_register_indirection_prefix): Likewise.
6219 (stap_register_indirection_suffix): Likewise.
6220 (stap_gdb_register_prefix): Likewise.
6221 (stap_gdb_register_suffix): Likewise.
6222 (stap_is_single_operand): New function.
6223 (stap_parse_special_token): Likewise.
6224 (struct stap_parse_info): Forward declaration.
6225 * i386-tdep.c: Including headers needed to perform the parsing
6226 of SystemTap probes' arguments.
6227 (i386_stap_is_single_operand): New function.
6228 (i386_stap_parse_special_token): Likewise.
6229 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6230 probes' arguments parser.
6231 * i386-tdep.h (i386_stap_is_single_operand): New function.
6232 (i386_stap_parse_special_token): Likewise.
6233 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6234 * mipsread.c (ecoff_sym_fns): Likewise.
6235 * objfiles.c (objfile_relocate1): Support relocation for static
6237 * parse.c (prefixify_expression): Remove static declaration.
6238 (initialize_expout): Likewise.
6239 (reallocate_expout): Likewise.
6240 * parser-defs.h (initialize_expout): Declare function.
6241 (reallocate_expout): Likewise.
6242 (prefixify_expression): Likewise.
6243 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6244 of SystemTap probes' arguments.
6245 (ppc_stap_is_single_operand): New function.
6246 (ppc_stap_parse_special_token): Likewise.
6247 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6248 probes' arguments parser.
6249 * probe.c: New file, for generic statically defined probe support.
6250 * probe.h: Likewise.
6251 * s390-tdep.c: Including headers needed to perform the parsing of
6252 SystemTap probes' arguments.
6253 (s390_stap_is_single_operand): New function.
6254 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6255 probes' arguments parser.
6256 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6257 * stap-probe.c: New file, for SystemTap probe support.
6258 * stap-probe.h: Likewise.
6259 * symfile.h: Include `gdb_vecs.h'.
6260 (struct sym_probe_fns): New struct.
6261 (struct sym_fns) <sym_probe_fns>: New field.
6262 * symtab.c (init_sal): Initialize `probe' field.
6263 * symtab.h (struct probe): Forward declaration.
6264 (struct symtab_and_line) <probe>: New field.
6265 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6267 (stop_tracing): Likewise.
6268 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6273 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6274 and to compile agent expressions.
6275 * infrun.c (siginfo_make_value): New argument `ignore'.
6276 (siginfo_funcs): New struct.
6277 (_initialize_infrun): New argument when calling
6278 `create_internalvar_type_lazy'.
6279 * thread.c (thread_id_make_value): New argument `ignore'.
6280 (thread_funcs): New struct.
6281 (_initialize_thread): New argument when calling
6282 `create_internalvar_type_lazy'.
6283 * tracepoint.c (sdata_make_value): New argument `ignore'.
6284 (sdata_funcs): New struct.
6285 (_initialize_tracepoint): New argument when calling
6286 `create_internalvar_type_lazy'.
6287 * value.c (make_value): New struct.
6288 (create_internalvar_type_lazy): New argument `data'.
6289 (compile_internalvar_to_ax): New function.
6290 (value_of_internalvar): Properly handling `make_value' case.
6291 (clear_internalvar): Likewise.
6292 (show_convenience): Adding `TRY_CATCH' block.
6293 * value.h (internalvar_make_value): Delete, replace by...
6294 (struct internalvar_funcs): ... this.
6295 (create_internalvar_type_lazy) <fun>: Delete argument.
6296 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6297 (compile_internalvar_to_ax): New function.
6298 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6299 (tlb_funcs): New struct.
6300 (_initialize_windows_tdep): New argument when calling
6301 `create_internalvar_type_lazy'.
6305 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6306 see whether it is an address or a constant offset from DW_AT_low_pc.
6307 (dwarf2_record_block_ranges): Likewise.
6308 (read_partial_die): Likewise.
6312 * MAINTAINERS (Write After Approval): Add myself to the list.
6316 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6317 (proc_prettyprint_signal): Likewise.
6318 (proc_prettyprint_faultset): Likewise.
6319 (proc_prettyprint_fault): Likewise.
6320 (proc_prettyprint_actionset): Likewise.
6321 (proc_prettyprint_flags): Move to new proc-flags.c section.
6322 (proc_prettyfprint_flags): New prototype.
6323 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6324 (proc_syscall, proc_cursig): Likewise.
6325 (proc_set_kill_on_last_close): Likewise.
6326 (proc_unset_kill_on_last_close): Likewise.
6327 (proc_set_watchpoint): Make static.
6328 (proc_delete_dead_threads): Likewise.
6329 (procfs_set_watchpoint): Likewise.
6330 (_initialize_procfs): Add prototype.
6331 * proc-events.c: Include proc-utils.h.
6332 (init_syscall_table): Make static.
6333 * proc-api.c (_initialize_proc_api): Add prototype.
6334 * proc-flags.c: Include proc-utils.h.
6338 * configure.ac: Add AC_ARG_PROGRAM.
6339 * configure: Regenerate.
6343 Fix DW_AT_lower_bound defaults for DWARF-4+.
6344 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6345 high. New variable low_default_is_valid. Implement DWARF-4+
6346 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6347 no default by the DWARF standard.
6352 * infrun.c (handle_inferior_event): Move the check for return
6353 trampolines ahead of the check for function trampolines.
6354 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6355 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6356 (mips_str_mips16_ret_stub): Likewise.
6357 (mips_str_call_fp_stub): Likewise.
6358 (mips_str_call_stub): Likewise.
6359 (mips_str_fn_stub): Likewise.
6360 (mips_str_pic): Likewise.
6361 (mips_in_frame_stub): New function.
6362 (mips_unwind_pc): Return the return address rather than the PC
6363 if the PC of an intermediate frame is inside a call thunk.
6364 (mips_is_stub_suffix): New function.
6365 (mips_is_stub_mode): Likewise.
6366 (mips_get_mips16_fn_stub_pc): Likewise.
6367 (mips_skip_mips16_trampoline_code): Update to handle all the
6368 currently generated stub types. Don't recurse into __fn_stub
6369 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6370 Use cooked register accesses.
6371 (mips_in_return_stub): Reintroduce function.
6372 (mips_skip_trampoline_code): Traverse trampolines recursively.
6373 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6381 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6382 * features/arm-with-m-vfp-d16.xml: New file. Describes
6383 Cortex-M with VFPv4-sp-d16 FPU register layout.
6384 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6385 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6386 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6387 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6388 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6392 * cli/cli-decode.c (print_doc_line): Use stream instead of
6397 * features/arm-with-iwmmxt.c: Regenerate.
6398 * features/arm-with-m-fpa-layout.c: Likewise.
6399 * features/arm-with-m.c: Likewise.
6400 * features/arm-with-neon.c: Likewise.
6401 * features/arm-with-vfpv2.c: Likewise.
6402 * features/arm-with-vfpv3.c: Likewise.
6403 * features/mips-dsp-linux.c: Likewise.
6404 * features/mips-linux.c: Likewise.
6405 * features/mips64-dsp-linux.c: Likewise.
6406 * features/mips64-linux.c: Likewise.
6407 * features/s390-linux32.c: Likewise.
6408 * features/s390-linux32v1.c: Likewise.
6409 * features/s390-linux32v2.c: Likewise.
6410 * features/s390-linux64.c: Likewise.
6411 * features/s390-linux64v1.c: Likewise.
6412 * features/s390-linux64v2.c: Likewise.
6413 * features/s390x-linux64.c: Likewise.
6414 * features/s390x-linux64v1.c: Likewise.
6415 * features/s390x-linux64v2.c: Likewise.
6416 * features/tic6x-c62x-linux.c: Likewise.
6417 * features/tic6x-c62x.c: Likewise.
6418 * features/tic6x-c64x-linux.c: Likewise.
6419 * features/tic6x-c64x.c: Likewise.
6420 * features/tic6x-c64xp-linux.c: Likewise.
6421 * features/tic6x-c64xp.c: Likewise.
6422 * target-descriptions.c: Only generate `field_type' and `type'
6423 variables when needed.
6427 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6431 Initial pass at Go language support.
6433 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6435 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6436 (YYFILES): Add go-exp.c.
6437 (YYOBJ): Add go-exp.o.
6438 (local-maintainer-clean): Delete go-exp.c.
6439 * defs.h (enum language): Add language_go.
6440 * dwarf2read.c: #include "go-lang.h".
6441 (fixup_go_packaging): New function.
6442 (process_full_comp_unit): Call it when processing Go CUs.
6443 (dwarf2_physname): Add Go support.
6444 (read_file_scope): Handle missing language spec for GNU Go.
6445 (set_cu_language): Handle DW_LANG_Go.
6446 * go-exp.y: New file.
6447 * go-lang.h: New file.
6448 * go-lang.c: New file.
6449 * go-typeprint.c: New file.
6450 * go-valprint.c: New file.
6451 * symtab.c: #include "go-lang.h".
6452 (symbol_set_language): Handle language_go.
6453 (symbol_find_demangled_name, symbol_set_names): Ditto.
6454 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6458 avoid a few strncpy-induced buffer overruns
6459 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6460 fname and psargs before trying to concatenate.
6461 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6462 "name" before applying strchr.
6466 * CONTRIBUTE: Use unified diff instead of context diff when
6471 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6472 code. Handle JR.HB correctly.
6477 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6478 with the other MIPS16 helpers.
6482 * observer.sh: Conditionally declare `args', thus cleaning up
6483 unused instances of this variable.
6487 Revert this patch to allow breakpoint always-inserted
6490 * breakpoint.c: Include record.h.
6491 (breakpoints_always_inserted_mode): Return false when the record
6494 * breakpoint.c (iterate_over_bp_locations): New.
6495 * breakpoint.h: Declare.
6496 New typedef walk_bp_location_callback.
6497 * record.c (record_open): Call record_init_record_breakpoints.
6498 (record_sync_record_breakpoints): New.
6499 (record_init_record_breakpoints): New.
6500 * NEWS: Mention supporting breakpoint always-inserted mode in
6505 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6510 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6511 (is_catchpoint): ... it.
6512 (print_one_breakpoint_location): Caller update.
6513 * breakpoint.h: Update declaration.
6517 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6521 * buildsym.c (add_free_pendings): Remove.
6522 * buildsym.h (add_free_pendings): Remove.
6526 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6527 attr.u.unsnd instead of attr.u.addr.
6528 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6529 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6531 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6532 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6534 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6538 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6539 (mips_o32_return_value): Likewise.
6540 (mips_o64_return_value): Likewise.
6544 * ada-lang.c (ada_evaluate_subexp): Add cases for
6545 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6546 their treatment in eval.c.
6550 * sparc-tdep.c (X_DISP10): Define.
6551 (sparc_analyze_control_transfer): Handle compare-and-branch.
6555 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6556 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6561 * mips-tdep.c (mips_float_register_p): New function.
6562 (mips_convert_register_float_case_p): Use mips_float_register_p.
6563 (mips_register_type): Likewise.
6564 (mips_print_register): Likewise.
6565 (print_gp_register_row): Likewise.
6566 (mips_print_registers_info): Likewise.
6570 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6575 * MAINTAINERS (Write After Approval): Add myself to the list.
6579 * MAINTAINERS: Update my e-mail address.
6583 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6585 * configure: Regenerate.
6589 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6591 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6595 Fix compilation compatibility with python-2.4
6596 * python/py-type.c (convert_field): Cast ADDRSTRING for
6597 PyObject_SetAttrString as non-const. New comment.
6601 * top.c (quit_target): Use all_cleanups.
6602 * main.c (captured_command_loop): Use all_cleanups.
6603 * exceptions.c (throw_exception): Use all_cleanups.
6607 * Makefile.in (GNULIB_BUILDDIR): New.
6608 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6609 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6610 (CLEANDIRS). Remove gnulib/import.
6611 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6613 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6614 (gnulib/import/Makefile): Replace gnulib/import with
6615 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6616 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6617 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6618 acx_configure_dir.m4.
6619 * acinclude.m4: Include acx_configure_dir.m4.
6620 * acx_configure_dir.m4: New file.
6621 * aclocal.m4: Regenerate.
6622 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6623 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6624 (GNULIB): New variable.
6625 (GNULIB_STDINT_H): Adjust.
6626 (AC_OUTPUT): Don't output gnulib/Makefile.
6627 * gdb/defs.h: Include build-gnulib/config.h.
6628 * aclocal.m4: Regenerate.
6629 * config.in: Regenerate.
6630 * configure: Regenerate.
6632 * gnulib/Makefile.in: New file.
6633 * gnulib/configure.ac: New file.
6634 * gnulib/aclocal.m4: New file.
6635 * gnulib/config.in: New file.
6636 * gnulib/configure: New file.
6637 * gnulib/: Re-run gnulib-tool to adjust.
6641 * cleanups.h (struct cleanup): Move to cleanups.c.
6642 (make_cleanup_dtor_ftype): New typedef.
6643 (make_cleanup_dtor): Use it.
6644 (ALL_CLEANUPS): Replace with ...
6645 (all_cleanups): ... this. Declare. All uses updated.
6646 * cleanups.c: #include "gdb_assert.h".
6647 (sentinel_cleanup): New static global.
6648 (SENTINEL_CLEANUP): Define.
6649 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6650 (make_my_cleanup2): Assert result is non-NULL.
6651 (all_cleanups): New function.
6652 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6657 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6658 Adjust paths to gnulib imported files.
6662 * gnulib/: Move whole directory ...
6663 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6664 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6665 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6666 (aclocal_m4_deps): Adjust.
6667 * aclocal.m4: Regenerate.
6668 * configure: Regenerate.
6669 * configure.ac: Adjust AC_OUTPUT output.
6673 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6675 * vec.c: Move it ...
6676 * common/vec.c: ... here.
6677 * vec.h: Move it ...
6678 * common/vec.h: ... here.
6682 * gdb-code-style.el: New.
6686 Update gnulib from latest git.
6687 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6689 * gnulib/Makefile.am: Update.
6690 * gnulib/dummy.c: Update.
6691 * gnulib/extra/arg-nonnull.h: Update.
6692 * gnulib/extra/c++defs.h: Update.
6693 * gnulib/extra/update-copyright: Update.
6694 * gnulib/extra/warn-on-use.h: Update.
6695 * gnulib/inttypes.in.h: Update.
6696 * gnulib/m4/00gnulib.m4: Update.
6697 * gnulib/m4/extensions.m4: Update.
6698 * gnulib/m4/gnulib-cache.m4: Update.
6699 * gnulib/m4/gnulib-common.m4: Update.
6700 * gnulib/m4/gnulib-comp.m4: Update.
6701 * gnulib/m4/gnulib-tool.m4: Update.
6702 * gnulib/m4/include_next.m4: Update.
6703 * gnulib/m4/inttypes-pri.m4: Update.
6704 * gnulib/m4/inttypes.m4: Update.
6705 * gnulib/m4/longlong.m4: Update.
6706 * gnulib/m4/memchr.m4: Update.
6707 * gnulib/m4/memmem.m4: Update.
6708 * gnulib/m4/mmap-anon.m4: Update.
6709 * gnulib/m4/multiarch.m4: Update.
6710 * gnulib/m4/onceonly.m4: Update.
6711 * gnulib/m4/stddef_h.m4: Update.
6712 * gnulib/m4/stdint.m4: Update.
6713 * gnulib/m4/string_h.m4: Update.
6714 * gnulib/m4/warn-on-use.m4: Update.
6715 * gnulib/m4/wchar_h.m4: Update.
6716 * gnulib/m4/wchar_t.m4: Update.
6717 * gnulib/m4/wint_t.m4: Update.
6718 * gnulib/memchr.c: Update.
6719 * gnulib/memmem.c: Update.
6720 * gnulib/stddef.in.h: Update.
6721 * gnulib/stdint.in.h: Update.
6722 * gnulib/str-two-way.h: Update.
6723 * gnulib/string.in.h: Update.
6724 * gnulib/wchar.in.h: Update.
6726 * gnulib/extra/arg-nonnull.h: Delete.
6727 * gnulib/extra/c++defs.h: Delete.
6728 * gnulib/extra/warn-on-use.h: Delete.
6729 * gnulib/m4/wchar_h.m4: Delete.
6730 * gnulib/m4/wint_t.m4: Delete.
6731 * gnulib/wchar.in.h: Delete.
6733 * gnulib/extra/snippets/arg-nonnull.h: New.
6734 * gnulib/extra/snippets/c++defs.h: New.
6735 * gnulib/extra/snippets/warn-on-use.h: New.
6737 * aclocal.m4: Regenerate.
6738 * config.in: Regenerate.
6739 * configure: Regenerate.
6740 * gnulib/Makefile.in: Regenerate.
6744 Reimport the update-copyright module from gnulib
6745 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6747 * configure: Regenerate.
6748 * gnulib/Makefile.am: Update.
6749 * gnulib/Makefile.in: Regenerate.
6750 * gnulib/extra/update-copyright: Update.
6751 * gnulib/m4/gnulib-cache.m4: Update.
6752 * gnulib/m4/gnulib-comp.m4: Update.
6756 * configure.ac (aix): Put -lpthread into libs.
6757 * configure: Regenerate.
6761 * linespec.c (convert_linespec_to_sals): Don't use
6763 (compare_msymbols): Arguments are minsym_and_objfile, not
6764 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6768 Revert gnulib/ part of:
6770 Copyright year update in most files (performed by copyright.sh).
6774 Fix 64-bit constants on 32-bit hosts.
6775 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6776 from unsigned long to ULONGEST.
6777 (read_signed_leb128): Change declaration return type from long to
6779 (dwarf2_const_value_attr): Change declaration parameter value from long
6781 (dwarf2_compute_name): Change variable value from long to LONGEST.
6782 (read_unsigned_leb128): Change return type, variable result and some
6783 casts from unsigned long to ULONGEST.
6784 (read_signed_leb128): Change return type, variable result and some
6785 casts from long to LONGEST.
6786 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6787 value from long to LONGEST.
6788 (dwarf2_const_value): Change variable value from long to LONGEST.
6789 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6790 plongest and hex_string.
6791 * symtab.h (struct general_symbol_info): Change ivalue from long to
6792 LONGEST, remove the comment.
6793 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6794 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6799 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6800 * ada-lang.c (ada_discrete_type_high_bound)
6801 (ada_discrete_type_low_bound): Fix function comment. Use
6802 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6803 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6804 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6805 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6806 Use TYPE_FIELD_ENUMVAL.
6807 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6808 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6809 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6810 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6812 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6813 * dwarf2read.c (process_enumeration_scope): Likewise.
6814 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6816 (class StructMainTypePrettyPrinter): Support also
6817 FIELD_LOC_KIND_ENUMVAL.
6818 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6820 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6821 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6822 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6823 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6825 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6826 accommodate enumval.
6827 (struct call_site): Adjust loc_kind to accommodate enumval.
6828 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6829 (TYPE_FIELD_ENUMVAL): New macros.
6830 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6831 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6833 * p-typeprint.c (pascal_type_print_base): Likewise.
6834 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6836 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6837 * python/py-type.c (convert_field): New variable addrstring. Use
6838 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6839 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6840 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6841 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6843 * valprint.c (generic_val_print): Likewise.
6847 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6849 * dwarf2read.c: Whitespace fixes.
6850 (lookup_signatured_type): Tweak comment.
6851 (get_die_type_at_offset): Fix comment.
6855 * xcoffread.c (xcoff_secnum_to_sections): New function.
6856 (secnum_to_section, secnum_to_bfd_section): Reimplement
6857 using xcoff_secnum_to_sections. Rename "secnum" parameter
6859 (RECORD_MINIMAL_SYMBOL): Delete.
6860 (record_minimal_symbol): New function.
6861 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6862 by call to record_minimal_symbol and set misc_func_recorded
6863 to 1. Set last_csect_sec to the XCOFF section index instead
6864 of GDB's section_offset index. Update calls to
6865 prim_record_minimal_symbol_and_info to pass the BFD section
6870 * xcoffread.c (read_xcoff_symtab): Delete variables
6871 last_csect_val and last_csect_sec and associated code.
6875 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6876 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6877 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6878 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6880 * cleanups.h: New file.
6881 * cleanups.c: New file.
6882 * Makefile.in (SFILES): Add cleanups.c.
6883 (HFILES_NO_SRCDIR): Add cleanups.h.
6884 (COMMON_OBS): Add cleanups.o.
6885 * defs.h (struct cleanup): Moved to cleanups.h.
6886 (do_cleanups,do_final_cleanups): Ditto.
6887 (discard_cleanups,discard_final_cleanups): Ditto
6888 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6889 (save_cleanups,save_final_cleanups): Ditto.
6890 (restore_cleanups,restore_final_cleanups): Ditto.
6891 (null_cleanup): Ditto.
6892 (make_my_cleanup,make_my_cleanup2): Ditto.
6893 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6894 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6895 (do_cleanups,do_final_cleanups): Ditto.
6896 (discard_cleanups,discard_final_cleanups): Ditto
6897 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6898 (save_cleanups,save_final_cleanups): Ditto.
6899 (restore_cleanups,restore_final_cleanups): Ditto.
6900 (null_cleanup): Ditto.
6901 (make_my_cleanup,make_my_cleanup2): Ditto.
6902 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6904 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6906 (make_cleanup_dyn_string_delete): Ditto.
6907 (make_cleanup_ui_file_delete): Ditto.
6908 (make_cleanup_ui_out_redirect_pop): Ditto.
6909 (make_cleanup_free_section_addr_info): Ditto.
6910 (make_cleanup_restore_integer): Ditto.
6911 (make_cleanup_unpush_target): Ditto.
6912 (make_cleanup_value_free_to_mark): Ditto.
6913 (make_cleanup_value_free): Ditto.
6914 (make_cleanup_free_so): Ditto.
6918 New option "set debug auto-load".
6919 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6920 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6921 (auto_load_safe_path_vec_update)
6922 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6924 (file_is_auto_load_safe): New parameters debug_fmt and ....
6925 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6926 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6927 caller by explanatory string.
6928 (_initialize_auto_load): Register "set debug auto-load".
6929 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6931 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6932 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6933 by explanatory string.
6934 * main.c (captured_main): Likewise.
6935 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6936 (source_section_scripts): Likewise.
6940 New option "set auto-load safe-path".
6941 * NEWS: New commands "set auto-load safe-path"
6942 and "show auto-load safe-path".
6943 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6944 (auto_load_safe_path, auto_load_safe_path_vec)
6945 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6946 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6947 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6948 (source_gdb_script_for_objfile): New variable is_safe. Call
6949 file_is_auto_load_safe. Return if it is not.
6950 (struct loaded_script): New field loaded.
6951 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6952 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6953 output "Missing" to "No".
6954 (_initialize_auto_load): New variable cmd. Initialize
6955 auto_load_safe_path. Register "set auto-load safe-path",
6956 "show auto-load safe-path" and "add-auto-load-safe-path".
6957 * auto-load.h (maybe_add_script): Add parameter loaded.
6958 (file_is_auto_load_safe): New declaration.
6959 * config.in: Regenerate.
6960 * configure: Regenerate.
6961 * configure.ac: New parameters --with-auto-load-safe-path
6962 and --without-auto-load-safe-path.
6963 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6964 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6965 * main.c (captured_main): Check file_is_auto_load_safe for
6967 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6968 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6969 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6974 auto-load: Implementation.
6975 * NEWS: New descriptions for "info auto-load",
6976 "info auto-load gdb-scripts", "info auto-load python-scripts",
6977 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6978 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6979 and "show auto-load-scripts". New description for "set auto-load",
6980 "show auto-load", "set auto-load gdb-scripts",
6981 "show auto-load gdb-scripts", "set auto-load python-scripts",
6982 "show auto-load python-scripts", "set auto-load local-gdbinit",
6983 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6984 "show auto-load libthread-db".
6985 * auto-load.c: Remove include python/python-internal.h. Add includes
6986 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6988 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6989 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6990 (gdbpy_global_auto_load): Rename to ...
6991 (global_auto_load): ... here.
6992 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6993 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6994 (script_language_gdb, source_gdb_script_for_objfile): New.
6995 (struct loaded_script): New field language.
6996 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6998 (maybe_add_script): Add parameter language. Drop redundant
6999 entry.full_path initialization. Initialize entry.language and
7001 (auto_load_objfile_script): Change parameter suffix to language.
7002 Remove the call of maybe_add_script.
7003 Call language->source_script_for_objfile.
7004 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7006 (collect_matching_scripts): Adjust it for
7007 struct collect_matching_scripts_data.
7008 (auto_load_info_scripts_pattern_nl): New variable.
7009 (info_auto_load_scripts): Rename to ...
7010 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7011 for struct collect_matching_scripts_data.
7012 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7013 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7014 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7015 (auto_load_info_cmdlist_get): New.
7016 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7017 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7018 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7019 "info auto-load local-gdbinit".
7020 * auto-load.h (struct script_language): New.
7021 (gdbpy_global_auto_load): Rename to ...
7022 (global_auto_load): ... here.
7023 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7024 (auto_load_local_gdbinit_loaded): New declarations.
7025 (maybe_add_script): New parameter language.
7026 (auto_load_objfile_script): Change parameter suffix to language.
7027 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7028 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7029 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7031 * linux-thread-db.c: Include auto-load.h and ctype.h.
7032 (auto_load_thread_db, show_auto_load_thread_db): New.
7033 (struct thread_db_info): New field filename.
7034 (delete_thread_db_info): Call xfree for FILENAME.
7035 (try_thread_db_load): Initialize FILENAME.
7036 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7037 if !AUTO_LOAD_THREAD_DB.
7038 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7039 (_initialize_thread_db): Install auto_load_thread_db
7040 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7041 as "info auto-load libthread-db".
7042 * main.c (captured_main): Rename gdbpy_global_auto_load to
7043 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7044 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7045 (print_gdb_help): Extend the help for 'local init file'.
7046 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7047 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7048 (auto_load_scripts): Rename to ...
7049 (auto_load_python_scripts): ... here, update the comment.
7050 (gdbpy_load_auto_script_for_objfile): New declaration.
7051 (show_auto_load_python_scripts, script_language_python)
7052 (gdbpy_load_auto_script_for_objfile): New.
7053 (source_section_scripts): Refactor the code.
7054 (load_auto_scripts_for_objfile): Rename to ...
7055 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7056 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7057 (info_auto_load_python_scripts): New.
7058 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7059 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7060 Register "set auto-load-scripts" as its deprecated alias. Register
7061 "info auto-load python-scripts". Register "info auto-load-scripts" as
7062 its deprecated alias.
7063 (load_auto_scripts_for_objfile): Rename to ...
7064 (gdbpy_load_auto_scripts_for_objfile): ... here.
7065 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7066 (gdbpy_load_auto_scripts_for_objfile): ... here.
7070 auto-load: Move files.
7071 * Makefile.in (SFILES): Add auto-load.c.
7072 (HFILES_NO_SRCDIR): Add auto-load.h.
7073 (COMMON_OBS): Add auto-load.o.
7074 (distclean): Change .gdbinit for gdb-gdb.gdb.
7075 * auto-load.c: New file, with parts from python/py-auto-load.c.
7076 * auto-load.h: New file, with parts from python/python.h.
7077 * configure: Regenerate.
7078 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7079 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7080 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7081 * main.c: Include auto-load.h.
7082 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7083 command.h, observer.h and progspace.h to auto-load.c. Add include
7085 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7086 (struct loaded_script, auto_load_pspace_data)
7087 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7088 (hash_loaded_script_entry, eq_loaded_script_entry)
7089 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7090 (maybe_add_script): Move to auto-load.c.
7091 (source_section_scripts): Change maybe_add_script parameters passing,
7092 use script_not_found_warning_print.
7093 (clear_section_scripts, auto_load_objfile_script)
7094 (auto_load_new_objfile, loaded_script_ptr)
7095 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7096 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7097 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7098 auto_load_new_objfile and info_auto_load_scripts initizations to
7100 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7105 * charset.c (find_charset_names): Remove variables ix and elt.
7106 Use free_char_ptr_vec.
7107 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7108 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7109 debugdir_end. New variable debugdir_len.
7110 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7111 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7113 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7114 and elt. Use free_char_ptr_vec.
7115 * source.c (add_path): Remove variables argv, arg and argv_index.
7116 New variables dir_vec, back_to, ix and name.
7117 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7118 make_cleanup_freeargv. Remove variable separator. Simplify the code
7119 no longer expecting DIRNAME_SEPARATOR.
7120 (openp): Remove variable p, p1 and len. New variables dir_vec,
7121 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7122 no longer expecting DIRNAME_SEPARATOR.
7123 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7124 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7126 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7127 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7128 (dirnames_to_char_ptr_vec): New functions.
7133 * source.c (add_path): Remove always true conditional 'p == 0' and
7134 unindent its code block.
7138 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7139 (FIELD_BITPOS_LVAL): ... this.
7140 (FIELD_BITPOS): New.
7141 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7142 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7143 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7145 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7147 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7148 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7149 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7154 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7155 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7156 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7157 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7158 * jv-lang.c (java_link_class_type): Likewise, once.
7159 * stabsread.c (read_enum_type): Likewise.
7163 * common/agent.c (agent_run_command): Add one more parameter `len'.
7165 * common/agent.h: Update declaration.
7166 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7168 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7173 * value.c (value_actual_type): New function.
7174 * value.h (value_actual_type): New declaration.
7175 * varobj.c (update_type_if_necessary): New function.
7176 (varobj_create): Call value_actual_type instead of
7178 (install_dynamic_child): distinct changed and type changed MI variable
7180 (update_dynamic_varobj_children): Updated for install_dynamic_child
7181 change. All callers updated.
7182 (varobj_update): Support for MI variable object type change if
7183 the value changed and RTTI is used to determine the type.
7184 (create_child_with_value): Call value_actual_type instead of
7186 (adjust_value_for_child_access): Extended with a new parameter which
7187 specify whether the given value should be casted to enclosing type.
7188 All callers updated.
7192 Import gnulib module inttypes from git
7193 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7194 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7195 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7196 gnulib/m4/inttypes-pri.m4
7197 * aclocal.m4, config.in, configure: Regenerated.
7198 * gnulib/Makefile.am: Update.
7199 * gnulib/Makefile.in: Update.
7200 * gnulib/m4/gnulib-cache.m4: Update.
7201 * gnulib/m4/gnulib-comp.m4: Update.
7202 * gnulib/inttypes.in.h: New.
7203 * gnulib/m4/inttypes-pri.m4: New.
7204 * gnulib/m4/inttypes.m4: New.
7208 * infrun.c (resume): Update PC address to the real PC after
7209 preparing to do displaced stepping.
7213 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7214 All callers updated.
7218 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7222 * dwarf2read.c (create_all_type_units): Renamed from
7223 create_debug_types_hash_table. All callers updated.
7225 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7226 local type_sig to sig_type, type_offset to type_offset_in_tu.
7227 (hash_signatured_type): Renamed from hash_type_signature,
7228 all callers updated.
7229 (eq_signatured_type): Renamed from eq_type_signature,
7230 all callers updated.
7231 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7232 (process_enumeration_scope): Ditto.
7233 (lookup_signatured_type_at_offset): Ditto.
7234 (load_full_type_unit, read_signatured_type): Ditto.
7238 * remote.c (async_remote_interrupt): Correct function name in
7240 (async_remote_interrupt_twice): Ditto.
7244 * source.c (find_and_open_source): Consistently pass resulting
7245 full path through xfullpath.
7249 Provide more specific displaced-stepping memory error message.
7250 * infrun.c (displaced_step_prepare): New variable status. Call
7251 target_read_memory instead of read_memory, provide more specific
7257 * darwin-nat.c (darwin_execvp): Revert previous patch.
7262 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7267 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7272 New command 'explore' which helps explore values and types in
7274 * NEWS: Add an entry about the new 'explore' command.
7275 * data-directory/Makefile.in: Add gdb/command/explore.py
7276 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7277 command using the GDB Python API.
7281 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7282 extension in jump target calculation.
7286 * mips-tdep.c (mips32_next_pc): Handle JALX.
7290 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7294 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7295 and gnulib/m4/gnulib-tool.m4.
7299 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7300 (load_partial_dies): Clarify comment.
7301 (find_partial_die): Support rereading type units.
7302 Clarify CU handling, if we know offset is in CU, don't search for the
7303 containing CU. Add comment regarding memory waste.
7307 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7308 i386/x32-avx and i386/x32-avx-linux.
7309 (i386/x32-expedite): New.
7310 (i386/x32-linux-expedite): Likewise.
7311 (i386/x32-avx-expedite): Likewise.
7312 (i386/x32-avx-linux-expedite): Likewise.
7313 ($(outdir)/i386/x32.dat): Likewise.
7314 ($(outdir)/i386/x32-linux.dat): Likewise.
7315 ($(outdir)/i386/x32-avx.dat): Likewise.
7316 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7318 * features/i386/x32-avx-linux.xml: New file.
7319 * features/i386/x32-avx.xml: Likewise.
7320 * features/i386/x32-core.xml: Likewise.
7321 * features/i386/x32-linux.xml: Likewise.
7322 * features/i386/x32.xml: Likewise.
7324 * features/i386/x32-avx-linux.c: New. Generated.
7325 * features/i386/x32-avx.c: Likewise.
7326 * features/i386/x32-linux.c: Likewise.
7327 * features/i386/x32.c: Likewise.
7328 * regformats/i386/x32-avx-linux.dat: Likewise.
7329 * regformats/i386/x32-avx.dat: Likewise.
7330 * regformats/i386/x32-linux.dat: Likewise.
7331 * regformats/i386/x32.dat: Likewise.
7335 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7336 code to kill the inferior.
7340 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7342 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7344 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7345 (yyvsp): New defines.
7346 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7348 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7350 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7352 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7354 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7359 * sparc64-tdep.c (sparc64_store_arguments)
7360 (sparc64_store_arguments): Fix coding style.
7364 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7365 complex floats, adjust some related comments and tighten a related
7367 (sparc64_extract_return_value): Handle complex floats.
7371 * dwarf2read.c (load_partial_dies): Change condition to assert.
7375 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7380 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7382 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7383 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7388 * linespec.c (decode_compound): Remove.
7389 (enum offset_relative_sign): New enum.
7390 (struct line_offset): New struct.
7391 (struct linespec): New struct.
7392 (struct linespec_state): Move file_symtabs,
7393 user_filename, and user_function into struct linespec.
7394 Make result an anonymous struct holding vectors of
7395 symbolp and minsym_and_objfile_d.
7396 Add language member.
7397 (enum ls_token_type): New enum.
7398 (linespec_keywords): New array.
7399 (struct ls_token): New struct.
7400 (struct ls_parser): New struct.
7401 (linespec_lexer_lex_number): New function.
7402 (linespec_lexer_lex_keyword): New function.
7403 (is_ada_operator): New function.
7404 (skip_quote_char): New function.
7405 (copy_token_string): New function.
7406 (is_closing_quote_enclosed): New function.
7407 (find_parameter_list_end): New function.
7408 (linespec_lexer_lex_string): New function.
7409 (linespec_lexer_lex_one): New function.
7410 (linespec_lexer_consume_token): New function.
7411 (linespec_lexer_peek_token): New function.
7412 (cplusplus_error): Remove unused function.
7413 (find_methods): Update comment.
7414 (find_toplevel_char): Return const.
7415 (is_objc_method_format): Remove unused function.
7416 (find_toplevel_string): New function.
7417 (is_linespec_boundary): Remove.
7418 (symbol_not_found_error): New function.
7419 (find_method_overload_end): Remove function.
7420 (unexpected_linespec_error): New function.
7421 (keep_name_info): Remove.
7422 (linespec_parse_line_offset): New function.
7423 (linespec_parse_basic): New function.
7424 (canonicalize_linespec): New function.
7425 (decode_line_internal): Remove.
7426 (create_sals_line_offset): New function adapted from
7428 (convert_linespec_to_sals): New function.
7429 (parse_linespec): New function.
7430 (linespec_parser_new): New function.
7431 (linespec_state_destructor): Change parameter type to
7432 struct linespec_state *.
7433 Add language parameter.
7434 Remove freeing of moved members.
7435 (linespec_parser_delete): New function.
7436 (decode_line_full): Use parse_linespec and linespec_parser_new.
7437 (decode_line_1): Likewise.
7438 (decode_indirect): Rename to ...
7439 (linespec_expression_to_pc): ... this and rewrite
7440 to simply find CORE_ADDR, storing this result for later
7442 (locate_first_half): Remove.
7443 (deocde_objc): Add parameter LS.
7444 Initialize new struct collect_info members.
7445 Handle minimal symbols, too.
7446 (decode_compound): Delete.
7447 (lookup_prefix_sym): Rewrite.
7448 (compare_msymbols): New function.
7449 (find_method): Rewrite.
7450 Do not call cplusplus_error.
7451 (symtabs_from_filename): Rewrite.
7452 (collect_function_symbols): Delete.
7453 (find_function_symbols): Rewrite without ARGPTR-style
7455 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7456 (decode_dollar): Adapted and renamed to ...
7457 (linespec_parse_variable): ... this.
7458 (find_linespec_symbols): New function.
7459 (decode_label): Adapted and renamed to ...
7460 (find_label_symbols): ... this.
7461 (decode_digits_list_mode): Add and use LS argument.
7462 (decode_digits_ordinary): Likewise.
7463 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7464 If in list mode, allow any symbol class. Otherwise, only
7465 permit LOC_BLOCK symbols.
7466 (minsym_found): Update comments.
7467 (search_minsyms_for_name): Do not convert the matching symbol
7468 into a SAL. Simply push the symbol and objfile into the
7470 (decode_variable): Delete. Contents adapted into
7471 find_linespec_symbols.
7473 * cp-support.c (SKIP_SPACE): Remove.
7474 (operator_tokens): Remove unused global.
7475 (cp_validate_operator): Remove.
7476 * cp-support.h (cp_validate_operator): Remove declaration.
7480 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7481 for TYPE_VPTR_FIELDNO.
7482 * valprint.c (valprint_check_validity): Make it global, move the
7483 function comment ...
7484 * value.h (valprint_check_validity): ... to this new declaration.
7488 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7489 the STATE32 api for i386 state.
7490 (i386_darwin_store_inferior_registers): Likewise.
7494 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7496 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7502 * darwin-nat.c (darwin_execvp): Set binary preference.
7506 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7510 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7511 of TRY_CATCH. Fix error handling.
7512 * python/py-value.c (convert_value_from_python): Move 'old'
7513 declaration to innermost scope.
7518 -Wshadow warning fix.
7519 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7520 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7521 Adjust code accordingly.
7525 * ada-lang.c (symbol_completion_add): Rename parameter
7526 "encoded" into "encoded_p". Ajust code and documentation
7532 -Wshadow warning fix.
7533 * ada-lang.c (symbol_completion_add): Rename parameter
7534 "wild_match" into wild_match_p. Update code and documentation
7539 * ada-lang.c (symbol_completion_match): Rename parameter
7540 "encoded" into "encoded_p". Ajust code and documentation
7546 -Wshadow warning fix.
7547 * ada-lang.c (symbol_completion_match): Rename parameter
7548 "wild_match" into "wild_match_p". Adjust code and function
7549 documentation accordingly.
7554 -Wshadow warning fix.
7555 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7556 "symbol_info" into "info". Adjust code accordingly.
7557 (ada_lookup_symbol): Likewise.
7561 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7562 of this function's documentation.
7567 -Wshadow warning fix.
7568 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7569 variable into "wild_match_p". Adjust code accordingly.
7574 -Wshadow warning fix.
7575 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7576 parameter into "wild_match_p". Adjust code accordingly.
7577 Document this parameter in the function description.
7582 -Wshadow warning fix.
7583 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7584 "wild_match" parameter to "wild_match_p" (-Wshadow).
7588 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7589 in function documentation.
7594 -Wshadow warning fix.
7595 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7596 variable into wild_match_p. Adjust code accordingly.
7601 * ada-valprint.c (ada_val_print_1): Move the code handling
7602 TYPE_CODE_ENUM inside its own lexical block. Declare
7603 variables len and val there, instead of in the function's
7604 top level block. Avoid declaring deref_val again in a way
7605 that shadows another variable of the same name declared
7606 in one of the up-level blocks. Just re-use the up-level
7611 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7612 Replace block_found argument by symbol_info. Adjust
7613 implementation accordingly. Add function documentation.
7614 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7616 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7617 * ada-exp.y (write_object_renaming): Adjust to new
7618 ada_lookup_encoded_symbol API.
7622 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7627 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7628 (v850_register_name): Add the mpu and fpu register names.
7629 (v850e_register_name): Add the mpu and fpu register names.
7630 (v850e2_register_name): New function.
7631 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7636 * NEWS: Add entry for Ada varobj support.
7640 * varobj.c (default_value_is_changeable_p): New function,
7641 extracted from varobj_value_is_changeable_p. Add declaration.
7642 (ada_value_is_changeable_p): New function, extracted from
7643 varobj_value_is_changeable_p. Add declaration.
7644 (struct language_specific): New field "value_is_changeable_p".
7645 (languages): Add entries for new field.
7646 (varobj_create): Set language before calling install_new_value.
7647 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7648 "value_is_changeable_p" language callback.
7652 * ada-varobj.h, ada-varobj.c: New files.
7653 * Makefile.in (SFILES): Add ada-varobj.c.
7654 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7655 (COMMON_OBS): Add ada-varobj.o.
7659 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7660 (struct language_specific): New field "value_has_mutated".
7661 (languages): Set field "value_has_mutated" in each entry of array.
7662 (varobj_value_has_mutated): New function.
7663 (varobj_udpdate): Add handling of type mutation.
7664 (value_of_root): Add handling of type mutation.
7665 (ada_value_has_mutated): New function.
7669 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7670 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7674 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7675 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7680 * .dir-locals.el: New file.
7684 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7688 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7693 Eliminate struct ui_stream.
7695 * ui-out.h (struct ui_stream): Delete.
7696 (ui_out_field_stream): Adjust prototype.
7697 (ui_out_stream_new, ui_out_stream_delete)
7698 (make_cleanup_ui_out_stream_delete): Delete declarations.
7699 * ui-out.c (ui_out_field_stream): Change prototype to take a
7700 ui_file instead of a ui_stream. Adjust.
7701 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7702 (make_cleanup_ui_out_stream_delete): Delete.
7703 * breakpoint.c (print_breakpoint_location)
7704 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7705 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7706 * disasm.c (dump_insns): Ditto.
7707 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7709 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7710 ui_stream/ui_out_stream_new.
7711 * infcmd.c (print_return_value): Ditto.
7712 * osdata.c (info_osdata_command): Don't allocate a local
7714 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7715 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7716 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7717 allocate a local ui_stream.
7718 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7719 instead of ui_stream/ui_out_stream_new.
7720 (list_args_or_locals): Don't allocate a local ui_stream.
7721 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7722 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7723 ui_stream/ui_out_stream_new.
7724 * cli/cli-setshow.c (do_setshow_command): Ditto.
7728 * arm-linux-tdep.c (arm_linux_init_abi): Call
7729 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7730 * arm-tdep.c (arm_process_record): New function.
7731 (deallocate_reg_mem): New function.
7732 (decode_insn): New function.
7733 (thumb_record_branch): New function.
7734 (thumb_record_ldm_stm_swi(): New function.
7735 (thumb_record_misc): New function.
7736 (thumb_record_ld_st_stack): New function.
7737 (thumb_record_ld_st_imm_offset): New function.
7738 (thumb_record_ld_st_reg_offset(): New function.
7739 (thumb_record_add_sub_cmp_mov): New function.
7740 (thumb_record_shift_add_sub): New function.
7741 (arm_record_coproc_data_proc): New function.
7742 (arm_record_coproc): New function.
7743 (arm_record_b_bl): New function.
7744 (arm_record_ld_st_multiple): New function.
7745 (arm_record_ld_st_reg_offset): New function.
7746 (arm_record_ld_st_imm_offset): New function.
7747 (arm_record_data_proc_imm): New function.
7748 (arm_record_data_proc_misc_ld_str): New function.
7749 (arm_record_extension_space): New function.
7750 (arm_record_strx): New function.
7751 (sbo_sbz): New function.
7752 (struct insn_decode_record): New structure for arm insn record.
7753 (REG_ALLOC): New macro for reg allocations.
7754 (MEM_ALLOC): New macro for memory allocations.
7755 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7759 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7760 (store_register): Likewise.
7764 * MAINTAINERS (Write After Approval): Add myself to the list.
7768 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7769 Describe also the option "auto".
7773 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7774 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7778 * jit.c (jit_read_code_entry): Compute alignment and offset of
7779 int64_t member before computing entry_size.
7783 Python scripting: Add new method Value.referenced_value to
7784 gdb.Value which can dereference pointer as well as reference
7786 * NEWS: Add entry under 'Python scripting' about the new method
7787 Value.referenced_value on gdb.Value objects.
7788 * python/py-value.c (valpy_referenced_value): New function
7789 defining a new method on gdb.Value objects which can dereference
7790 pointer and reference values.
7794 * MAINTAINERS (Write After Approval): Add myself to the list.
7798 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7799 in addition to "main".
7803 * expression.h (op_name): Add declaration.
7804 * expprint.c (op_name): Remove declaration. Make non-static.
7805 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7809 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7811 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7812 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7813 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7814 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7815 (linux_nat_get_siginfo): Likewise.
7816 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7817 (linux_nat_get_siginfo): Likewise.
7818 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7819 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7820 * procfs.c (gdb_siginfo_t): Likewise.
7824 * .gitignore: Ignore more files.
7828 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7833 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7838 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7839 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7840 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7842 * dwarf2expr.h (cu_offset, sect_offset): New types.
7843 (struct dwarf_expr_context_funcs) <dwarf_call>
7844 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7846 (struct dwarf_expr_context) <len>: Improve the comment.
7847 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7848 cu_offset and sect_offset.
7849 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7850 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7851 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7852 * dwarf2loc.h: Include dwarf2expr.h.
7853 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7855 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7856 Improve the comment.
7857 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7858 (struct signatured_type, struct line_header, struct partial_die_info)
7859 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7860 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7861 (get_die_type_at_offset, create_cus_from_index)
7862 (create_signatured_type_table_from_index, dw2_get_file_names)
7863 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7864 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7865 (create_debug_types_hash_table, process_psymtab_comp_unit)
7866 (load_partial_comp_unit, create_all_comp_units)
7867 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7868 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7869 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7870 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7871 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7872 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7873 (find_partial_die, read_attribute_value, lookup_die_type)
7874 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7875 (is_ref_attr): New function comment.
7876 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7877 Use cu_offset and sect_offset.
7878 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7879 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7880 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7881 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7882 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7883 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7884 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7890 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7891 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7893 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7897 * NEWS: Describe new options --init-command=FILE, -ix and
7898 --init-eval-command=COMMAND, -iex.
7899 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7900 CMDARG_INIT_COMMAND.
7901 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7902 "init-command", "init-eval-command", "ix" and "iex" to the variable
7903 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7904 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7905 (print_gdb_help): Describe --init-command=FILE, -ix and
7906 --init-eval-command=COMMAND, -iex.
7911 * main.c (struct cmdarg): Move it here from main. Add more comments.
7912 (cmdarg_s, VEC (cmdarg_s)): New.
7913 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7914 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7915 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7916 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7921 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7926 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7931 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7936 * source.c (add_path): Use memmove instead of strcpy because the
7941 * value.h (set_value_parent): Add declaration.
7942 * value.c (set_value_parent): New function.
7943 (value_address): If VALUE->PARENT is not NULL, then use it as
7944 the base address instead of VALUE->LOCATION.address.
7945 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7946 the same as OBJ's address. Adjust V's offset accordingly.
7951 PR breakpoints/10738
7952 * dwarf2read.c (use_deprecated_index_sections): New global.
7953 (struct partial_die_info): New member may_be_inlined.
7954 (read_partial_die): Set may_be_inlined where appropriate.
7955 (add_partial_subprogram): Add partial symbols for partial
7956 DIEs that may be inlined.
7957 (new_symbol_full): Add inlined subroutines to the current
7959 (write_psymtabs_to_index): Bump version number.
7960 (dwarf2_read_index): Read only version 6 indices unless
7961 use_deprecated_index_sections is set.
7962 * linespec.c (symbol_and_data_callback): New structure.
7963 (iterate_inline_only): New function.
7964 (iterate_over_all_matching_symtabs): New argument
7965 "include_inline". If nonzero, also call the callback for
7966 symbols representing inlined subroutines.
7967 (lookup_prefix_sym): Pass extra argument to the above.
7968 (find_function_symbols): Likewise.
7969 (add_matching_symbols_to_info): Likewise.
7970 * NEWS: Mention that GDB can now set breakpoints on inlined
7975 * p-typeprint.c (pascal_type_print_method_args):
7976 Fix display of parameter of methods.
7980 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7981 Add missing prototype.
7986 Fix false compilation warning.
7987 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7992 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7993 (arm_register_g_packet_guesses): New function.
7994 (arm_gdbarch_init): Don't force a target description with
7995 registers when the executable is detected as M-profile. Instead
7996 set gdbarch->tdep->is_m. Register `g' packet guesses.
7997 (_initialize_arm_tdep): Initialize the new target description.
7998 * features/arm-with-m-fpa-layout.xml: New description.
7999 * features/arm-with-m-fpa-layout.c: New, generated.
8003 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8004 Update function description.
8005 (insert_bp_location): Do not wipe bl->target_info out.
8006 * mem-break.c: #include "gdb_string.h".
8007 (default_memory_insert_breakpoint): Do not call target_read_memory
8008 with a pointer to the breakpoint's shadow_contents buffer. Use
8009 a local buffer instead.
8010 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8014 * NEWS: Mention "info vtbl", not "info vtable".
8015 * cp-support.c (info_vtbl_command): Fix comment.
8016 (_initialize_cp_support): Fix text.
8020 * cp-valprint.c (cp_print_value_fields): Use
8021 print_function_pointer_address for vtable slot.
8025 * gnu-v3-abi.c (struct value_and_voffset): New.
8026 (hash_value_and_voffset, eq_value_and_voffset)
8027 (compare_value_and_voffset, compute_vtable_size)
8028 (print_one_vtable, gnuv3_print_vtable): New functions.
8029 (init_gnuv3_ops): Initialize 'print_vtable' field.
8030 * cp-support.c (info_vtbl_command): New function.
8031 (_initialize_cp_support): Add "info vtbl".
8032 * cp-abi.h (cplus_print_vtable): Declare.
8033 (struct cp_abi_ops) <print_vtable>: New field.
8034 * cp-abi.c (cplus_print_vtable): New function.
8039 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8040 iterate_over_symbols.
8044 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8045 DW_OP_GNU_parameter_ref.
8049 Fix double prompt of 'interpreter-exec mi'.
8050 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8051 (mi_interpreter_resume): use it.
8052 (mi_execute_command_input_handler): New function.
8053 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8054 mi_execute_command_input_handler.
8058 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8060 (darwin_debug_port_info): Make static.
8061 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8062 * machoread.c (_initialize_machoread): Add prototype.
8063 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8064 (i386_darwin_set_control, i386_darwin_get_control)
8065 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8066 i386_darwin_get_status, i386_darwin_get_control):
8067 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8071 * ax-gdb.c (gen_usual_unary): Remove special handling of
8072 enum and bool types.
8076 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8080 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8084 * aix-thread.c (fill_sprs): Store the floating point registers
8085 at the correct offsets into vals.
8089 * NEWS: Mention symbol-reloading has been deleted.
8090 * symfile.c (symbol_reloading): Delete.
8091 (show_symbol_reloading): Delete.
8092 (_initialize_symfile): Delete set/show symbol-reloading.
8094 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8095 read_in_chain until we have successfully read it in.
8096 (load_full_comp_unit): Ditto.
8097 (read_signatured_type): Add comment.
8101 * stabsread.c (fix_common_block): Change type of valu argument
8106 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8111 * common/linux-procfs.c (linux_proc_get_int): New, from
8112 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8114 (linux_proc_get_tgid): Only call linux_proc_get_int.
8115 (linux_proc_get_tracerpid): New.
8116 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8117 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8118 linux_proc_pid_has_state.
8119 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8120 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8121 (linux_ptrace_attach_warnings): New.
8122 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8124 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8125 (linux_nat_attach): New variables ex, buffer, message and message_s.
8126 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8130 * Makefile.in (linux-ptrace.o): New.
8131 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8133 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8134 * common/linux-ptrace.c: New file.
8135 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8136 * config/arm/linux.mh: Likewise.
8137 * config/i386/linux.mh: Likewise.
8138 * config/i386/linux64.mh: Likewise.
8139 * config/ia64/linux.mh: Likewise.
8140 * config/m32r/linux.mh: Likewise.
8141 * config/m68k/linux.mh: Likewise.
8142 * config/mips/linux.mh: Likewise.
8143 * config/pa/linux.mh: Likewise.
8144 * config/powerpc/linux.mh: Likewise.
8145 * config/powerpc/ppc64-linux.mh: Likewise.
8146 * config/powerpc/spu-linux.mh: Likewise.
8147 * config/s390/s390.mh: Likewise.
8148 * config/sparc/linux.mh: Likewise.
8149 * config/sparc/linux64.mh: Likewise.
8150 * config/xtensa/linux.mh: Likewise.
8151 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8152 common/linux-procfs.c.
8153 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8158 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8159 CREATE_BREAKPOINT_FLAGS_INSERTED.
8160 (create_breakpoint_sal, create_breakpoints_sal)
8161 (base_breakpoint_create_breakpoints_sal)
8162 (tracepoint_create_breakpoints_sal)
8163 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8165 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8166 (ftrace_command, strace_command): Adjust.
8167 (create_tracepoint_from_upload): Pass
8168 CREATE_BREAKPOINT_FLAGS_INSERTED.
8169 * breakpoint.h (enum breakpoint_create_flags): New.
8170 (create_breakpoint): New flags parameter.
8171 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8172 * python/py-breakpoint.c (bppy_init): Adjust.
8173 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8174 * spu-tdep.c (spu_catch_start): Adjust.
8180 * remote.c (struct remote_state): New field `starting_up'.
8181 (remote_start_remote): Set and clear it.
8182 (remote_can_download_tracepoint): If starting up, return false.
8186 * inferior.h (struct inferior): Remove fields any_syscall_count,
8187 syscalls_counts and total_syscalls_count. Move them to new
8188 struct catch_syscall_inferior_data in breakpoint.c.
8189 * breakpoint.c: Call DEF_VEC_I(int).
8190 (struct catch_syscall_inferior_data): New.
8191 (get_catch_syscall_inferior_data): New.
8192 (catch_syscall_inferior_data_cleanup): New.
8193 (insert_catch_syscall): Update to access data in
8194 struct catch_syscall_inferior_data.
8195 (insert_catch_syscall): Likewise.
8196 (remove_catch_syscall): Likewise.
8197 (remove_catch_syscall): Likewise.
8198 (is_syscall_catchpoint_enabled): Likewise.
8199 (add_catch_command): Likewise.
8200 (_initialize_breakpoint): Register cleanup.
8201 * breakpoint.h: Removed DEF_VEC_I(int).
8202 * dwarf2loc.c: Call DEF_VEC_I(int).
8203 * mi/mi-main.c: Likewise.
8207 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8211 * aix-thread.c (_initialize_aix_thread): Add prototype.
8212 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8213 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8217 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8218 include of "amd64-nat.h".
8222 * buildsym.c (record_pending_block): Now static.
8223 * buildsym.h: (record_pending_block): Remove.
8227 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8231 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8232 producer_is_gxx_lt_4_6>: New fields.
8233 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8237 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8241 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8246 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8250 Fix -Wmissing-prototypes build.
8251 * arm-linux-nat.c (get_thread_id): Make it static.
8252 * xtensa-linux-nat.c (get_thread_id): Likewise.
8256 * server.c (process_point_options): If a conditional expression
8257 is found, only print a message if remote_debug is nonzero.
8261 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8262 of internal error for unknown/unsupported types.
8266 Fix CU relative vs. absolute DIE offsets.
8267 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8268 offset to offset_in_cu.
8269 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8271 (dwarf2_fetch_die_location_block): Rename parameter offset to
8272 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8276 * libunwind-frame.c: Rename to ...
8277 * ia64-libunwind-tdep.c: ... here.
8278 * libunwind-frame.h: Rename to ...
8279 * ia64-libunwind-tdep.h: ... here.
8280 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8281 ia64-libunwind-tdep.h.
8282 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8283 * README (--with-libunwind): Rename to ...
8284 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8285 * config.in: Regenerate.
8286 * configure: Regenerate.
8287 * configure.ac: New option --with-libunwind-ia64, make the
8288 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8289 Remove AC_DEFINE for HAVE_LIBUNWIND.
8290 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8291 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8292 Rename libunwind-frame in the general comment.
8293 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8294 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8295 Move forward declarations inside #ifndef. Rename libunwind-frame in
8296 the general comment.
8297 * ia64-tdep.c: Rename libunwind-frame.h #include to
8298 ia64-libunwind-tdep.h.
8299 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8300 (ia64_libunwind_descr): Rename libunwind-frame to
8301 ia64-libunwind-tdep in these function comments.
8302 * ia64-tdep.h: Rename libunwind-frame.h #include to
8303 ia64-libunwind-tdep.h.
8304 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8305 ia64-libunwind-tdep in that data comment.
8309 * libunwind-frame.h (struct frame_unwind): New declaration.
8313 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8314 "set breakpoint condition-evaluation" command.
8318 * sparc-stub.c: Move to stubs/
8319 * sh-stub.c: Likewise.
8320 * m68k-stub.c: Likewise.
8321 * m32r-stub.c: Likewise.
8322 * i386-stub.c: Likewise.
8326 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8327 linux_get_siginfo_type.
8329 * m68klinux-nat.c: Include "gdb_proc_service.h".
8330 (PTRACE_GET_THREAD_AREA): Define.
8331 (ps_get_thread_area): New function.
8335 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8337 (remote_query_attached): Likewise.
8338 (remote_static_tracepoint_marker_at): Likewise.
8339 (remote_set_permissions): Likewise.
8340 (remote_detach_1, extended_remote_attach_1): Likewise.
8341 (send_g_packet, remote_vkill): Likewise.
8342 (extended_remote_disable_randomization): Likewise.
8343 (remote_add_target_side_condition): Likewise.
8344 (remote_insert_breakpoint): Likewise.
8345 (remote_remove_breakpoint): Likewise.
8346 (remote_insert_watchpoint): Likewise.
8347 (remote_remove_watchpoint): Likewise.
8348 (remote_insert_hw_breakpoint): Likewise.
8349 (remote_insert_hw_breakpoint): Likewise.
8350 (remote_remove_hw_breakpoint): Likewise.
8351 (remote_download_command_source): Likewise.
8352 (remote_download_tracepoint): Likewise.
8353 (remote_download_trace_state_variable): Likewise.
8354 (remote_disable_tracepoint): Likewise.
8355 (remote_trace_set_readonly_regions): Likewise.
8356 (remote_get_tracepoint_status): Likewise.
8357 (remote_trace_find): Likewise.
8358 (remote_get_trace_state_variable_value): Likewise.
8359 (remote_set_disconnected_tracing): Likewise.
8360 (remote_set_circular_trace_buffer): Likewise.
8361 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8362 (remote_use_agent): Likewise.
8363 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8368 * NEWS: Mention QProgramSignals.
8369 * inferior.h (update_signals_program_target): Declare.
8370 * infrun.c: (update_signals_program_target): New.
8371 (handle_command): Update the target of the new program signals
8373 * remote.c (PACKET_QProgramSignals): New enum.
8374 (last_program_signals_packet): New global.
8375 (remote_program_signals): New.
8376 (remote_start_remote): Update the target with the program signals
8378 (remote_protocol_features): Add entry for QPassSignals.
8379 (remote_open_1): Free anc clear last_program_signals_packet.
8380 (init_remote_ops): Install remote_program_signals.
8381 * target.c (update_current_target): Adjust.
8382 (target_program_signals): New.
8383 * target.h (struct target_ops) <to_program_signals>: New field.
8384 (target_program_signals): Declare.
8388 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8393 * m68klinux-nat.c (getregs_supplies): Make static.
8394 (getfpregs_supplies): Likewise.
8395 (have_ptrace_getregs): Likewise.
8399 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8400 in call to get_die_type_at_offset.
8404 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8405 * mi/mi-cmd-disas.c: Ditto.
8406 * mi/mi-cmd-env.c: Ditto.
8407 * mi/mi-cmd-file.c: Ditto.
8408 * mi/mi-cmd-stack.c: Ditto.
8409 * mi/mi-cmd-target.c: Ditto.
8410 * mi/mi-cmd-var.c: Ditto.
8411 * mi/mi-cmds.c: Ditto.
8412 * mi/mi-cmds.h: Ditto.
8413 * mi/mi-console.c: Ditto.
8414 * mi/mi-getopt.c: Ditto.
8415 * mi/mi-getopt.h: Ditto.
8416 * mi/mi-interp.c: Ditto.
8417 * mi/mi-main.c: Ditto.
8418 * mi/mi-out.c: Ditto.
8419 * mi/mi-parse.c: Ditto.
8420 * mi/mi-parse.h: Ditto.
8421 * mi/mi-symbol-cmds.c: Ditto.
8423 * mi/mi-getopt.h: Move mi_opt struct up.
8424 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8426 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8430 * proc-service.c (ps_pglobal_lookup): Set the current program
8435 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8439 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8444 * common/linux-osdata.c (linux_common_core_of_thread): New function
8446 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8447 call by linux_common_core_of_thread.
8448 (linux_nat_core_of_thread_1): Remove.
8449 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8450 * linux-thread-db.c: Include linux-osdata.h.
8451 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8452 linux_common_core_of_thread.
8456 * value.c (value_primitive_field): Don't fetch contents for
8461 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8465 * s390-nat.c: Include "gregset.h".
8469 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8470 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8471 (libunwind_load): New variable so_error, use it for dlerror. Try to
8472 load also LIBUNWIND_SO_7.
8476 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8477 is not NULL, and remove resulting dead code.
8481 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8482 prologue to sh_analyze_prologue.
8483 (sh_analyze_prologue): Make better use of such an upper limit, and
8484 generally be more cautious about accessing memory.
8488 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8489 _initialize_ia64_hpux_tdep.
8495 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8496 the register state is clear, supply explicit zero, instead of
8497 marking the register unavailable.
8501 * NEWS: Mention OpenVMS ia64 new target.
8505 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8506 (ia64_unw_accessors, ia64_unw_rse_accessors)
8507 (ia64_libunwind_descr): Declare.
8508 * ia64-vms-tdep.c: New file.
8509 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8510 (ia64_libunwind_descr): Make them public.
8511 * configure.tgt: Add ia64-*-*vms*.
8512 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8513 (ALLDEPFILES): Add ia64-vms-tdep.c
8517 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8518 * remote.c (PACKET_qXfer_uib): New enum value.
8519 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8520 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8521 (_initialize_remote): Call add_packet_config_cmd for
8526 * osabi.c (gdb_osabi_names): Add OpenVMS.
8527 (generic_elf_osabi_sniffer): Likewise.
8528 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8532 Removed unused code.
8533 * libunwind-frame.c (libunwind_frame_unwind)
8534 (libunwind_frame_base_address): Remove.
8535 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8539 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8540 remove trailing new line.
8541 (agent_run_command, agent_run_command): Add _ markup.
8542 (agent_capability_check): Likewise.
8546 * breakpoint.c (set_condition_evaluation_mode): Set
8547 CONDITION_EVALUATION_MODE unconditionally.
8551 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8552 * common/agent.h: Update declaration.
8553 * inf-child.c (inf_child_use_agent): New.
8554 (inf_child_can_use_agent): New.
8555 (inf_child_target): Initialize fields `to_use_agent'
8556 and `to_can_use_agent'.
8557 * agent.c (agent_new_objfile): New.
8558 (_initialize_agent): Add agent_new_objfile to new_objfile
8561 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8563 (linux_target_install_ops): Initialize field
8564 `to_static_tracepoint_markers_by_strid'.
8565 * remote.c (free_current_marker): Move it to ...
8566 * tracepoint.c (free_current_marker): ... here. New.
8567 (cleanup_target_stop): New.
8568 * tracepoint.h: Declare free_current_marker.
8569 * NEWS: Add one entry about `info static-tracepoint-marker'.
8573 * common/agent.c (agent_loaded_p): New.
8574 (agent_look_up_symbols): New global.
8575 * common/agent.h: Declare agent_loaded_p.
8579 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8580 (agent_capability_check, agent_capability_invalidate): New.
8581 (symbol_list): New array element.
8582 * common/agent.h (enum agent_capa): New.
8583 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8587 * target.h (struct target_ops) <to_use_agent>: New field.
8588 (struct target_ops) <to_can_use_agent>: New field.
8589 (target_use_agent, target_can_use_agent): New macro.
8590 * target.c (update_current_target): Update.
8591 * remote.c: New enum `PACKET_QAgent'.
8592 (remote_protocol_features): Add a new element.
8593 (remote_use_agent, remote_can_use_agent): New.
8594 (init_remote_ops): Initialize field `can_use_agent' with
8595 remote_can_use_agent. Intiailize field `use_agent' with
8597 * common/agent.c (use_agent): New global.
8598 * common/agent.h: Declare it.
8599 * tracepoint.c (info_static_tracepoint_markers_command): Add
8601 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8602 (COMMON_OBS): Add common/agent.o and agent.o
8603 (common-agent.o): New rule.
8608 * common/agent.c: New.
8609 * common/agent.h: New.
8610 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8612 * configure, configh.in: Regenerated.
8616 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8617 unless it exists for this architecture.
8621 * language.h (struct language_defn): New "method" la_read_var_value.
8622 * findvar.c: #include "language.h".
8623 (default_read_var_value): Renames read_var_value. Rewrite
8624 function description.
8625 (read_var_value): New function.
8626 * value.h (default_read_var_value): Add prototype.
8627 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8629 (ada_language_defn): Add entry for la_read_var_value.
8630 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8631 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8632 language_defn structures to add entry for new la_read_var_value
8638 PR breakpoints/13776:
8639 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8641 (delete_longjmp_breakpoint_at_next_stop): New.
8642 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8643 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8644 before deleting the inferior. Add comments.
8645 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8646 breakpoints immediately, but only on next stop. Move that code
8647 next to where we mark other breakpoints for deletion.
8651 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8653 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8658 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8662 Fix -Wmissing-prototypes build.
8663 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8664 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8665 (gdbsim_has_memory): Likewise.
8669 Fix -Wmissing-prototypes build.
8670 * charset.c (phony_iconv_open): Make static.
8671 (phony_iconv_close, phony_iconv): Likewise.
8672 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8673 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8675 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8676 * ser-mingw.c (create_select_thread): Make static.
8677 * windows-termcap.c (tgetent): New prototype.
8678 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8682 Fix -Wmissing-prototypes build.
8683 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8684 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8685 (_initialize_loadable): New prototypes.
8689 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8690 abbrev table, read_comp_unit will do it.
8694 Fix -Wmissing-prototypes build.
8695 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8696 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8697 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8698 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8699 (_initialize_arm_symbian_tdep): New prototype.
8700 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8701 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8702 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8704 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8705 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8707 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8708 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8709 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8711 * moxie-tdep.c (moxie_process_record): Likewise.
8712 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8713 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8714 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8715 (_initialize_rl78_tdep): New prototype.
8716 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8717 (_initialize_rx_tdep): New prototype.
8718 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8719 (_initialize_darwin_solib): New prototype.
8720 * solib-spu.c: Include solib-spu.h.
8721 (_initialize_spu_solib): New prototype.
8722 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8723 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8724 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8725 (tic6x_software_single_step): Make it static.
8726 (_initialize_tic6x_tdep): New prototype.
8730 Fix -Wmissing-prototypes build.
8731 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8732 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8736 Fix -Wmissing-prototypes build.
8737 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8738 (frv_have_stopped_data_address): Remove.
8742 Fix -Wmissing-prototypes build.
8743 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8744 * sh-tdep.c: Include sh64-tdep.h.
8745 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8746 * sh64-tdep.c: Include sh64-tdep.h.
8747 * sh64-tdep.h: New file.
8751 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8755 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8756 sp_regnum once the gdbarch_init_osabi hook has been called.
8760 * mips-tdep.c (mips32_bc1_pc): New function.
8761 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8762 BPOSGE32 and BPOSGE64 instructions.
8763 (deal_with_atomic_sequence): Likewise.
8764 (mips32_instruction_has_delay_slot): Likewise.
8771 * features/mips-dsp.xml: New file.
8772 * features/mips64-dsp.xml: New file.
8773 * features/mips-dsp-linux.xml: New file.
8774 * features/mips64-dsp-linux.xml: New file.
8775 * features/Makefile (WHICH): Add mips-dsp-linux and
8777 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8778 * features/mips-dsp-linux.c: New file.
8779 * features/mips64-dsp-linux.c: New file.
8780 * regformats/mips-dsp-linux.dat: New file.
8781 * regformats/mips64-dsp-linux.dat: New file.
8782 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8784 (mips64_linux_register_addr): Likewise.
8785 (mips64_linux_regsets_fetch_registers): Likewise.
8786 (mips64_linux_regsets_store_registers): Likewise.
8787 (mips64_linux_fetch_registers): Update call to
8788 mips64_linux_regsets_fetch_registers.
8789 (mips64_linux_store_registers): Update call to
8790 mips64_linux_regsets_store_registers.
8791 (mips_linux_read_description): Probe for DSP registers.
8792 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8793 and initialize_tdesc_mips64_dsp_linux.
8794 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8795 Remove padding of no longer used embedded register slots.
8796 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8797 (MIPS_RESTART_REGNUM): Redefine enum value.
8798 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8800 (mips_tx39_reg_names): Likewise.
8801 (mips_linux_reg_names): New array of register names for Linux
8803 (mips_register_name): Check for a null pointer in
8804 mips_processor_reg_names and return an empty string.
8805 (mips_register_type): Exclude embedded registers for the IRIX
8807 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8808 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8810 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8811 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8812 (mips_gdbarch_init): Likewise. Initialize internal register
8813 indices for the Linux ABI. Use dynamic numbers to refer to
8814 registers, as applicable, while parsing the target description.
8815 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8819 * frame.h (read_frame_register_unsigned): Fix typo in function
8824 * jit-reader.in [!__cplusplus]
8825 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8829 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8830 * configure: Regenerate.
8834 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8835 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8836 (ftrace_command, strace_command): Make static.
8837 * d-lang.c (_initialize_d_language): Declare.
8838 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8839 * dwarf2loc.c (_initialize_dwarf2loc):
8840 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8841 * exec.c (exec_get_section_table): Make static.
8842 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8843 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8844 * inferior.c (remove_inferior_command, add_inferior_command)
8845 (clone_inferior_command): Make static.
8846 * linux-nat.c (linux_nat_thread_address_space)
8847 (linux_nat_core_of_thread): Make static.
8848 * linux-tdep.c (_initialize_linux_tdep): Declare.
8849 * objc-lang.c (_initialize_objc_lang): Declare.
8850 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8852 (_initialize_opencl_language): Declare.
8853 * record.c (_initialize_record): Declare.
8854 * remote.c (demand_private_info, remote_get_tib_address)
8855 (remote_supports_cond_tracepoints)
8856 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8858 * skip.c (_initialize_step_skip): Declare.
8859 * symtab.c (skip_prologue_using_lineinfo): Make static.
8860 * tracepoint.c (delete_trace_state_variable)
8861 (trace_variable_command, delete_trace_variable_command)
8862 (get_uploaded_tsv, find_matching_tracepoint_location)
8863 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8865 * value.c (pack_unsigned_long): Make static.
8866 * varobj.c (varobj_ensure_python_env): Make static.
8867 * windows-tdep.c (_initialize_windows_tdep): Declare.
8868 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8872 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8874 (linux_init_abi): Install it as has_shared_address_space gdbarch
8879 * observer.c (observer_test_first_notification_function)
8880 (observer_test_second_notification_function)
8881 (observer_test_third_notification_function): Add declarations.
8885 * common/signals.c (default_target_signal_to_host)
8886 (default_target_signal_from_host): Move ...
8887 * arch-utils.c: ... here.
8888 * arch-utils.h (default_target_signal_to_host)
8889 (default_target_signal_from_host): Declare.
8891 * common/signals.c (target_signal_from_command): Move ...
8892 * infrun.c: ... here.
8893 * inferior.h (target_signal_from_command): Declare.
8894 * target.h (target_signal_from_command)
8895 (default_target_signal_from_host, default_target_signal_to_host):
8896 Delete declarations.
8898 * common/signals.c (_initialize_signals): Delete.
8902 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8903 both __cplusplus and !__cplusplus.
8907 * psymtab.c (find_and_open_source): Delete declaration.
8908 * source.c (find_and_open_source): Move comment ...
8909 * source.h (find_and_open_source): ... to this new declaration.
8913 * inline-frame.c: Include inline-frame.h.
8917 * tui/tui-data.c (set_gen_win_origin): Delete.
8918 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8919 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8923 * remote.c (encode_actions): Delete declaration.
8924 * tracepoint.c (encode_actions): Make extern.
8925 * tracepoint.h (encode_actions): Declare.
8929 * python/py-breakpoint.c: Include python.h.
8930 * python/py-continueevent.c (create_continue_event_object): Make
8932 * python/py-lazy-string.c (stpy_get_type): Make static.
8933 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8935 * python/py-utils.c (unicode_to_target_python_string): Make
8937 * python/py-value.c: Include python.h.
8941 * inferior.c (delete_threads_of_inferior): Delete.
8945 Import fallback definitions from glibc.
8947 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8948 ps_prochandle): Forward declare.
8949 (ps_err_e): Use glibc's comments.
8950 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8951 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8952 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8953 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8954 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8955 (struct ps_prochandle): Adjust comment.
8959 * ada-lang.c (ada_modulus_from_name): Delete.
8960 * ada-lex.l (lexer_init): Make static.
8966 * frame.c (read_frame_register_unsigned): New.
8967 * frame.h (read_frame_register_unsigned): Declare.
8968 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8970 (print_i387_control_word): New parameter `control_p'. Handle it.
8971 (i387_print_float_info): Handle unavailable float registers.
8975 * linespec.c (decode_line_2): Sort the list of methods
8976 alphabetically before presenting the user with a selection
8981 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8983 (dwarf2_read_abbrevs): Remove corresponding initialization.
8987 * NEWS: Mention new python command class gdb.COMMAND_USER.
8988 * cli/cli-cmds.c (show_user): Print error when used on a python
8990 (init_cli_cmds): Update documentation strings for "show user" and
8991 "set/show max-user-call-depth" to clarify that it does not apply to
8993 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8995 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8997 * top.c (execute_command): Only execute a user-defined command as a
8998 legacy macro if c->user_commands is set.
9002 * valprint.h (struct generic_val_print_decorations): New.
9003 (generic_val_print): Declare.
9004 * valprint.c (generic_val_print): New function.
9005 * p-valprint.c (p_decorations): New global.
9006 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9007 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9008 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9009 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9010 * m2-valprint.c (m2_decorations): New global.
9011 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9012 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9013 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9014 TYPE_CODE_ERROR>: Call generic_val_print.
9015 * f-valprint.c (f_decorations): New global.
9016 (f_val_print): Use print_function_pointer_address.
9017 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9018 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9019 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9021 * c-valprint.c (c_decorations): New global.
9022 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9023 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9024 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9025 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9026 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9027 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9032 * valprint.c (val_print): Update.
9033 * p-valprint (pascal_val_print): Return void.
9034 * p-lang.h (pascal_val_print): Return void.
9035 * m2-valprint.c (m2_val_print): Return void.
9036 * m2-lang.h (m2_val_print): Return void.
9037 * language.h (struct language_defn) <la_val_print>: Return void.
9038 * language.c (unk_lang_val_print): Return void.
9039 * jv-valprint.c (java_val_print): Return void.
9040 * jv-lang.h (java_val_print): Return void.
9041 * f-valprint.c (f_val_print): Return void.
9042 * f-lang.h (f_val_print): Return void.
9043 * d-valprint.c (d_val_print): Return void.
9044 (dynamic_array_type): Update.
9045 * d-lang.h (d_val_print): Return void.
9046 * c-valprint.c (c_val_print): Return void.
9047 * c-lang.h (c_val_print): Return void.
9048 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9050 * ada-lang.h (ada_val_print): Return void.
9054 * value.h (val_print): Return void.
9055 * valprint.c (val_print): Return void.
9059 * value.h (common_val_print): Return void.
9060 * valprint.c (common_val_print): Return void.
9064 * value.h (value_print): Return void.
9065 * valprint.c (value_print): Return void.
9066 * p-valprint.c (pascal_value_print): Return void.
9067 * p-lang.h (pascal_value_print): Return void.
9068 * language.h (struct language_defn) <la_value_print>: Return
9070 * language.c (unk_lang_value_print): Return void.
9071 * jv-valprint.c (java_value_print): Return void.
9072 * jv-lang.h (java_value_print): Return void.
9073 * f-valprint.c (c_value_print): Don't declare.
9075 * c-valprint.c (c_value_print): Return void.
9076 * c-lang.h (c_value_print): Return void.
9077 * ada-valprint.c (ada_value_print): Return void.
9078 * ada-lang.h (ada_value_print): Return void.
9082 * value.c (value_primitive_field): Handle virtual base classes.
9086 * gdbtypes.h (struct vbase): Remove.
9090 * c-valprint.c (print_function_pointer_address): Move...
9091 * valprint.c: ... here. Make non-static.
9092 * m2-valprint.c (print_function_pointer_address): Remove.
9093 * valprint.h (print_function_pointer_address): Declare.
9097 * NEWS: Document the fact that one can provide a condition when
9098 creating an Ada exception catchpoint.
9102 * valprint.c (val_print_type_code_flags): Fix placement of
9107 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9108 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9109 environment variable before calling update-copyright.
9113 * gnulib/extra/update-copyright: Update to the latest from
9114 gnulib's git repository.
9115 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9116 variable to 2 instead of 1.
9120 * varobj.c (c_value_of_variable): Remove dead code.
9124 * ada-lex.p (processId): Do not modify already encoded IDs.
9125 Update function documentation.
9129 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9130 "name" with "struct symbol *name_sym".
9131 * ada-exp.y (write_var_or_type): Update call to
9132 ada_find_renaming_symbol.
9133 "name" with "struct symbol *name_sym". Adjust Implementation
9134 accordingly. Adjust the function documentation.
9138 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9139 * ada-lang.c (ada_find_any_type): Add advance declaration.
9140 Make static. Replace ada_find_any_symbol by
9141 ada_find_any_type_symbol.
9142 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9143 Improve function description. Make static.
9144 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9145 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9149 * ada-lang.c (struct tag_args): Delete.
9150 (ada_get_tsd_type): Function body moved up in source file.
9151 (ada_tag_name_1, ada_tag_name_2): Delete.
9152 (ada_get_tsd_from_tag): New function.
9153 (ada_tag_name_from_tsd): New function.
9154 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9155 to determine the tag name.
9159 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9161 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9166 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9170 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9175 * ada-lang.c (constrained_packed_array_type): If there is a
9176 parallel XA type, use it to determine the array index type.
9180 * ada-valprint.c (ada_val_print_1): If our value is a reference
9181 to an array descriptor, dereference it before converting it
9186 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9187 creating fixed value.
9188 (ada_value_ind, ada_coerce_ref, assign_component)
9189 (ada_evaluate_subexp): Remove call to unwrap_value before
9190 call to ada_to_fixed_value.
9194 * ada-lang.c (to_fixed_array_type): Set result's type name.
9198 * ada-lang.c (catch_ada_exception_command_split): Add new
9199 argument cond_string. Add support for condition at end of
9200 "catch exception" commands.
9201 (ada_decode_exception_location): Add new argument cond_string.
9202 Update call to catch_ada_exception_command_split.
9203 (create_ada_exception_catchpoint): Add new argument cond_string.
9204 Set the breakpoint condition if needed.
9205 (catch_ada_exception_command): Update call to
9206 ada_decode_exception_location.
9207 (ada_decode_assert_location): Add function documentation.
9208 Add support for condition at end of "catch assert" command.
9209 (catch_assert_command): Update calls to ada_decode_assert_location
9210 and create_ada_exception_catchpoint.
9214 Fix disp-step-syscall.exp: fork: single step over fork.
9215 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9216 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9217 comment, change parameters gdbarch and ptid to regcache. Remove
9218 parameter regcache, initialize gdbarch from regcache here.
9219 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9221 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9223 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9224 'syscall'. Make the 'int' check more strict.
9228 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9229 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9230 (i386_linux_intx80_sysenter_syscall_record): ... here.
9231 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9232 Use the renamed function name.
9236 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9237 * breakpoint.c (until_break_command): Likewise.
9238 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9239 * infcall.c (call_function_by_hand): Likewise.
9240 * infcmd.c (finish_forward): Likewise.
9241 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9245 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9246 avoid variable assignments inside condition.
9250 Fix static analysis issue found by cppcheck.
9251 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9252 uninitialized BUF for size 2.
9258 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9259 (mips16_instruction_has_delay_slot): Likewise.
9260 (mips_segment_boundary): Likewise.
9261 (mips_adjust_breakpoint_address): Likewise.
9262 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9267 * infrun.c (handle_inferior_event): Don't proceed through
9268 shared library trampolines if stepping at the machine
9273 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9278 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9279 (sh_stub_unwind_sniffer): New functions.
9280 (sh_stub_unwind): New variable.
9281 (sh_gdbarch_init): Wire everything.
9285 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9286 (linux_nat_post_attach_wait): Adjust to use
9287 linux_proc_pid_is_stopped.
9288 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9289 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9290 based on pid_is_stopped from both linux-nat.c and
9291 gdbserver/linux-low.c, and renamed.
9295 * remote.c (remote_watchpoint_addr_within_range): New function.
9296 (init_remote_ops): Use it.
9300 * target.h (target_watchpoint_addr_within_range): Document macro.
9304 * stack.c (set_last_displayed_sal): Issue internal_error instead
9305 of warning, and issue it after clearing the last displayed sal.
9310 * breakpoint.c (until_break_command): Install breakpoints after
9311 all frame manipulations.
9315 * remote.c (remote_supports_cond_breakpoints): New forward
9317 (remote_add_target_side_condition): New function.
9318 (remote_insert_breakpoint): Add target-side breakpoint
9319 conditional if supported.
9320 (remote_insert_hw_breakpoint): Likewise.
9321 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9324 * target.c (update_current_target): Inherit
9325 to_supports_evaluation_of_breakpoint_conditions.
9326 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9328 * target.h (struct target_ops)
9329 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9330 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9332 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9333 (condition_evaluation_both, condition_evaluation_auto,
9334 condition_evaluation_host, condition_evaluation_target,
9335 condition_evaluation_enums, condition_evaluation_mode_1,
9336 condition_evaluation_mode): New static globals.
9337 (translate_condition_evaluation_mode): New function.
9338 (breakpoint_condition_evaluation_mode): New function.
9339 (gdb_evaluates_breakpoint_condition_p): New function.
9340 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9341 (mark_breakpoint_modified): New function.
9342 (mark_breakpoint_location_modified): New function.
9343 (set_condition_evaluation_mode): New function.
9344 (show_condition_evaluation_mode): New function.
9345 (bp_location_compare_addrs): New function.
9346 (get_first_location_gte_addr): New helper function.
9347 (set_breakpoint_condition): Free condition bytecode if locations
9348 has become unconditional. Call mark_breakpoint_modified (...).
9349 (condition_command): Call update_global_location_list (1) for
9351 (breakpoint_xfer_memory): Use is_breakpoint (...).
9352 (is_breakpoint): New function.
9353 (parse_cond_to_aexpr): New function.
9354 (build_target_condition_list): New function.
9355 (insert_bp_location): Handle target-side conditional
9356 breakpoints and call build_target_condition_list (...).
9357 (update_inserted_breakpoint_locations): New function.
9358 (insert_breakpoint_locations): Handle target-side conditional
9360 (bpstat_check_breakpoint_conditions): Add comment.
9361 (bp_condition_evaluator): New function.
9362 (bp_location_condition_evaluator): New function.
9363 (print_breakpoint_location): Print information on where the condition
9365 (print_one_breakpoint_location): Likewise.
9366 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9367 breakpoint location.
9368 (force_breakpoint_reinsertion): New functions.
9369 (update_global_location_list): Handle target-side breakpoint
9371 Reinsert locations that are already inserted if conditions have
9373 (bp_location_dtor): Free agent expression bytecode.
9374 (disable_breakpoint): Call mark_breakpoint_modified (...).
9375 Call update_global_location_list (...) with parameter 1 for breakpoints.
9376 (disable_command): Call mark_breakpoint_location_modified (...).
9377 Call update_global_location_list (...) with parameter 1 for breakpoints.
9378 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9379 (enable_command): mark_breakpoint_location_modified (...).
9380 (_initialize_breakpoint): Update documentation and add
9381 condition-evaluation breakpoint subcommand.
9383 * breakpoint.h: Include ax.h.
9384 (condition_list): New data structure.
9385 (condition_status): New enum.
9386 (bp_target_info) <cond_list>: New field.
9387 (bp_location) <condition_changed, cond_bytecode>: New fields.
9388 (is_breakpoint): New prototype.
9392 * remote.c (remote_state) <cond_breakpoints>: New field.
9393 (PACKET_ConditionalBreakpoints): New enum.
9394 (remote_cond_breakpoint_feature): New function.
9395 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9396 (remote_supports_cond_breakpoints): New function.
9397 (_initialize_remote): Add new packet configuration for
9398 target-side conditional breakpoints.
9402 * NEWS: Mention target-side conditional breakpoint support,
9403 new condition-evaluation breakpoint subcommand and remote
9408 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9413 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9414 (after_prologue): Remove.
9418 * jv-valprint.c (java_val_print): Remove dead code.
9422 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9423 known_tasks_element and known_tasks_length fields.
9424 (read_known_tasks_array): Change argument type. Use pointer type
9425 and number of elements from DATA. Adjust.
9426 (read_known_tasks_list): Likewise.
9427 (get_known_tasks_addr): Remove.
9428 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9429 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9430 type and array length. Merge former get_known_tasks_addr code.
9435 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9436 it after set_momentary_breakpoint.
9441 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9445 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9446 (find_slot_in_mapped_hash): Likewise.
9451 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9452 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9453 * configure: Regenerate.
9458 * ia64-tdep.c: Do not include libunwind-ia64.h.
9459 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9460 Include libunwind-ia64.h instead of libunwind.h.
9461 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9462 for libunwind.h existence.
9463 * configure, config.in: Regenerate.
9467 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9468 instead of value_rtti_target_type.
9469 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9470 instead of value_rtti_target_type.
9471 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9472 value_rtti_target_type.
9473 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9474 (value_rtti_target_type): Rename to ...
9475 (value_rtti_indirect_type): ... here and make it indirect. Update
9477 * value.c (readjust_indirect_value_type): New function.
9478 (coerce_ref): Support for enclosing type setting for references
9479 with readjust_indirect_value_type.
9480 * value.h (readjust_value_type): New declaration.
9481 (value_rtti_target_type): Rename to ...
9482 (value_rtti_indirect_type): ... here.
9486 * MAINTAINERS (Write After Approval): Add myself to the list.
9490 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9491 Rename objfile_p_char parameter to objfilep.
9492 (build_objfile_section_table): Result is now void. All callers
9494 * objfiles.h (struct objfile): Tweak comments, whitespace.
9495 (build_objfile_section_table): Update.
9497 * elfread.c (elf_symfile_segments): Fix warning text.
9502 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9503 particular set of file names once.
9504 (dw2_map_symbol_filenames): Likewise.
9509 * main.c (write_files): Remove the declaration.
9510 (external_editor_command): Move the declaration ...
9511 [GDBTK] (external_editor_command): ... here. Fix the comment.
9515 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9520 * darwin-nat.h (enum darwin_msg_state): Add comments.
9524 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9529 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9530 between function description and implementation.
9535 * python/py-event.c (event_object_getset): New global.
9536 (event_object_type): Reference it.
9537 * python/py-type.c (field_object_getset): New global.
9538 (field_object_type): Reference it.
9539 * python/python-internal.h (gdb_py_generic_dict): Declare.
9540 * python/py-utils.c (gdb_py_generic_dict): New function.
9544 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9548 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9549 TYPE_CALLING_CONVENTION annotation.
9553 * MAINTAINERS: Add rx to target ISA section.
9554 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9555 (ALLDEPFILES): Add rx-tdep.c.
9559 * symfile.c (symbol_file_add_main_1): Use inferior's
9561 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9562 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9564 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9566 (follow_exec): Use inferior's symfile_flags.
9567 * inferior.h (struct inferior) <symfile_flags>: New field.
9572 * remote-sim.c (gdbsim_create_inferior): Call error() when
9573 sim_create_inferior() fails.
9577 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9582 * thread.c (struct current_thread_cleanup) <was_removable>: New
9584 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9585 (make_cleanup_restore_current_thread): Initialize new field.
9589 * MAINTAINERS: Add rl78 to target ISA section.
9590 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9591 (ALLDEPFILES): Add rl78-tdep.c.
9592 * NEWS: Mention rl78 as a new target.
9596 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9598 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9603 * infcmd.c (registers_info): Print just the current register's
9608 * python/py-symbol.c (sympy_value): Use _().
9612 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9613 output to be like native targets'.
9614 (remote_pid_to_str): Special case the null ptid.
9618 * NEWS: Mention enable count command.
9619 * breakpoint.h (struct breakpoint): New field enable_count.
9620 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9621 (enable_breakpoint): Add arg to call.
9622 (struct disp_data): New struct.
9623 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9624 (do_map_enable_once_breakpoint): Create a struct and pass it.
9625 (do_map_enable_delete_breakpoint): Ditto.
9626 (do_map_enable_count_breakpoint): New function.
9627 (enable_count_command): New function.
9628 (bpstat_stop_status): Decrement enable_count.
9629 (print_one_breakpoint_location): Report enable count.
9630 (_initialize_breakpoint): Add enable count command.
9634 * rl78-tdep.c (reggroups.h): Include.
9635 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9636 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9637 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9638 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9639 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9640 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9641 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9642 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9643 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9644 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9645 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9646 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9647 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9648 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9649 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9650 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9651 beginning of register list.
9652 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9653 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9654 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9655 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9656 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9657 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9658 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9659 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9660 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9661 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9662 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9663 the pseudo registers. Rearrange other pseudo registers too so
9664 that the bank registers appear at the end.
9665 (rl78_register_type): Account for the fact that the byte sized
9666 bank registers are now pseudo-registers.
9667 (rl78_register_name): Rearrange the register name array. Make
9668 initial set of raw banked registers inaccessible.
9669 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9670 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9671 case for copying bytes back and forth between raw and pseudo
9672 versions of the banked registers. Update other cases to reflect
9674 (rl78_return_value): Update to account for changed names of
9676 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9677 rl78_register_sim_regno().
9681 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9682 the name parameter being passed to find_pc_partial_function().
9686 * MAINTAINERS: Step down from being ia64 target maintainer.
9690 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9691 compilation warning.
9695 Fix crash on loaded shlibs without loaded exec_bfd.
9696 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9697 (set_section_command): Replace exec_bfd by p->bfd.
9701 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9702 when we have a C++ qualified name.
9706 * inferior.c (inferior_pid_to_str): New.
9707 (print_inferior, inferior_command): Use it.
9711 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9713 * configure: Regenerate.
9717 * linespec.c (decode_line_internal): Fix comment correctness.
9722 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9723 * amd64bsd-nat.c: Add support for debug registers (adapted from
9725 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9726 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9727 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9728 (amd64bsd_dr_get_control): New functions.
9729 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9730 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9731 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9732 watchpoints initialization.
9733 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9737 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9739 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9743 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9747 * language.h (symbol_name_cmp_ftype): Renames
9748 symbol_name_match_p_ftype.
9749 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9750 la_get_symbol_name_match_p.
9751 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9752 ada_get_symbol_name_match_p. Update comment.
9753 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9754 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9755 Renames symbol_name_match_p. Update field type.
9756 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9757 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9758 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9759 "la_get_symbol_name_cmp" in comments.
9760 * language.c: Likewise.
9764 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9766 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9767 (amd64_sol2_gregset32_reg_offs): Likewise.
9771 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9772 of the returned BFD is allocated by GDB.
9777 * python/python-internal.h (frame_object_type): Declare.
9778 * python/py-symbol.c (sympy_needs_frame): New function.
9779 (sympy_value): New function.
9780 (symbol_object_getset): Add "needs_frame".
9781 (symbol_object_methods): Add "value".
9782 * python/py-frame.c (frame_object_type): No longer static.
9787 * python/py-symbol.c (sympy_line): New function.
9788 (symbol_object_getset): Add "line".
9792 * charset.c (find_charset_names): Check 'in' against NULL.
9796 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9797 and fields.name members from char * to const char *. All uses updated.
9798 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9799 from char * to const char *. All uses updated.
9800 (type_name_no_tag): Update.
9801 (lookup_unsigned_typename, lookup_signed_typename): Update.
9802 * gdbtypes.c (type_name_no_tag): Change result type
9803 from char * to const char *. All callers updated.
9804 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9805 name parameter from char * to const char *.
9806 * symtab.h (struct cplus_specific): Change type of demangled_name
9807 member from char * to const char *. All uses updated.
9808 (struct general_symbol_info): Change type of name and
9809 mangled_lang.demangled_name members from char * to const char *.
9811 (symbol_get_demangled_name, symbol_natural_name): Update.
9812 (symbol_demangled_name, symbol_search_name): Update.
9813 * symtab.c (symbol_get_demangled_name): Change result type
9814 from char * to const char *. All callers updated.
9815 (symbol_natural_name, symbol_demangled_name): Ditto.
9816 (symbol_search_name): Ditto.
9817 (completion_list_add_name): Change type of symname,sym_text,
9818 text,word parameters from char * to const char *.
9819 (completion_list_objc_symbol): Change type of sym_text,
9820 text,word parameters from char * to const char *.
9821 * ada-lang.c (find_struct_field): Change type of name parameter
9822 from char * to const char *.
9823 (encoded_ordered_before): Similarly for N0,N1 parameters.
9824 (old_renaming_is_invisible): Similarly for function_name parameter.
9825 (ada_type_name): Change result type from char * to const char *.
9826 All callers updated.
9827 * ada-lang.h (ada_type_name): Update.
9828 * buildsym.c (hashname): Change type of name parameter
9829 from char * to const char *.
9830 * buildsym.h (hashname): Update.
9831 * dbxread.c (end_psymtab): Change type of include_list parameter
9832 from char ** to const char **.
9833 * dwarf2read.c (determine_prefix): Change result type
9834 from char * to const char *. All callers updated.
9835 * f-lang.c (find_common_for_function): Change type of name, funcname
9836 parameters from char * to const char *.
9837 * f-lang.c (find_common_for_function): Update.
9838 * f-valprint.c (list_all_visible_commons): Change type of funcname
9839 parameters from char * to const char *.
9840 * gdbarch.sh (static_transform_name): Change type of name parameter
9841 and result from char * to const char *.
9842 * gdbarch.c: Regenerate.
9843 * gdbarch.h: Regenerate.
9844 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9845 of name parameter from char * to const char *.
9846 * jv-lang.c (java_primitive_type_from_name): Ditto.
9847 (java_demangled_signature_length): Similarly for signature parameter.
9848 (java_demangled_signature_copy): Ditto.
9849 (java_demangle_type_signature): Ditto.
9850 * jv-lang.h (java_primitive_type_from_name): Update.
9851 (java_demangle_type_signature): Update.
9852 * objc-lang.c (specialcmp): Change type of a,b parameters
9853 from char * to const char *.
9854 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9855 from char * to const char *. All callers updated.
9856 * p-lang.h (is_pascal_string_type): Update.
9857 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9858 of name parameter from char * to const char *.
9859 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9860 * utils.c (fprintf_symbol_filtered): Ditto.
9861 * defs.h (fprintf_symbol_filtered): Update.
9862 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9863 * stabsread.h (end_psymtab): Update.
9864 * stack.c (find_frame_funname): Change type of funname parameter
9865 from char ** to const char **.
9866 * stack.h (find_frame_funname): Update.
9867 * typeprint.c (type_print): Change type of varstring parameter
9868 from char * to const char *.
9869 * value.h (type_print): Update.
9870 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9871 from char * to const char *. All callers updated.
9872 (xcoff_end_psymtab): Change type of include_list parameter
9873 from char ** to const char **. All callers updated.
9874 (swap_sym): Similarly for name parameter. All callers updated.
9875 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9877 (process_coff_symbol): Use xstrdup.
9878 * stabsread.c (stabs_method_name_from_physname): Renamed from
9879 update_method_name_from_physname. Change result type from void
9880 to char *. All callers updated.
9881 (read_member_functions): In has_destructor case, store name in objfile
9882 obstack instead of malloc space. In !has_stub case, fix mem leak.
9886 * configure: Rebuild.
9887 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9892 * configure.tgt (rl78-*-elf): New target.
9893 * rl78-tdep.c: New file.
9897 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9898 and continue the loop. Add QUIT statement.
9903 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9904 bfd_lookup_symbol_from_symtab.
9905 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9906 gdb_bfd_lookup_symbol_from_symtab.
9910 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9911 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9912 symbol. Add assertion that sym2 is never NULL.
9916 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9917 "name" parameter to const char ** from char **. All callers updated.
9918 (find_pc_partial_function): Ditto.
9919 (cache_pc_function_name): Change type to const char * from char *.
9920 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9921 (find_pc_partial_function): Update.
9922 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9923 type of "name" parameter to const char * from char *.
9925 * arch-utils.c (generic_in_solib_return_trampoline): Change
9926 type of "name" parameter to const char * from char *.
9927 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9928 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9929 type of "name" parameter to const char * from char *.
9930 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9931 * gdbarch.c: Regenerate.
9932 * gdbarch.h: Regenerate.
9933 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9934 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9935 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9936 type of "name" parameter to const char * from char *.
9937 * skip.c (skip_function_pc): Ditto.
9938 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9939 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9940 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9941 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9942 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9943 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9944 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9945 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9946 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9950 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9951 the current inferior has no execution. Make sure the current
9952 remote process matches gdb's current inferior.
9957 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9963 * symtab.c (lookup_language_this): Set block_found.
9968 * jit.c (struct jit_inferior_data): Rewrite.
9969 (struct jit_objfile_data): New.
9970 (get_jit_objfile_data): New function.
9971 (add_objfile_entry): Update.
9972 (jit_read_descriptor): Return int. Replace descriptor_addr
9973 argument with inf_data. Update. Don't call error.
9974 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9976 (jit_inferior_init): Don't look up descriptor. Don't call error.
9977 (jit_reset_inferior_data_and_breakpoints)
9978 (jit_inferior_created_observer): Remove.
9979 (jit_inferior_exit_hook): Update.
9980 (jit_executable_changed_observer): Remove.
9981 (jit_event_handler): Update.
9982 (free_objfile_data): Reset inferior data if needed.
9983 (_initialize_jit): Update.
9987 * jit.c (bfd_open_from_target_memory): Move higher in file.
9991 * libunwind-frame.c (libunwind_load): Display message if dlopen
9996 * symtab.h (symbol_found_callback_ftype): New typedef.
9997 (iterate_over_symbols): Use the above.
9998 * symtab.c (iterate_over_symbols): Likewise.
9999 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10000 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10001 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10002 (iterate_name_matcher): Document return values.
10003 (collect_one_symbol): Likewise.
10004 (collect_function_symbols): Likewise.
10005 (collect_symbols): Likewise.
10009 * ada-lang.c (resolve_subexp): Update.
10010 (ada_lookup_symbol_list): Add 'full_search' argument.
10011 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10012 ada_lookup_symbol_list.
10013 (ada_lookup_encoded_symbol): Update.
10014 (get_var_value): Update.
10015 * ada-exp.y (block_lookup): Update.
10016 (write_var_or_type): Update.
10017 (write_name_assoc): Update.
10018 * ada-lang.h (ada_lookup_symbol_list): Update.
10022 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10027 * symtab.h: Remove outdated comment.
10028 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10032 Fix build error in Darwin port.
10033 * i386-darwin-nat.c: Include i386-nat.h.
10037 PR breakpoints/13568:
10038 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10039 argument. Check for recursive includes.
10040 (dwarf_decode_macros): Create an include hash.
10044 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10045 * ppc-linux-tdep.c: Include glibc-tdep.h.
10046 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10047 (powerpc_linux_in_plt_stub): New function.
10048 (powerpc_linux_in_dynsym_resolve_code): New function.
10049 (ppc_skip_trampoline_code): New function.
10050 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10051 Use glibc_skip_solib_resolver.
10055 Code cleanup: Make 1440 bytes of data segment read-only.
10056 * arch-utils.c (endian_enum): Make it const char *const [].
10057 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10059 * breakpoint.c (always_inserted_enums): Likewise.
10060 * cli/cli-cmds.c (script_ext_enums): Likewise.
10061 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10062 enumlist parameter const char *const *.
10063 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10064 const char *const *.
10065 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10066 parameter const char *const *.
10067 * cris-tdep.c (cris_modes): Make it const char *const [].
10068 * filesystem.c (target_file_system_kinds): Likewise.
10069 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10070 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10071 (can_use_displaced_stepping_enum, scheduler_enums)
10072 (exec_direction_names): Likewise.
10073 * language.c (_initialize_language): Make the type_or_range_names and
10074 case_sensitive_names variables const char *const [].
10075 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10076 * python/python.c (python_excp_enums): Likewise.
10077 * remote.c (interrupt_sequence_modes): Likewise.
10078 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10079 * serial.c (logbase_enums): Likewise.
10080 * sh-tdep.c (sh_cc_enum): Likewise.
10081 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10083 * symtab.c (multiple_symbols_modes): Likewise.
10084 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10086 * utils.c (internal_problem_modes): Likewise.
10090 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10091 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10096 * configure.ac (with_python): Fix absolute path handling for win32.
10097 * configure: Regenerate.
10101 * symtab.c: Whitespace cleanup, no code changes.
10103 * symtab.c (lookup_symbol_in_language): Improve comment.
10104 (lookup_symbol_aux): Fix comment.
10106 * psymtab.c (add_psymbol_to_list): Result is now "void".
10107 * psympriv.h (add_psymbol_to_list): Update.
10109 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10113 Do not open script filenames twice.
10114 * cli/cli-cmds.c (source_script_from_stream): Pass to
10115 source_python_script also STREAM.
10116 * python/py-auto-load.c (source_section_scripts): Pass to
10117 source_python_script_for_objfile also STREAM.
10118 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10120 * python/python-internal.h (source_python_script_for_objfile): New
10121 parameter file, rename parameter file to filename.
10122 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10123 instead if !_WIN32. Update the function comment.
10124 (source_python_script, source_python_script_for_objfile)
10125 (source_python_script): New parameter file, rename parameter file to
10126 filename. Pass FILENAME to python_run_simple_file.
10127 * python/python.h (source_python_script): New parameter file, rename
10128 parameter file to filename.
10132 * corelow.c (core_has_fake_pid): Delete.
10133 (core_close): Delete references to `core_has_fake_pid'.
10134 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10135 (core_open): Delete references to `core_has_fake_pid'.
10136 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10137 the removed global.
10141 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10142 Remove language parameter from name_matcher. Adjust the comment.
10143 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10144 Remove language parameter.
10145 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10146 * linespec.c (iterate_name_matcher): Likewise.
10147 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10148 name_matcher. Adjust call accordingly.
10149 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10150 (maintenance_check_symtabs): Adjust type of parameter "fun".
10151 * psymtab.h (maintenance_check_symtabs): Likewise.
10155 * language.h (symbol_name_match_p_ftype): New typedef.
10156 (struct language_defn): Replace field la_symbol_name_compare
10157 by la_get_symbol_name_match_p.
10158 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10159 (ada_language_defn): Use it.
10160 * linespec.c (struct symbol_matcher_data): New type.
10161 (iterate_name_matcher): Rewrite.
10162 (iterate_over_all_matching_symtabs): Pass a pointer to
10163 a symbol_matcher_data struct to expand_symtabs_matching
10164 instead of just the lookup name.
10165 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10166 opencl-lang.c, p-lang.c, language.c: Delete field
10167 la_symbol_name_compare, and replace by NULL for new field
10168 la_get_symbol_name_match_p.
10169 * symfile.h (struct quick_symbol_functions): Update comment.
10173 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10179 * solib.c (update_solib_list): Update the program space's
10180 added_solibs and deleted_solibs fields.
10181 * progspace.h (struct program_space) <added_solibs,
10182 deleted_solibs>: New fields.
10183 (clear_program_space_solib_cache): Declare.
10184 * progspace.c (release_program_space): Call
10185 clear_program_space_solib_cache.
10186 (clear_program_space_solib_cache): New function.
10187 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10188 bpstat_stop_status. Use handle_solib_event.
10189 * breakpoint.c: Include gdb_regex.h.
10190 (print_solib_event): New function.
10191 (bpstat_print): Use print_solib_event.
10192 (bpstat_stop_status): Add special case for bp_shlib_event.
10193 (handle_solib_event): New function.
10194 (bpstat_what): Use handle_solib_event.
10195 (struct solib_catchpoint): New.
10196 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10197 (breakpoint_hit_catch_solib, check_status_catch_solib)
10198 (print_it_catch_solib, print_one_catch_solib)
10199 (print_mention_catch_solib, print_recreate_catch_solib): New
10201 (catch_solib_breakpoint_ops): New global.
10202 (catch_load_or_unload, catch_load_command_1)
10203 (catch_unload_command_1): New functions.
10204 (internal_bkpt_check_status): Add special case for
10206 (internal_bkpt_print_it): Use print_solib_event.
10207 (initialize_breakpoint_ops): Initialize
10208 catch_solib_breakpoint_ops.
10209 (_initialize_breakpoint): Register "catch load" and "catch
10211 * breakpoint.h (handle_solib_event): Declare.
10212 * NEWS: Add entry for "catch load" and "catch unload".
10216 * ada-lang.c: Include gdb_vecs.h.
10217 * charset.c: Include gdb_vecs.h.
10218 * tracepoint.h: Include gdb_vecs.h.
10219 * gdb_vecs.h: New file.
10223 * breakpoint.c (breakpoint_hit_catch_fork)
10224 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10225 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10226 * infrun.c (inferior_has_forked, inferior_has_vforked)
10227 (inferior_has_execd, inferior_has_called_syscall): Delete.
10228 (handle_syscall_event): Get syscall_number from the execution
10229 control state's wait status.
10230 (wait_for_inferior): Don't clear syscall_number.
10234 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10235 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10236 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10237 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10239 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10240 false for events other than TARGET_SIGNAL_TRAP.
10241 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10242 Add `ws' parameter.
10243 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10244 events other than TARGET_SIGNAL_TRAP.
10245 (tracepoint_breakpoint_hit): Add `ws' parameter.
10246 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10248 (bpstat_stop_status): Same.
10249 (pc_at_non_inline_function): Same.
10250 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10251 to pass the current event's waitstatus to bpstat_stop_status
10252 and pc_at_non_inline_function.
10257 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10258 Update the function comment for it.
10259 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10260 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10265 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10266 outside `bs->stop' block.
10267 (bpstat_what): Rework bp_shlib_event handling.
10268 (internal_bkpt_check_status): If the breakpoint is a
10269 bp_shlib_event, then set bs->stop and bs->print if
10270 stop_on_solib_events is set.
10274 Delete #if 0'd out code.
10275 * stack.c (print_frame_label_vars): Remove.
10276 (catch_info): Likewise.
10277 (_initialize_stack): Remove "info catch" command.
10278 * NEWS: Mention the above.
10282 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10284 (remote_notice_new_inferior): If the remote end doesn't support
10285 the multiprocess extensions, then the PID is fake.
10286 (add_current_inferior_and_thread): New.
10287 (remote_start_remote): Use it.
10288 (extended_remote_attach_1): Adjust.
10289 (extended_remote_create_inferior_1): Use
10290 add_current_inferior_and_thread.
10294 Fix watchpoints to be specific for each inferior.
10295 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10296 current_program_space.
10297 * i386-nat.c (i386_inferior_data_cleanup): New.
10298 (i386_inferior_data_get): Replace variable inf_data_local by an
10299 inferior_data call.
10300 (i386_use_watchpoints): Initialize i386_inferior_data.
10301 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10302 specific iterate_over_lwps.
10306 Fix watchpoints across inferior fork.
10307 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10308 comment for linux_nat_iterate_watchpoint_lwps.
10309 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10310 linux_nat_iterate_watchpoint_lwps.
10311 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10312 * i386-linux-nat.c (update_debug_registers_callback): Update the
10313 comment for linux_nat_iterate_watchpoint_lwps.
10314 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10315 linux_nat_iterate_watchpoint_lwps.
10316 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10317 * i386-nat.c: Include inferior.h.
10318 (dr_mirror): Remove.
10319 (i386_inferior_data, struct i386_inferior_data)
10320 (i386_inferior_data_get): New.
10321 (i386_debug_reg_state): Use i386_inferior_data_get.
10322 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10323 (i386_insert_watchpoint, i386_remove_watchpoint)
10324 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10325 (i386_remove_hw_breakpoint): New variable state, use
10326 i386_debug_reg_state instead of DR_MIRROR.
10327 * linux-nat.c (delete_lwp): New declaration.
10328 (num_lwps): Move here from downwards.
10329 (delete_lwp_cleanup): New.
10330 (linux_child_follow_fork): Create new child_lp, call
10331 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10333 (num_lwps): Move upwards.
10334 (linux_nat_iterate_watchpoint_lwps): New.
10335 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10336 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10344 * top.c (caution): Rename to ...
10345 (confirm): ... this.
10346 (show_caution): Rename to ...
10347 (show_confirm): ... this.
10348 (quit_cover): Adjust.
10349 (init_main): Adjust.
10350 * top.h (caution): Rename to ...
10351 (confirm): ... this.
10352 * utils.c (internal_vproblem, defaulted_query): Adjust.
10356 * top.c (caution): Update comment.
10357 (execute_command): Don't consider the current value of `caution'.
10361 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10365 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10366 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10367 * target.c (target_fileio_pwrite): Remove buffer address from
10369 (target_fileio_pread): Likewise.
10373 * NEWS: Document remote "info proc" and "generate-core-file".
10377 * gdbarch.sh (find_memory_regions): New callback.
10378 * gdbarch.c, gdbarch.h: Regenerate.
10380 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10381 callback before falling back to target method.
10383 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10384 (linux_target_install_ops): No longer install it.
10386 * linux-tdep.c (linux_find_memory_regions): New function.
10387 (linux_init_abi): Install it.
10391 * gdbarch.sh (make_corefile_notes): New architecture callback.
10392 * gdbarch.c: Regenerate.
10393 * gdbarch.h: Likewise.
10395 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10396 before target_make_corefile_notes. If NULL is returned, the
10397 target does not support core file generation.
10399 * linux-nat.c: Include "linux-tdep.h".
10400 (find_signalled_thread, find_stop_signal): Remove.
10401 (linux_nat_do_thread_registers): Likewise.
10402 (struct linux_nat_corefile_thread_data): Likewise.
10403 (linux_nat_corefile_thread_callback): Likewise.
10404 (iterate_over_spus): Likewise.
10405 (struct linux_spu_corefile_data): Likewise.
10406 (linux_spu_corefile_callback): Likewise.
10407 (linux_spu_make_corefile_notes): Likewise.
10408 (linux_nat_collect_thread_registers): New function.
10409 (linux_nat_make_corefile_notes): Replace contents by call to
10410 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10411 as native-only callback.
10413 * linux-tdep.h: Include "bfd.h".
10414 (struct regcache): Add forward declaration.
10415 (linux_collect_thread_registers_ftype): New typedef.
10416 (linux_make_corefile_notes): Add prototype.
10417 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10418 "regset.h", and "elf-bfd.h".
10419 (find_signalled_thread, find_stop_signal): New functions.
10420 (linux_spu_make_corefile_notes): Likewise.
10421 (linux_collect_thread_registers): Likewise.
10422 (struct linux_corefile_thread_data): New data structure.
10423 (linux_corefile_thread_callback): New funcion.
10424 (linux_make_corefile_notes): Likewise.
10425 (linux_make_corefile_notes_1): Likewise.
10426 (linux_init_abi): Install it.
10430 * gdbarch.sh (info_proc): New callback.
10431 * gdbarch.c, gdbarch.h: Regenerate.
10433 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10434 before falling back to the target info_proc callback.
10436 * linux-nat.c: Do not include "cli/cli-utils.h".
10437 (linux_nat_info_proc): Remove.
10438 (linux_target_install_ops): No longer install it.
10440 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10441 (read_mapping): New function.
10442 (linux_info_proc): Likewise.
10443 (linux_init_abi): Install it.
10447 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10448 * infcmd.c: (info_proc_cmd_1): New function.
10449 (info_proc_cmd): New function, moved here from equivalent routine
10450 orignally in linux-nat.c.
10451 (info_proc_cmd_mappings): Likewise.
10452 (info_proc_cmd_stat): Likewise.
10453 (info_proc_cmd_status): Likewise.
10454 (info_proc_cmd_cwd): Likewise.
10455 (info_proc_cmd_cmdline): Likewise.
10456 (info_proc_cmd_exe): Likewise.
10457 (info_proc_cmd_all): Likewise.
10458 (_initialize_infcmd): Install "info proc" command and subcommands.
10460 * target.h (struct target_ops): Add to_info_proc.
10461 (target_info_proc): Add prototype.
10462 * target.c (target_info_proc): New function.
10464 * procfs.c (procfs_info_proc): Add prototype.
10465 (info_proc_cmd): Rename into ...
10466 (procfs_info_proc): ... this. Update argument types as appropriate
10467 for a to_info_proc implementation. Handle "what" argument.
10468 (procfs_target): Install procfs_info_proc.
10469 (_initialize_procfs): No longer install "info proc" command.
10471 * linux-nat.c: (enum info_proc_what): Remove.
10472 (linux_nat_info_proc_cmd_1): Rename into ...
10473 (linux_nat_info_proc): ... this. Update argument types as appropriate
10474 for a to_info_proc implementation.
10475 (linux_nat_info_proc_cmd): Remove.
10476 (linux_nat_info_proc_cmd_mappings): Likewise.
10477 (linux_nat_info_proc_cmd_stat): Likewise.
10478 (linux_nat_info_proc_cmd_status): Likewise.
10479 (linux_nat_info_proc_cmd_cwd): Likewise.
10480 (linux_nat_info_proc_cmd_cmdline): Likewise.
10481 (linux_nat_info_proc_cmd_exe): Likewise.
10482 (linux_nat_info_proc_cmd_all): Likewise.
10483 (linux_target_install_ops): Install linux_nat_info_proc.
10484 (_initialize_linux_nat): No longer install "info proc" command
10489 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10490 * config.in, configure: Regenerate.
10492 * target.h (struct target_ops): Add to_fileio_readlink.
10493 (target_fileio_readlink): Add prototype.
10494 * target.c (target_fileio_readlink): New function.
10496 * inf-child.c: Conditionally include <sys/param.h>.
10497 (inf_child_fileio_readlink): New function.
10498 (inf_child_target): Install it.
10500 * remote.c (PACKET_vFile_readlink): New enum value.
10501 (remote_hostio_readlink): New function.
10502 (init_remote_ops): Install it.
10503 (_initialize_remote): Handle vFile:readlink packet type.
10508 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10509 * config.in, configure: Regenerate.
10511 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10512 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10513 (target_fileio_open): Add prototype.
10514 (target_fileio_pwrite): Likewise.
10515 (target_fileio_pread): Likewise.
10516 (target_fileio_close): Likewise.
10517 (target_fileio_unlink): Likewise.
10518 (target_fileio_read_alloc): Likewise.
10519 (target_fileio_read_stralloc): Likewise.
10521 * target.c: Include "gdb/fileio.h".
10522 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10523 (default_fileio_target): New function.
10524 (target_fileio_open): Likewise.
10525 (target_fileio_pwrite): Likewise.
10526 (target_fileio_pread): Likewise.
10527 (target_fileio_close): Likewise.
10528 (target_fileio_unlink): Likewise.
10529 (target_fileio_close_cleanup): Likewise.
10530 (target_fileio_read_alloc_1): Likewise.
10531 (target_fileio_read_alloc): Likewise.
10532 (target_fileio_read_stralloc): Likewise.
10534 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10535 <fcntl.h>, and <unistd.h>.
10536 (inf_child_fileio_open_flags_to_host): New function.
10537 (inf_child_errno_to_fileio_error): Likewise.
10538 (inf_child_fileio_open): Likewise.
10539 (inf_child_fileio_pwrite): Likewise.
10540 (inf_child_fileio_pread): Likewise.
10541 (inf_child_fileio_close): Likewise.
10542 (inf_child_fileio_unlink): Likewise.
10543 (inf_child_target): Install to_fileio routines.
10545 * remote.c (init_remote_ops): Install to_fileio routines.
10550 * remote.c (remote_multi_process_p): Only check for multi-process
10551 protocol feature, do not check for extended protocol.
10552 (remote_supports_multi_process): Check for extended protocol here.
10553 (set_general_process): Likewise.
10554 (extended_remote_kill): Likewise.
10555 (remote_pid_to_str): Likewise.
10556 (remote_query_supported): Always query multiprocess mode.
10561 * inferior.h (struct inferior): Add fake_pid_p.
10562 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10563 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10564 magic_null_ptid since the remote side doesn't provide a real PID.
10568 * NEWS: Combine the two Python sections.
10572 * target.h (target_close): Update comment on the target's unpush state.
10576 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10577 linux_nat_async directly instead of going through the target
10579 * target.c (unpush_target): Close target after unpushing it, not
10584 * mdebugread.c (sort_blocks): Replace integer constants with ones
10585 derived from FIRST_LOCAL_BLOCK.
10591 * symfile.c (find_separate_debug_file): New function.
10592 (terminate_after_last_dir_separator): Likewise.
10593 (find_separate_debug_file_by_debuglink): Also try realpath.
10594 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10595 * configure: Regenerate.
10596 * config.in: Regenerate.
10600 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10601 (main.o): Remove rule.
10602 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10603 (--with-sysroot): Rewrite.
10604 * configure: Regenerate.
10605 * config.in: Regenerate.
10609 * parse.c (initialize_expout): New function.
10610 (reallocate_expout): Likewise.
10611 (parse_exp_in_context): Use `initialize_expout' and
10612 `reallocate_expout' when appropriate.
10616 * record.c (struct record_breakpoint, record_breakpoint_p)
10617 (record_breakpoints): New.
10618 (record_insert_breakpoint, record_remove_breakpoint): Manage
10619 record breakpoints list. Only remove breakpoints from the
10620 inferior if they had been inserted there in the first place.
10624 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10625 if we know we don't have a file name to look for.
10629 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10630 the frame's stop reason is UNWIND_UNAVAILABLE.
10634 Fix compilation error.
10635 * m2-exp.y (yyerror): Use ANSI C prototype.
10639 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10640 (growbuf_by_size): Likewise.
10641 (yyerror): Likewise.
10642 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10643 (modblock): Remove variable (was #if 0'ed).
10644 (parse_number): Convert prototype from K&R to ANSI C.
10645 (yyerror): Likewise.
10646 * objc-exp.y (parse_number): Likewise.
10647 (yyerror): Likewise.
10648 (yylex): Remove #if 0'ed code.
10649 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10650 (yyerror): Likewise.
10655 * symtab.h (compare_filenames_for_search): Declare.
10656 * symtab.c (compare_filenames_for_search): New function.
10657 (iterate_over_some_symtabs): Use it.
10658 * symfile.h (struct quick_symbol_functions)
10659 <map_symtabs_matching_filename>: Change spec.
10660 * psymtab.c (partial_map_symtabs_matching_filename): Use
10661 compare_filenames_for_search. Update for new spec.
10662 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10663 compare_filenames_for_search. Update for new spec.
10664 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10669 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10670 (struct main_type) <flag_flag_enum>: New field.
10671 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10672 * NEWS: Add entries.
10673 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10675 * python/lib/gdb/printing.py (_EnumInstance): New class.
10676 (FlagEnumerationPrinter): Likewise.
10680 * breakpoint.c (create_sals_from_address_default): New function.
10681 (create_breakpoints_sal_default): Likewise.
10682 (decode_linespec_default): Likewise.
10683 (is_marker_spec): Removed.
10684 (strace_marker_p): New function.
10685 (init_breakpoint_sal): Using `strace_marker_p' instead of
10687 (create_breakpoint): Call method `create_sals_from_address' from
10688 breakpoint_ops, replacing code that created SALs conditionally
10689 on the type of the breakpoint. Call method `create_breakpoints_sal',
10690 replacing code that created breakpoints conditionally on the type
10692 (base_breakpoint_create_sals_from_address): New function.
10693 (base_breakpoint_create_breakpoints_sal): Likewise.
10694 (base_breakpoint_decode_linespec): Likewise.
10695 (base_breakpoint_ops): Add methods
10696 `base_breakpoint_create_sals_from_address',
10697 `base_breakpoint_create_breakpoints_sal' and
10698 `base_breakpoint_decode_linespec'.
10699 (bkpt_create_sals_from_address): New function.
10700 (bkpt_create_breakpoints_sal): Likewise.
10701 (bkpt_decode_linespec): Likewise.
10702 (tracepoint_create_sals_from_address): Likewise.
10703 (tracepoint_create_breakpoints_sal): Likewise.
10704 (tracepoint_decode_linespec): Likewise.
10705 (strace_marker_create_sals_from_address): Likewise.
10706 (strace_marker_create_breakpoints_sal): Likewise.
10707 (strace_marker_decode_linespec): Likewise.
10708 (strace_marker_breakpoint_ops): New variable.
10709 (addr_string_to_sals): Remove `marker_spec'. Call method
10710 `decode_linespec' from breakpoint_ops, replacing code that decoded
10711 an address string into a SAL. Use `strace_marker_p' instead of
10713 (strace_command): Decide whether we are dealing with a static
10714 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10715 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10716 * breakpoint.h (linespec_result, linespec_sals): New forward
10718 (breakpoint_ops) <create_sals_from_address>,
10719 <create_breakpoints_sal>, <decode_linespec>: New methods.
10723 * NEWS: Update text for "maint set python print-stack".
10724 It is deprecated in gdb 7.4 and deleted in 7.5.
10728 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10729 including curses.h.
10733 * configure: Regenerate.
10734 * config.in: Regenerate.
10739 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10740 (ANONYMOUS_UNION_NAME): Define.
10741 (is_path_expr_parent): New function.
10742 (get_path_expr_parent): New function.
10743 (is_anonymous_child): New function.
10744 (create_child_with_value): If the child is anonymous and without
10745 a name, assign an object name to it.
10746 (c_describe_child): Use get_path_expr_parent to determine
10747 the parent expression.
10748 If there field represents an anonymous struct or union and
10749 has no name, set an appropriate display name and expression.
10750 (cplus_describe_child): Likewise.
10754 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10755 available when %ebp is found to be zero (outermost).
10759 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10760 an internal gdb_static_assert.
10761 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10766 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10767 catch" and "catch throw".
10771 * blockframe.c (block_innermost_frame): Start search from selected
10772 frame, if present, or otherwise the current frame.
10774 * c-exp.y (variable): Update innermost_block for
10775 'block COLONCOLON NAME' clause.
10776 * m2-exp.y (variable): Ditto.
10777 * objc-exp.y (variable): Ditto.
10782 * python/python.c (finish_python_initialization): Set sys.argv.
10786 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10787 "want_line_info". All callers updated.
10788 (dwarf_decode_lines_1): New function.
10789 (handle_DW_AT_stmt_list): Add function comment.
10790 New arg "want_line_info". All callers updated.
10791 (read_file_scope,read_type_unit_scope): Move comment from
10792 handle_DW_AT_stmt_list to here.
10796 Fix regression after libiberty/ update for GCC PR 6057 and others.
10797 * c-exp.y (operator) <OPERATOR DELETE>
10798 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10799 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10800 (make_builtin_type, make_name): New variable i, add gdb_assert.
10801 (operator) <OPERATOR NEW>: Update ARGS to 3.
10802 (operator) <OPERATOR DELETE>: Add trailing space.
10803 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10804 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10805 * cp-support.c (cp_canonicalize_string): Check NULL from
10806 cp_comp_to_string, call warning and return.
10810 Fix duplicate .o files after omitting libbfd.a.
10811 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10812 (SFILES): Add corelow.c.
10813 (COMMON_OBS): Add corelow.o.
10814 (ALLDEPFILES): Remove corelow.c.
10815 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10816 * config/alpha/alpha-osf3.mh: Likewise.
10817 * config/alpha/fbsd.mh: Likewise.
10818 * config/arm/nbsdaout.mh: Likewise.
10819 * config/arm/nbsdelf.mh: Likewise.
10820 * config/i386/i386gnu.mh: Likewise.
10821 * config/ia64/hpux.mh: Likewise.
10822 * config/ia64/linux.mh: Likewise.
10823 * config/m32r/linux.mh: Likewise.
10824 * config/m68k/linux.mh: Likewise.
10825 * config/mips/irix5.mh: Likewise.
10826 * config/mips/irix6.mh: Likewise.
10827 * config/pa/hpux.mh: Likewise.
10828 * config/pa/linux.mh: Likewise.
10829 * config/powerpc/aix.mh: Likewise.
10830 * config/sparc/linux.mh: Likewise.
10831 * config/sparc/linux64.mh: Likewise.
10832 * config/sparc/sol2.mh: Likewise.
10833 * config/vax/vax.mh: Likewise.
10834 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10835 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10836 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10837 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10838 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10839 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10840 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10841 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10842 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10843 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10844 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10845 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10846 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10847 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10848 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10849 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10850 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10851 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10852 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10853 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10854 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10855 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10856 corelow.o from gdb_target_obs.
10857 * corefile.c (core_target): Update the comment on NULL value.
10858 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10859 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10860 MATCHES. Drop YUMMY set on NULL.
10861 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10862 reclaim CORE_DATA if it is already NULL.
10866 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10867 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10871 * breakpoint.c (wrapper.h): Don't include.
10875 * Makefile.in (SFILES): Remove wrapper.c.
10876 (HFILES_NO_SRCDIR): Remove wrapper.h.
10877 (COMMON_OBS): Remove wrapper.o.
10878 * cli/cli-interp.c: Don't inlude wrapper.h.
10879 * corelow.c: Likewise.
10880 (core_open): Replace gdb_target_find_new_threads with
10881 TRY_CATCH around target_find_new_threads.
10882 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10883 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10884 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10885 evaluate_expression.
10886 (varobj_set_value): Likewise for evaluate_expression and
10888 (install_new_variable): Likewise for value_fetch_lazy.
10889 (adjust_value_for_child_access): Likewise for value_ind.
10890 (c_describe_child): Likewise for value_subscript and
10892 (c_value_of_root): Likewise for evaluate_expression.
10893 * wrapper.c: Remove.
10894 * wrapper.h: Remove.
10898 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10899 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10900 "abfd" args with "section". All callers updated.
10901 Error checking code moved ...
10902 (error_check_comp_unit_head): ... here. New function.
10903 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10904 Delete arg "abfd". New arg "type_offset". All callers updated.
10905 (create_debug_types_hash_table): Simplify by using
10906 read_and_check_type_unit_head.
10908 * parser-defs.h (namecopy): Delete.
10909 * parse.c (namecopy, namecopy_size): Move into copy_name.
10913 Partially fix duplicate .o files after omitting libbfd.a.
10914 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10915 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10916 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10917 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10918 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10919 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10920 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10924 * MAINTAINERS: Update my email address.
10928 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10929 n_type_units. Rename type_comp_units to all_type_units.
10931 (add_signatured_type_cu_to_table): Renamed from
10932 add_signatured_type_cu_to_list. All callers updated.
10934 * gdbtypes.h (struct cplus_struct_type): Delete member
10935 nfn_fields_total. All uses removed.
10939 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10941 (dwarf2_find_comp_unit): Delete.
10942 (process_psymtab_comp_unit): Make result "void".
10943 Delete args buffer, info_ptr, buffer_size, and replace with
10944 "section". All callers updated.
10945 (dwarf2_build_psymtabs_hard): Simplify.
10950 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10951 before `struct gdb_exception'.
10952 * breakpoint.c (update_global_location_list_nothrow)
10953 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10954 * cp-abi.c (value_rtti_type): Likewise.
10955 * cp-support.c (cp_validate_operator): Likewise.
10956 * infrun.c (insert_exception_resume_breakpoint)
10957 (check_exception_resume, keep_going): Likewise.
10958 * mi-interp.c (mi_breakpoint_created)
10959 (mi_breakpoint_modified): Likewise.
10960 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10961 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10962 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10966 * dwarf2read.c (statement_prologue): Delete, unused.
10968 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10969 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10971 * dwarf2read.c (comp_unit_header): Delete, unused.
10975 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10976 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10980 * infrun.c (normal_stop): Don't skip calling the normal_stop
10981 observers if the thread was doing a multi-step, but stopped for
10982 some reason other than stepping.
10986 * cli/cli-decode.h: Add comments.
10987 (CMD_LIST_AMBIGUOUS): Moved to command.h
10988 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10989 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10990 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10991 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10992 (add_com, add_com_alias, add_info, add_info_alias)
10993 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10995 * command.h: Add and adjust comments.
10996 (CMD_LIST_AMBIGUOUS): Moved here.
10997 (help_cmd, help_cmd_list): Delete declarations.
11001 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11002 All callers updated.
11003 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11004 Replace all arguments with "per_cu". All callers updated.
11006 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11008 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11009 New arg "per_cu". All callers updated.
11011 Delete #if 0'd out code.
11012 * language.c (binop_result_type): Delete.
11013 (simple_type, ordered_type, same_type, integral_type): Delete.
11014 (numeric_type, character_type, string_type, boolean_type): Delete.
11015 (float_type, structured_type): Delete.
11016 * language.h: Update.
11020 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11024 * corefile.c (close_exec_file): Delete.
11025 (reopen_exec_file): Remove commented out code that seems related
11026 to close_exec_file, which is being deleted here.
11027 * inferior.h (close_exec_file): Delete.
11028 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11032 * ada-lang.c: #include "cli/cli-utils.h".
11033 (get_selections): Use skip_spaces.
11034 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11035 (catch_ada_exception_command_split): Use skip_spaces.
11036 (ada_decode_assert_location): Likewise.
11040 * linespec.c (decode_line_internal): Check for C++ or Java
11041 compound constructs only if the current language is C, C++
11049 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11050 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11052 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11053 fall through into AT_ENTRY_POINT.
11054 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11055 DUMMY_ADDR with it.
11056 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11057 PPC_INSN_SIZE skip to 3 times.
11061 * linespec.c (add_minsym): Preserve function descriptors.
11065 * breakpoint.c (all_locations_are_pending): Consider locations
11066 in program spaces executing during startup pending as well.
11070 Copyright year update in most files of the GDB Project.
11074 * copyright.sh: Delete.
11075 * copyright.py: Rewrite.
11079 * gnulib/extra/update-copyright: New file, imported from gnulib.
11083 * README (Copyright and License Notices): New section.
11088 * python/py-value.c (valpy_dereference, valpy_get_address
11089 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11090 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11091 (valpy_absolute, valpy_richcompare): Free intermediate values.
11095 * ada-lang.c: Reformat the copyright notice.
11099 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11100 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11101 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11102 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11103 Revert this part of:
11105 Build gdb directly from *.o files not using libgdb.a.
11106 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11110 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11111 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11112 Reformat the copyright header.
11116 Revert this part of:
11118 Remove the gdbtui binary.
11119 * gdb.c (main): Remove args.interpreter_p initialization.
11120 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11121 * main.h (struct captured_main_args): Remove interpreter_p.
11125 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11129 * top.c (print_gdb_version): Update copyright year.
11133 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11138 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11139 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11141 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11142 fall through into AT_ENTRY_POINT.
11143 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11144 DUMMY_ADDR with it.
11145 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11146 PPC_INSN_SIZE skip to 3 times.
11150 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11152 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11156 Build gdb directly from *.o files not using libgdb.a.
11157 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11158 (COMMON_OBS): Remove solib-target.o.
11159 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11160 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11161 (LIBGDB_OBS, libgdb.a): Move it above.
11162 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11163 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11164 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11165 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11166 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11167 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11168 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11169 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11170 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11171 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11172 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11173 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11174 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11175 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11176 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11177 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11178 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11179 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11180 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11181 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11182 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11183 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11184 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11185 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11186 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11187 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11188 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11192 Remove the gdbtui binary.
11193 * .gitignore (/gdbtui): Remove.
11194 * Makefile.in (TUI): Remove.
11195 (SUBDIR_TUI_OBS): Remove tui-main.o.
11196 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11197 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11198 (tui-main.o): Remove.
11199 (all_object_files): Remove tui-main.o.
11200 * NEWS: New note for the gdbtui removal.
11201 * configure: Rebuilt.
11202 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11203 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11204 CONFIG_UNINSTALL respectively.
11205 * gdb.c (main): Remove args.interpreter_p initialization.
11206 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11207 * main.h (struct captured_main_args): Remove interpreter_p.
11208 * tui/tui-main.c: Remove.
11212 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11213 (dwarf2_physname, read_import_statement): Ditto.
11214 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11215 (process_structure_scope read_subroutine_type): Ditto.
11216 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11217 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11218 (dwarf2_fetch_die_location_block): Ditto.
11219 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11221 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11222 All callers updated.
11223 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11224 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11225 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11227 * dwarf2read.c (load_cu): Move assert to more useful location.
11229 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11230 All callers updated.
11232 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11233 (dwarf2_elf_names): Minor reformat.
11234 (dwarf2_per_cu_data): Tweak comment.
11235 (dwarf2_read_section): Fix comment.
11236 (create_all_comp_units): Fix comment.
11237 (load_full_comp_unit): Fix comment.
11238 (process_full_comp_unit): Fix comment.
11239 (read_signatured_type): Fix comment.
11241 For older changes see ChangeLog-2011.
11247 version-control: never