2000-11-06 Fernando Nasser <fnasser@cygnus.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index e9a4300bcaa4f36c8741d21adf4feb25a2846cb0..d0ad9b98750ac0cbbe47d6149cc3479b747317fc 100644 (file)
@@ -1,7 +1,333 @@
+2000-11-06  Fernando Nasser  <fnasser@cygnus.com>
+
+       From  Steven Johnson  <sbjohnson@ozemail.com.au>:
+
+        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  <pes@regent.e-technik.tu-muenchen.de>
+
+       * stack.c (return_command):  Pop dummy frame if we just returned from
+       a stop in a call dummy.
+
+2000-11-05  Kevin Buettner  <kevinb@redhat.com>
+
+       * 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  <kevinb@redhat.com>
+
+       * utils.c (add_continuation, add_intermediate_continuation,
+       printchar): Protoize.
+
+2000-11-03  Kevin Buettner  <kevinb@redhat.com>
+
+       * 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  <jtc@redback.com>
+
+       * 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  <pes@regent.e-technik.tu-muenchen.de>
+
+       * 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  <kevinb@redhat.com>
+
+       * 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  <msnyder@cleaver.cygnus.com>
+
+       * 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  <msnyder@cleaver.cygnus.com>
+
+       * 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  <kevinb@redhat.com>
+
+       * top.c (simplified_command_loop, add_info, add_com,
+       help_command): Protoize.
+       * ui-out.c (gdb_query): Protoize.
+
+2000-10-30  Kevin Buettner  <kevinb@redhat.com>
+
+       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  <msnyder@cleaver.cygnus.com>
+
+       * 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  <jtc@redback.com>
+
+       * 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  <taylor@redhat.com>
+
+       * 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  <kevinb@redhat.com>
+
+       * symtab.c (decode_line_2, file_matches, search_symbols): Protoize.
+       * thread.c (iterate_over_threads): Protoize.
+
+2000-10-27  J.T. Conklin  <jtc@redback.com>
+
+       * 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 <davea@sgi.com>
+
+       * 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  <kevinb@redhat.com>
+
+       * sun3-nat.c (fetch_core_registers): Protoize.
+       * symm-nat.c (print_1167_regs, child_xfer_memory): Protoize.
+
+2000-10-26  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
+       * stabsread.c (define_symbol): Update comment.
+
+2000-10-26 Pierre Muller <muller@ics.u-strasbg.fr>
+
+       * 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  <pes@regent.e-technik.tu-muenchen.de>
+
+       * 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  <kevinb@redhat.com>
+
+       * 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  <fnf@cygnus.com>
+
+       * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either
+       the current arch or use zero.
+
+2000-10-25  Fernando Nasser  <fnasser@cygnus.com>
+
+       * ser-unix.c (do_unix_readchar): Coding style improvement only.
+
+2000-10-25  Fernando Nasser  <fnasser@cygnus.com>
+
+        * target.c (generic_mourn_inferior): Notify GUI that inferior is gone
+        by calling detach_hook, if defined.
+
 2000-10-24  Kevin Buettner  <kevinb@redhat.com>
 
-       * solib-svr4.c: New file created out of much of solib.c...
+       * 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  <kevinb@redhat.com>
 
+       * 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,
        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
        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,
 
        * Makefile.in (solib.o): Add solist.h as a dependency.
        (solib-svr4.o): Add dependencies.
-
-       * sparc-tdep.c (gregset.h): Don't include unless USE_PROC_FS is
-       defined.
-
        * 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/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  <kevinb@redhat.com>
 
        * stabsread.c (dbx_lookup_type, dbx_alloc_type,
@@ -129,6 +451,13 @@ Fri Oct 20 19:08:47 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * MAINTAINERS: Add Fred Fish to Blanket Write Privs list.
 
+2000-10-19  Josef Ezra <jezra@emc.com>
+
+       * 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  <kevinb@redhat.com>
 
        * solib.c (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY,
This page took 0.029935 seconds and 4 git commands to generate.