aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-21 16:26:02 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-21 16:26:02 +0000
commitf0e7d0e8f2d5505f2c1446a8726f1dba59fc260e (patch)
treed188c72227299eb00feb977bac0b775f25a8f873 /gdb/frame.c
parent373bbd04cb248a9dd84b36e395c12d170997d944 (diff)
downloadgdb-f0e7d0e8f2d5505f2c1446a8726f1dba59fc260e.zip
gdb-f0e7d0e8f2d5505f2c1446a8726f1dba59fc260e.tar.gz
gdb-f0e7d0e8f2d5505f2c1446a8726f1dba59fc260e.tar.bz2
2003-06-21 Andrew Cagney <cagney@redhat.com>
* frame.c (get_frame_register): New function. (frame_unwind_register_signed): New function. (get_frame_register_signed): New function. (frame_unwind_register_unsigned): New function. (get_frame_register_unsigned): New function. * frame.h: Add comments on naming schema. (get_frame_register, frame_unwind_register_signed): Declare. (get_frame_register_signed, get_frame_register_signed): Declare. (frame_unwind_register_unsigned): Declare. (get_frame_register_unsigned): Declare.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 55e9dc5..b873b3a 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -615,6 +615,41 @@ frame_unwind_register (struct frame_info *frame, int regnum, void *buf)
}
void
+get_frame_register (struct frame_info *frame,
+ int regnum, void *buf)
+{
+ frame_unwind_register (frame->next, regnum, buf);
+}
+
+LONGEST
+frame_unwind_register_signed (struct frame_info *frame, int regnum)
+{
+ char buf[MAX_REGISTER_SIZE];
+ frame_unwind_register (frame, regnum, buf);
+ return extract_signed_integer (buf, REGISTER_VIRTUAL_SIZE (regnum));
+}
+
+LONGEST
+get_frame_register_signed (struct frame_info *frame, int regnum)
+{
+ return frame_unwind_register_signed (frame->next, regnum);
+}
+
+ULONGEST
+frame_unwind_register_unsigned (struct frame_info *frame, int regnum)
+{
+ char buf[MAX_REGISTER_SIZE];
+ frame_unwind_register (frame, regnum, buf);
+ return extract_unsigned_integer (buf, REGISTER_VIRTUAL_SIZE (regnum));
+}
+
+ULONGEST
+get_frame_register_unsigned (struct frame_info *frame, int regnum)
+{
+ return frame_unwind_register_unsigned (frame->next, regnum);
+}
+
+void
frame_unwind_signed_register (struct frame_info *frame, int regnum,
LONGEST *val)
{