+2010-02-08 Tom Tromey <tromey@redhat.com>
+
+ PR c++/8017:
+ * value.h: Update.
+ * valops.c (search_struct_field): Make 'name' const.
+ (search_struct_method): Likewise.
+ (find_method_list): Make 'method' const.
+ (value_struct_elt): Make 'name' and 'err' const.
+ (value_find_oload_method_list): Make 'method' const.
+ (find_overload_match): Make 'name' const.
+ * eval.c (evaluate_subexp_standard): New locals function,
+ function_name.
+ <OP_FUNCALL>: Handle OP_SCOPE specially.
+
+2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * infrun.c (handle_inferior_event): Do not look up regcache
+ for exited processes.
+
+Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
+
+ PR gdb/10728
+ * valarith.c (value_ptrdiff): Added a test for a zero type length,
+ warn if found, and assume length = 1.
+
+2010-02-08 Chris Moller <cmoller@redhat.com>
+
+ PR gdb/9067
+ * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
+ cp_print_static_field) Fix use of obstacks.
+
+2010-02-08 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-nat.c (linux_nat_resume): In non-stop, also only tag
+ resumed LWPs as resumed.
+ (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
+ we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
+ of throwing an internal error. If an LWP of a process we're not
+ waiting for reports a signal, don't force collecting a SIGSTOP,
+ and if it was breakpoint hit in non-stop mode, cancel it. Don't
+ go through all LWPs cancelling breakpoints in non-stop mode.
+ (resume_stopped_resumed_lwps): New.
+ (linux_nat_wait): Use it.
+
+2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
+ i386/amd64 and i386/amd64-linux.
+ (i386/i386-expedite): New.
+ (i386/i386-linux-expedite): Likewise.
+ (i386/amd64-expedite):Likewise.
+ (i386/amd64-linux-expedite): Likewise.
+ ($(outdir)/i386/i386-linux.dat): Likewise.
+ ($(outdir)/i386/amd64.dat): Likewise.
+ ($(outdir)/i386/amd64-linux.dat): Likewise.
+
+ * features/i386/32bit-core.xml: New.
+ * features/i386/32bit-linux.xml: Likewise.
+ * features/i386/32bit-sse.xml: Likewise.
+ * features/i386/64bit-core.xml: Likewise.
+ * features/i386/64bit-linux.xml: Likewise.
+ * features/i386/64bit-sse.xml: Likewise.
+ * features/i386/i386-linux.xml: Likewise.
+ * features/i386/i386.xml: Likewise.
+ * features/i386/amd64-linux.xml: Likewise.
+ * features/i386/amd64.xml: Likewise.
+ * features/i386/i386-linux.c: Likewise.
+ * features/i386/i386.c: Likewise.
+ * features/i386/amd64-linux.c: Likewise.
+ * features/i386/amd64.c: Likewise.
+
+2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
+
+ PR c++/7935:
+ * cp-support.h: Added char* alias element to using_direct data
+ struct.
+ (cp_add_using): Added char* alias argument.
+ (cp_add_using_directive): Ditto.
+ * cp-namespace.c: Updated with the above changes.
+ (cp_lookup_symbol_imports): Check for aliases.
+ * dwarf2read.c (read_import_statement): Figure out local alias
+ for the import and pass it on to cp_add_using.
+ (read_namespace): Pass alias argument to cp_add_using.
+
+2010-02-05 Hui Zhu <teawater@gmail.com>
+
+ * defs.h (gdb_bfd_errmsg): New extern.
+ * exec.c (exec_file_attach): Change bfd_errmsg to
+ gdb_bfd_errmsg.
+ * utils.c (AMBIGUOUS_MESS1): New macro.
+ (AMBIGUOUS_MESS2): New macro.
+ (gdb_bfd_errmsg): New function.
+
+2010-02-04 Doug Evans <dje@google.com>
+
+ * solib-svr4.c (enable_break): Add comment.
+
+2010-02-04 Anthony Green <green@moxielogic.com>
+
+ * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
+ gracefully.
+
+2010-02-04 Tom Tromey <tromey@redhat.com>
+
+ * valops.c (search_struct_field): Account for
+ value_embedded_offset. Fix check for virtual base past the end of
+ the object. Use value_copy when making a slice of the value.
+
+2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR tui/9622
+ * tui/tui-interp.c (tui_init): Call tui_initialize_readline
+ only if gdb_stdout is a tty.
+
+2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * target-descriptions.c: Include "osabi.h".
+ (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
+ OSABI.
+
+2010-02-04 Tristan Gingold <gingold@adacore.com>
+
+ * machoread.c (macho_add_oso): Renamed to macho_register_oso.
+ (macho_symtab_read): Adjust calls to macho_add_oso.
+ (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
+ (macho_symfile_read): Adjust call to macho_oso_symfile.
+ (macho_new_init): Move this function after declarations.
+ (macho_symfile_init): Ditto.
+ * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
+ * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
+
+2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
+
+ Include MI command in remotelog.
+
+ * mi/mi-main.c (mi_execute_command): Call target_log_command.
+
+2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * remote.c (remote_state): Remove gdbarch.
+ (init_remote_state): Don't set gdbarch.
+ (remote_query_supported): Pass target_gdbarch instead of
+ rs->gdbarch to gdbarch_qsupported.
+
+2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gdbarch.sh: Add qsupported.
+
+ * gdbarch.c: Regenerated.
+ * gdbarch.h: Likewise.
+
+ * remote.c (remote_state): Add gdbarch.
+ (init_remote_state): Set gdbarch.
+ (remote_query_supported): Support gdbarch_qsupported.
+
+2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
+ __FreeBSD_kernel_version.
+
+2010-02-03 Tristan Gingold <gingold@adacore.com>
+
+ * symfile.h (struct sym_fns): Add sym_relocate field.
+ (default_symfile_relocate): New prototype.
+ (symfile_relocate_debug_section): First argument is now an objfile.
+ * symfile.c (default_symfile_relocate): Rename from
+ symfile_relocate_debug_section, first argument is now an objfile.
+ (symfile_relocate_debug_section): New function.
+ * coffread.c (coff_sym_fns): Set sym_relocate field.
+ * somread.c (som_sym_fns): Ditto.
+ * mipsread.c (ecoff_sym_fns): Ditto.
+ * machoread.c (macho_sym_fns): Ditto.
+ * elfread.c (elf_sym_fns): Ditto.
+ * dwarf2read.c (dwarf2_read_section): Ditto.
+ * xcoffread.c (xcoff_sym_fns): Ditto.
+ * dbxread.c (aout_sym_fns): Ditto.
+ (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
+ (elfstab_build_psymtabs): Ditto.
+
+2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * defs.h (MAX_REGISTER_SIZE): Increase to 32.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ * valops.c (value_cast_structs): Try downcasting using the RTTI
+ type.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
+ (gnuv2_baseclass_offset): Now static.
+ * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
+ * gnu-v2-abi.h: Remove.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ * m2-typeprint.c (m2_record_fields): Don't use
+ TYPE_DECLARED_TYPE.
+ * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
+ (struct main_type) <flag_declared_class>: New field.
+ (struct cplus_struct_type) <declared_type>: Remove.
+ <ntemplate_args>: Move earlier.
+ (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
+ (DECLARED_TYPE_TEMPLATE): Remove.
+ (TYPE_DECLARED_TYPE): Remove.
+ * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
+ * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
+ * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
+ TYPE_DECLARED_TYPE.
+
+2010-02-02 Tom Tromey <tromey@redhat.com>
+
+ PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
+ * valops.c (search_struct_field): Compute nbases after calling
+ CHECK_TYPEDEF.
+ (check_field): Call CHECK_TYPEDEF.
+ * cp-valprint.c (cp_print_value): Pass correct address to
+ baseclass_offset. Fix check for virtual base past the end of the
+ object. Don't offset address passed to cp_print_value_fields or
+ apply_val_pretty_printer.
+ (cp_print_value_fields): Fix call to val_print.
+ (cp_print_value_fields_rtti): New function.
+ * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
+ * p-valprint.c (pascal_object_print_value_fields): Fix call to
+ val_print.
+ * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
+ offset to address.
+ * language.h (struct language_defn) <la_val_print>: Document.
+ * c-lang.h (cp_print_value_fields_rtti): Declare.
+
+2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ PR libc/11214:
+ * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
+ (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
+ (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
+
+2010-02-01 Michael Matz <matz@suse.de>
+ Daniel Jacobowitz <dan@codesourcery.com>
+
+ * i386-tdep.c (i386_frame_cache): Assume valid anonymous
+ functions use a frame pointer.
+
+2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
+ by a conditional setting DYN_ADDR. Use DYN_ADDR.
+ * config/djgpp/fnchange.lst: Add translations for
+ symbol-without-target_section.exp and symbol-without-target_section.c.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdbarch.sh: Set LANG and LC_ALL to C, not c.
+ (remote_breakpoint_for_pc): Correct invalid_p check.
+ * gdbarch.c: Regenerated.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-tdep.c (arm_find_mapping_symbol): New function, from
+ arm_pc_is_thumb.
+ (arm_pc_is_thumb): Use arm_find_mapping_symbol.
+ (extend_buffer_earlier): New function.
+ (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
+ (arm_adjust_breakpoint_address): New function.
+ (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
+ (arm_linux_thumb2_le_breakpoint): New constants.
+ (arm_linux_init_abi): Set thumb2_breakpoint and
+ thumb2_breakpoint_size.
+ * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
+ (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
+ Implement support for single stepping through IT blocks if
+ a 32-bit Thumb breakpoint instruction is available.
+ (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
+ is available, use it when needed.
+ (arm_remote_breakpoint_from_pc): New function.
+ (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
+ * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
+ comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
+
+2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * arch-utils.c (default_remote_breakpoint_from_pc): New function.
+ * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
+ * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
+ gdbarch_remote_breakpoint_from_pc.
+
+2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * infrun.c (prepare_to_proceed): Handle other signals which might
+ match a breakpoint.
+ (handle_inferior_event): Move the check for unusual breakpoint
+ signals earlier.
+
+2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
+
+ amd64 - function returning record with field straddling 2 registers.
+ * amd64-tdep.c (amd_classify_aggregate): Handle the case of
+ a record of length <= 16 in which a field straddles the two
+ eightbytes.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ Implement return values on amd64-windows.
+ * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
+ (amd64_windows_return_value): New function.
+ (amd64_windows_init_abi): Call set_gdbarch_return_value with
+ amd64_windows_return_value.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ amd64-windows: 32 bytes allocated on stack by caller for integer
+ parameter registers.
+ * i386-tdep.h (struct gdbarch_tdep): Add new field
+ integer_param_regs_saved_in_caller_frame.
+ * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+ tdep->integer_param_regs_saved_in_caller_frame to 1.
+ * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
+ stack if tdep->integer_param_regs_saved_in_caller_frame is set.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ amd64-windows: memory args passed by pointer during function calls.
+ * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
+ * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
+ where tdep->memory_args_by_pointer is non-zero.
+ * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+ tdep->memory_args_by_pointer to 1.
+
+2010-01-29 Joel Brobecker <brobecker@adacore.com>
+
+ amd64-windows: Integer parameters in function calls.
+ * i386-tdep.h (enum amd64_reg_class): New, moved here from
+ amd64-tdep.c.
+ (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
+ call_dummy_integer_regs, and classify.
+ * amd64-tdep.h (amd64_classify): Add declaration.
+ * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
+ (amd64_reg_class): Delete, moved to i386-tdep.h.
+ (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
+ Replace call to amd64_classify by call to tdep->classify.
+ (amd64_push_arguments): Get the list of registers to use for
+ passing integer parameters from the gdbarch tdep structure,
+ rather than using a hardcoded one. Replace calls to amd64_classify
+ by calls to tdep->classify.
+ (amd64_push_dummy_call): Get the register number used for
+ the "hidden" argument from tdep->call_dummy_integer_regs.
+ (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
+ and tdep->call_dummy_integer_regs. Set tdep->classify.
+ * amd64-windows-tdep.c: Add include of gdbtypes.h.
+ (amd64_windows_dummy_call_integer_regs): New static global.
+ (amd64_windows_classify): New function.
+ (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
+ tdep->call_dummy_integer_regs and tdep->classify.
+
+2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * regcache.c (regcache_xmalloc): Add aspace argument. Use it
+ for the new regcache. All callers updated.
+ (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
+ (get_thread_arch_regcache): Do not set aspace here.
+ * regcache.h (regcache_xmalloc): Update declaration.
+
+ * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
+ regcache_xmalloc updated.
+
+2010-01-28 Joel Brobecker <brobecker@adacore.com>
+
+ Another -Wunused-function error in procfs.c (sparc-solaris)
+ * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
+ Only define if SYS_syssgi is defined.
+ (remove_dbx_link_breakpoint): Delete declaration. Move up.
+ (dbx_link_addr, insert_dbx_link_bpt_in_file)
+ (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
+ is itself defined.
+
+2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * windows-nat.c (windows_initialization_done): New variable.
+ (get_windows_debug_event): Issue error when process dies before
+ completely initializing.
+ (do_initial_windows_stuff): Set flag to indicate when we are done with
+ the initial steps of attaching to the child.
+
+2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symtab.h (struct symbol <symtab>): New comment on NULL values.
+
+2010-01-27 Doug Evans <dje@google.com>
+
+ * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
+
+ * breakpoint.c (bpstat_stop_status): Delete useless code.
+
+2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * printcmd.c (display_uses_solib_p): Remove variable section. Access
+ objfile via SYMBOL_SYMTAB.
+
+2010-01-26 Tom Tromey <tromey@redhat.com>
+
+ PR exp/7643:
+ * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
+ coerce_array on result.
+
+2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * cp-namespace.c (cp_lookup_symbol_namespace): Added
+ search_parent argument.
+ (cp_add_using): Initialize 'searched' field.
+ (reset_directive_searched): New function.
+ * cp-support.h: Add 'searched' field to using_direct struct.
+ (cp_lookup_symbol_imports): Ditto.
+ * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
+ Perform recursive search.
+ Implement non parent search.
+ * valops.c (value_maybe_namespace_elt): Updated.
+
+2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
+
+ PR gdb/10929:
+ * dwarf2read.c (read_lexical_block_scope): Create blocks for
+ scopes which contain using directives even if they contain no
+ declarations.
+ * symtab.c (lookup_symbol_aux): Pass lowest level block to
+ la_lookup_symbol_nonlocal.
+ * cp-namespace.c (cp_lookup_symbol_nonlocal): call
+ cp_lookup_symbol_namespace.
+ (cp_lookup_symbol_namespace): Perform an import lookup at every
+ block level.
+ (cp_lookup_symbol_imports): New function.
+ (cp_lookup_symbol_in_namespace): New function.
+
+2010-01-25 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/11049:
+ * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
+ result.
+
+2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac: Only use host_os part when disabling TUI on osf.
+ Use test to check variables, prefix strings with x.
+ * configure: Regenerate.
+
+ * solib-osf.c (osf_current_sos): Initialize tail.
+
+2010-01-25 gingold <gingold@adacore.com>
+
+ * windows-nat.c (windows_continue): Use %x to print thread id.
+ (get_windows_debug_event): Ditto.
+
+2010-01-22 Tom Tromey <tromey@redhat.com>
+
+ PR symtab/11199:
+ * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
+ type and arguments. Use smash_to_methodptr_type.
+ (read_structure_type): Call quirk_gcc_member_function_pointer
+ later.
+ * gdbtypes.h (smash_to_methodptr_type): Declare.
+ * gdbtypes.c (smash_to_methodptr_type): New function.
+ (lookup_methodptr_type): Use it.
+
+2010-01-21 Tom Tromey <tromey@redhat.com>
+
+ PR symtab/11198:
+ * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
+ * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
+ * glibc-tdep.c (find_minsym_and_objfile): Remove.
+ (glibc_skip_solib_resolver): Use
+ lookup_minimal_symbol_and_objfile.
+
+2010-01-21 Kai Tietz <kai.tietz@onevision.com>
+
+ * inflow.c (check_syscall): Guard by #if clause for GO32 and
+ WIN32 targets.
+
+2010-01-20 Tom Tromey <tromey@redhat.com>
+
+ PR backtrace/10770:
+ * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
+ BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
+ * dwarf2expr.c (new_dwarf_expr_context): Allocate
+ dwarf_stack_values, not CORE_ADDRs.
+ (execute_stack_op): Change DW_OP_div and comparison operators to
+ use signed operands.
+
+2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
+
+ Per-inferior args and tty and environment.
+
+ * infcmd.c (inferior_args): Rename to ...
+ (inferior_args_scratch): ... this.
+ (inferior_io_terminal): Rename to ...
+ (inferior_io_terminal_scratch): ... this.
+ (inferior_argc, inferior_argv): Remove.
+ (set_inferior_io_terminal, get_inferior_io_terminal): Store
+ inside current_inferior().
+ (set_inferior_tty_command, show_inferior_tty_command): New.
+ (get_inferior_args, set_inferior_args): Store inside
+ current_inferior().
+ (notice_args_set): Likewise and rename to...
+ (set_args_command): ... this.
+ (set_inferior_args_vector): Likewise.
+ (notice_args_read): Rename to...
+ (show_args_command): ...new.
+ (tty_command): Remove.
+ (run_command_1): Don't free old args, as they are freed by
+ set_inferior_arg now.
+ (run_no_args_command): Likewise.
+ (inferior_environ): Remove.
+ (run_command_1): Use environment of the current inferior.
+ (environment_info, set_environment_command)
+ (unset_environment_command, path_info, path_command): Likewise.
+ (_initialize_infcmd): Adjust for function and variable renames.
+ Do not init inferior_environ.
+ * inferior.h (set_inferior_arg): Adjust prototype.
+ (struct inferior): New fields args, argc, argv, terminal, environment.
+ (inferior_environ): Remove declaration.
+ * inferior.c (free_inferior): Free new fields.
+ (add_inferior_silent): Initialize 'environment' field.
+ * main.c (captured_main): Set arguments only after the initial
+ inferior has been created. Set set_inferior_io_terminal,
+ not tty_command.
+ * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
+ inferior.
+ (_initialize_mi_cmd_env): Adjust for disappearance of global
+ inferior_environ.
+ * solib.c (solib_find): Use environment of the current inferior.
+
+2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
+ HAVE_PYTHON.
+ (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
+
+2010-01-20 Joel Brobecker <brobecker@adacore.com>
+
+ Get rid of ada-lang.c:function_name_from_pc.
+ * ada-lang.c: Add "stack.h" #include.
+ (function_name_from_pc): Delete.
+ (is_known_support_routine): Replace call to function_name_from_pc
+ by call to find_frame_funname.
+ (ada_unhandled_exception_name_addr_from_raise): Likewise.
+
+2010-01-19 Tom Tromey <tromey@redhat.com>
+
+ PR c++/11026:
+ * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
+ objfile obstack.
+
+2010-01-19 Tom Tromey <tromey@redhat.com>
+
+ * top.c (stop_sig, float_handler, do_nothing): Remove.
+
+2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (watchpoint_check): Check the call
+ gdbarch_in_function_epilogue_p before calling frame_find_by_id.
+ Extend the comment.
+ * config/djgpp/fnchange.lst: Add translations for
+ watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
+ watchpoint-cond-gone-stripped.c.
+
+2010-01-19 Tom Tromey <tromey@redhat.com>
+
+ PR c++/8000:
+ * dwarf2read.c (partial_die_parent_scope): Put enumeration type
+ into parent scope, and enumerator into grandparent scope.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
+ i[34567]86-*-solaris2.1[0-9]*.
+ * configure.tgt: Likewise.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ * NEWS: Document the source command enhancement allowing it
+ to load Python scripts. Document the "set/show script-extension"
+ commands.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ Add -Wunused-function to compile flags.
+ * configure.ac: Add -Wunused-function to build_warnings.
+ * configure: Regenerate.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ "delete" ada-lex.c:input function, not used.
+ * ada-lex.l: #define YY_NO_INPUT.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ Delete free_named_symtabs and associated cleanup.
+ * symfile.h (free_named_symtabs): Delete declaration.
+ * symfile.c: Remove some commented out code (clear_symtab_users_once).
+ (cashier_psymtab): Comment function out.
+ Delete declaration.
+ (free_named_symtabs): Delete.
+ * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
+ * dbxread.c (end_psymtab): Likewise.
+ * dwarf2read.c (process_psymtab_comp_unit): Ditto.
+ * exec.c (exec_close_1): Ditto.
+ * xcoffread.c (xcoff_end_psymtab): Likewise.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ * stack.c (print_block_frame_labels): Comment function out.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
+ Delete unused or undefined functions.
+ * breakpoint.c (ep_parse_optional_filename): Delete.
+ * dcache.c (dcache_write_line): Remove declaration.
+ * infrun.c (build_infrun): Remove declaration.
+ * tracepoint.c (tracepoint_save_command): Remove declaration.
+ * linux-nat.c (init_lwp_list): Delete. No longer used.
+ * event-loop.c (check_async_signal_handlers): Delete declaration.
+ * infrun.c (init_execution_control_state): Delete.
+ (proceed): Update comment to avoid mentioning
+ init_execution_control_state.
+ * target.c (kill_or_be_killed, nosupport_runtime): Delete.
+ * ada-lang.c (ada_to_static_fixed_value): Delete.
+ * scm-lang.c (evaluate_subexp_scm): Delete declaration.
+ * cp-namespace.c (cp_copy_usings): Delete.
+ * xml-syscall.c (xml_number_of_syscalls): Delete.
+ * progspace.c (find_program_space_by_num): Delete.
+ * inflow.c (handle_sigio): Delete declaration.
+ * hppa-tdep.c (hppa_alignof): Delete.
+ * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
+ (mipsnbsd_core_osabi_sniffer): Delete.
+
+2010-01-18 Tom Tromey <tromey@redhat.com>
+
+ PR c++/9680:
+ * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
+ (CONST_CAST): New tokens.
+ (exp): Add new productions.
+ (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
+ reinterpret_cast.
+ (is_cast_operator): New function.
+ (yylex): Handle cast operators specially.
+ * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
+ UNOP_REINTERPRET_CAST>: New cases.
+ * expprint.c (print_subexp_standard): Likewise.
+ (op_name_standard): Likewise.
+ (dump_subexp_body_standard): Likewise.
+ * parse.c (operator_length_standard): Likewise.
+ * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
+ UNOP_REINTERPRET_CAST.
+ * gdbtypes.c (class_types_same_p): New function.
+ (is_ancestor): Use it.
+ (is_public_ancestor): New function.
+ (is_unique_ancestor_worker): Likewise.
+ (is_unique_ancestor): Likewise.
+ * gdbtypes.h (class_types_same_p, is_public_ancestor)
+ (is_unique_ancestor): Declare.
+ * valops.c (value_reinterpret_cast): New function.
+ (dynamic_cast_check_1): Likewise.
+ (dynamic_cast_check_2): Likewise.
+ (value_dynamic_cast): Likewise.
+ * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
+
+2010-01-18 Joel Brobecker <brobecker@adacore.com>
+
+ Fix build failure when building without Python support.
+ * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
+ is not defined.
+
+2010-01-18 Joel Brobecker <brobecker@adacore.com>
+
+ Use XVS field type instead of doing a parallel lookup.
+ * ada-lang.c (ada_get_base_type): Follow the XVS field type
+ if it is a reference type instead of doing a type lookup using
+ the XVS field name.
+
+2010-01-18 Joel Brobecker <brobecker@adacore.com>
+
+ Trust PAD types instead of using PAD___XVS.
+ * ada-lang.c (trust_pad_over_xvs): New static variable.
+ (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
+ parallel XVS type, follow the XVS type instead of the PAD type.
+ (unwrap_value): Make sure that there is no parallel XVE type
+ before returning the value as is.
+ (set_ada_list, show_ada_list): New static variables.
+ (set_ada_command, show_ada_command): New functions.
+ (_initialize_ada_language): Add new "set/show ada" prefix commands.
+ Add new "set/show ada trust-PAD-over-XVS" setting.
+
+2010-01-18 Tom Tromey <tromey@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ Allow "source" to load python scripts.
+ * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
+ * python/python.c (source_python_script): New function.
+ * python/python.h (source_python_script): Add declaration.
+ * cli/cli-cmds.c: #include exceptions.h and python/python.h.
+ (script_ext_off, script_ext_soft, script_ext_strict)
+ (script_ext_enums, script_ext_mode): New static constants.
+ (show_script_ext_mode, find_and_open_script): New functions.
+ (source_script): Enhance to handle Python scripts.
+ (init_cli_cmds): Add set/show script-extension commands.
+
+2010-01-16 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.h (struct trace_status): Use unsigned long long
+ instead of size_t.
+ * tracepoint.c (trace_status_command): Fix printf directive.
+ (trace_save_command): Check fwrite returns, fix printf directive.
+ (trace_filename): New global.
+ (tfile_open): Set it, check read returns.
+ (tfile_close): Free trace_filename.
+ (tfile_get_traceframe_address): Check read returns.
+ (tfile_trace_find): Ditto.
+ (tfile_fetch_registers): Ditto.
+ (tfile_xfer_partial): Ditto.
+ (tfile_get_trace_state_variable_value): Ditto.
+
+2010-01-15 Stan Shebs <stan@codesourcery.com>
+
+ Add trace file support.
+ * tracepoint.h (enum trace_stop_reason): New enum.
+ (struct trace_status): New struct.
+ (parse_trace_status): Declare.
+ (struct uploaded_tp): Move here from remote.c,
+ add fields for actions.
+ (struct uploaded_tsv): New struct.
+ * tracepoint.c (tfile_ops): New target vector.
+ (trace_fd): New global.
+ (tfile_open): New function.
+ (tfile_close): New function.
+ (tfile_files_info): New function.
+ (tfile_get_trace_status): New function.
+ (tfile_get_traceframe_address): New function.
+ (tfile_trace_find): New function.
+ (tfile_fetch_registers): New function.
+ (tfile_xfer_partial): New function.
+ (tfile_get_trace_state_variable_value): New function.
+ (init_tfile_ops): New function.
+ (_initialize_tracepoint): Call it, add tfile target.
+ (trace_status): New global.
+ (current_trace_status): New function.
+ (trace_running_p): Remove, change all users to get from
+ current_trace_status()->running.
+ (get_trace_status): Remove.
+ (trace_status_command): Call target_get_trace_status directly,
+ report more detail including tracing stop reasons.
+ (trace_find_command): Always allow tfind on a file.
+ (trace_find_pc_command): Ditto.
+ (trace_find_tracepoint_command): Ditto.
+ (trace_find_line_command): Ditto.
+ (trace_find_range_command): Ditto.
+ (trace_find_outside_command): Ditto.
+ (trace_frames_offset, cur_offset): Declare as off_t.
+ (trace_regblock_size): Rename from reg_size, update users.
+ (parse_trace_status): New function.
+ (tfile_interp_line): New function.
+ (disconnect_or_stop_tracing): Ensure current trace
+ status before asking what to do.
+ (stop_reason_names): New global.
+ (trace_save_command): New command.
+ (get_uploaded_tp): Move here from remote.c.
+ (find_matching_tracepoint): Ditto.
+ (merge_uploaded_tracepoints): New function.
+ (parse_trace_status): Use stop_reason_names.
+ (_initialize_tracepoint): Define tsave command.
+ * target.h (target_ops): New fields to_save_trace_data,
+ to_upload_tracepoints, to_upload_trace_state_variables,
+ to_get_raw_trace_data, change to_get_trace_status
+ to take a pointer to a status struct.
+ (target_save_trace_data): New macro.
+ (target_upload_tracepoints): New macro.
+ (target_upload_trace_state_variables): New macro.
+ (target_get_raw_trace_data): New macro.
+ * target.c (update_current_target): Add new methods, change
+ signature of to_get_trace_status.
+ * remote.c (hex2bin): Make globally visible.
+ (bin2hex): Ditto.
+ (remote_download_trace_state_variable): Download name also.
+ (remote_get_trace_status): Update parameter, use
+ parse_trace_status.
+ (remote_save_trace_data): New function.
+ (remote_upload_tracepoints): New function.
+ (remote_upload_trace_state_variables): New function.
+ (remote_get_raw_trace_data): New function.
+ (remote_start_remote): Use them.
+ (_initialize_remote_ops): Add operations.
+ * ax-gdb.c: Include breakpoint.h.
+ * breakpoint.c (create_tracepoint_from_upload): Use
+ break_command_really, return tracepoint, warn about unimplemented
+ parts.
+ * NEWS: Mention trace file addition.
+
+2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix compilation warning on gcc-3.4.
+ * exec.c (print_section_info): Move the `displacement' variable
+ initialization to its declaration.
+
+2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
+ comparison.
+
+2010-01-15 Eric Botcazou <botcazou@adacore.com>
+
+ "info tasks" broken by typedefs in ATCB type definitions.
+ * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
+ ada_check_typedef before retrieving the length of the type for
+ regular fields.
+
+2010-01-15 Joel Brobecker <brobecker@adacore.com>
+
+ Do not use name-based lookup for unconstrained packed arrays.
+ * ada-lang.c (find_parallel_type_by_descriptive_type):
+ Limit the fallback to name-based lookups to the case where
+ the type is a constrained packed array.
+
+2010-01-15 Joel Brobecker <brobecker@adacore.com>
+
+ Enhance gdb-gdb.py to handle main_type.type_specific.
+ * gdb-gdb.py: Print the type-specific part of struct main_type.
+
+2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * utils.c: Include sys/resource.h.
+ (dump_core, can_dump_core): New.
+ (internal_vproblem): Update the comment. Check can_dump_core while
+ setting dump_core_p. Replace two abort calls by dump_core calls.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Eli Zaretskii <eliz@gnu.org>
+
+ * NEWS: Document the PIE support.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
+ (check_is_pie_binary, _initialize_linux_tdep): Remove.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
+ Replace exec_entry_point call by bfd_get_start_address.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support Valgrind attachments broken by the PIE support.
+ * auxv.c: Include gdbcore.h.
+ (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
+ parameters ops, object and annex. Remove their assertions.
+ (ld_so_xfer_auxv, memory_xfer_auxv): New function.
+ * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
+ (memory_xfer_auxv): ... here.
+ * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
+ memory_xfer_auxv.
+ * procfs.c (procfs_xfer_partial): Likewise.
+ * solib-svr4.c (svr4_relocate_main_executable): New prototype.
+ (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
+ (svr4_solib_create_inferior_hook): Conditionalize the
+ svr4_relocate_main_executable call.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
+ target_section. Find SECT in current_target_sections, gdb_assert it.
+ (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
+ New variable abfd.
+ * symtab.c (lookup_objfile_from_block): Return the binary file instead
+ of separate debug info file.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support PIEs with no symfile_objfile.
+ * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
+ * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
+ code part to ...
+ (svr4_static_exec_displacement): ... a new function.
+ (svr4_exec_displacement): New function.
+ (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
+ new_offsets using alloca now. Remove variable old_chain and changed.
+ Call objfile_relocate unconditionally now.
+
+2010-01-14 Doug Evans <dje@google.com>
+
+ * gdbtypes.c (arch_flags_type): Fix comment.
+ * gdbtypes.h (arch_composite_type): Fix comment.
+
+2009-01-14 Tristan Gingold <gingold@adacore.com>
+
+ * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
+ Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
+ to symbol_file_add_from_bfd. Add OSO as separate objfile.
+ (macho_oso_symfile): Add symfile_flags parameter. Pass it to
+ macho_add_oso_symfile.
+ (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
+
+2010-01-14 Joel Brobecker <brobecker@adacore.com>
+
+ Tru64: Dead threads are never deleted.
+ * dec-thread.c (dec_thread_ptid_is_alive): New function.
+ (dec_thread_count_gdb_threads): Fix counter increment.
+ (dec_thread_add_gdb_thread): Fix *listp increment.
+ (resync_thread_list): Fix bug in deletion of dead threads that
+ caused all threads to be deleted, instead of just the dead ones.
+
+2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
+
+ PR python/10705
+
+ * python/python-internal.h: Add lazy_string_object_type
+ definition.
+ (create_lazy_string_object, gdbpy_initialize_lazy_string)
+ (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
+ * python/py-value.c (valpy_lazy_string): New function.
+ (convert_value_from_python): Add lazy string conversion.
+ * python/py-prettyprint.c (pretty_print_one_value): Check if
+ return is also a lazy string.
+ (print_string_repr): Add lazy string printing branch.
+ (print_children): Likewise.
+ * python/py-lazy-string.c: New file. Implement lazy strings.
+ * python/python.c (_initialize_python): Call
+ gdbpy_initialize_lazy_string.
+ * varobj.c (value_get_print_value): Add lazy string printing
+ branch. Account for encoding.
+ * c-lang.c (c_printstr): Account for new encoding argument. If
+ encoding is NULL, find encoding suited for type, otherwise use
+ user encoding.
+ * language.h (language_defn): Add encoding argument.
+ (LA_PRINT_STRING): Likewise.
+ * language.c (unk_lang_printstr): Update to reflect new encoding
+ argument to language_defn.
+ * ada-lang.h (ada_printstr): Likewise.
+ * c-lang.h (c_printstr): Likewise.
+ * p-lang.h (pascal_printstr);
+ * f-lang.c (f_printstr): Likewise.
+ * m2-lang.c (m2_printstr): Likewise.
+ * objc-lang.c (objc_printstr): Likewise.
+ * p-lang.c (pascal_printstr): Likewise.
+ * scm-lang.c (scm_printstr): Likewise.
+ * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
+ encoding argument.
+ * ada-valprint.c (ada_printstr): Likewise.
+ * f-valprint.c (f_val_print): Likewise
+ * m2-valprint.c (m2_val_print): Likewise.
+ * p-valprint.c (pascal_val_print): Likewise.
+ * expprint.c (print_subexp_standard): Likewise.
+ * valprint.c (val_print_string): Likewise.
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
+ (SUBDIR_PYTHON_SRCS): Likewise.
+ (py-lazy-string.o): New rule.
+
+2010-01-13 Doug Evans <dje@google.com>
+
+ * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
+ uninitialized" warning from gcc on local `tree'.
+
+2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
+
+ Implement core awareness.
+
+ * bcache.c (compare_ints): Remove
+ (print_percentage): Use compare_positive_ints.
+ * defs.h (compare_positive_ints): Declare.
+ * linux-nat.h (struct lin_lwp): New field core.
+ (linux_nat_core_of_thread_1): Declare.
+ * linux-nat.c (add_lwp): Init the 'core' field.
+ (linux_nat_wait_1): Record the core.
+ (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
+ (linux_nat_add_target): Register the above.
+ * linux-thread-db.c (update_thread_core): New.
+ (thread_db_find_new_threads): Update core information for
+ every thread.
+ * remote.c (struct private_thread_info): New.
+ (free_private_thread_info, demand_private_info): New.
+ (PACKET_qXfer_threads, use_osdata_threads): New.
+ (struct thread_item, threads_parsing_context
+ (start_thread, end_thread, thread_attributes)
+ (thread_children, threads_children, threads_elements): New.
+ (remote_threads_info): Try qXfer:threads before anything
+ else.
+ (remote_protocol_packets): Register qXfer:threads.
+ (remote_open_1): Init use_osdata_threads.
+ (struct stop_reply): New field 'core'.
+ (remote_parse_stop_reply): Parse core number.
+ (process_stop_reply): Record core number.
+ (remote_xfer_partial): Handle qXfer:threads.
+ (remote_core_of_thread): New.
+ (init_remote_ops): Register remote_core_of_thread.
+ (_initialize_remote): Register qXfer:read.
+ * target.c (target_core_of_thread): New
+ * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
+ (struct target_ops): New field to_core_of_threads.
+ (target_core_of_thread): Declare.
+ * gdbthread.h (struct thread_info): New field private_dtor.
+ * thread.c (print_thread_info): Report the core.
+ * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
+ * utils.c (compare_positive_ints): New.
+ * features/threads.dtd: New.
+ * mi/mi-interp.c (mi_on_normal_stop): Report the core.
+ * mi/mi-main.c (struct collect_cores_data, collect_cores)
+ (do_nothing, free_vector_of_osdata_items)
+ (splay_tree_int_comparator, free_splay_tree): New.
+ (print_one_inferior_data): Implemented printing of selected
+ inferiors. Collect and print cores.
+ (output_cores): New.
+ (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
+ thread groups together with --available.
+
+2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure: Regenerate (for _STRUCTURED_PROC).
+
2010-01-12 Joel Brobecker <brobecker@adacore.com>
Delete dead function.