X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=49435ca8758b75a39f621ce868db3a1ebe0f87d5;hb=ea37ba09261f349ac2748da0d4f8f513184776f9;hp=c5ea1391dedd4406335697e6f1ae0466460ee9da;hpb=46be51c450c8ba1d31e0130bb8b981bd5722648b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c5ea1391de..49435ca875 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,550 @@ +2007-09-04 Daniel Jacobowitz + Jim Blandy + + * NEWS: Update description of string changes. Mention print/s. + * c-valprint.c (textual_element_type): New. + (c_val_print): Use it. Do not skip address printing for pointers + with a string format. + (c_value_print): Doc update. + * dwarf2read.c (read_array_type): Use make_vector_type. + * gdbtypes.c (make_vector_type): New. + (init_vector_type): Use it. + (gdbtypes_post_init): Initialize builtin_true_unsigned_char. + (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT. + * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char. + (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New. + (make_vector_type): New. + * printcmd.c (print_formatted): Only handle 's' and 'i' for examine. + Call the language print routine for string format. + (print_scalar_formatted): Call val_print for string format. Handle + unsigned original types for char format. + (validate_format): Do not reject string format. + * stabsread.c (read_type): Use make_vector_type. + * xml-tdesc.c (tdesc_start_vector): Use init_vector_type. + +2007-09-04 Michael Snyder + + * expprint.c (print_subexp_standard): Check strchr for null. + * Makefile.in (expprint.o): Depend on gdb_assert.h. + + * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null. + + * stabsread.c (patch_block_status): Guard against null. + * Makefile.in (stabsread.o): Depend on gdb_assert.h. + +2007-09-04 Daniel Jacobowitz + + * printcmd.c (printf_command): Handle ptr_arg. Correct typo + in internal error message. + +2007-09-04 Pedro Alves + Daniel Jacobowitz + + * infcmd.c (post_create_inferior): Update comment. + (run_command_1): Always call post_create_inferior with 0 as + from_tty. + + * i386-cygwin-tdep.h: New. + * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h". + (win32_xfer_shared_library): Make it extern. + + * win32-nat.c: Include gdb_obstack.h and xml-support.h and + i386-cygwin-tdep.h. + (win32_so_ops): Delete. + (get_relocated_section_addrs): Delete. + (solib_symbols_add): Delete. + (register_loaded_dll): Delete. + (win32_make_so): New. + (handle_load_dll): Use win32_make_so. + (win32_free_so): Free the passed in so. + (win32_relocate_section_addresses): Delete. + (win32_solib_create_inferior_hook): Delete. + (handle_unload_dll): Don't add PE offset here. Free so with + win32_free_so instead of free_so. + (win32_special_symbol_handling): Delete. + (get_win32_debug_event): Remove unneeded calls. Set state to + TARGET_WAITKIND_LOADED on a dll unload. + (do_initial_win32_stuff): Clear cygwin_load_start and + cygwin_load_end. + (map_code_section_args): Delete. + (dll_code_sections_add): Delete. + (core_section_load_dll_symbols): Delete. + (win32_xfer_shared_libraries): New. + (win32_current_sos): Delete. + (win32_xfer_partial): New. + (open_symbol_file_object): Delete. + (in_dynsym_resolve_code): Delete. + (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member + of win32_ops. Remove win32_so_ops settings. Don't set + current_target_so_ops here. + + * Makefile.in (i386_cygwin_tdep_h): New variable. + (i386-cygwin-tdep.o): Update dependencies. + (win32-nat.o): Update dependencies. + +2007-09-04 Pedro Alves + Daniel Jacobowitz + + * gdbarch.sh (core_xfer_shared_libraries): New. + + * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES. + + * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New. + + * xml-support.c (gdb_xml_parse): Debug output tweaks. + (xml_escape_text): New. + * xml-support.h (xml_escape_text): Declare. + + * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ... + * config/i386/cygwin.mt (TDEPFILES): ... here. + + * win32-nat.c: (fetch_elf_core_registers): Delete. + (win32_elf_core_fn): Delete. + (_initialize_core_win32): Delete. + + * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h", + "xml-support.h" and "gdbcore.h". + (i386_win32_gregset_reg_offset): New. + (I386_WIN32_SIZEOF_GREGSET): New. + (i386_win32_regset_from_core_section): New. + (win32_xfer_shared_library): New. + (struct cpms_data): New. + (core_process_module_section): New. + (win32_core_xfer_shared_libraries): New. + (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset, + gregset_num_regs, sizeof_gregset members of tdep. Register + regset_from_core_section and core_xfer_shared_libraries callbacks. + + * Makefile.in (i386-cygwin-tdep.o): Update dependencies. + * gdbarch.h, gdbarch.c: Regenerate. + +2007-09-03 Daniel Jacobowitz + + * corelow.c (core_xfer_partial): Pass writebuf to + deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case. + +2007-09-03 Pedro Alves + + * arm-tdep.h (arm_skip_stub): Declare. + * arm-wince-tdep.c: Don't include "solib-svr4.h". Include + "gdbcore.h". + (arm_pe_skip_trampoline_code): New function. + (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as + gdbarch_skip_trampoline_code callback. + * Makefile.in (arm-wince-tdep.o): Update dependencies. + +2007-09-03 Daniel Jacobowitz + + * MAINTAINERS: Move Fred Fish to Past Maintainers. + +2007-09-03 Daniel Jacobowitz + + * configure.ac: Add --with-expat. + * configure: Regenerated. + +2007-09-03 Andreas Schwab + + * configure.ac: Accept --with-system-readline. + (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute. + * configure: Regenerate. + * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use + substituted values. + (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE). + +2007-09-03 Maxim Grigoriev + Daniel Jacobowitz + + * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters. + +2007-09-02 Jan Kratochvil + + * top.c (print_gdb_version): Fixed a string end-of-line compiler error. + +2007-09-02 Daniel Jacobowitz + + * top.c (print_gdb_version): Update for GPL version 3. + +2007-09-02 Jan Kratochvil + + * NEWS: Mention the build-id .debug files verification. + +2007-09-02 Jan Kratochvil + + * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow. + +2007-09-01 Jan Kratochvil + + * Makefile.in (symfile.o): Update dependencies. + * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the + DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS. + (struct build_id): New structure. + (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New. + (find_separate_debug_file): New variable BUILD_ID. + Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try. + +2007-08-31 Vladimir Prus + + * varobj.c (struct varobj): Fix comment + for the type member not to lie when it can be + NULL. + +2007-08-31 Vladimir Prus + + 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 + + * mi/mi-cmd-var.c (print_varobj): If a varobj + type is NULL, don't try to print it. + +2007-08-30 Alan Modra + + * 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 + + * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block; + this code has not been compiled for two years. + +2007-08-29 Michael Snyder + + * event-top.c (gdb_readline2): Return after EOF. + +2007-08-29 Joel Brobecker + + * symtab.c: Remove a function that has been commented out 3 years ago. + +2007-08-29 Randolph Chung + + * 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 + + * 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 + + * 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 + + * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10. + +2007-08-23 Joel Brobecker + + * 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 + + * copying.awk: Protoization, and i18n markup. + +2007-08-23 Joel Brobecker + + * 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 + + 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 + + * configure.ac: Switch license to GPLv3. + +2007-08-22 Daniel Jacobowitz + + * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to + determine the file's FPU type. + +2007-08-22 Daniel Jacobowitz + + * 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 + + * 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 + + * 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 + + * MAINTAINERS (Patch Champions): Remove self. + +2007-08-21 Chris Smith + + * cli/cli-script.c (read_command_lines): Call dont_repeat for each + line. + +2007-08-18 Michael Snyder + + * 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 + + * 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 + + * 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 + + * 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 + + * event-loop.c (gdb_wait_for_event): Move statement into "if" block. + +2007-08-15 Paul Hilfinger + Joel Brobecker + + * ada-lang.c (resolve_subexp): Correct arity of binary operators. + +2007-08-15 Paul Hilfinger + Joel Brobecker + + * ada-lang.c (possible_user_operator_p): Alternative fix to last + checkin guarding against NULL. + +2007-08-14 Michael Snyder + + * 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 + Michael Snyder + + * ada-lang.c (field_alignment): Guard against NULL. + +2007-08-14 Joel Brobecker + + * MAINTAINERS (Global Maintainers): Add self. + +2007-08-14 Michael Snyder + + * 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 + + * 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 + + * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here... + * config/i386/linux.mt (TDEPFILES): ...to here. + +2007-08-14 Vladimir Prus + + * 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 + + * breakpoint.c (update_breakpoints_after_exec): Don't + set address to zero. + +2007-08-13 Michael Snyder + + * 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 + + * completer.c: Spelling fix in comments. + 2007-08-10 Michael Snyder + * 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. @@ -75,6 +620,7 @@ * varobj.c (value_of_root): Move alloc after return to avoid leak. * tui/tui-layout.c (tui_set_layout): Dead code, dead variable. + (tui_set_layout_for_display_command): Mem leak. * top.c (command_line_input): Memory leak.