X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=d0ad9b98750ac0cbbe47d6149cc3479b747317fc;hb=73bc900df9bcfe3ce24453219d2303fafb1395de;hp=201c57c5abac0b93cc4dd0fc75d20c4ba1aad824;hpb=40e3f985d2a8082507010fca0a01714f092c47a0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 201c57c5ab..d0ad9b9875 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,488 @@ +2000-11-06 Fernando Nasser + + From Steven Johnson : + + This set of changes add "hookpost-" as an expansion on the original + hooking of commands to GDB. A Hook may now be run "AFTER" execution of + a command as well as before. + + * command.h (struct cmd_list_element): Changed elements hook and hookee + to hook_pre and hookee_pre respectively. Added hook_post and hookee_post + for the post hook command operation. Added hook_in so that an executing + hook can be flagged to prevent recursion. + * command.c (add_cmd): Changed initilization of cmd_list_element to + reflect above changes. + (delete_cmd): Remove both pre and post hooks. + (help_cmd): Notify that the command has pre and/or post hooks. + * infrun.c (normal_stop): Change references to hook_pre from hook. + * top.c (execute_command): Run both pre and post hooks. + (define_command): Allow definition of both pre and post hooks. + The definition of pre-hooks is done as before, with the "hook-" + prefix for backward compatibility. + +2000-11-06 Peter Schauer + + * stack.c (return_command): Pop dummy frame if we just returned from + a stop in a call dummy. + +2000-11-05 Kevin Buettner + + * v850-tdep.c (handle_prepare, handle_pushm): Remove extraneous + blank line after function declarator. + * v850ice.c (v850ice_xfer_memory, do_gdb): Protoize. + +2000-11-03 Kevin Buettner + + * utils.c (add_continuation, add_intermediate_continuation, + printchar): Protoize. + +2000-11-03 Kevin Buettner + + * dwarf2read.c (new_symbol): Relocate address of symbol by the + base address of the section it is in rather than always using + the base address of the .text section. + +2000-11-01 J.T. Conklin + + * TODO: Note abstraction layer violation where "ocd reset" command + must invalidate the dcache, and how this might be fixed. + + * monitor.c (#include "dcache.h"): Removed. + (remote_dcache): Removed. + (monitor_open): Removed code that created local dcache. + (flush_monitor_dcache): Removed (unused function). + (monitor_resume): Removed call to dcache_invd(). + (monitor_load): Likewise. + (monitor_xfer_memory): Changed to call monitor_write_memory(), + monitor_write_memory_block(), and monitor_read_memory() instead + of dcache_xfer_memory(). + * monitor.h (flush_monitor_dcache): Removed (unused function). + * ocd.c (#include "dcache.h"): Removed. + (ocd_dcache): Removed. + (ocd_open): Removed code that created local dcache. + (ocd_resume): Removed call to dcache_invd(). + (ocd_xfer_memory): Changed to call ocd_write_bytes() and + ocd_read_bytes() instead of dcache_xfer_memory(). + (bdm_reset_command): Invalidate target dcache. + * remote-bug.c (bug_load): Remove call to dcache_invd(). + (bug_resume): Likewise. + (bug_settings): Remove dcache, readfunc, and writefunc fields + from initializer. + (bug_xfer_memory): Changed to call bug_read_memory() and + bug_write_memory() instead of dcache_xfer_memory(). + * remote-nindy.c (#include "dcache.h"): Removed. + (nindy_dcache): Removed. + (nindy_open): Removed code that created local dcache. + (nindy_resume): Removed call to dcache_invd(). + (nindy_load): Likewise. + (nindy_xfer_inferior_memory): Changed to call ninMemPut() and + ninMemGet() instead of dcache_xfer_memory(). + * remote-sds.c (#include "dcache.h"): Removed. + (sds_dcache): Removed. + (sds_open): Removed code that created local dcache. + (sds_resume): Removed call to dcache_invd(). + (sds_xfer_memory): Changed to call sds_write_bytes() and + sds_read_bytes() instead of dcache_xfer_memory(). + * remote-utils.c (gr_open): Removed code that created local dcache. + * remote-utils.h (#include "dcache.h"): Removed. + (struct gr_settings): Removed dcache, readfunc, and writefunc fields. + (gr_get_dcache, gr_set_dcache): Removed macro definitions. + * remote.c (#include "dcache.h"): Removed. + (remote_dcache): Removed. + (remote_open_1): Removed code that created local dcache. + (remote_async_open_1): Likewise. + (remote_resume): Removed call to dcache_invd(). + (remote_async_resume): Likewise. + (remote_xfer_memory): Changed to call remote_write_bytes() and + remote_read_bytes() instead of dcache_xfer_memory(). + * wince.c (#include "dcache.h"): Removed. + (remote_dcache): Removed. + (child_create_inferior): Removed code that created local dcache. + (child_xfer_memory): Changed to call remote_write_bytes() and + remote_read_bytes() instead of dcache_xfer_memory(). + (child_resume): Removed call to dcache_invd(). + + * target.c (target_dcache): Added. + (target_load): Invalidate target_dcache. + (do_xfer_memory): New function. + (target_xfer_memory): Reimplement in terms of dcache_xfer_memory(). + (target_xfer_memory_partial): Likewise. + (initialize_targets): Create target_dcache. + * target.h (#include "dcache.h"): Added. + (target_open): Invalidate target_dcache. + (target_resume): Likewise. + (do_xfer_memory): New declaration. + + * dcache.c (dcache_init): Removed reading and writing arguments. + (dcache_struct): Removed read_memory and write_memory fields. + (dcache_write_line): Call do_xfer_memory. + (dcache_read_line): Likewise. + (dcache_xfer_memory): Likewise. + (dcache_invalidate): Renamed from dcache_invd. + (dcache_init): Updated. + (dcache_xfer_memory): Updated. + * dcache.h (memxferfunc): Removed definition. + (dcache_init): Removed reading and writing arguments. + +2000-11-03 Peter Schauer + + * objfiles.c (objfile_relocate): Relocate ei.entry_point with + its section offset, use SECT_OFF_TEXT only as a fallback. + +2000-11-01 Kevin Buettner + + * symm-nat.c (print_1167_regs): Remove extraneous blank line + after function declarator. + * symtab.c (search_symbols): Likewise. + * ultra3-nat.c (fetch_core_registers): Protoize. + +2000-10-30 Michael Snyder + + * config/sh/tm-linux.h: New file. Include generic tm-linux.h, + plus tm-sh.h, then define SVR4_FETCH_LINK_MAP_OFFSETS to use + the sh target function instead of the default link map offsets. + * config/sh/sh.mt: Add solib.o and solib-svr4.o to TDEPFILES. + Use sh/tm-linux.h instead of sh/tm-sh.h. + * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): + New function. Construct target-specific link map offsets. + * i386-linux-tdep.c (i386_linux_svr4_fetch_link_map_offsets: + New function. Construct target-specific link map offsets. + * config/i386/tm-linux.h: Use above function instead of default. + +2000-10-30 Michael Snyder + + * config/i386/tm-linux.h: Remove definition of SVR4_SHARED_LIBS, + and inclusion of solib.h. Move up into ../tm-linux.h. + config/tm-linux.h: Define SVR4_SHARED_LIBS, include solib.h. + +2000-10-30 Kevin Buettner + + * top.c (simplified_command_loop, add_info, add_com, + help_command): Protoize. + * ui-out.c (gdb_query): Protoize. + +2000-10-30 Kevin Buettner + + Changes based on analysis from Peter Schauer: + * solist.h (struct so_list): Remove field lmend. + (struct target_so_ops): Remove field lm_addr. Add field + relocate_section_addresses. Add comments for all fields + in this structure + (TARGET_SO_LM_ADDR): Remove. + (TARGET_SO_RELOCATE_SECTION_ADDRESSES): New macro. + * solib-svr4.c (svr4_relocate_section_addresses): New function. + (_initialize_svr4_solib): Remove lm_addr initialization. Add + initialization for relocate_section_addresses. + * solib.c (solib_map_sections): Invoke + TARGET_SO_RELOCATE_SECTION_ADDRESSES instead of using now + defunct TARGET_SO_LM_ADDR to relocate the section addresses. + Also, eliminate assignment to the lmend field since this + field no longer exists. + (symbol_add_stub): Remove machinery for determining the lowest + section. + (info_sharedlibrary_command): Print the text section starting + and ending addresses. + (solib_address): Don't use TARGET_SO_LM_ADDR, nor so->lmend to + determine if an address is in a shared object. Instead, scan + the section table and test against the starting and ending + addresses for each section. + +2000-10-30 Michael Snyder + + * config/m68k/linux.mh: Remove solib.c, solib-svr4.c from NATDEPFILES. + * config/powerpc/linux.mh: ditto. + * config/ia64/linux.mh: ditto. + * config/i386/linux.mh: ditto. + * config/alpha/alpha-linux.mh: ditto. + * config/arm/linux.mh: ditto. + * config/m68k/linux.mt: Add solib.c, solib-svr4.c to TDEPFILES. + * config/powerpc/linux.mt: ditto. + * config/ia64/linux.mt: ditto. + * config/i386/linux.mt: ditto. + * config/alpha/alpha-linux.mt: ditto. + * config/arm/linux.mt: ditto. + +2000-10-30 J.T. Conklin + + * gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c, + mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c, + somread.c, tracepoint.c: Fix spelling errors in comments. + * gdbarch.c: Regenerate. + + * gnu-nat.c (S_exception_raise_request): Fix typos and spelling + errors in strings. + * m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise. + * mcore-tdep.c (mcore_analyze_prologue): Likewise. + * mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise. + * remote-e7000.c (e7000_start_remote): Likewise. + * remote-rdp.c (handle_swi): Likewise. + * remote-vx.c (vx_load_command): Likewise. + * sh-tdep.c (sh_do_pseudo_register): Likewise. + * sol-thread.c (td_err_string): Likewise. + * symtab.c (decode_line_2): Likewise. + +Mon Oct 30 10:19:01 2000 David Taylor + + * eval.c (parse_and_eval_long): New function. + * value.h: Declare it. + + * breakpoint.c (breakpoints_info, maintenance_info_breakpoints): + Call parse_and_eval_long, not parse_and_eval_address. + * command.c (do_setshow_command): Ditto. + * infcmd.c (step_1, signal_command, continue_command): Ditto. + * infrun.c (signals_info): Ditto. + * stack.c (set_backtrace_limit_command, backtrace_command_1, + up_silently_base, down_silently_base): Ditto. + * tracepoints.c (tracepoints_info, trace_find_command, + trace_find_tracepoint_command): Ditto. + * valprint.c (set_radix): Ditto. + * values.c (show_values): Ditto. + +2000-10-28 Kevin Buettner + + * symtab.c (decode_line_2, file_matches, search_symbols): Protoize. + * thread.c (iterate_over_threads): Protoize. + +2000-10-27 J.T. Conklin + + * arch-utils.c (set_architecture, set_architecture_from_arch_mach, + set_gdbarch_from_file): Fix spelling error in string. + * v850-tdep.c (v850_target_architecture_hook): Likewise. + * gdbarch.sh: Fix spelling errors in comments. + * gdbarch.c, gdbarch.h: Regenerate. + + * ppcnbsd-nat.c (fetch_core_registers, fetch_inferior_registers, + store_inferior_registers): Support older NetBSD/powerpc systems + from before fp reg support was added. Adapt to register number + changes caused when powerpc target was multi-arched. + +2000-10-26 David B. Anderson + + * breakpoint.c breakpoint.h hppab-nat.c infrun.c + language.h mcore-tdep.c mips-tdep.c symfile.c symtab.c + symtab.h target.c tm-mips.h xm-sun4sol2.h: Corrected + spelling errors in comments. + * gdbarch.c gdbarch.sh: Removed word from comment. + +2000-10-26 Kevin Buettner + + * sun3-nat.c (fetch_core_registers): Protoize. + * symm-nat.c (print_1167_regs, child_xfer_memory): Protoize. + +2000-10-26 Elena Zannoni + + * stabsread.c (define_symbol): Update comment. + +2000-10-26 Pierre Muller + + * stabsread.c (define_symbol): Set the type_name of the type + of the new symbol to the symbol name for type symbol, if the + language is Pascal. + +2000-10-26 Peter Schauer + + * arch-utils.c, arch-utils.h (default_convert_from_func_ptr_addr): + New function. + * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Add. + * gdbarch.c, gdbarch.h: Regenerate. + * valops.c (find_function_addr): Use CONVERT_FROM_FUNC_PTR_ADDR + unconditionally. + + * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Delete + definition. + * config/powerpc/tm-linux.h (CONVERT_FROM_FUNC_PTR_ADDR): Remove + undef. + * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Fix comment. + (rs6000_gdbarch_init): Register rs6000_convert_from_func_ptr_addr + if not ELFOSABI_LINUX. + +2000-10-25 Kevin Buettner + + * config/rs6000/rs6000lynx.mt (TDEPFILES): Revert 2000-10-24 + change in which solib-svr4.o was inadvertently added to this + list. + +2000-10-25 Fred Fish + + * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either + the current arch or use zero. + +2000-10-25 Fernando Nasser + + * ser-unix.c (do_unix_readchar): Coding style improvement only. + +2000-10-25 Fernando Nasser + + * target.c (generic_mourn_inferior): Notify GUI that inferior is gone + by calling detach_hook, if defined. + +2000-10-24 Kevin Buettner + + * coffread.c (coff_end_symtab): When calling end_symtab(), + use SECT_OFF_TEXT() instead of 0 to represent the .text + section. + * hp-symtab-read.c (hpread_expand_symtab): Likewise. + * hpread.c (hpread_expand_symtab, hpread_process_one_debug_symbol): + Likewise. + +2000-10-24 Kevin Buettner + + * solib-svr4.c: New file created out of much of solib.c... + * solib.c (_SYSCALL32, BKPT_AT_SYMBOL): Move these defines to + solib-svr4.c. + (sys/types.h, signal.h, sys/param.h, fcntl.h, a.out.h, + elf/external.h, link.h): Move these includes to solib-svr4.c. + (bkpt_names, debug_base_symbols, main_name_list, + solib_extract_address, SOLIB_EXTRACT_ADDRESS, dynamic_copy, + ld_2_copy, debug_addr, flag_addr, LM_ADDR, LM_NEXT, LM_NAME, + IGNORE_FIRST_LINK_MAP_ENTRY, breakpoint_addr, + allocate_rt_common_objfile, solib_add_common_symbols, + bfd_lookup_symbol, look_for_base, elf_locate_base, locate_base, + first_link_map_member, open_symbol_file_object, match_main, + current_sos, interp_text_sect_low, interp_text_sect_high, + interp_plt_sect_low, interp_plt_sect_high, + in_svr4_dynsym_resolve_code, disable_break, enable_break, + special_symbol_handling): Moved to solib-svr4.c. + (debug32_copy, shadow_contents, fdmatch) + Removed entirely. + (struct so_list): Moved to solist.h + (MAX_PATH_SIZE): Moved to solist.h and renamed to + SO_NAME_MAX_PATH_SIZE. + + * solist.h: New file created from struct so_list in solib.c. + (struct lm_info): Add forward declaration. + (struct so_list): Remove fields lm, lm32, lmaddr. Replace with a + single field, lm_info, which will be a pointer to target specific + data. + (struct target_so_ops): New struct. + (free_so): Add extern declaration. + (current_target_so_ops): Declare new global variable. + (solib_map_sections): + (TARGET_SO_LM_ADDR, TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB, + TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK, + TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS, + TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): New macros. + * solib.c (solib_map_sections, free_so, symbol_add_stub, + update_solib_list, solib_add, info_shared_library_command, + solib_address, clear_solib, solib_create_inferior_hook): Use + new TARGET_SO_* macros to call function on target specific + side indirectly. + (current_target_so_ops): Define new global variable. + (_initialize_solib): Eliminate HAVE_LINK_H ifdef. + * solib-svr4.h: New file; defines struct link_map_offsets and + SVR4_FETCH_LINK_MAP_OFFSETS. + * solib-svr4.c (_initialize_svr4_solib, svr4_clear_solib, + svr4_free_so): New functions. + (special_symbol_handling, solib_create_inferior_function_hook, + current_sos): Rename by adding a svr4_ prefix. + (default_svr4_fetch_link_map_offsets): New function. + (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY, + first_link_map_member, open_symbol_file_object, svr4_current_sos): + Remove dependence on existence of link.h by calling + SVR4_FETCH_LINK_MAP_OFFSETS to obtain the offsets of shared library + data. As a result, SVR4 and non-SVR4 versions of many of these + functions coalesce into a single function and HAVE_STRUCT_LINK_MAP32 + ugliness is moved into default_svr4_fetch_link_map_offsets where it + is relatively contained. + (SOLIB_EXTRACT_ADDRESS): Revert 2000-08-29 change in which + solib_extract_address() is called instead of extract_address(). + (solib_extract_address): Removed. + + * Makefile.in (solib.o): Add solist.h as a dependency. + (solib-svr4.o): Add dependencies. + * config/alpha/alpha-linux.mh, config/alpha/fbsd.mh, + config/arm/linux.mh, config/i386/fbsd.mh, + config/i386/i386dgux.mh, config/i386/i386gnu.mh, + config/i386/i386sco5.mh, config/i386/i386sol2.mt, + config/i386/i386v4.mh, config/i386/i386v42mp.mh, + config/i386/linux.mh, config/i386/nbsd.mh, + config/i386/nbsdelf.mh, config/i386/ncr3000.mt, + config/i386/ptx4.mh, config/i386/sun386.mt, + config/ia64/linux.mh, config/m68k/linux.mh, + config/m68k/m68kv4.mh, config/m68k/nbsd.mh, + config/m68k/sun2os4.mt, config/m68k/sun3os4.mt, + config/m88k/delta88v4.mh, config/mips/mipsv4.mh, + config/ns32k/nbsd.mh, config/powerpc/linux.mh, + config/powerpc/nbsd.mh, config/powerpc/solaris.mh, + config/rs6000/rs6000lynx.mt, config/sparc/linux.mt, + config/sparc/nbsd.mh, config/sparc/nbsdelf.mh, + config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh + (NATDEPFILES): Add solib-svr4.o to list. + + * sparc-tdep.c (gregset.h): Don't include unless USE_PROC_FS is + defined. + +2000-10-24 Kevin Buettner + + * stabsread.c (dbx_lookup_type, dbx_alloc_type, + read_sun_builtin_type, read_sun_floating_type, + read_range_type): Protoize. + +Wed Oct 25 01:19:26 2000 Andrew Cagney + + * solib.c (open_symbol_file_object): Update function signature to + match catch_errors function argument. + +Wed Oct 25 00:08:01 2000 Andrew Cagney + + From 2000-09-06 Angela Marie Thomas : + * infttrace.c (get_dictionary_entry_of_page): Function + require_memory_page_dictionary takes no args. + +Tue Oct 24 16:12:00 2000 Andrew Cagney + + * gdba.el: Delete file. + * NEWS: Mention. + +2000-10-23 David B Anderson + + * TODO: Correct spelling errors + * command.c (_initialize_command) corelow.c (core_open) + main.c (captured_command_loop) mips-tdep.c (mips32_next_pc) + remote.c serial.h top.c utils.c config/nm-lynx.h: + Correct spelling errors in comments + +2000-10-22 Kevin Buettner + + * sparc-nat.c (fetch_core_registers): Protoize. + * sparcl-tdep.c (download): Protoize. + +Fri Oct 20 19:08:47 2000 Andrew Cagney + + * MAINTAINERS: Add Fred Fish to Blanket Write Privs list. + +2000-10-19 Josef Ezra + + * ax-gdb.c (gen_struct_ref): while generating data code, cases of + "collect p1->p2->data" where not covered if p2 is a 'typedefed' + type. this simple fix should forward the type pointer to the real + type. + +2000-10-19 Kevin Buettner + + * solib.c (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY, + open_symbol_file_object): Protoize. + +2000-10-17 Kevin Buettner + + * remote-vx29k.c (vx29k_frame_chain_valid): Protoize. + * remote.c (remote_xfer_memory, remote_search): Protoize. + * sol-thread.c (sol_thread_xfer_memory): Protoize. + +2000-10-16 Peter Schauer + + * sparc-tdep.c (sparc_fix_call_dummy): Improve comments. + Adjust call_dummy_breakpoint_offset, so that `finish' after a stop + in a call dummy works. + (sparc_gdbarch_init): Fix setting of pc_in_call_dummy, it depends + on SPARC32/64_CALL_DUMMY_ON_STACK, not DO_CALL_DUMMY_ON_STACK. + +2000-10-15 Kevin Buettner + + * remote-st.c (st2000_xfer_inferior_memory): Protoize. + * remote-utils.c (gr_multi_scan): Protoize. + * remote-vx.c (vx_xfer_memory, net_get_symbols): Protoize. + 2000-10-13 Fernando Nasser * remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.