Implement -var-info-path-expression.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index d462a310cd6bce784e931e9165c1cad0dac0f060..242822fdb5e5988570fd6f59bb7032ca157351d0 100644 (file)
@@ -1,5 +1,483 @@
+2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Implement -var-info-path-expression.
+
+       * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
+       Declare.
+       * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
+       * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
+       * varobj.c (struct varobj): New field 'path_expr'.
+       (c_path_expr_of_child, cplus_path_expr_of_child)
+       (java_path_expr_of_child): New.
+       (struct language_specific): New field path_expr_of_child.
+       (varobj_create): Initialize the path_expr field.
+       (varobj_get_path_expr): New.
+       (new_variable): Initialize the path_expr field.
+       (free_variable): Free the path_expr field.
+       (adjust_value_for_children_access): New parameter
+       WAS_TYPE.
+       (c_number_of_children): Adjust.
+       (c_describe_child): New parameter CFULL_EXPRESSION.
+       Compute full expression.
+       (c_value_of_child, c_type_of_child): Adjust.
+       (cplus_number_of_children): Adjust.
+       (cplus_describe_child): New parameter CFULL_EXPRESSION.
+       Compute full expression.
+       (cplus_name_of_child, cplus_value_of_child)
+       (cplus_type_of_child): Adjust.
+       * varobj.h (varobj_get_path_expr): Declare.
+
+2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-cmd-var.c (print_varobj): If a varobj
+       type is NULL, don't try to print it.
+       
+2007-08-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * ppc-linux-nat.c (right_fill_reg): Delete.
+       (supply_gregset): Use ppc_supply_gregset.
+       (supply_fpregset): Use ppc_supply_fpregset.
+       (fill_gregset): Use ppc_collect_gregset.
+       (fill_fpregset): Use ppc_collect_fpregset.
+       * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
+       (right_supply_register, ppc_linux_supply_gregset): Delete.
+       (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
+       (ppc_linux_supply_fpregset): Delete.
+       (ppc_linux_collect_gregset): New function.
+       (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
+       (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
+       ppc_linux_supply_gregset, and ppc_collect_gregset.
+       (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
+       (ppc_linux_gregset, ppc_linux_fpregset): New functions.
+       (ppc_linux_regset_from_core_section): Update.
+       * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
+       (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
+       (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
+       * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
+       (ppcobsd_collect_gregset): Likewise.
+       (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
+       * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
+       * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
+       * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
+       (rs6000_aix64_reg_offsets): Likewise.
+       (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
+       ppc_floating_point_unit_p.
+       (rs6000_aix_collect_regset): Similarly.
+       * rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
+       when regsize is larger than regcache register size.
+       (ppc_collect_reg): Similarly zero pad when regsize is larger than
+       regcache register size.
+       (ppc_greg_offset): New function, split out from..
+       (ppc_supply_gregset): ..here.  Separate code handling all regs from
+       single reg case.  Correct xer offset.
+       (ppc_fpreg_offset): New function, split out from..
+       (ppc_supply_fpregset): ..here.  Separate code handling all regs from
+       single reg case.
+       (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
+       (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
+       a fp unit, instead return if no fp.
+
+2007-08-29  Jim Blandy  <jimb@codesourcery.com>
+
+       * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
+       this code has not been compiled for two years.
+
+2007-08-29  Michael Snyder  <msnyder@access-company.com>
+
+       * event-top.c (gdb_readline2): Return after EOF.
+
+2007-08-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * symtab.c: Remove a function that has been commented out 3 years ago.
+
+2007-08-29  Randolph Chung  <tausq@debian.org>
+
+       * hppa-tdep.c (hppa32_cannot_fetch_register)
+       (hppa64_cannot_fetch_register): New functions.
+       (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
+       * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
+
+2007-08-28  Michael Snyder  <msnyder@access-company.com>
+
+       * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to 
+       check for null before calling check_typedef.
+
+       * NEWS: Mention Coverity bug fixes.
+
+2007-08-27  Markus Deuling  <deuling@de.ibm.com>
+
+       * spu-tdep.c (spu_pointer_to_address): New function.
+       (spu_integer_to_address): Likewise.
+       (spu_gdbarch_init): Add spu_pointer_to_address and 
+       spu_integer_to_address to gdbarch.
+
+2007-08-26  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
+
+2007-08-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * Makefile.in (copying.c): Use the top-level COPYING3 as the file
+       that contains the GDB license.
+       * copying.awk: Adjust to the GPLv3 wording.
+       * copying.c: Regenerate.
+
+2007-08-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * copying.awk: Protoization, and i18n markup.
+
+2007-08-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * config/djgpp/djconfig.sh: Switch license to GPLv3.
+       * copyright.sh: Likewise.
+       * gdb-events.sh: Likewise.
+       * gdb_gcore.sh: Likewise.
+       * gdb_mbuild.sh: Likewise.
+       * gdbarch.sh: Likewise.
+       * observer.sh: Likewise.
+       * features/feature_to_c.sh: Likewise.
+       * regformats/regdat.sh: Likewise.
+
+2007-08-23  Joel Brobecker  <brobecker@adacore.com>
+
+       Switch the license of all .c files to GPLv3.
+       Switch the license of all .h files to GPLv3.
+       Switch the license of all .cc files to GPLv3.
+
+2007-08-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * configure.ac: Switch license to GPLv3.
+
+2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
+       determine the file's FPU type.
+
+2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
+       (mips_n32n64_push_dummy_call): Always increment float_argreg along
+       with argreg.  Use mips_n32n64_fp_arg_chunk_p.
+
+2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
+       Fix formatting.
+       (elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
+       (elf_lookup_lib_symbol): Fix formatting.
+
+2007-08-21  Michael Snyder  <msnyder@access-company.com>
+
+       * dbxread.c (read_dbx_symtab): Guard null deref.
+       Break up long line.
+
+       * valops.c (find_overload_match): Guard against NULL.
+
+2007-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * MAINTAINERS (Patch Champions): Remove self.
+
+2007-08-21  Chris Smith  <chris.smith@st.com>
+
+       * cli/cli-script.c (read_command_lines): Call dont_repeat for each
+       line.
+
+2007-08-18  Michael Snyder  <msnyder@access-company.com>
+
+       * stabsread.c (dbx_lookup_type): Memory leak.
+
+       * event-loop.c (delete_async_signal_handler): Move pointer null
+       test to before pointer dereference.
+
+       * ui-out.c (append_header_to_list): Possible cut and paste error.
+
+       * MAINTAINERS: white space tweak.
+
+2007-08-17  Michael Snyder  <msnyder@access-company.com>
+
+       * stack.c (print_frame): Memory leak.
+
+       * completer.c (filename_completer): Avoid memory leak.
+       Remove unnecessary nested block.
+
+       * c-exp.y (parse_number): Memory leak.
+
+       * completer.c (location_completer): Must free 'fn_list', except 
+       in the one case where it is returned (as 'list').
+
+       * varobj.c (value_of_root): Memory leak.
+
+       * gdbtypes.h (virtual_base_list): Remove export decl.
+       * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
+       (virtual_base_index): Memory leak.
+       (virtual_base_index_skip_primaries): Ditto.
+
+2007-08-17  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
+       (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
+       (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
+       (xtensa_read_register): New function.
+       (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
+       (xtensa_insn_kind): New types.
+       (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
+       (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
+       (xtensa_verify_config, xtensa_pseudo_register_read)
+       (xtensa_pseudo_register_write, xtensa_extract_return_value)
+       (xtensa_store_return_value)
+       (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
+       (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
+       (xtensa_frame_this_id, xtensa_frame_prev_register)
+       (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
+       (call0_frame_cache, call0_frame_get_reg_at_entry)
+       (call0_classify_opcode, call0_track_op)
+       (call0_analyze_prologue, call0_frame_cache): New functions.
+
+2007-08-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * breakpoint.c (bpstat_free): New.
+       (bpstat_clear): Use bpstat_free.
+       (delete_breakpoint): Document why we cannot
+       remove bpstats from stop_bpstat.
+       * breakpoint.h (bpstat_free): Declare.
+               
+2007-08-16  Michael Snyder  <msnyder@access-company.com>
+
+        * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
+
+2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
+            Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (resolve_subexp): Correct arity of binary operators.
+
+2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
+            Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (possible_user_operator_p): Alternative fix to last
+       checkin guarding against NULL.
+
+2007-08-14  Michael Snyder  <msnyder@access-company.com>
+
+       * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
+       tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
+       tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
+       go at beginning of new line.
+
+       * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
+       tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
+       tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
+       tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
+       tui-winsource.h, tui.c, tui.h: Function declarations and 
+       definitions, wrap long lines.
+
+       * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
+       tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
+       Reformat block comments to GNU standard.
+
+       * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
+       tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
+       tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
+       tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
+       tui.c, tui.h: Comment reformatting to coding standard (capitals, 
+       spaces after periods, etc).     
+
+       * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
+       tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
+       tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
+       tui-winsource.h: Whitespace changes, fix pointer declarations
+       to be consistant.
+
+2007-08-14  Joel Brobecker  <brobecker@adacore.com>
+            Michael Snyder  <msnyder@access-company.com>
+
+       * ada-lang.c (field_alignment): Guard against NULL.
+
+2007-08-14  Joel Brobecker  <brobecker@adacore.com>
+
+       * MAINTAINERS (Global Maintainers): Add self.
+
+2007-08-14  Michael Snyder  <msnyder@access-company.com>
+
+       * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
+
+       * ada-lang.c (possible_user_operator_p): Guard against NULL.
+
+       * varobj.c (cplus_describe_child): Guard against null.
+       Use "NULL" instead of "0" to initialize pointers.
+
+2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
+       to match any gdbarch with matching OSABI.  Set default ABI and FPU
+       after running the OSABI handler.
+
+2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
+       * config/i386/linux.mt (TDEPFILES): ...to here.
+
+2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * breakpoint.c (disable_breakpoints_in_shlibs): Remove
+       the 'silent' parameter and code to implement that.
+       * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
+       prototype.
+       * win32-nat.c: Adjust.
+       * solib.c: Adjust.
+       
+2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * breakpoint.c (update_breakpoints_after_exec): Don't
+       set address to zero.
+
+2007-08-13  Michael Snyder  <msnyder@access-company.com>
+
+       * valops.c: Whitespace clean-up.
+
+       * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
+
+       * event-top.c (command_line_handler): Memory leak.
+
+       * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
+       No need to make copy.
+
+       * source.c (find_source_lines): Require symtab 's'.
+
+2007-08-11  Michael Snyder  <msnyder@access-company.com>
+
+       * completer.c: Spelling fix in comments.
+
+2007-08-10  Michael Snyder  <msnyder@access-company.com>
+
+       * gdbtypes.c: Coding standard cleanup.
+       * gdbtypes.c: Comment/whitespace cleanup.
+
+       * stabsread.c (read_huge_number): Attempt to compute value before
+       values that it depends on.
+
+       * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
+       (decode_objc): Use "NULL" instead of 0.
+       (find_method): Ditto.
+       (decode_all_digits): Ditto.
+       (decode_dollar): Ditto.
+
+       * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
+
+       * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
+
+       * solib-svr4.c (enable_break): Don't free tmp_pathname until
+       after closing bfd.
+
+       * completer.c: Comment/whitespace cleanup.
+
+2007-08-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * Makefile.in (i386nbsd-nat.o): Add missing dependency.
+
+2007-08-10  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
+       allocated file descriptors.
+
+2007-08-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * Makefile.in: Minor cleanup throughout; add some missing variables,
+       add some missing rules, remove some rules that are no longer needed,
+       and fix the dependencies in several rules.
+
+2007-08-10  Ludovic Courtès  <ludo@gnu.org>
+
+       * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
+       (scm_lang_h, scm_tags_h): New.
+       (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
+       (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
+       * defs.h (enum language): Add `language_scm'.
+
+       * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
+       opening.
+
+2007-08-09  Ludovic Courtès  <ludo@gnu.org>
+
+       * MAINTAINERS (Write After Approval): Add myself.
+
+2007-08-09  Michael Snyder  <msnyder@access-company.com>
+
+       * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
+
+2007-08-09  Joel Brobecker  <brobecker@adacore.com>
+
+        * solib-som.c (som_relocate_section_addresses): Stop saving
+        the $CODE$ section in the so_list structure.
+
+2007-08-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+       * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
+       (xtensa_register_group_t): Add entries for coprocessors.
+       * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
+       (xtensa_add_reggroups): Likewise.
+       (xtensa_register_reggroup_p): Likewise.
+       (xtensa_coprocessor_register_group): New function.
+       (xtensa_cp): New.
+
+2007-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * serial.c (serial_open): Fix the OPEN parameter macro expansion.
+
+2007-08-08  Michael Snyder  <msnyder@access-company.com>
+
+       * target.c (target_read_string): Guard against null.
+
+       * varobj.c (value_of_root): Move alloc after return to avoid leak.
+
+       * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
+
+       * top.c (command_line_input): Memory leak.
+
+       * solib-svr4.c (open_symbol_file_object): Memory leak.
+       (svr4_current_sos): Ditto.
+       (enable_break): Ditto.
+
+       * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
+
+       * dwarf2read.c (add_partial_symbol): Memory leak.
+
+2007-08-06  Michael Snyder  <msnyder@access-company.com>
+
+       * ada-lang.c (desc_bounds): Comparison of function address to NULL.
+
+2007-08-05  Jim Blandy  <jimb@codesourcery.com>
+
+       * macroexp.c (init_buffer): Remove testing code that overrides the
+       caller's length guess.
+       (gather_arguments): Use a larger initial size, now that the vector
+       growth code has been exercised.
+
+2007-08-05  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * solib-target.c (solib_target_relocate_section_addresses): Add
+       orig_delta to addr_high.
+
+2007-08-04  Michael Snyder  <msnyder@access-company.com>
+
+       * remote-fileio.c (remote_fileio_func_write): Memory leak.
+
+       * breakpoint.c (print_one_breakpoint): Off by one error.
+
+       * tracepoint.c (add_register): Off by one error.
+       (stringify_collection_list): Free malloc buffer.
+
+2007-08-03  Michael Snyder  <msnyder@access-company.com>
+
+       * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
+       stop memory leak, straighten out cleanups.
+
+       * jv-lang.c (java_link_class_type): Guard against NULL.
+
 2007-08-02  Michael Snyder  <msnyder@access-company.com>
 
+       * gdbtypes.c (create_set_type): Test should only be done within
+       the preceeding if block.  Otherwise, variable is uninitialized.
+
        * gdbtypes.c (check_typedef): Guard NULL.
 
 2007-08-01  Michael Snyder  <msnyder@access-company.com>
@@ -6156,4 +6634,5 @@ mode: change-log
 left-margin: 8
 fill-column: 74
 version-control: never
+coding: utf-8
 End:
This page took 0.029648 seconds and 4 git commands to generate.