* varobj.c (varobj_invalidate): Don't touch floating
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 42c4ea0d3086897e6eb359ed689e4c2a8b6ab809..0f0db2d1c7a4369fab3e2687ee89f3ddf38d1153 100644 (file)
@@ -1,3 +1,450 @@
+2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * varobj.c (varobj_invalidate): Don't touch floating
+       varobjs.
+
+2008-04-19  Mark Kettenis  <kettenis@gnu.org>
+
+       * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
+       (multiple_symbols_cancel): Remove extra const.
+       * symtab.h: Likewise.
+
+2008-04-19  Nick Roberts  <nickrob@snap.net.nz>
+
+       * interps.c (top_level_interpreter): Rename static variable...
+       (top_level_interpreter_ptr): ...to this.
+       (top_level_interpreter): New function.
+
+       * interps.h: New extern for top_level_interpreter.
+
+       * linespec.c: Include interps.h and mi/mi-cmds.h.
+       (decode_line_2): When using MI, always set all breakpoints in menu.
+
+       * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
+
+2008-04-18  Craig Silverstein   <csilvers@google.com>
+
+       * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
+       * config.in, configure: Regenerate.
+       * dwarf2read.c: Include zlib.h if present.
+       Modified *_SECTION macros.
+       (section_is_p): New.
+       (dwarf2_locate_sections): Use section_is_p instead of strcmp
+       (dwarf2_resize_section): New.
+       to determine whether a given section has a given name.
+       (zlib_decompress_section): New.
+       (dwarf2_read_section): Read the compressed section if present
+       in the binary.
+       * MAINTAINERS: Added myself to section Write After Approval.
+
+2008-04-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * defs.h (exec_set_section_offsets): Remove prototype.
+       * exec.c (exec_set_section_offsets): Remove function.
+
+2008-04-18  Joel Brobecker  <brobecker@adacore.com>
+
+       * stabsread.c (cleanup_undefined_types_1): Add instance flags check
+       in the search for the matching symbol.
+
+2008-04-17  Marc Khouzam  <marc.khouzam@ericsson.com>
+
+       * breakpoint.c (update_watchpoint): Always reparse
+       condition.
+
+2008-04-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.c (print_one_breakpoint_location): Make sure to print
+       the breakpoint address only once.
+
+2008-04-17  Dennis Roberts  <dennis.roberts@sunquestinfo.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
+       rather than a hard-coded architecture, for xcoff executables.
+
+2008-04-17  Doug Evans  <dje@google.com>
+
+       * buildsym.c (watch_main_source_file_lossage): New fn.
+       (end_symtab): Call it.
+
+       * source.c (find_and_open_source): Add some comments clarifying
+       handling of FULLNAME argument.  Make static.  Remove pointless
+       xstrdup/xfree.
+
+2008-04-17  Pedro Alves  <pedro@codesourcery.com>
+
+       * inf-loop.c (inferior_event_handler): Also run the intermediate
+       continuations in the INF_EXEC_COMPLETE case.
+
+2008-04-16  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-decode.h (CMD_ASYNC_OK): New define.
+       (set_cmd_async_ok, get_cmd_async_ok): Declare.
+       * cli/cli-decode.c (set_cmd_async_ok): New function.
+       (get_cmd_async_ok): New function.
+       * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
+       "show" as async-ok.
+       * top.c (execute_command): Use get_cmd_async_ok.
+       * infcmd.c: Include cli/cli-decode.h.
+       (_initialize_infcmd): Mark "interrupt" as async-ok.
+       * Makefile.in (infcmd.o): Depend on cli_decode_h.
+
+2008-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/2445
+       * exec.c: Correct "arch-utils.h" include.
+
+2008-04-15  Aleksandar Ristovski <aristovski@qnx.com>
+
+       PR gdb/2424
+       * infrun.c (normal_stop) Move breakpoint_auto_delete further down
+       to allow printing to 'see' real reason of stop. This fixes PR 2424.
+       * breakpoint.c (bpdisp_texst): New function. The function takes over
+       the role of bpstats static array in print_one_breakpoint_location.
+       (print_it_typical): Print "Temporary breakpoint" instead
+       of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
+       protocols, print disp field.
+       (print_one_breakpoint_location): Removed bpdisps static definition.
+       Call new bpstat_text function to get value for 'disp' field.
+       (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
+
+2008-04-15  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
+       gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
+       by rerunning gnulib-tool with --aux-dir=gnulib/extra.
+       * gnulib/Makefile.in: Regenerate.
+
+2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.in (GNULIB_H): New.  Trigger all-lib.
+       (defs_h): Use $(GNULIB_H).
+       (all-lib): Depend on gnulib/Makefile.
+       (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
+       * config.in, gnulib/Makefile.in: Regenerated.
+
+2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.in (LIBGNU, INCGNU): Define.
+       (INTERNAL_CFLAGS_BASE): Add INCGNU.
+       (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
+       (CLEANDIRS): New.
+       ($(LIBGNU), all-lib): New rules.
+       (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
+       * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
+       Simplify AC_CONFIG_AUX_DIR.  Generate gnulib/Makefile.
+       * gnulib: New directory, from gnulib-tool.
+       * configure, aclocal.m4: Regenerated.
+
+2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-thread-db.c (have_threads_callback): Check thread->private.
+
+2008-04-13  Nick Roberts  <nickrob@snap.net.nz>
+           Vladimir Prus  <vladimir@codesourcery.com>
+
+       Fix @-varobjs.
+        * varobj.c (value_of_root): Update the expression for
+        floating varobjs.
+        * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
+        report that.
+
+2008-04-09  Marc Khouzam  <marc.khouzam@ericsson.com>
+
+       * mi/mi-cmd-var.c: Include "mi-getopt.h".
+       (mi_parse_format): New.  Factored out from mi_cmd_var_set_format.
+       (mi_cmd_var_set_format): Use new mi_parse_format.
+       (mi_cmd_var_evaluate_expression): Support for -f option to specify
+       format.
+       * Makefile.in (mi-cmd-var.o): Update dependencies.
+
+       * varobj.h (varobj_get_formatted_value): Declare.
+       * varobj.c (my_value_of_variable): Added format parameter.
+       (cplus_value_of_variable): Likewise.
+       (java_value_of_variable): Likewise.
+       (c_value_of_variable): Likewise.  Evaluate expression based
+       on format parameter.
+       (struct language_specific): Add format parameter to function member
+       *value_of_variable.
+       (varobj_get_formatted_value): New.
+       (varobj_get_value): Added format parameter to method call.
+        
+2008-04-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * stabsread.c (cleanup_undefined_types_noname): Manually set the
+       instance flags of the undefined type before calling replace_type.
+
+2008-04-08  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * target.h (enum strata): Remove the download_stratum.
+       
+2008-04-07  Doug Evans  <dje@google.com>
+
+       * buildsym.h (last_source_file): Add dwarf info to comment.
+       (last_source_start_addr): Ditto.
+
+2008-04-07  Pedro Alves  <pedro@codesourcery.com>
+
+       * alphanbsd-tdep.c: Include "target.h".
+       * mn10300-tdep.c: Include "target.h".
+       * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
+
+2008-04-06  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Fix breakpoint condition that use member variables.
+        * valops.c (check_field): Remove.
+        (check_field_in): Rename to check_field.
+        (value_of_this): Use la_name_of_this.
+        * value.h (check_field): Adjust prototype.
+
+        * language.h (la_value_of_this): Rename to la_name_of_this.
+        * language.c (unknown_language_defn): Specify "this" for
+        name_of_this.
+        (auto_language_defn): Likewise.
+        (local_language_defn): Likewise.
+        * ada-lang.c (ada_language_defn): Adjust comment.
+        * c-lang.c (c_language_defn): Adjust comment.
+        (cplus_language_defn): Specify "this" for name_of_this.
+        (asm_language_defn): Adjust comment.
+        (minimal_language_defn): Adjust comment.
+        * f-lang.c (f_language_defn): Specify NULL for name_of_this.
+        * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
+        * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
+        * objc-lang.c (objc_language_defn): Specify "self" for
+        name_of_this.
+        * p-lang.c (pascal_language_defn): Specify "this" for
+        name_of_this.
+        * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
+
+        * symtab.c (lookup_symbol_aux): Lookup "this" in the
+        proper scope, and check for field in type of "this", without
+        trying to create a value.
+
+2008-04-04  Pedro Alves  <pedro@codesourcery.com>
+
+       * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
+       (mi_error_message): Delete declaration.
+       * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
+       returning MI_CMD_ERROR.
+       * mi/mi-main.c (mi_error_message): Delete.
+       (mi_cmd_exec_interrupt):
+       (mi_cmd_thread_select, mi_cmd_thread_list_ids)
+       (mi_cmd_thread_info): Call error instead of returning
+       MI_CMD_ERROR.
+       (mi_cmd_data_list_register_values): Call error instead of
+       returning MI_CMD_ERROR.  Adapt to new get_register interface.
+       (get_register): Change return typo to void.  Call error instead of
+       returning MI_CMD_ERROR.
+       (mi_cmd_data_write_register_values): Call error instead of
+       returning MI_CMD_ERROR.
+       (mi_cmd_list_features): Return MI_CMD_DONE.
+       (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
+       (mi_execute_command): Always print exceptions with -error.
+
+2008-04-04  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Mention new commands set/show multiple-symbols.
+
+2008-04-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * symtab.c (multiple_symbols_ask, multiple_symbols_all)
+       (multiple_symbols_cancel): New constants.
+       (multiple_symbols_modes, multiple_symbols_mode): New static globals.
+       (multiple_symbols_select_mode): New function.
+       (_initialize_symtab): Add new set/show multiple-symbols commands.
+       * symtab.h (multiple_symbols_ask, multiple_symbols_all)
+       (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
+       * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
+       setting.
+       * linespec.c (decode_line_2): Likewise.
+
+2008-04-03  Doug Evans  <dje@sebabeach.org>
+
+       * symtab.h (enum free_code): Delete free_contents, unused.
+       * symmisc.c (free_symtab_block): Delete.
+       (free_symtab, case free_code): Delete.
+
+2008-04-01  Aleksandar Ristovski <aristovski@qnx.com>
+
+       * valops.c (value_cast_structs): New function. Cast related
+       STRUCT types up/down and return cast value. The body of this 
+       function comes mostly from value_cast_pointers.
+       (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
+       to value_cast_structs. Now value_cast_pointers needs only create
+       appropriate reference after using value_cast_structs for actual
+       casting.
+       (value_cast): Handle references.
+
+2008-04-01  Marc Khouzam  <marc.khouzam@ericsson.com>
+
+       * MAINTAINERS: Added myself to section Write After Approval.
+
+2008-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * ia64-tdep.c (examine_prologue): Correct array access.
+
+2008-03-28  Aleksandar Ristovski <aristovski@qnx.com>
+
+       * cp-support.c (first_component_command): Return if no arguments.
+
+2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * ser-mingw.c (ser_windows_open): Open requested name.
+
+2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
+
+       * MAINTAINERS: Added myself.
+
+2008-03-28  Pedro Alves  <pedro@codesourcery.com>
+
+       * target.c (find_default_run_target): Allow a NULL `do_mesg'
+       parameter.  If it is NULL, don't call error.
+       (find_default_can_async_p, find_default_is_async_p): Pass NULL as
+       `do_mesg' parameter to find_default_run_target.  If no target was
+       found, return 0.
+
+2008-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mips-linux-tdep.c: Update N32/N64 signal frame comments.
+       (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
+       (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
+       Delete.
+       (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
+
+2008-03-27  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 6.8 released.
+
+2008-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * features/Makefile (%.dat): Set xmltarget to the base filename
+       of the XML source, without subdirectory.
+       * regformats/rs6000/powerpc-32.dat: Regenerate.
+       * regformats/rs6000/powerpc-64.dat: Regenerate.
+       * regformats/rs6000/powerpc-e500.dat: Regenerate.
+
+2008-03-27  Markus Deuling  <deuling@de.ibm.com>
+
+       * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
+       objfile arch.
+
+2008-03-27  Nick Roberts  <nickrob@snap.net.nz>
+
+       * mi/mi-main.c (enum captured_mi_execute_command_actions):
+       Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
+
+2008-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * objfiles.h (struct objfile): New GDBARCH member.
+       (get_objfile_arch): Add prototype.
+       * objfiles.c: Include "arch-utils.h".
+       (allocate_objfile): Look up gdbarch associated with bfd.
+       (get_objfile_arch): New function.
+       * Makefile (objfiles.o): Update dependencies.
+
+       * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
+       by objfile arch.
+       * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
+       by frame arch.
+       (locexpr_describe_location): Replace current_gdbarch by
+       objfile arch.
+       * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
+       (dwarf2_add_field): Likewise.
+       (read_tag_pointer_type): Likewise.
+       (read_base_type): Likewise.
+       (new_symbol): Likewise.
+
+       * coffread.c (decode_type): Add OBJFILE argument.  Update callers.
+       (decode_base_type, decode_function_type): Likewise.
+       (coff_read_struct_type, coff_read_enum_type): Likewise.
+       (coff_symtab_read): Replace current_gdbarch by objfile arch.
+       (decode_base_type): Likewise.
+       (coff_read_enum_type): Likewise.
+       (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
+       (coff_read_enum_type): Likewise.
+
+       * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
+       (end_psymtab): Likewise.
+       (process_one_symbol): Likewise.
+
+       * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
+       (parse_procedure): Likewise.
+       (parse_partial_symbols): Likewise.
+
+       * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
+
+       * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
+       Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
+       built-in types.
+       (read_range_type): Replace current_gdbarch by objfile arch.  Replace
+       static range_index_type by built-in type.
+       (read_one_struct_field): Replace current_gdbarch by objfile arch.
+       (read_enum_type): Likewise.
+
+       * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
+       objfile arch.
+
+2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * varobj.h (varobj_floating_p): Declare.
+       * varobj.c (varobj_floating_p): New.
+       * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
+       '@' as the name, update all floating varobjs.
+
+2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * varobj.c (struct varobj_root): Rename use_selected_frame to
+       floating, and clarify the meaning.
+       (varobj_create, varobj_update,  new_root_variable): Adjust.
+       (value_of_root): Don't use type_changed as in variable,
+       adjust comment.
+       (c_value_of_root): Adjust.
+
+2008-03-25  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
+       gdb's thread list.
+       (linux_nat_wait): Add main lwp to gdb's thread list.
+       * linux-thread-db.c (find_new_threads_callback): Also attach to
+       already listed threads which thread_db didn't know about yet.
+
+2008-03-25  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (drain_queued_events): Fix comment typo.
+       (linux_nat_attach): In async mode, don't rely on storing a pending
+       status.  Instead place the wait status on the pipe.
+       (linux_nat_resume): Remove unreacheable shortcut code in async
+       mode.
+       (stop_wait_callback): In async mode, don't store pending status.
+       Instead, cancel breakpoints or resend the signal appropriatelly.
+       (cancel_breakpoint): New, refactored from
+       cancel_breakpoints_callback.
+       (cancel_breakpoints_callback): Call cancel_breakpoint.
+       (pipe_to_local_event_queue): Remove special token processing.
+       (linux_nat_wait): Issue an internal error if a pending status is
+       found in async mode.
+
+2008-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
+
+2008-03-24  Nick Roberts  <nickrob@snap.net.nz>
+           Vladimir Prus  <vladimir@codesourcery.com>
+
+        * varobj.c  (struct varobj_root): New component thread_id.
+        (varobj_get_thread_id, check_scope): New functions.
+        (c_value_of_root): Use check_scope.  Switch to the
+       proper thread if necessary.
+
+        * varobj.h (varobj_get_thread_id): New extern.
+
+        * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
+
+2008-03-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/544
+       * top.c: Revert 2008-03-21 changes.
+
 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
 
        * thread.c (make_cleanup_restore_current_thread): Make it
This page took 0.027019 seconds and 4 git commands to generate.