+2009-03-25 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (normal_stop): Use has_stack_frames instead of
+ target_has_stack.
+ * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
+ when there is no thread selected.
+ (mi_cmd_execute): Don't special case commands that can run without
+ a valid selected thread.
+ * top.c (execute_command): Don't special case commands that can
+ run without a valid selected thread. Use has_stack_frames.
+ * infcmd.c (ensure_valid_thread): New.
+ (continue_1, step_1, jump_command, signal_command): Use it.
+ (detach_command): Error out if there's no selected thread/inferior.
+ * thread.c (print_thread_info): Allow having no thread selected.
+ (switch_to_thread): Don't read the PC if there is no current thread.
+ (do_restore_current_thread_cleanup): Don't record the current
+ frame if there is no current thread.
+ (make_cleanup_restore_current_thread): Don't read frame info if
+ there is no selected thread.
+ (_initialize_thread): Don't mark commands as
+ "no_selected_thread_ok".
+ * frame.c (get_current_frame): Error out if there is no valid
+ selected thread.
+ (has_stack_frames): Return false if there is no valid
+ selected thread.
+ * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
+ "no_selected_thread_ok".
+ * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
+ (get_cmd_no_selected_thread_ok): Delete.
+ * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
+ (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
+ Delete declaration.
+ * stack.c (get_selected_block): Use has_stack_frames.
+
+2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ Fix size of FPSCR in Power 7 processors.
+ * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
+ (PPC_FEATURE_HAS_DFP): New #define.
+ (ppc_linux_read_description): Check for DFP feature instead of
+ ISA 2.05 to decide on size of the FPSCR.
+
+2009-03-25 Kevin Buettner <kevinb@redhat.com>
+
+ * mn10300-tdep.c (trad-frame.h): Don't include.
+ (prologue-value.h): Include.
+ (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
+ (struct mn10300_prologue): Define.
+ (push_reg, translate_rreg, check_for_saved): New functions.
+ (mn10300_analyze_prologue): Rewrite, using prologue-value
+ machinery. Handle more instructions than before. Permit
+ instructions to occur in any order.
+ (mn10300_skip_prologue): Find the extents of the function
+ in question; mn10300_analyze_prologue no longer does this.
+ (mn10300_analyze_frame_prologue): New function.
+ (mn10300_frame_base): New function.
+ (mn10300_frame_this_id): Rewrite, no longer using trad-frame
+ implementation.
+ (mn10300_frame_prev_register): Likewise.
+ (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
+ (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
+ `this_frame'.
+ (mn10300_frame_unwind_init): Don't call frame_base_set_default().
+
+2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ Fix completer problem for filename completion on the first try.
+
+ * gdb/completer.h (gdb_completion_word_break_characters): New function.
+ * gdb/completer.c: Include gdb_assert.h.
+ (complete_line_internal_reason): New enum.
+ (complete_line_internal): Change last argument type to
+ complete_line_internal_reason.
+ Modify function to handle the different complete_line_internal_reason
+ argument values.
+ (complete_line): Adapt to change in complete_line_internal.
+ (command_completer): Ditto.
+ (gdb_completion_word_break_characters): Implement new function.
+ * top.c (init_main): Set rl_completion_word_break_hook to
+ gdb_completion_word_break_characters.
+
+
+2009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ ARI fix: "strlen d_name" rule.
+ * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
+
+
+2009-03-24 Tom Tromey <tromey@redhat.com>
+ Pedro Alves <pedro@codesourcery.com>
+
+ * configure, config.in: Rebuild.
+ * configure.ac: Check for libiconvlist.
+ * charset.c: Check HAVE_LIBICONVLIST.
+ * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
+ LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
+ * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
+ Remove.
+ (INTERNAL_CFLAGS_BASE): Update.
+ (INTERNAL_LDFLAGS): Update.
+ (CLIBS): Update.
+
+2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac: Initialize the variable $PREFER_CURSES.
+ * configure: Regenerated.
+
+2009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
+ * configure: Regenerated.
+
+2009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ ARI fix: "strerror" rule.
+ * darwin-nat.c (darwin_ptrace): Use safe_strerror.
+ (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
+ before looking up the fields inside our struct type.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
+ trying to resolve the type qualification.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
+ we try to apply the attribute on the real type, rather than
+ its associated typedef.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
+ to make sure we try to get the modulus of the actual type, not the
+ associated typedef.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
+ [OP_ATR_LENGTH]: When using the attribute on a type, make sure
+ to get the real type, not the associated typedef.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * ada-lang.c (ada_get_field_index): Add handling of the case
+ when TYPE is a typedef of a struct.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ Add gdb_usleep as a portable version of usleep based on gdb_select.
+ * gdb_usleep.h, gdb_usleep.c: New files.
+ * Makefile.in (SFILES): Add gdb_usleep.c.
+ (HFILES_NO_SRCDIR): Add gdb_usleep.h.
+ (COMMON_OBS): Add gdb_usleep.o.
+ * ser-unix.c (hardwire_send_break): Replace call to gdb_select
+ by call to gdb_usleep.
+
+2009-03-23 Joel Brobecker <brobecker@adacore.com>
+
+ * buildsym.c (end_symtab): If we ignore the subfiles, then
+ unlink the associated symtabs if they were already allocated.
+
+2009-03-23 Jerome Guitton <guitton@adacore.com>
+
+ Provide a way to force building of GDB with libcurses.
+ * configure.ac: Add --with-curses.
+ * configure: Regenerated.
+
+2009-03-23 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
+ error message.
+
+2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
+ solib_contains_address_p instead of searching.
+
+2009-03-23 Tom Tromey <tromey@redhat.com>
+
+ * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
+ (iconv): Make 'inbuf' argument const.
+ (convert_between_encodings): Use ICONV_CONST.
+ (wchar_iterate): Likewise.
+
+2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
+ dynamically loaded function.
+ (LookupPrivilegeValueA): Ditto.
+ (OpenProcessToken): Ditto.
+ (AdjustTokenPrivileges): Rename and define placeholder for address of
+ dynamically loaded function.
+ (LookupPrivilegeValueA): Ditto.
+ (OpenProcessToken): Ditto.
+ (set_process_privilege): Remove check for loaded functions.
+ (bad_OpenProcessToken): Define.
+ (_initialize_loadable): Load token functions from advapi here, setting
+ OpenProcessToken function to a dummy static function which always return
+ error if OS doesn't support this functionality.
+
+2009-03-22 Nicolas Roche <roche@adacore.com>
+ Christopher Faylor <me+cygwin@cgf.cx>
+
+ * win32-nat.c (ctrl_c_handler): New function.
+ (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
+ is run in a separate console.
+
+2009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
+ for dynamically loaded function.
+ (DebugBreakProcess): Ditto.
+ (DebugSetProcessKillOnExit): Ditto.
+ (EnumProcessModules): Ditto.
+ (GetModuleFileNameExA): Ditto.
+ (GetModuleInformation): Ditto.
+ (DebugActiveProcessStop): Rename and define placeholder for address of
+ dynamically loaded function.
+ (DebugBreakProcess): Ditto.
+ (DebugSetProcessKillOnExit): Ditto.
+ (EnumProcessModules): Ditto.
+ (GetModuleFileNameExA): Ditto.
+ (GetModuleInformation): Ditto.
+ (psapi_loaded): Delete.
+ (get_module_name): Don't check psapi_loaded, just rely on the fact that
+ dynamically loaded functions will return failure if they weren't
+ previously found.
+ (has_detach_ability): Delete.
+ (windows_attach): Remove call to has_detach_ability (). Just rely on
+ functions being callable.
+ (bad_DebugActiveProcessStop): Define.
+ (bad_DebugBreakProcess): Ditto.
+ (bad_DebugSetProcessKillOnExit): Ditto.
+ (bad_EnumProcessModules): Ditto.
+ (bad_GetModuleFileNameExA): Ditto.
+ (bad_GetModuleInformation): Ditto.
+ (_initialize_loadable): Rename from _initialize_psapi. Initialize all
+ dynamic storage here, setting nonexistent functions to dummy static
+ functions which always return error.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
+ to the about_to_proceed observer notification.
+ (mi_about_to_proceed): New.
+ (mi_on_resume): Only output ^running and the prompt here if the
+ target was proceeded.
+ * breakpoint.c (breakpoint_proceeded): New static.
+ (breakpoint_about_to_proceed): New.
+ (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
+ the about_to_proceed observer notification.
+ * inferior.h (breakpoint_proceeded): Delete declaration.
+ * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
+ Notify the about_to_proceed observers.
+ (struct inferior_status): Delete breakpoint_proceeded member.
+ (save_inferior_status): Don't save it.
+ (restore_inferior_status): Don't restore it.
+ * mi-main.h (mi_proceeded): Declare.
+ * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
+ a command.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * gdbthread.h (struct thread_info): Add in_infcall member.
+ * infcall.c (run_inferior_call): Save, set and restore in_infcall.
+ Remove reverences to suppress_resume_observer. Refresh
+ `call_thread' after returning from `proceed'.
+ * infcmd.c (suppress_resume_observer): Delete.
+ * inferior.h (suppress_resume_observer): Delete declaration.
+ * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
+ inferior function.
+ * thread.c (set_running): Remove references to
+ suppress_resume_observer.
+ * infrun.c (struct inferior_status): Add in_infcall member.
+ (save_inferior_status): Save it.
+ (restore_inferior_status): Restore it.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * infcall.c (run_inferior_call): Remove references to
+ suppress_stop_observer.
+ * infcmd.c (suppress_stop_observer): Delete.
+ (finish_command_continuation): Remove NOTE. Don't clear
+ suppress_stop_observer anymore.
+ (finish_command_continuation_free_arg): Likewise.
+ (finish_forward): Remove references to suppress_stop_observer.
+ Call normal_stop observer if we haven't already.
+ * inferior.h (suppress_stop_observer): Delete.
+ * infrun.c (normal_stop): When deciding to suppress the
+ normal_stop observer, check for proceed_to_finish instead of
+ suppress_stop_observer.
+
+2009-03-22 Pedro Alves <pedro@codesourcery.com>
+
+ * symfile.c (symfile_relocate_debug_section): Remove check for
+ SEC_DEBUGGING.
+
+2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Jim Blandy <jimb@red-bean.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+ Tom Tromey <tromey@redhat.com>
+
+ Miscellaneous fixes to the Python code.
+ * python/python-cmd.c (cmdpy_init): Accept keyword
+ arguments.
+ * python/python-value.c (valpy_string): Accept keyword
+ arguments.
+ (valpy_binop): Use `break' to exit from the TRY_CATCH block.
+ Do not call value_to_value_object on NULL RES_VAL.
+ (value_object_methods): Change `string' entry to also accept
+ keyword arguments.
+ (convert_value_from_python): Return a copy of the value if obj is
+ a gdb.Value object.
+ (value_object_methods): Mark the `string' method as accepting
+ keywords, and show method "prototype" in the doc string.
+ * python/python.c (get_parameter): Don't return inside a
+ TRY_CATCH.
+
+2009-03-20 Tom Tromey <tromey@redhat.com>
+
+ Add support for convenience functions in Python.
+ * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
+ (SUBDIR_PYTHON_SRCS): Add python-function.c.
+ (python-function.o): New target.
+ * eval.c: Include "python/python.h" and <ctype.h>.
+ (evaluate_subexp_standard): Handle values of type
+ TYPE_CODE_INTERNAL_FUNCTION.
+ * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
+ * parse.c (write_exp_string): Remove duplicate word in comment.
+ * python/python-function.c: New file.
+ * python/python-internal.h (gdbpy_initialize_functions): Add
+ prototype.
+ * python/python.c (_initialize_python): Call
+ gdbpy_initialize_functions.
+ * valprint.c (value_check_printable): Handle values of type
+ TYPE_CODE_INTERNAL_FUNCTION.
+ * value.c: Include "cli/cli-decode.h".
+ (internal_function): New struct.
+ (functionlist, internal_fn_type): New static variables.
+ (lookup_only_internalvar,
+ lookup_internalvar): Add const qualifier to name argument.
+ (create_internalvar): Likewise. Initialize new field.
+ (set_internal_var): Fix typo in comment. Don't allow assignment
+ to canonical variable.
+ (value_create_internal_function, value_internal_function_name,
+ call_internal_function, function_command, function_destroyer,
+ add_internal_function): New functions.
+ (_initialize_values): Create `function' placeholder command.
+ Initialize internal_fn_type.
+ * value.h (lookup_only_internalvar, create_internalvar,
+ lookup_internalvar): Add const qualifier to name argument.
+ (internal_function_fn, add_internal_function, call_internal_function,
+ value_internal_function_name): Add prototypes.
+ (struct internalvar) <canonical>: New field.
+
+2009-03-20 Tom Tromey <tromey@redhat.com>
+
+ * c-lang.c (evaluate_subexp_c): Call check_typedef.
+
+2009-03-20 Tom Tromey <tromey@redhat.com>
+ Julian Brown <julian@codesourcery.com>
+
+ PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
+ PR i18n/9401, PR exp/9613:
+ * NEWS: Update
+ * value.h (value_typed_string): Declare.
+ (val_print_string): Update.
+ * valprint.h (print_char_chars): Update.
+ * valprint.c (print_char_chars): Add type argument. Update.
+ (val_print_string): Likewise.
+ * valops.c (value_typed_string): New function.
+ * utils.c (host_char_to_target): New function.
+ (parse_escape): Use host_char_to_target, host_hex_value. Update.
+ Remove '^' case.
+ (no_control_char_error): Remove.
+ * typeprint.c (print_type_scalar): Update.
+ * scm-valprint.c (scm_scmval_print): Update.
+ * scm-lang.h (scm_printchar, scm_printstr): Update.
+ * scm-lang.c (scm_printchar): Add type argument.
+ (scm_printstr): Likewise.
+ * printcmd.c (print_formatted): Update.
+ (print_scalar_formatted): Update.
+ (printf_command) <wide_string_arg, wide_char_arg>: New constants.
+ Handle '%lc' and '%ls'.
+ * parser-defs.h (struct typed_stoken): New type.
+ (struct stoken_vector): Likewise.
+ (write_exp_string_vector): Declare.
+ * parse.c (write_exp_string_vector): New function.
+ * p-valprint.c (pascal_val_print): Update.
+ * p-lang.h (is_pascal_string_type, pascal_printchar,
+ pascal_printstr): Update.
+ * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
+ Add 'char_type' argument.
+ (pascal_emit_char): Add type argument.
+ (pascal_printchar): Likewise.
+ (pascal_printstr): Likewise.
+ * objc-lang.c (objc_emit_char): Add type argument.
+ (objc_printchar): Likewise.
+ (objc_printstr): Likewise.
+ * macroexp.c (get_character_constant): Handle unicode characters.
+ Use c_parse_escape.
+ (get_string_literal): Handle unicode strings. Use
+ c_parse_escape.
+ * m2-valprint.c (print_unpacked_pointer): Update.
+ (m2_print_array_contents): Update.
+ (m2_val_print): Update.
+ * m2-lang.c (m2_emit_char): Add type argument.
+ (m2_printchar): Likewise.
+ (m2_printstr): Likewise.
+ * language.h (struct language_defn) <la_printchar>: Add type
+ argument.
+ <la_printstr, la_emitchar>: Likewise.
+ (LA_PRINT_CHAR): Likewise.
+ (LA_PRINT_STRING): Likewise.
+ (LA_EMIT_CHAR): Likewise.
+ * language.c (unk_lang_emit_char): Add type argument.
+ (unk_lang_printchar): Likewise.
+ (unk_lang_printstr): Likewise.
+ * jv-valprint.c (java_val_print): Update.
+ * jv-lang.c (java_emit_char): Add type argument.
+ * f-valprint.c (f_val_print): Update.
+ * f-lang.c (f_emit_char): Add type argument.
+ (f_printchar): Likewise.
+ (f_printstr): Likewise.
+ * expprint.c (print_subexp_standard): Update.
+ * charset.h (target_wide_charset): Declare.
+ (c_target_char_has_backslash_escape, c_parse_backslash,
+ host_char_print_literally, host_char_to_target,
+ target_char_to_host, target_char_to_control_char): Remove.
+ (enum transliterations): New type.
+ (convert_between_encodings): Declare.
+ (HOST_ESCAPE_CHAR): New define.
+ (host_letter_to_control_character, host_hex_value): Declare.
+ (enum wchar_iterate_result): New enum.
+ (struct wchar_iterator): Declare.
+ (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
+ wchar_push_back): Declare.
+ * charset-list.h: New file.
+ * c-valprint.c (textual_name): New function.
+ (textual_element_type): Handle wide character types.
+ (c_val_print): Pass original type to textual_element_type. Handle
+ wide character types.
+ (c_value_print): Use textual_element_type. Pass original type of
+ value to val_print.
+ * c-lang.h (enum c_string_type): New type.
+ (c_printchar, c_printstr): Update.
+ * c-lang.c (classify_type): New function.
+ (print_wchar): Likewise.
+ (c_emit_char): Add type argument. Handle wide characters.
+ (c_printchar): Likewise.
+ (c_printstr): Add type argument. Handle wide and multibyte
+ character sets.
+ (convert_ucn): New function.
+ (emit_numeric_character): Likewise.
+ (convert_octal): Likewise.
+ (convert_hex): Likewise.
+ (ADVANCE): New macro.
+ (convert_escape): New function.
+ (parse_one_string): Likewise.
+ (evaluate_subexp_c): Likewise.
+ (exp_descriptor_c): New global.
+ (c_language_defn): Use exp_descriptor_c.
+ (cplus_language_defn): Likewise.
+ (asm_language_defn): Likewise.
+ (minimal_language_defn): Likewise.
+ (charset_for_string_type): New function.
+ * c-exp.y (%union): Add 'svec' and 'tsval'.
+ (CHAR): New token.
+ (exp): Add CHAR production.
+ (string_exp): Rewrite.
+ (exp) <string_exp>: Rewrite.
+ (tempbuf): Now global.
+ (tempbuf_init): New global.
+ (parse_string_or_char): New function.
+ (yylex) <tempbuf>: Now global.
+ <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
+ Remove.
+ Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
+ (c_parse_escape): New function.
+ * auxv.c (fprint_target_auxv): Update.
+ * ada-valprint.c (ada_emit_char): Add type argument.
+ (ada_printchar): Likewise.
+ (ada_print_scalar): Update.
+ (printstr): Add type argument. Update calls to ada_emit_char.
+ (ada_printstr): Add type argument.
+ (ada_val_print_array): Update.
+ (ada_val_print_1): Likewise.
+ * ada-lang.c (emit_char): Add type argument.
+ * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
+ type arguments.
+ * gdb_locale.h: Include langinfo.h.
+ * charset.c (_initialize_charset): Set default host charset from
+ the locale. Don't register charsets. Add target-wide-charset
+ commands. Call find_charset_names.
+ (struct charset, struct translation): Remove.
+ (GDB_DEFAULT_HOST_CHARSET): Remove.
+ (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
+ (target_wide_charset_name): New global.
+ (show_host_charset_name): Handle "auto".
+ (show_target_wide_charset_name): New function.
+ (host_charset_enum, target_charset_enum): Remove.
+ (charset_enum): New global.
+ (all_charsets, register_charset, lookup_charset, all_translations,
+ register_translation, lookup_translation): Remove.
+ (simple_charset, ascii_print_literally, ascii_to_control): Remove.
+ (iso_8859_print_literally, iso_8859_to_control,
+ iso_8859_family_charset): Remove.
+ (ebcdic_print_literally, ebcdic_to_control,
+ ebcdic_family_charset): Remove.
+ (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
+ register_iconv_charsets): Remove.
+ (target_wide_charset_be_name, target_wide_charset_le_name): New
+ globals.
+ (identity_either_char_to_other): Remove.
+ (set_be_le_names, validate): New functions.
+ (backslashable, backslashed, represented): Remove.
+ (default_c_target_char_has_backslash_escape): Remove.
+ (default_c_parse_backslash, iconv_convert): Remove.
+ (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
+ ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
+ iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
+ ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
+ ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
+ ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
+ (table_convert_char, table_translation, simple_table_translation):
+ Remove.
+ (current_host_charset, current_target_charset,
+ c_target_char_has_backslash_escape_func,
+ c_target_char_has_backslash_escape_baton): Remove.
+ (c_parse_backslash_func, c_parse_backslash_baton): Remove.
+ (host_char_to_target_func, host_char_to_target_baton): Remove.
+ (target_char_to_host_func, target_char_to_host_baton): Remove.
+ (cached_iconv_host_to_target, cached_iconv_target_to_host):
+ Remove.
+ (lookup_charset_or_error, check_valid_host_charset): Remove.
+ (set_host_and_target_charsets): Remove.
+ (set_host_charset, set_target_charset): Remove.
+ (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
+ (set_target_wide_charset_sfunc): New function.
+ (show_charset): Print target wide character set.
+ (host_charset, target_charset): Rewrite.
+ (target_wide_charset): New function.
+ (c_target_char_has_backslash_escape): Remove.
+ (c_parse_backslash): Remove.
+ (host_letter_to_control_character): New function.
+ (host_char_print_literally): Remove.
+ (host_hex_value): New function.
+ (target_char_to_control_char): Remove.
+ (cleanup_iconv): New function.
+ (convert_between_encodings): New function.
+ (target_char_to_host): Remove.
+ (struct wchar_iterator): Define.
+ (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
+ wchar_push_back): New functions.
+ (do_cleanup_iterator): New function.
+ (char_ptr): New typedef.
+ (charsets): New global.
+ (add_one, find_charset_names): New functions.
+ (default_charset_names): New global.
+ (auto_host_charset_name): Likewise.
+ * aclocal.m4, config.in, configure: Rebuild.
+ * configure.ac: Call AM_LANGINFO_CODESET.
+ (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
+ (AM_ICONV): Invoke earlier.
+ * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
+ LIBICONV_LIBDIR. Check for libiconv in build tree.
+ * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
+ (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
+ (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
+ * gdb_obstack.h (obstack_grow_wstr): New define.
+ * gdb_wchar.h: New file.
+ * defs.h: Include it.
+
+2009-03-20 Tom Tromey <tromey@redhat.com>
+ Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (process_die): Handle DW_TAG_typedef.
+ * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
+ typedef.
+ * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
+ SYMBOL_TYPE result.
+ * ada-typeprint.c (print_array_type): Do the NULL check
+ unconditionally.
+
+2009-03-19 Tom Tromey <tromey@redhat.com>
+
+ * utils.c (do_obstack_free): New function.
+ (make_cleanup_obstack_free): Likewise.
+ * defs.h (make_cleanup_obstack_free): Declare.
+
+2009-03-18 Doug Evans <dje@google.com>
+
+ * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
+ int, not a long long.
+ (linux_nat_info_proc_cmd): Store pid in long instead of long long.
+
+ * expprint.c (dump_raw_expression): Print note if non-NULL.
+
+ * printcmd.c (display_uses_solib_p): Redo loop, scan element list
+ backwards.
+
+2009-03-18 Nathan Sidwell <nathan@codesourcery.com>
+
+ * Makefile.in: Update license to GPLv3.
+ * ada-exp.y: Update license to GPLv3.
+ * ada-lex.l: Update license to GPLv3.
+ * c-exp.y: Update license to GPLv3.
+ * cp-name-parser.y: Update license to GPLv3.
+ * darwin-nat-info.c: Update license to GPLv3.
+ * f-exp.y: Update license to GPLv3.
+ * gdb_thread_db.h: Update license to GPLv3.
+ * hppanbsd-nat.c: Update license to GPLv3.
+ * hppanbsd-tdep.c: Update license to GPLv3.
+ * hppaobsd-tdep.c: Update license to GPLv3.
+ * jv-exp.y: Update license to GPLv3.
+ * m2-exp.y: Update license to GPLv3.
+ * objc-exp.y: Update license to GPLv3.
+ * p-exp.y: Update license to GPLv3.
+ * reply_mig_hack.awk: Update license to GPLv3.
+ * reverse.c: Update license to GPLv3.
+ * xtensa-xtregs.c: Update license to GPLv3.
+
+2009-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_close): Don't call generic_mourn_inferior.
+ (remote_mourn_1): Call generic_mourn_inferior after closing the
+ target.
+
+2009-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_start_remote): Add missing call to
+ init_wait_for_inferior in non-stop mode.
+
+2009-03-18 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (bpstat_should_step): Only consider software
+ watchpoints that have a location.
+
+2009-03-17 Joel Brobecker <brobecker@adacore.com>
+
+ Add a target_ops parameter to the to_kill method in struct target_ops.
+
+ * target.h (struct target_ops): Add a "target_ops *" parameter to
+ method to_kill.
+ (target_kill): Remove macro. Add declaration.
+ * target.c (debug_to_kill): Delete, no longer necessary.
+ (target_kill): New function.
+ (update_current_target): Stop inheriting the to_kill method.
+ Do not de_fault it to no_process either.
+ (setup_target_debug): Do not set current_target.to_kill.
+ * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
+ linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
+ remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
+ accordingly.
+
2009-03-17 Doug Evans <dje@google.com>
* amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
if RETURN_TYPE is NULL.
+>>>>>>> 1.10280
2009-03-14 Pedro Alves <pedro@codesourcery.com>
* remote.c (PACKET_qAttached): New.
(HFILES_NO_SRCDIR): Add windows-tdep.h.
(ALLDEPFILES): Add windows-tdep.c.
-2009-01-11 Christ Faylor <me.gdb@cgf.cx>
+2009-01-11 Chris Faylor <me.gdb@cgf.cx>
* win32-nat.h: Delete.
* windows-nat.h: Rename from win32-nat.h.