aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-10-31 20:14:33 +0000
committerAndrew Cagney <cagney@redhat.com>2002-10-31 20:14:33 +0000
commitf908a0eb77062c13097eb673c4d8470b2dbda9d2 (patch)
tree542bd91c8c2a52c11ea904b30fcbb47e65ac144e /gdb/frame.h
parentc5646e1120a55b7e13f8f843486432b8961448a8 (diff)
downloadgdb-f908a0eb77062c13097eb673c4d8470b2dbda9d2.zip
gdb-f908a0eb77062c13097eb673c4d8470b2dbda9d2.tar.gz
gdb-f908a0eb77062c13097eb673c4d8470b2dbda9d2.tar.bz2
2002-10-31 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_read_unsigned_register): New function. (frame_read_signed_register): New function. * frame.h (frame_read_unsigned_register): Declare. (frame_read_signed_register): Declare.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 849566b..12c8149 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -366,6 +366,16 @@ extern void get_saved_register (char *raw_buffer, int *optimized,
extern int frame_register_read (struct frame_info *frame, int regnum,
void *buf);
+/* Return the value of register REGNUM that belongs to FRAME. The
+ value is obtained by unwinding the register from the next / more
+ inner frame. */
+/* NOTE: cagney/2002-09-13: Return void as one day these functions may
+ be changed to return an indication that the read succeeded. */
+extern void frame_read_signed_register (struct frame_info *frame,
+ int regnum, LONGEST *val);
+extern void frame_read_unsigned_register (struct frame_info *frame,
+ int regnum, ULONGEST *val);
+
/* Map between a frame register number and its name. A frame register
space is a superset of the cooked register space --- it also
includes builtin registers. */