* gdbarch.sh (struct regcache): Add opaque declaration.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index a6576bd65ae2865d28654f3d264dec6f10835bae..b89be5deb1f02baef4530de7f280142004547d7f 100644 (file)
@@ -1,3 +1,147 @@
+2002-07-03  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbarch.sh (struct regcache): Add opaque declaration.
+       (EXTRACT_RETURN_VALUE): New architecture method.
+       (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
+       * gdbarch.h, gdbarch.c: Regenerate.
+       * arch-utils.c (legacy_extract_return_value): New function.
+       * arch-utils.h (legacy_extract_return_value): Declare.
+       * values.c (value_being_returned): Re-enable code handling
+       EXTRACT_STRUCT_VALUE_ADDRESS.  Move
+       deprecated_grub_regcache_for_registers call to block handling
+       DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
+       (EXTRACT_RETURN_VALUE): Do not define.
+
+2002-07-03  Grace Sainsbury  <graces@redhat.com>
+
+       * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
+       (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
+       (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
+       (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
+       (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
+       (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
+       (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
+       (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
+       (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
+       (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
+       * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
+       argument so the function fits the prototype in the architecture
+       vector.
+       (mcore_pop_frame): Remove argument so the function fits the
+       prototype. Use get_current_frame instead of the argument.
+       (mcore_push_arguments): Change type of struct_return so the
+       function can be used in the architecture vector.
+       (mcore_store_struct_return): Add.
+       (mcore_frame_init_saved_regs): Add.
+       (mcore_gdbarch_init): Add function calls to replace the macros
+       removed from tm-mcore.h
+
+2002-07-03  Andrew Cagney  <ac131313@redhat.com>
+
+       * infcmd.c (print_return_value): Remove compatibility code calling
+       deprecated_grub_regcache_for_registers.
+       
+       * values.c: Include "regcache.h".
+       (value_being_returned): Update.  Use
+       deprecated_grub_regcache_for_registers to extract the register
+       buffer address.  
+       * value.h (value_being_returned): Change ``retbuf'' parameter to a
+       ``struct regcache''.
+       * Makefile.in (values.o): Add dependency on $(regcache_h).
+
+       * inferior.h (run_stack_dummy): Change type of second parameter to
+       a ``struct regcache''.
+       * valops.c (hand_function_call): Change type of retbuf to ``struct
+       regcache''.  Allocate using regcache_xmalloc, clean using
+       make_cleanup_regcache_xfree.
+       * infcmd.c (run_stack_dummy): Update.  Use
+       regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
+
+       * regcache.c (do_regcache_xfree): New function.
+       (make_cleanup_regcache_xfree): New function.
+       * regcache.h (make_cleanup_regcache_xfree): Declare.
+
+2002-07-03  Martin M. Hunt  <hunt@redhat.com>
+
+       * event-top.c (command_line_handler): Don't read past
+        beginning of buffer.
+
+2002-07-03  Martin M. Hunt  <hunt@redhat.com>
+       
+        * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
+        struct frame_id. 
+        (varobj_create): Store frame_id for root.
+        (varobj_gen_name): Use xasprintf.
+        (varobj_update): Save and restore frame using get_frame_id() and
+        frame_find_by_id().
+        (create_child): Use xasprintf.
+        (new_root_variable): Initialize frame_id.
+        (c_name_of_child): Use xasprintf. Call find_frame_by_id().
+        (c_value_of_variable): Use xasprintf. Move mem_fileopen call
+        to prevent memory leak.
+
+2002-07-03  Andrew Cagney  <ac131313@redhat.com>
+
+       * valops.c (hand_function_call): Move declaration of retbuf to
+       start of function, allocate using malloc, add a cleanup but before
+       the inf_status cleanup, cleanup the buffer.  Rename local variable
+       old_chain to inf_status_cleanup.
+
+2002-07-03  Martin M. Hunt  <hunt@redhat.com>
+
+       * top.c (execute_command): Use cmd_func() and cmd_func_p().
+
+       * cli/cli-decode.c (cmd_func_p): New function.
+       (cmd_func): New function.
+
+       * command.h: Add cmd_func() and cmd_func_p().   
+       
+2002-07-03  Grace Sainsbury  <graces@redhat.com>
+
+       * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
+       (REGISTER_SIZE): Remove.
+       (MAX_REGISTER_RAW_SIZE): Remove.
+       (REGISTER_VIRTUAL_TYPE): Remove.
+       (MAX_REGISTER_VIRTUAL_SIZE): Remove.
+       (REGISTER_NAME): Remove.
+       (USE_GENERIC_DUMMY_FRAMES): Remove.
+       (CALL_DUMMY): Remove.
+       (CALL_DUMMY_START_OFFSET): Remove.
+       (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
+       (CALL_DUMMY_LOCATION): Remove.
+       (FIX_CALL_DUMMY): Remove.
+       (CALL_DUMMY_ADDRESS): Remove.
+       (SIZEOF_CALL_DUMMY_WORDS): Remove.
+       (SAVE_DUMMY_FRAME_TOS): Remove.
+       * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
+       (mcore_register_virtual_type): New function.
+       (mcore_register_byte): New function.
+       (mcore_register_size): New function.
+       (mcore_register_name): New function.
+       (mcore_gdbarch_init): New function. Add set_gdbarch calls for
+       macros removed from tm-mcore.h.
+       (mcore_dump_tdep): Add.
+       (_initialize_mcore_tdep): Add gdbarch_register call.
+
+2002-07-03  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
+       frameless_look_for_prologue, such that we actually call this
+       function.
+
+2002-07-02  Joel Brobecker  <brobecker@gnat.com>
+
+       * frame.h (frame_address_in_block): New function.
+
+       * blockframe.c (frame_address_in_block): New function extracted
+       from get_frame_block().
+       (get_frame_block): Use frame_address_in_block().
+       (block_innermost_frame): Use frame_address_in_block() to match
+       the frame pc address against the block boundaries rather than
+       the frame pc directly. This prevents a failure when a frame pc
+       is actually a return-address pointing immediately after the end
+       of the given block. 
+
 2002-07-02  Grace Sainsbury  <graces@redhat.com>
 
        * MAINTAINERS: Add self under write after approval. 
This page took 0.025914 seconds and 4 git commands to generate.