X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=2a6037624731711841bee4b3401ba3d281e810e1;hb=f72d4b774a268b7ff630bfed96698cae18464d21;hp=ebbda04ce489a644bef0c7b638740aef9cc2071a;hpb=eb1956643ddbb298d1005c939d3b9fce04980a4a;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ebbda04ce4..2a60376247 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,502 @@ +2020-03-08 Pierre Muller + + * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. + +2010-03-08 Jan Kratochvil + Hui Zhu + + * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and + tmp_to_stopped_data_address. + (record_open): Reset tmp_to_stopped_by_watchpoint and + tmp_to_stopped_data_address. + * target.c (init_dummy_target): Add to_stopped_by_watchpoint and + to_stopped_data_address. + +2010-03-08 Hui Zhu + + * i386-tdep.c (i386_process_record): Initialize regnum. + +2010-03-08 Jan Kratochvil + + * symfile.c (addr_info_make_relative): New variable sect_name, use it. + Do not warn on ".gnu.liblist" and ".gnu.conflict". + +2010-03-08 Joel Brobecker + + Memory error when reading wrong core file. + * solib-svr4.c (solib_svr4_r_map): catch and print all exception + errors while reading the inferior memory, and return zero if + an exception was raised. + +2010-03-07 Michael Snyder + + * record.c (record_restore): Rename tmpu8 to rectype. + + * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables + tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. + + (i386_record_push): Rename local tmpulongest to addr. + + (i386_process_record): Rename local tmpulongest to addr. + + Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, + addr64. + + Rename local variable tmpu8 to opcode8 and regnum. + +2010-03-07 Joel Brobecker + + * remote.c (remote_get_ada_task_ptid): New function. + (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. + +2010-03-06 Christopher Faylor + + * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one + block. Define helper macros to reduce ifdefs in code. + (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer + size. Call unadorned GetModuleFileNameEx rather than + GetModuleFileNameEx*. + (windows_make_so): Use __PMAX to denote maximum buffer size and + cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as + appropriate. + (get_image_name): Use __PMAX to denote maximum buffer size. + (handle_load_dll): Likewise. + (windows_pid_to_exec_file): Likewise. + (windows_create_inferior): Add many accommodations for older Cygwin and + non-Cygwin. + (bad_GetModuleFileNameExW): Control inclusion of this function based on + __USEWIDE conditional. + (bad_GetModuleFileNameExA): Likewise. + (_initialize_loadable): Just use real function names without the dyn_ + part since they are defined earlier. + +2010-03-05 Corinna Vinschen + Tom Tromey + + * utils.c (host_char_to_target): Add 'gdbarch' argument. + (parse_escape): Likewise. + * python/py-utils.c (unicode_to_target_string): Update. + (unicode_to_target_python_string): Update. + (target_string_to_unicode): Update. + * printcmd.c (printf_command): Update. + * p-exp.y (yylex): Update. + * objc-exp.y (yylex): Update. + * mi/mi-parse.c: Include charset.h. + (mi_parse_escape): New function. + (mi_parse_argv): Use it. + * jv-exp.y (yylex): Update. + * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New + function. + (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. + * gdbarch.sh (auto_charset, auto_wide_charset): New. + * gdbarch.c: Rebuild. + * gdbarch.h: Rebuild. + * defs.h (parse_escape): Update. + * cli/cli-setshow.c: Include arch-utils.h. + (do_setshow_command): Update. + * cli/cli-cmds.c (echo_command): Update. + * charset.h (target_charset, target_wide_charset): Update. + * charset.c: Include arch-utils.h. + (target_charset_name): Default to "auto". + (target_wide_charset_name): Likewise. + (show_target_charset_name): Handle "auto". + (show_target_wide_charset_name): Likewise. + (be_le_arch): New global. + (set_be_le_names): Add 'gdbarch' argument. + (validate): Likewise. Don't call set_be_le_names. + (set_charset_sfunc, set_host_charset_sfunc) + (set_target_charset_sfunc, set_target_wide_charset_sfunc): + Update. + (target_charset): Add 'gdbarch' argument. + (target_wide_charset): Likewise. Remove 'byte_order' argument. + (auto_target_charset_name): New global. + (default_auto_charset, default_auto_wide_charset): New functions. + (_initialize_charset): Set auto_target_charset_name. Allow "auto" + for target charsets. Copy result of nl_langinfo. Use GetACP if + USE_WIN32API. + * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, + remove 'byte_order' argument. Update. + (classify_type): Likewise. + (c_emit_char): Update. + (c_printchar): Update. + (c_printstr): Update. + (c_get_string): Update. + (evaluate_subexp_c): Update. + * arch-utils.h (default_auto_charset, default_auto_wide_charset): + Declare. + * python/python.c (gdbpy_target_charset): New function. + (gdbpy_target_wide_charset): Likewise. + (GdbMethods): Update. + * NEWS: Update. + +2010-03-05 Ulrich Weigand + + * symfile.c (build_section_addr_info_from_objfile): Do not mask + off high address bits. + +2010-03-05 Ulrich Weigand + + * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract + address as UnsignedLongLong, not LongLong. + +2010-03-05 Kevin Buettner + Pedro Alves + + * remote-mips.c (gdbthread.h): Include. + (remote_mips_ptid): Declare. + (mips_error): Only mourn the inferior when inferior_ptid is non-null. + (common_open): Set inferior_ptid, add it as an inferior, and + as a thread too. Delete FIXME comment regarding start_remote(). + (mips_close): Invoke generic_mourn_inferior(). + (mips_kill): Make sure that target_mourn_inferior is invoked. + (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as + it's now invoked from mips_close(). + (mips_load): Don't null out inferior_ptid. Don't call + clear_symtab_users(). + (mips_thread_alive, mips_pid_to_str): New functions. + (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize + to_thread_alive and to_pid_to_str operations. + +2010-03-04 Tom Tromey + + * dwarf2read.c (skip_one_die) : Use offset size + in DWARF 3 and later. + (read_attribute_value) : Likewise. + +2010-03-04 Keith Seitz + + * linespec.c (decode_line_1): Update comments for is_quote_enclosed. + If the filename portion of the linespec was quoted, recheck the + remainder for additional quoting. + (locate_first_half): Skip over completer chars, too. + +2010-03-04 Tom Tromey + + * printcmd.c (printf_command): Pass dummy argument to + printf_filtered. + +2010-03-04 Doug Evans + + * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, + unwound_fp. + + * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. + +2010-03-04 Pedro Alves + + * breakpoint.c (update_watchpoint): Create a sentinel location if + the software watchpoint isn't watching any memory. + (breakpoint_address_bits): Skip dummy software watchpoint locations. + +2010-03-04 Pedro Alves + + * utils.c (fputs_maybe_filtered): Check if there's already a top + level interpreter before dereferencing it. If there isn't one, + don't paginate either. + +2010-03-04 Matthew Gretton-Dann + + * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get + the state right when single stepping. + (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. + Get the next PC along with the instruction state. + (thumb_get_next_pc): Remove. + (arm_get_next_pc): Modified to use arm_get_next_pc_raw. + +2010-03-04 Hui Zhu + + * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". + +2010-03-03 Pedro Alves + + * utils.c (fputs_maybe_filtered): Always disable pagination if the + top level interpreter is MI. + +2010-03-03 Stan Shebs + + * remote.c (remote_download_tracepoint): Iterate over locations. + * tracepoint.c (validate_actionline): Ditto. + (encode_actions): Add location argument. + (trace_dump_command): Check all locations to see if stepping + frame. + +2010-03-03 H.J. Lu + Eli Zaretskii + + * NEWS: Add X86 general purpose registers section. + +2010-03-03 Tom Tromey + + PR mi/11098: + * varobj.c (install_new_value): Handle case where new print_value + is NULL. + +2010-03-03 Dainis Jonitis + + PR gdb/11345: + * printcmd.c (printf_command): Print end of format string using + printf_filtered. + +2010-03-02 Tom Tromey + + * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. + * defs.h (read_command_lines_1): Add missing 'void'. + * cli/cli-script.c (recurse_read_control_structure): Add missing + 'void'. + (read_next_line): Likewise. + (read_command_lines_1): Likewise. + +2010-03-02 Ulrich Weigand + + * spu-tdep.c (spu_analyze_prologue): Track instruction to + store backchain as part of prologue. + +2010-03-02 Daniel Jacobowitz + + * progspace.c (update_address_spaces): Update inferior address spaces + also. + +2010-03-02 Doug Evans + + * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to + lowpc,highpc args to addrmap_set_empty. + +2010-03-02 H.J. Lu + + * amd64-tdep.c (amd64_byte_names): New. + (amd64_word_names): Likewise. + (amd64_dword_names): Likewise. + (amd64_pseudo_register_name): Likewise. + (amd64_pseudo_register_read): Likewise. + (amd64_pseudo_register_write): Likewise. + (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs + and num_mmx_regs. Call set_gdbarch_pseudo_register_read, + set_gdbarch_pseudo_register_write and + set_tdesc_pseudo_register_name. Don't call + set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. + + * i386-tdep.c (i386_num_mmx_regs): Removed. + (i386_num_pseudo_regs): Likewise. + (i386_byte_names): New. + (i386_word_names): Likewise. + (i386_byte_regnum_p): Likewise. + (i386_word_regnum_p): Likewise. + (i386_mmx_regnum_p): Updated. + (i386_pseudo_register_name): Make it global. Handle byte and + word pseudo-registers. + (i386_pseudo_register_read): Likewise. + (i386_pseudo_register_write): Likewise. + (i386_pseudo_register_type): Handle byte, word and dword + pseudo-registers + (i386_register_reggroup_p): Don't include pseudo + registers, except for MXX, in any register groups. Don't + include pseudo byte, word, dword registers in general_reggroup. + (i386_gdbarch_init): Set num_byte_regs, num_word_regs, + num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX + pseudo-registers after word pseudo-registers. Call + set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. + + * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, + al_regnum, num_word_regs, ax_regnum, num_dword_regs and + eax_regnum. + (i386_byte_regnum_p): New. + (i386_word_regnum_p): Likewise. + (i386_dword_regnum_p): Likewise. + (i386_pseudo_register_name): Likewise. + (i386_pseudo_register_read): Likewise. + (i386_pseudo_register_write): Likewise. + +2010-03-01 H.J. Lu + + * target-descriptions.c (tdesc_type): Remove + TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. + (tdesc_predefined_types): Likewise. + (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag + if flag name is empty. + (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. + + * features/i386/32bit-core.xml: Define i386_eflags. + * features/i386/64bit-core.xml: Likewise. + + * features/i386/32bit-sse.xml: Define i386_mxcsr. + * features/i386/64bit-sse.xml: Likewise. + + * features/i386/amd64-linux.c: Regenerated. + * features/i386/amd64.c: Likewise. + * features/i386/i386-linux.c: Likewise. + * features/i386/i386.c: Likewise. + +2010-03-01 Daniel Jacobowitz + + * gdbtypes.c (append_composite_type_field_raw): New. + (append_composite_type_field_aligned): Use the new function. + * gdbtypes.h (append_composite_type_field_raw): Declare. + * target-descriptions.c (struct tdesc_type_field): Add start and end. + (struct tdesc_type_flag): New type. + (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to + kind. Add size to u.u. Add u.f for flags. + (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. + (tdesc_free_type): Likewise. + (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. + (tdesc_add_field): Handle TDESC_TYPE_STRUCT. + (tdesc_add_bitfield, tdesc_add_flag): New. + * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) + (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. + * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to + current_type. Add current_type_size and current_type_is_flags. + (tdesc_start_union): Clear the new fields. + (tdesc_start_struct, tdesc_start_flags): New. + (tdesc_start_field): Handle struct fields, including bitfields. + (field_attributes): Make type optional. Add start and end. + (union_children): Rename to struct_union_children. + (union_attributes): Rename to struct_union_attributes. Add optional + size. + (flags_attributes): New. + (feature_children): Add struct and flags. + * features/gdb-target.dtd: Add flags and struct to features. + Make field type optional. Add field start and end. + +2010-03-01 H.J. Lu + + * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. + (amd64_linux_read_description): Likewise. + (_initialize_amd64_linux_nat): Set to_read_description to + amd64_linux_read_description. + + * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". + (amd64_linux_register_name): Removed. + (amd64_linux_register_type): Likewise. + (amd64_linux_core_read_description): New. + (amd64_linux_init_abi): Set target description to + tdesc_amd64_linux if needed. Support orig_rax in target + description. Don't call set_gdbarch_register_name nor + set_gdbarch_register_type. Call + set_gdbarch_core_read_description. + (_initialize_amd64_linux_tdep): Call + initialize_tdesc_amd64_linux. + + * amd64-linux-tdep.h (tdesc_amd64_linux): New. + + * amd64-tdep.c: Include "features/i386/amd64.c". + (amd64_register_names): Removed. + (amd64_register_name): Likewise. + (amd64_register_type): Likewise. + (amd64_init_abi): Set num_core_regs and register_names. Set + target description to tdesc_amd64 if needed. Don't call + set_gdbarch_register_name nor set_gdbarch_register_type. + (_initialize_amd64_tdep): New. + + * i386-linux-nat.c (i386_linux_read_description): New. + (_initialize_i386_linux_nat): Set to_read_description to + i386_linux_read_description. + + * i386-linux-tdep.c: Include "features/i386/i386-linux.c". + (i386_linux_register_name): Removed. + (i386_linux_core_read_description): New. + (i386_linux_read_description): Likewise. + (i386_linux_init_abi): Don't call set_gdbarch_register_name. + Set target description to tdesc_i386_linux if needed. Support + orig_eax. Set register_reggroup_p. Call + set_gdbarch_core_read_description. + (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. + + * i386-linux-tdep.h (tdesc_i386_linux): New. + + * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS + with I387_NUM_REGS. + + * i386-tdep.c: Include "features/i386/i386.c". + (i386_register_names): Make it const. + (i386_mmx_names): Likewise. + (i386_num_register_names): Removed. + (i386_register_name): Likewise. + (i386_eflags_type): Likewise. + (i386_mxcsr_type): Likewise. + (i386_sse_type): Likewise. + (i386_register_type): Likewise. + (i387_ext_type): Call tdesc_find_type instead of arch_float_type. + (i386_pseudo_register_name): New. + (i386_pseudo_register_type): Likewise. + (i386_mmx_type): Make it static. + (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with + I387_NUM_REGS. Set num_core_regs and register_names. Don't + call set_gdbarch_register_name nor set_gdbarch_register_type. + Set register_reggroup_p. Set target description to tdesc_i386 + if needed. Call set_tdesc_pseudo_register_type, + set_tdesc_pseudo_register_name and tdesc_use_registers. + (_initialize_i386_tdep): Call initialize_tdesc_i386. + initialize_tdesc_x86_64. + + * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, + i386_mxcsr_type and i386_sse_type. Add num_core_regs, + register_names, tdesc and register_reggroup_p. + (I386_NUM_FREGS): Removed. + (i386_eflags_type): Likewise. + (i386_mxcsr_type): Likewise. + (i386_mmx_type): Likewise. + (i386_sse_type): Likewise. + (i386_register_name): Likewise. + (i386_regnum): Add I386_MXCSR_REGNUM. + (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. + + * i387-tdep.h (I387_NUM_REGS): New. + + * regformats/i386/i386-linux.dat: Generated. + * regformats/i386/i386.dat: Likewise. + * regformats/i386/amd64-linux.dat: Likewise. + * regformats/i386/amd64.dat: Likewise. + + * regformats/reg-i386-linux.dat: Removed. + * regformats/reg-i386.dat: Likewise. + * regformats/reg-x86-64-linux.dat: Likewise. + * regformats/reg-x86-64.dat: Likewise. + +2010-03-01 Corinna Vinschen + + * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 + cygwin_conv_path API rather than the deprecated + cygwin_conv_to_full_posix_path. + * windows-nat.c: + (GetModuleFileNameExA): Undefine for Cygwin. + (GetModuleFileNameExW): Define for Cygwin. + (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. + Call GetModuleFileNameExW and convert path to POSIX using + cygwin_conv_path. + (windows_make_so): Always define p. Drop unused variable m. + Don't use Win32 functions to check file existance, rather use + access on Cygwin. Fetch system directory using GetSystemDirectoryW. + Use canonicalize_file_name to get full path. + (get_image_name): Use wcstombs, rather than WideCharToMultiByte + to convert Unicode pathname to multibyte on Cygwin. Otherwise, + use correct target buffer size in call to WideCharToMultiByte. + (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. + (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. + (windows_create_inferior): Convert all paths and arguments to wchar_t + and use CreateProcessW on Cygwin. + (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. + (bad_GetModuleFileNameExA): Undefine for Cygwin. + (bad_GetModuleFileNameExW): Define for Cygwin. + (_initialize_loadable): Load GetModuleFileNameExW into + dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. + +2010-02-28 Phil Muldoon + + PR python/11036 + * python/py-frame.c (frapy_read_var): Add block argument and logic + to cope with user provided blocks. + +2010-02-28 Jan Kratochvil + + * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. + New comment. + +2010-02-28 Corinna Vinschen + + * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... + (COMMON_OBS): ... to here since it's used unconditionally. + (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... + (SFILES): To here. + 2010-02-26 David Daney * mips-linux-tdep.c: Update struct sigframe comments.