diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-03 18:53:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-03 18:53:37 +0000 |
commit | ae1e741769ca494b6d7d6faaa91d6ef2ba5cecfd (patch) | |
tree | e702f6aceab1ea961133f587366bc9011ea67b29 /gdb/frame.c | |
parent | 5a4e47bd3016472585dd5a178b76422011319b17 (diff) | |
download | gdb-ae1e741769ca494b6d7d6faaa91d6ef2ba5cecfd.zip gdb-ae1e741769ca494b6d7d6faaa91d6ef2ba5cecfd.tar.gz gdb-ae1e741769ca494b6d7d6faaa91d6ef2ba5cecfd.tar.bz2 |
2003-06-03 Andrew Cagney <cagney@redhat.com>
* frame.c (get_frame_memory_signed): New function.
(get_frame_memory, get_frame_memory_unsigned): New function.
(get_frame_arch): New function.
* frame.h (get_frame_signed_memory, get_frame_arch): Declare.
(get_frame_memory, get_frame_unsigned_memory): Declare.
* d10v-tdep.c (d10v_frame_unwind_cache): Use
get_frame_memory_unsigned and get_frame_arch.
(d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 07e0e5b..dd69dde 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -2219,6 +2219,37 @@ deprecated_frame_xmalloc_with_cleanup (long sizeof_saved_regs, return frame; } +/* Memory access methods. */ + +void +get_frame_memory (struct frame_info *this_frame, CORE_ADDR addr, void *buf, + int len) +{ + read_memory (addr, buf, len); +} + +LONGEST +get_frame_memory_signed (struct frame_info *this_frame, CORE_ADDR addr, + int len) +{ + return read_memory_integer (addr, len); +} + +ULONGEST +get_frame_memory_unsigned (struct frame_info *this_frame, CORE_ADDR addr, + int len) +{ + return read_memory_unsigned_integer (addr, len); +} + +/* Architecture method. */ + +struct gdbarch * +get_frame_arch (struct frame_info *this_frame) +{ + return current_gdbarch; +} + int legacy_frame_p (struct gdbarch *current_gdbarch) { |