X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=8d830b3e5f25a8536f7690330579dcc976b67d93;hb=51f4db8353c6f706435093679977623e5882958c;hp=1fcfcb24acb80ff7020e51c951d5c7c62ca24fdd;hpb=685af672caee3f095a0bad488abbc168808ffc05;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1fcfcb24ac..8d830b3e5f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,7 +1,606 @@ +2009-05-06 Hui Zhu + + * i386-tdep.c (i386_process_record): Change bzero to memset. + +2009-05-06 Hui Zhu + + * NEWS: Add item for process record and replay. + +2009-05-05 Maxim Grigoriev + + * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc. + +2009-05-05 Ulrich Weigand + + * inferior.h (read_pc, write_pc): Remove. + * regcache.c (read_pc, write_pc): Remove. + + * infrun.c (displaced_step_fixup): Use regcache_read_pc instead + of read_pc. + (handle_inferior_event): Use regcache_read_pc instead of read_pc + when determining value of stop_pc. Replace subsequent uses of + read_pc by inspecting already-retrieved stop_pc value. + (keep_going): Use regcache_read_pc instead of read_pc. + + * breakpoint.c (watchpoint_check): Use current frame architecture + and PC instead of current_gdbarch and read_pc (). + * tracepoint.c (set_traceframe_context): Replace PC argument + with FRAME argument. + (trace_start_command, finish_tfind_command): Update calls. + (finish_tfind_command): Compare frame IDs to identify transitions + between frames. + (trace_find_pc_command): Use regcache_read_pc instead of read_pc. + * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead + of gdbarch. Use regcache_read_pc and regcache_write_pc instead + of read_pc and write_pc. + (store_register): Make regcache argument non-const. Update call + to exec_one_dummy_insn. + + * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc. + * infcmd.c (post_create_inferior): Likewise. + * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise. + * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. + * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise. + * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise. + * linux-fork.c (fork_load_infrun_state): Likewise. + * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise. + * record.c (record_wait): Likewise. + * procfs.c (procfs_wait): Likewise. + * remote-mips.c (common_open, mips_wait): Likewise. + * remote-m32r-sdi.c (m32r_resume): Likewise. + + * symfile.c (generic_load): Use regcache_write_pc instead of write_pc. + * monitor.c (monitor_create_inferior, monitor_load): Likewise. + * m32r-rom.c (m32r_load, m32r_upload_command): Likewise. + * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise. + * remote-mips.c (mips_create_inferior, mips_load): Likewise. + + * solib-darwin.c: Include "regcache.h". + * solib-pa64.c: Include "regcache.h". + * solib-svr4.c: Include "regcache.h.". + + * symfile.c: Do not mention read_pc or write_pc in comments. + * dink32-rom.c: Likewise. + * m32r-rom.c: Likewise. + * mips-tdep.c: Likewise. + +2009-05-05 Ulrich Weigand + + * fork-child.c (startup_inferior): Move setting stop_pc ... + * infcmd.c (post_create_inferior): ... to here. + +2009-05-04 Michael Snyder + + * NEWS: Add item for reverse debugging commands. + +2009-05-04 Pedro Alves + + * go32-nat.c (go32_stop): Delete. + (go32_kill_inferior): Rewrite to only call go32_mourn_inferior. + (go32_create_inferior): Don't call go32_stop or + go32_kill_inferior. + (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior + here. + (init_go32_ops): Don't register go32_stop. + +2009-05-02 Eli Zaretskii + + * dbxread.c (read_dbx_symtab): Avoid compiler warnings for + sym_name. + + * infcall.c (find_function_addr): Avoid compiler warnings for + funaddr. + +2009-05-01 Jan Kratochvil + + * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector) + (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo. + +2009-05-01 Doug Evans + + * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment + to thread_info. + +2009-05-01 Eli Zaretskii + + * record.c (_initialize_record): Reformat and clarify doc strings + for stop-at-limit and insn-number-max. + + * go32-nat.c: Add comments about dirty secrets of DJGPP debugging. + +2009-05-01 Jan Kratochvil + + Make specifiable the make_function_type type memory ownership. + * gdbtypes.c (make_function_type): New parameter `objfile', use it + explicitely instead of TYPE-initialized removed local variable + `objfile'. Describe `objfile' it in the function comment. + (lookup_function_type): Update make_function_type callers. + * gdbtypes.h (make_function_type): Update the prototype. + * jv-lang.c (java_link_class_type): Update make_function_type callers. + * dwarf2read.c (read_subroutine_type): Likewise. + * stabsread.c (read_type): Likewise. + +2009-05-01 Eli Zaretskii + + * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of + printing a bogus "Thread
". + (go32_thread_alive): Don't return 1 for null_ptid. + + * i386-tdep.c (i386_go32_init_abi): Override the number of + registers due to non-support of SSE. + +2009-04-30 Anthony Green + + * configure.tgt: Link the moxie simulator in with gdb. + +2009-04-30 Paul Pluzhnikov + + * elfread.c (elf_symtab_read): Don't assume .data and .rodata + are present. + +2009-04-30 Hui Zhu + Michael Snyder + + I386 Linux process record and replay support. + + * i386-linux-tdep.c (i386_linux_record_tdep): New variable. + This struct has the argument for the function + "record_linux_system_call". + (i386_linux_intx80_sysenter_record): New function. Parse the + system call instruction and call function + "record_linux_system_call" to record execute log. + (i386_linux_init_abi): Initialize "i386_linux_record_tdep". + Set "i386_linux_intx80_sysenter_record" to + "i386_intx80_record" and "i386_sysenter_record". + +2009-04-30 Hui Zhu + Michael Snyder + + I386 architecture process record and replay support. + + * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK, + PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386 + instruction set. + (aflag, dflag, override, modrm, mod, reg, rm, ot, + i386_record_pc): New variables. Ditto. + (i386_record_modrm, i386_record_lea_modrm_addr, + i386_record_lea_modrm): New functions. Ditto. + (i386_process_record): New function. Parse the instruction in + address "addr" and record the values of registers and memory + that will be changed by this instruction. + (i386_gdbarch_init): Set "i386_process_record" to GDBARCH + "process_record" interface. + * i386-tdep.h (gdbarch_tdep): New function pointers + "i386_intx80_record" and "i386_sysenter_record" that point to + the function that can record "intx80" and "sysenter" execute + log. + +2009-04-30 Hui Zhu + Michael Snyder + + * infrun.c (use_displaced_stepping): Return false if process + record and replay target is used. + (proceed): Call function "record_not_record_set" if pocess + record and replay target is used. + +2009-04-30 Hui Zhu + Michael Snyder + + Linux process record and replay support. + + * Makefile.in (ALLDEPFILES): Add linux-record.c. + (ALL_TARGET_OBS): Add linux-record.o. + * configure.tgt (x86_64-*-linux*): Add linux-record.o. + (i[34567]86-*-linux*): Add linux-record.o. + * linux-record.c, linux-record.h: New file. + +2009-04-30 Hui Zhu + Michael Snyder + + Process record and replay target. + + * Makefile.in (SFILES): Add record.c. + (COMMON_OBS): Add record.o. + * record.c, record.h: New file. + +2009-04-30 Hui Zhu + Michael Snyder + + * target.h (strata): New stratum "record_stratum". + +2009-04-30 Hui Zhu + Michael Snyder + + GDBARCH interface for process record and replay. + + * gdbarch.sh (process_record): This interface point to the + function that records the inferior execute log. + +2009-04-29 Doug Evans + + * i386-nat.c (child_post_startup_inferior): Delete, unused. + +2009-04-29 Pedro Alves + + * breakpoint.c (print_exception_catchpoint): Access `b' directly + instead of `b->loc->owner'. + (print_mention_exception_catchpoint): Ditto. + +2009-04-29 Jan Kratochvil + + * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero. + +2009-04-27 Tom Tromey + + * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'. + +2009-04-27 Jerome Guitton + + * symtab.c (append_exact_match_to_sals): New function, extracted + from expand_line_sal. + (expand_line_sal): Use append_exact_match_to_sals to append exact + matches. If none found, append all best items. + +2009-04-27 Jerome Guitton + + * main.c (captured_main): Move gdbinit lookups after gdb_init. + +2009-04-27 Jan Kratochvil + + PR gdb/9675: + * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New. + (read_func_scope): Call inherit_abstract_dies. + +2009-04-25 Eli Zaretskii + + * Makefile.in (ALLDEPFILES): Remove duplicate entries for + sparc-sol2-nat.c and sparc-sol2-tdep.c. + + * stack.c (_initialize_stack) : Doc fix. + +2009-04-24 Pierre Muller + + ARI change: Use "/* ARI: rule */" pattern. + * utils.c: Update ARI patterns. + * gdb_dirent.h: Likewise. + +2009-04-23 Anthony Green + + * MAINTAINERS: Add moxie target. + * configure.tgt: Add moxie-*-elf target. + * moxie-tdep.c: New file. + * moxie-tdep.h: New file. + +2009-04-23 Joel Brobecker + + * ada-lang.c: Remove an extra empty line. No code change. + +2009-04-23 Jan Kratochvil + + Fix double free on error inserting the breakpoint instruction. + * breakpoint.c (create_breakpoints): Move the + update_global_location_list call to ... + (break_command_really): ... here together with the second local call + both unified after all the cleanups. + +2009-04-23 Sergio Durigan Junior + Tom Tromey + + * configure, config.in: Regenerate. + * configure.ac: Support for relocatable GDB datadir. Use + GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE. + * acinclude.m4 (GDB_AC_WITH_DIR): New defun. + * top.c (init_main): Add "set data-directory". + * defs.h (gdb_datadir): Declare. + * main.c (gdb_datadir): New global. + (captured_main): Initialize gdb_datadir. Use relocate_directory. + (relocate_path): New function. + (relocate_directory): Likewise. + (get_init_files): Use relocate_path. + (README): Mention --with-gdb-datadir. + +2009-04-23 Joel Brobecker + + * ada-tasks (task_command_1): Call target_find_new_threads. + +2009-04-23 Joel Brobecker + + * stack.c (do_gdb_disassembly): Print the exception message if an + error was thrown while trying to perform the disassembly. + +2009-04-22 Jan Kratochvil + + * varobj.c (free_variable): Replace free_current_contents by xfree. + +2009-04-22 Kazu Hirata + + * arm-linux-nat.c (fetch_register, store_register): Use + ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM. + * arm-linux-tdep.c (arm_linux_supply_gregset, + arm_linux_collect_gregset): Likewise. + * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New. + * arm-tdep.h (ARM_CPSR_REGNUM): Remove. + +2009-04-22 Hui Zhu + + * stack.c (_initialize_stack): Set the default of + disassemble-next-line to off. + +2009-04-21 Tom Tromey + + * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING. + * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING. + +2009-04-21 Andreas Schwab + + * configure.ac: Add quotes to not lose brackets in help text. + * configure: Rebuild. + +2009-04-21 Andreas Schwab + + * configure.ac: Don't postprocess Makefile in config.status. + Substitute GDB_NM_FILE. Don't substitute nm_h. + * Makefile.in (GDB_NM_FILE): Substitute. + (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE). + * configure: Regenerate. + * gnulib/Makefile.in: Regenerate. + +2009-04-21 Joseph Myers + + * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir, + --with-htmldir): New. + * configure: Regenerate. + +2009-04-21 Tom Tromey + + * configure: Rebuild. + * configure.ac: Use lower case for start of help strings. Clean + up --with-sysroot help. + +2009-04-21 Tom Tromey + + * configure: Rebuild. + * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING. + * configure.ac: Use AC_HELP_STRING. Use upper case for variables + in help. + +2009-04-21 Pierre Muller + + ARI fix: remove "%p". + * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function. + (ia64_sigtramp_frame_this_id): Ditto. + (ia64_libunwind_frame_this_id): Ditto. + (ia64_libunwind_sigtramp_frame_this_id): Ditto. + * symmisc.c (maintenance_info_psymtabs): Ditto. + +2009-04-21 Joseph Myers + + * configure.ac (--with-relocated-sources): New. + * configure, config.in: Regenerate. + * source.c (add_substitute_path_rule): Remove static. + * source.h (add_substitute_path_rule): Declare. + * main.c: Include "source.h". + (captured_main): Add substitution rule if RELOC_SRCDIR. + +2009-04-21 Pierre Muller + + * gnu-nat.h (proc_debug): Add missing continuation line in macro. + +2009-04-20 David Daney + + * NEWS: Mention MIPS/Linux hardware watchpoint support. + +2009-04-20 David Daney + + * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes. + (maint_show_dr, super_close): New variables. + (super_fetch_registers, super_store_registers): Make static. + (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT) + (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define. + (pt_watch_style): Define new enum. + (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint): + Define new structs. + (watch_readback_valid, watch_readback, current_watches, watch_mirror): + New variables. + (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo) + (set_watchlo, get_watchhi, set_watchhi, mips_show_dr) + (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint) + (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address) + (type_to_irw, fill_mask, try_one_watch) + (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs) + (mips_linux_new_thread, populate_regs_from_watches) + (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) + (mips_linux_close): New functions. + (_initialize_mips_linux_nat): Register watchpoint functions with + the target_ops. Add show-debug-regs maintenance command. + +2009-04-20 David Daney + + * infrun.c (handle_inferior_event): Move gegisters_changed call down. + +2009-04-19 Pedro Alves + + * NEWS: Mention gdbserver support for x86 Windows CE. + +2009-04-19 Eli Zaretskii + + * config/djgpp/fnchange.lst: Fix typos. + + Set default host and target charsets in the DJGPP port. + + * config/djgpp/config.sed (am_cv_langinfo_codeset) + (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes" + in all configure scripts that define ac_cv_env_CPP_value. + + * go32-nat.c (dos_codepage, nl_langinfo): New functions. + Include langinfo.h. + + * config/djgpp/nl_types.h: New file. + + * config/djgpp/langinfo.h: New file. + + * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp. + +2009-04-18 Carlos O'Donell + + * Makefile.in (MAKEHTML): Set to makeinfo --html. + (MAKEHTMLFLAGS): Set to empty. + +2009-04-18 Eli Zaretskii + + * NEWS: Mention all new set/show commands added since GDB 6.8 was + released. + + * go32-nat.c (go32_sysinfo): Check if the call to + __dpmi_get_capabilities fills the buffer with information, and + don't use the buffer if not. + +2009-04-17 Tom Tromey + + * charset.c (_initialize_charset): Add special case for "646". + +2009-04-17 Carlos O'Donell + + * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir. + * configure: Regenerate. + * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from + configure substitutions. + (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir. + +2009-04-17 Pierre Muller + + ARI fix: Do not use %p, replace by call to host_address_to_string + for host pointers. + * darwin-nat.c (darwin_xfer_partial): Apply change. + * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto. + * gnu-nat.h (proc_debug): Ditto. + * symmisc.c (maintenance_info_symtabs): Ditto. + (maintenance_info_psymtabs): Ditto. + * windows-nat.c (handle_load_dll): Ditto. + (handle_unload_dll, info_w32_command, handle_exception): Ditto. + * xtensa-tdep.c (xtensa_unwind_pc): Ditto. + +2009-04-17 Joseph Myers + + * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if + --enable-64-bit-bfd. + (sparc-*-linux*): Likewise. + +2009-04-17 Eli Zaretskii + + * go32-nat.c (go32_sysinfo): Update list of Windows versions of + the NT family. + +2009-04-16 Pedro Alves + + * remote.c (remote_query_attached): Fix pasto in packet_ok result + checking. + +2009-04-16 Joel Brobecker + + * procfs.c (solib_mappings_callback, find_memory_regions_callback): + Revert the previous change. Might not be correct, actually. + +2009-04-16 Joel Brobecker + + * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop) + (ada_get_current_task, ada_print_exception_breakpoint_nontask) + (ada_print_exception_breakpoint_task, ada_reset_thread_registers): + Remove declaration. These are non-existent functions. + +2009-04-16 Joel Brobecker + + * procfs.c (solib_mappings_callback, find_memory_regions_callback): + Fix a compilation warning on mips-irix due to casting from + a pointer of different size. + +2009-04-16 Joel Brobecker + + * ada-lang.c (symtab_for_sym): Delete. + (user_select_syms): Use sym->symtab instead of calling symtab_for_sym. + +2009-04-16 Joel Brobecker + + * ada-lang.c (extract_string): Delete. + (ada_main_name): Reimplement using target_read_string instead of + extract_string. + +2009-04-16 Andreas Schwab + + * m68klinux-nat.c: Remove obsolete comment. + (fetch_register, store_register): Don't call + gdbarch_cannot_fetch_register or gdbarch_cannot_store_register, + which are always nops here. + +2009-04-14 Tom Tromey + + * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING. + (c_printstr): Likewise. + * charset.c: Include gdb_wait.h. + (make_wchar_iterator): Use INTERMEDIATE_ENCODING. + (find_charset_names): Use pexecute. Handle libiconv's output. + Detect errors. + (_initialize_charset): Use xstrdup. + * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar + cases. + (INTERMEDIATE_ENCODING): New define. + * configure, config.in: Rebuild. + * configure.ac: Check for btowc. + +2009-04-15 Tom Tromey + + * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP. + +2009-04-15 Eli Zaretskii + + * utils.c (parse_escape): Initialize target_char to pacify GCC. + +2009-04-14 Jan Kratochvil + + * c-lang.c (c_get_string): Fix xfree crash on a failed string read. + +2009-04-14 Pierre Muller + + ARI fix: sprintf rule. + * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf. + * ada-lang.c (add_angle_brackets): Use xstrprintf. + (ada_decode): Replace sprintf by xsnprintf. + (find_old_style_renaming_symbol): Ditto. + (ada_to_fixed_type_1, ada_enum_name): Ditto. + + +2009-04-14 Joel Brobecker + + * target.c (target_mourn_inferior): Call bfd_cache_close_all + after having executed the target mourn_inferior routine. + +2009-04-14 Eli Zaretskii + + * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if + undefined. + +2009-04-13 David Daney + + * infrun.c (maybe_software_singlestep): New function. + (resume): Call maybe_software_singlestep. + (handle_inferior_event): Same. + +2009-04-13 Tom Tromey + + * python/python-frame.c (frapy_richcompare): Return + Py_NotImplemented, not an error. Handle Py_NE as well. + +2009-04-13 Eli Zaretskii + + * charset.c (EILSEQ): Define if not defined by system headers. + 2009-04-11 Eli Zaretskii - * go32-nat.c (go32_attach, go32_detach:) Fix prototypes to be - consistent with the change from 2009-03-17. + * config/djgpp/config.sed: Tweak ac_config_files in intl/configure + to be consistent with renaming config.intl.in into config_intl.in. + + * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be + consistent with the change from 2008-11-09. 2009-04-10 Jan Kratochvil @@ -61,7 +660,7 @@ 2009-04-01 Aleksandar Ristovski * mips-tdep.c (mips_numeric_register_alieses): New definition. - (mips_gdbarch_init): Add user registers from + (mips_gdbarch_init): Add user registers from mips_numeric_register_aliases. 2009-04-01 Joel Brobecker