+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>
(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