aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
AgeCommit message (Collapse)AuthorFilesLines
2003-09-27* regcache.h (get_regcache_arch): New prototype.Mark Kettenis1-0/+4
* regcache.c (get_regcache_arch): New function.
2003-08-29* regcache.c (register_buffer): Consitify first argument.Mark Kettenis1-0/+4
(regcache_raw_supply, regcache_raw_collect): New functions.
2003-05-152003-05-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+0
* regcache.c (build_regcache): Set deprecated_register_valid directly. (deprecated_grub_regcache_for_register_valid): Delete function. * regcache.h (deprecated_grub_regcache_for_register_valid): Delete declaration.
2003-05-082003-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-6/+0
* regcache.h (max_register_size): Delete declaration. * regcache.c (max_register_size): Delete function. (struct regcache_descr): Delete field "max_register_size". (init_regcache_descr, init_legacy_regcache_descr): Assert that all registers fit in MAX_REGISTER_SIZE. (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE. (regcache_restore, regcache_xfer_part, regcache_dump): Ditto. * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE. * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto. * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto. * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto. * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto. * dve3900-rom.c, hppa-tdep.c: Ditto.
2003-05-082003-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-4/+0
* mips-tdep.c (read_signed_register): New function, moved to here from "regcache.c". (read_signed_register_pid): Ditto. * regcache.c (read_signed_register_pid): Delete function, moved to "mips-tdep.c". (read_signed_register): Ditto. * regcache.h (read_signed_register): Delete declaration. (read_signed_register_pid): Delete declaration.
2003-03-142003-03-12 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* frame.c (get_saved_register): Delete function. * xstormy16-tdep.c: Update comment. * regcache.h: Update comments. * sparc-tdep.c (sparc_init_extra_frame_info): Instead of get_saved_register and extract_address, use frame_read_unsigned_register. (sparc_frame_saved_pc): Ditto. (sparc_get_saved_register): Instead of get_saved_register, use frame_register. (sparc_pop_frame): Ditto. * frame.h (get_saved_register): Delete declaration. * findvar.c: Update comments. (value_of_register): Call frame_register instead of get_saved_register. (value_from_register): Ditto. * config/sparc/tm-sparc.h: Update comment. * breakpoint.c: Update comment. Index: doc/ChangeLog 2003-03-12 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete references to get_saved_register.
2003-03-122003-03-12 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-0/+4
* regcache.c (regcache_cooked_write_signed): New function. (regcache_cooked_write_unsigned): New function. (regcache_cooked_read_unsigned): Fix regnum in range assertion. (regcache_cooked_read_signed): Fix regnum in range assertion. * regcache.h (regcache_cooked_write_signed): Declare. (regcache_cooked_write_unsigned): Declare.
2003-03-102003-03-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-9/+13
* regcache.h (regcache_cooked_read_ftype): Define. (regcache_save, regcache_restore): Add a cooked_read parameter. * regcache.c (regcache_save, regcache_restore): Update. (do_cooked_read): New function. (regcache_cpy): Pass do_cooked_read to regcache_save and regcache_restore.
2003-02-282003-02-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-0/+26
* regcache.c (register_size): New function. * regcache.h (register_size): Declare * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use max_register_size instead of MAX_REGISTER_RAW_SIZE.
2002-11-292002-11-29 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-7/+7
* stack.c (selected_frame, select_frame): Move from here ... * frame.c (selected_frame, select_frame): ... to here. Include "language.h". * Makefile.in (frame.o): Update dependencies. * frame.c (get_selected_frame): New function. * frame.h (get_selected_frame): Declare. (deprecated_selected_frame): Rename selected_frame. * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update. * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update. * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update. * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update. * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update. * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update. * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update. * z8k-tdep.c, cli/cli-cmds.c: Update. Index: mi/ChangeLog 2002-11-29 Andrew Cagney <ac131313@redhat.com> * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use deprecated_selected_frame. Index: tui/ChangeLog 2002-11-29 Andrew Cagney <ac131313@redhat.com> * tui/tui-hooks.c: Update to use deprecated_selected_frame. * tui/tui.c, tui/tuiDisassem.c, tui/tuiRegs.c: Ditto. * tui/tuiSource.c, tui/tuiSourceWin.c, tui/tuiWin.c: Ditto.
2002-11-142002-11-14 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-5/+9
* regcache.h (deprecated_registers): Rename registers. * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update. * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update. * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update. * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update. * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update. * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update. * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update. * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update. * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update. * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update. * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update. * v850ice.c: Update.
2002-11-142002-11-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-4/+4
* regcache.h (deprecated_read_register_bytes): Rename read_register_bytes. (deprecated_write_register_bytes): Rename write_register_bytes. * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update. * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update. * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update. * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update. * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update. * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update. * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update. * config/nm-m3.h, config/h8500/tm-h8500.h: Update. * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update. * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update. * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update. * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update. * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update. * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update. 2002-11-13 Andrew Cagney <ac131313@redhat.com> * mi-main.c (mi_cmd_data_write_register_values): Use deprecated_write_register_bytes instead of write_register_bytes.
2002-11-132002-11-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-0/+10
* regcache.c (struct regcache): Replace passthough_p with readonly_p. (regcache_xmalloc): Initialize readonly_p. (build_regcache): Initialize readonly_p. (regcache_save): New function. (regcache_restore): New function. (regcache_cpy): Re-implement using regcache_save and regcache_restore. (regcache_raw_read): Update. (regcache_cooked_read): When a read-only cache, checked for cached pseudo register values. (regcache_raw_write): Assert that the cache is not read-only. Remove code handling a non-passthrough cache. * regcache.h (regcache_save): Declare. (regcache_restore): Declare.
2002-11-072002-11-07 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-23/+6
* regcache.h (regcache_cooked_read_using_offset_hack) (regcache_cooked_write_using_offset_hack): Delete declarations. (register_changed): Delete declaration. * regcache.c (regcache_cooked_read_using_offset_hack) (regcache_cooked_write_using_offset_hack): Delete functions. (cooked_xfer_using_offset_hack): Delete function. (register_changed): Delete function.
2002-11-072002-11-07 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-1/+4
* regcache.c (deprecated_registers_fetched): Update. * regcache.h (deprecated_registers_fetched): Rename registers_fetched. * remote-vxsparc.c (vx_read_register): Update. * remote-vxmips.c (vx_read_register): Update. * remote-vx68.c (vx_read_register): Update. * irix5-nat.c (fetch_core_registers): Update. * mipsm3-nat.c (fetch_inferior_registers): Update. * sun3-nat.c (fetch_inferior_registers): Update. * symm-nat.c (fetch_inferior_registers): Update. * ns32knbsd-nat.c (fetch_inferior_registers): Update. (fetch_core_registers): Update. (fetch_kcore_registers): Update. * mips-nat.c (fetch_inferior_registers): Update. * corelow.c (get_core_registers): Update. * a68v-nat.c (fetch_inferior_registers): Update.
2002-11-072002-11-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-6/+11
* regcache.h (deprecated_register_valid): Rename register_valid. * regcache.c: Update. * ia64-aix-nat.c: Update. * i386gnu-nat.c: Update. * alpha-nat.c: Update. * sparc-nat.c: Update. * lynx-nat.c: Update. * remote-mips.c: Update.
2002-11-022002-11-02 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-4/+16
* regcache.h: Add coment indicating replacements for deprecated functions.
2002-11-022002-11-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+2
* regcache.h (deprecated_read_register_gen): Rename read_register_gen. (deprecated_write_register_gen): Rename write_register_gen. * i387-tdep.c: Update. * x86-64-linux-nat.c: Update * wince.c: Update. * thread-db.c: Update. * win32-nat.c: Update. * mips-tdep.c: Update. * d10v-tdep.c: Update. * cris-tdep.c: Update. * remote-sim.c: Update. * remote-rdi.c: Update. * remote-rdp.c: Update. * frame.c: Update. * target.c: Update. * blockframe.c: Update. * x86-64-tdep.c: Update. * xstormy16-tdep.c: Update. * sh-tdep.c: Update. * s390-tdep.c: Update. * rs6000-tdep.c: Update. * sparc-tdep.c: Update. * i386-tdep.c: Update. * dwarf2cfi.c: Update. * regcache.c: Update.
2002-08-25* regcache.c (regcache_raw_write_signed,Mark Kettenis1-0/+4
regcache_raw_write_unsigned): New functions. * regcache.h (regcache_raw_write_signed, regcache_raw_write_unsigned): New prototypes.
2002-08-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-0/+27
* regcache.h (register_offset_hack): Declare. (regcache_cooked_read_using_offset_hack): Declare. (regcache_cooked_write_using_offset_hack): Declare. * regcache.c (register_offset_hack): New function. (regcache_cooked_read_using_offset_hack): New function. (regcache_cooked_write_using_offset_hack): New function. (regcache_dump): Check that the registers, according to their offset, are packed hard against each other. (cooked_xfer_using_offset_hack): New function.
2002-08-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-0/+19
* regcache.c (struct regcache_descr): Add field register_type. (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr in as a parameter (init_regcache_descr): Initialize register_type. Pass the descr to init_legacy_regcache_descr. Use register_type instead of REGISTER_VIRTUAL_TYPE. (register_type): New function. (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type. * regcache.h (register_type): Declare.
2002-08-252002-08-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-0/+6
* regcache.c (max_register_size): New function. (init_legacy_regcache_descr): Ensure that max_register_size is large enough for REGISTER_VIRTUAL_SIZE. * regcache.h (max_register_size): Declare.
2002-08-192002-08-18 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-0/+17
* regcache.c (regcache_xfer_part): New function. (regcache_raw_read_part): New function. (regcache_raw_write_part): New function. (regcache_cooked_read_part): New function. (regcache_cooked_write_part): New function. * regcache.h (regcache_raw_read_part): Declare. (regcache_raw_write_part): Declare. (regcache_cooked_read_part): Declare. (regcache_cooked_write_part): Declare.
2002-08-132002-08-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-0/+4
* i386-tdep.c (i386_register_name): Handle mmx registers. (mmx_regnum_p): New function. (i386_mmx_names): New array. (mmx_num_regs): New variable. (i386_pseudo_register_read): New function. (i386_pseudo_register_write): New function. (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser. * regcache.c (regcache_raw_read_unsigned): New function. (regcache_raw_read_signed): New function. * regcache.h (regcache_raw_read_unsigned): Declare. (regcache_raw_read_signed): Declare.
2002-08-132002-08-12 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+14
* regcache.c (regcache_raw_read_as_address): Delete function. (regcache_cooked_read_signed): New function. (regcache_cooked_read_unsigned): New function. * regcache.h (regcache_cooked_read_signed): Declare. (regcache_cooked_read_unsigned): Declare. (regcache_raw_read_as_address): Delete declaration. * blockframe.c (generic_read_register_dummy): Use regcache_cooked_read_unsigned. * i386-tdep.c (i386_extract_struct_value_address): Use regcache_cooked_read_unsigned.
2002-08-02Add the cooked register interface.Andrew Cagney1-0/+5
2002-07-242002-07-24 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+4
* regcache.c (regcache_raw_write): Change buf parameter to a constant void pointer. (regcache_raw_read): Change buf parameter to a void pointer. (legacy_write_register_gen): Change myaddr parameter a constant void pointer. (supply_register): Change val parameter to a const void pointer. * regcache.h (regcache_raw_write): Update declaration. (regcache_raw_read): Update declaration. (supply_register): Update declaration.
2002-07-242002-07-24 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+3
* regcache.h (regcache_raw_read, regcache_raw_write): Replace regcache_read and regcache_write. (regcache_raw_read_as_address): Replace regcache_read_as_address. * regcache.c: Update. * sh-tdep.c (sh64_push_arguments): Update comment. (sh_pseudo_register_read): Update. (sh_pseudo_register_write): Update. (sh4_register_read): Update. (sh4_register_write): Update. (sh64_pseudo_register_read): Update. (sh64_pseudo_register_write): Update. (sh64_register_read): Update. (sh64_register_write): Update. * i386-tdep.c (i386_extract_return_value): Update. (i386_extract_struct_value_address): Update. (i386_extract_return_value): Update. * blockframe.c (generic_read_register_dummy): Update. (generic_call_dummy_register_unwind): Update * infrun.c (write_inferior_status_register): Update.
2002-07-03* infcmd.c (print_return_value): Remove compatibility code callingAndrew Cagney1-0/+1
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-06-22* regcache.h: Update comments describing the regcache_cpy familyAndrew Cagney1-8/+6
of functions. (regcache_save, regcache_restore): Delete declaration. (regcache_save_no_passthrough): Delete declaration. (regcache_restore_no_passthrough): Delete declaration. * regcache.c (regcache_save): Delete function. (regcache_save_no_passthrough): Delete function. (regcache_restore): Delete function. (regcache_restore_no_passthrough): Delete function.
2002-06-20* regcache.h: Update copyright.Andrew Cagney1-4/+34
(struct regcache, struct gdbarch): Add opaque declarations. (current_regcache): Declare global variable. (regcache_read, regcache_write): Add gdbarch parameter. (regcache_save, regcache_save_no_passthrough) (regcache_restore, regcache_restore_no_passthrough) (regcache_dup, regcache_dup_no_passthrough) (regcache_cpy, regcache_cpy_no_passthrough) (deprecated_grub_regcache_for_registers) (deprecated_grub_regcache_for_register_valid) (regcache_valid_p): Add function declarations. * regcache.c: Update copyright. (regcache_descr_handle): New global variable. (struct regcache_descr): Define. (init_legacy_regcache_descr, init_regcache_descr): New functions. (regcache_descr, xfree_regcache_descr): New functions. (struct regcache): Define. (regcache_xmalloc, regcache_xfree): New functions. (regcache_cpy, regcache_cpy_no_passthrough): New functions. (regcache_dup, regcache_dup_no_passthrough): New functions. (regcache_valid_p, regcache_read_as_address): New functions. (deprecated_grub_regcache_for_registers): New function. (deprecated_grub_regcache_for_register_valid): New function. (current_regcache): New global variable. (register_buffer): Add regcache parameter. Update calls. (regcache_read, regcache_write): Add regcache parameter. Rewrite. (read_register_gen, write_register_gen): Update register_buffer call. Test for legacy_p instead of gdbarch_register_read_p or gdbarch_register_write_p. (regcache_collect): Update register_buffer call. (build_regcache): Rewrite. Use deprecated grub functions. (regcache_save, regcache_save_no_passthrough): New functions. (regcache_restore, regcache_restore_no_passthrough): New functions. (_initialize_regcache): Create the regcache_data_handle. Swap current_regcache global variable. * sh-tdep.c (sh_pseudo_register_read): Add current_regcache parameter to regcache_read and regcache_write calls. (sh4_register_read): Ditto. (sh64_pseudo_register_read): Ditto. (sh64_register_read): Ditto. (sh_pseudo_register_write): Ditto. (sh4_register_write): Ditto. (sh64_pseudo_register_write): Ditto. (sh64_register_write): Ditto. * defs.h (XCALLOC): Define.
2001-11-15* TODO (register_buffer): Delete.Andrew Cagney1-7/+8
* regcache.c (register_buffer): Make static. (regcache_collect): New function. * regcache.h (register_buffer): Delete declaration. (regcache_collect): Declare. * remote.c (store_register_using_P): Rewrite using regcache_collect. (remote_store_registers): Ditto. * go32-nat.c (store_register): Ditto.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-3/+3
2001-03-24Re-vamp the register code so that a lot more is routed throughAndrew Cagney1-4/+14
{read,write}_register_gen. Hook that function with multi-arch.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+1
2001-03-01* regcache.h (register_valid): Fix comment documenting validAndrew Cagney1-1/+1
states.
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+71