* dwarf2loc.c (loclist_read_variable): Set optimized_out
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index bc62e5e879c597b1cb027c4eabebd2dff10e3f47..9babafb5f33a83f8de377deb0e8fa47868cc1824 100644 (file)
@@ -1,3 +1,301 @@
+2005-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2loc.c (loclist_read_variable): Set optimized_out
+       instead of reporting an error.
+       * valprint.c (value_check_printable): New function.
+       (common_val_print): New function.  Use value_check_printable.
+       (value_print): Use value_check_printable.
+       * value.h (common_val_print): Add prototype.
+
+       * c-valprint.c (c_val_print): Use common_val_print.
+       * cp-valprint.c (cp_print_value_fields): Likewise.
+       (cp_print_hpacc_virtual_table_entries): Likewise.
+       * f-valprint.c (f_val_print): Likewise.
+       * jv-valprint.c (java_value_print, java_print_value_fields):
+       Likewise.
+       * scm-valprint.c (scm_value_print): Likewise.
+       * stack.c (print_frame_args): Likewise.
+       * varobj.c (c_value_of_variable): Likewise.
+       * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
+       (pascal_object_print_value_fields): Likewise.  Update call to
+       pascal_object_print_static_field.
+       (pascal_object_print_static_field): Remove TYPE argument.  Use
+       common_val_print.
+
+2005-02-25 Mark Kettenis  <kettenis@gnu.org>
+       
+       Committed by Elena Zannoni <ezannoni@redhat.com>
+
+       * dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust 
+       info_ptr before building psymtabs for included files.
+       (create_all_comp_units): Initailize initial length size of
+       compilation header to zero.
+       (read_initial_length): Complain if both 32-bit and 64-bit DWARF
+       sections are encountered within the same compilation header.
+       (dwarf_decode_line_header): Pass compilation header in call to
+       read_initial_length.
+       
+2005-02-24  Andrew Cagney  <cagney@gnu.org>
+
+       Add show_VARIABLE functions, update add_setshow call.
+       * varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
+       * valprint.c (_initialize_valprint, show_print_max) 
+       (show_stop_print_at_null, show_repeat_count_threshold) 
+       (show_prettyprint_structs, show_unionprint) 
+       (show_prettyprint_arrays, show_addressprint, show_input_radix) 
+       (show_output_radix): Ditto.
+       * valops.c (_initialize_valops, show_overload_resolution): Ditto.
+       * utils.c (initialize_utils, show_chars_per_line) 
+       (show_lines_per_page, show_demangle, show_pagination_enabled) 
+       (show_sevenbit_strings, show_asm_demangle): Ditto
+       * tui/tui-win.c (_initialize_tui_win, show_tui_border_kind) 
+       (show_tui_border_mode, show_tui_active_border_mode): Ditto.
+       * top.c (init_main, show_new_async_prompt) 
+       (show_async_command_editing_p, show_write_history_p) 
+       (show_history_size, show_history_filename, show_caution) 
+       (show_annotation_level, init_main): Ditto.
+       * target.c (initialize_targets, show_targetdebug)
+       (show_trust_readonly): Ditto.
+       * symfile.c (_initialize_symfile, show_symbol_reloading) 
+       (show_ext_args, show_download_write_size) 
+       (show_debug_file_directory): Ditto.
+       * source.c (_initialize_source, show_lines_to_list): Ditto.
+       * solib.c (_initialize_solib, show_auto_solib_add) 
+       (show_solib_search_path): Ditto.
+       * p-valprint.c (_initialize_pascal_valprint) 
+       (show_pascal_static_field_print): Ditto.
+       * printcmd.c (_initialize_printcmd, show_max_symbolic_offset) 
+       (show_print_symbol_filename): Add and update.
+       * parse.c (_initialize_parse, show_expressiondebug): Dito.
+       * observer.c (_initialize_observer, show_observer_debug): Dito.
+       * maint.c (_initialize_maint_cmds, show_watchdog) 
+       (show_maintenance_profile_p): Dito.
+       * linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
+       * infrun.c (_initialize_infrun, show_debug_infrun) 
+       (show_stop_on_solib_events, show_follow_fork_mode_string) 
+       (show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
+       * infcall.c (_initialize_infcall, show_coerce_float_to_double_p) 
+       (show_unwind_on_signal_p): Ditto.
+       * gdbtypes.c (build_gdbtypes, show_opaque_type_resolution) 
+       (_initialize_gdbtypes, show_overload_debug): Ditto.
+       * gdb-events.c, gdb-events.sh (_initialize_gdb_events)
+       (show_gdb_events_debug): Ditto.
+       * gdbarch.c, gdbarch.sh (show_gdbarch_debug)
+       (_initialize_gdbarch): Ditto.
+       * frame.c (_initialize_frame, show_backtrace_past_main) 
+       (show_backtrace_past_entry, show_backtrace_limit) 
+       (show_frame_debug): Ditto.
+       * exec.c (_initialize_exec, show_write_files): Ditto.
+       * dwarf2read.c (_initialize_dwarf2_read) 
+       (show_dwarf2_max_cache_age): Ditto.
+       * demangle.c (_initialize_demangler)
+       (show_demangling_style_names): Ditto.
+       * dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
+       * cp-valprint.c (show_static_field_print) 
+       (_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
+       * corefile.c (_initialize_core, show_gnutarget_string): Ditto.
+       * cli/cli-logging.c (_initialize_cli_logging) 
+       (show_logging_overwrite, show_logging_redirect) 
+       (show_logging_filename): Ditto.
+       * cli/cli-cmds.c (show_info_verbose, show_history_expansion_p) 
+       (init_cli_cmds, show_baud_rate, show_remote_debug) 
+       (show_remote_timeout, show_max_user_call_depth): Ditto.
+       * charset.c (show_host_charset_name, show_target_charset_name)
+       (initialize_charset): Ditto.
+       * breakpoint.c (show_can_use_hw_watchpoints)
+       (show_pending_break_support, _initialize_breakpoint): Ditto.
+
+2005-02-23  Jim Blandy  <jimb@redhat.com>
+
+       * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target.
+
+2005-02-23  Andrew Cagney  <cagney@gnu.org>
+
+       * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
+       SEC_XXX flags.
+
+2005-02-22  Andrew Cagney  <cagney@gnu.org>
+
+       * configure.ac: Only enaable insight when itcl is present.
+       * configure: Re-generate.
+       
+2005-02-21  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
+
+       Committed by Andrew Cagney.
+       * infptrace.c (store_register): Fix typo.
+
+2005-02-21  Andrew Cagney  <cagney@gnu.org>
+
+       * command.h (deprecated_add_set_cmd): Rename add_set_cmd.
+       * cli/cli-decode.h (add_set_cmd): Delete declaration.
+       * cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
+       * i386-nat.c (_initialize_i386_nat): Update call.
+       * valprint.c (_initialize_valprint): Update comment.
+       * gnu-nat.c (_initialize_gnu_nat): Update call.
+
+2005-02-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * elfread.c (elf_symtab_read): Discard section syms.
+
+2005-02-21  Andrew Cagney  <cagney@gnu.org>
+
+       * cli/cli-decode.c (add_set_enum_cmd): Delete function.
+       (deprecated_add_show_from_set): Delete function.
+       * command.h (add_set_enum_cmd): Delete declaration.
+       (deprecated_add_show_from_set): Delete declaration.
+       * cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
+       (deprecated_add_show_from_set): Delete declaration.
+       * arm-tdep.c (_initialize_arm_tdep): Update comment.
+       * kod.c (kod_set_os): Simplify.
+       * infrun.c (set_schedlock_func): Simplify.
+       * cli/cli-dump.c (add_dump_command): Update comment.
+
+       Replace string variables with a filename completer with
+       add_setshow_optional_filename_cmd.
+       * solib.c, symfile.c: Update.
+       * cli/cli-setshow.c: Do not tidle expand the file.
+       
+       Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
+       and add_setshow_string_noescape_cmd.
+       * cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
+       NULL command's value.
+       * kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
+       * remote-sds.c, remote.c, symfile.c, top.c: Update.
+
+2005-02-20  Andrew Cagney  <cagney@gnu.org>
+
+       Use add_setshow_enum_cmd through out.
+       * arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
+       * infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
+       
+       * mi/mi-main.c (captured_mi_execute_command): Use
+       mi_cmd_interpreter_exec.
+
+       * cli/cli-decode.c (add_setshow_optional_filename_cmd): New
+       function.
+       * cli/cli-setshow.c (deprecated_show_value_hack) 
+       (do_setshow_command): Handle var_optional_filename.
+       * command.h (enum var_types): Add var_optional_filename.
+       (add_setshow_optional_filename_cmd): Declare.
+       * infcmd.c (notice_args_read): Use.
+
+       * symfile-mem.c (symbol_file_add_from_memory): Pass
+       target_read_memory to bfd_elf_bfd_from_remote_memory.
+       (do_target_read_memory): Delete.
+
+2005-02-16  Mark Kettenis  <kettenis@gnu.org>
+
+       * value.h (value_contents_equal): New prototype.
+       * value.c (value_contents_equal): New function.
+       * varobj.c: Include "exceptions.h" and "gdb_assert.h".  Don't
+       include <math.h>.
+       (varobj_set_value): Initialize error to zero.
+       (varobj_update): Rename error2 to error and initialize it to zero.
+       Slightly change the wording of some comments.
+       (my_value_equal): Reimplement using TRY_CATCH and
+       value_contents_equal.
+
+2005-02-18  Andrew Cagney  <cagney@gnu.org>
+
+       * cli/cli-decode.c (add_setshow_integer_cmd): New function.
+       * command.h (add_setshow_integer_cmd): Declare.
+       * cli/cli-cmds.c: Update.
+       
+       Use add_setshow_uinteger_cmd through out.
+       * printcmd.c, source.c, utils.c, valprint.c: Update.
+
+       Use add_setshow_zinteger_cmd through out.  Re-sync gdbarch.sh
+       and gdbarch.c.
+       * breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
+       * gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
+       * pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
+       * serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
+       * varobj.c, cli/cli-cmds.c: Update.
+       * gdbarch.c, gdb-events.c: Regenerate.
+       
+       Use add_setshow_boolean_command through out.  Delete #ifdef 0'ed
+       code adding set/show boolean commands.
+       * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update.
+       * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update.
+       * proc-api.c, remote-mips.c, remote.c, solib.c: Update.
+       * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update.
+       * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update.
+       * cli/cli-cmds.c: Update.
+
+2005-02-17  Andrew Cagney  <cagney@gnu.org>
+
+       * cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
+       to filename_completer.
+       * solib.c (_initialize_solib, reload_shared_libraries): Use
+       add_setshow_filename_cmd.
+       * serial.c (_initialize_serial): Ditto.
+       * remote-utils.c (_initialize_sr_support): Ditto.
+
+       * cli/cli-decode.c (add_setshow_string_noescape_cmd): New function.
+       * command.h (add_setshow_string_noescape_cmd): Declare.
+       * wince.c (_initialize_wince): Use.
+       * symfile.c (_initialize_symfile): Use.
+       (set_ext_lang_command): Update declaration.
+       * corefile.c (_initialize_core): Use.
+
+       * cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
+       (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
+       (add_setshow_filename_cmd, add_setshow_string_cmd)
+       (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
+       fprint_setshow parameter.
+       * command.h (fprint_setshow_ftype): Delete.
+       (add_setshow_cmd_full, add_setshow_enum_cmd)
+       (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
+       (add_setshow_filename_cmd, add_setshow_string_cmd)
+       (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
+       fprint_setshow parameter.
+       * aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
+       * complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
+       * hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
+       * mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
+       * remote.c, target.c, cli/cli-logging.c: Update.
+       
+2005-02-16  Andrew Cagney  <cagney@gnu.org>
+
+       Merge setshow print and show parameters.
+       * command.h (show_value_ftype): Define.
+       (deprecated_show_value_hack): Declare.
+       (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
+       (add_setshow_boolean_cmd, add_setshow_filename_cmd)
+       (add_setshow_string_cmd, add_setshow_uinteger_cmd)
+       (add_setshow_zinteger_cmd): Change type of show_func to
+       show_value_ftype.
+       * cli/cli-decode.h (struct cmd_list_element): Replace
+       fprint_setshow with show_value_func.
+       * cli/cli-decode.c (add_setshow_cmd_full): Update show_func
+       parameter.  Set show_value_func.  Do not set cmd_sfunc.
+       (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) 
+       (add_setshow_boolean_cmd, add_setshow_filename_cmd) 
+       (add_setshow_string_cmd, add_setshow_uinteger_cmd) 
+       (add_setshow_zinteger_cmd): Update.
+       * complaints.c (complaints_show_value): Replace
+       fprint_setshow_complaints.
+       (_initialize_complaints): Update.
+       * mips-tdep.c (show_mask_address): Update.
+       * arm-tdep.c (show_fp_model): Update.
+       * cli/cli-setshow.c (do_setshow_command): Call show_value_func
+       instead of fprint_setshow.  Use deprecated_show_value_hack.
+       (deprecated_show_value_hack): New function.
+       * remote.c (add_packet_config_cmd, show_remote_cmd): 
+       (show_remote_protocol_P_packet_cmd) 
+       (show_remote_protocol_P_packet_cmd) 
+       (show_remote_protocol_Z_access_wp_packet_cmd) 
+       (show_remote_protocol_Z_hardware_bp_packet_cmd) 
+       (show_remote_protocol_Z_packet_cmd)
+       (show_remote_protocol_Z_read_wp_packet_cmd) 
+       (show_remote_protocol_Z_software_bp_packet_cmd) 
+       (show_remote_protocol_Z_write_wp_packet_cmd) 
+       (show_remote_protocol_binary_download_cmd) 
+       (show_remote_protocol_p_packet_cmd) 
+       (show_remote_protocol_qPart_auxv_packet_cmd) 
+       (show_remote_protocol_qSymbol_packet_cmd) 
+       (show_remote_protocol_vcont_packet_cmd): Update.
+
 2005-02-16  Mark Kettenis  <kettenis@gnu.org>
 
        * wrapper.h: Update copyright year.  Properly wrap a few
 2005-02-15  Mark Kettenis  <kettenis@gnu.org>
 
        * amd64-linux-tdep.c: Update copyright year.
-       (amd64_linux_sigtramp_start): Change argument to `struct
-       frame_info *'.  Use safe_frame_unwind_memory instead of
-       deprecated_read_memory_nobpt.
-       (amd64_linux_sigtramp_p): Adjust call to
-       amd64_linux_sigtramp_start.
+       (amd64_linux_sigtramp_start): Use sizeof operator instead of
+       LINUX_SIGTRAMP_LEN.
 
 2004-02-15  Joel Brobecker  <brobecker@gnat.com>
 
This page took 0.028055 seconds and 4 git commands to generate.