diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-12 00:56:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-12 00:56:44 +0000 |
commit | 806cc8c4f65ea2278f2b7a41e6501e41a815b967 (patch) | |
tree | 63094ab377464fd70fc7310c2201ba2780d16ceb /gdb | |
parent | a14031f55086febe7050b25b02dcfb453126ae9d (diff) | |
download | gdb-806cc8c4f65ea2278f2b7a41e6501e41a815b967.tar.gz |
2002-12-11 Andrew Cagney <ac131313@redhat.com>
* frame.c (get_frame_extra_info): New function.
* frame.h (get_frame_extra_info): Declare.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/frame.c | 6 | ||||
-rw-r--r-- | gdb/frame.h | 8 |
3 files changed, 19 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32cd7f7b3be..d76023e8876 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2002-12-11 Andrew Cagney <ac131313@redhat.com> + * frame.c (get_frame_extra_info): New function. + * frame.h (get_frame_extra_info): Declare. + +2002-12-11 Andrew Cagney <ac131313@redhat.com> + * breakpoint.h (struct breakpoint): Replace frame with frame_id. (set_momentary_breaokpoint): Replace `struct frame_info' parameter with `struct frame_id'. diff --git a/gdb/frame.c b/gdb/frame.c index ca7f03e1f6d..16a8283c46b 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1203,6 +1203,12 @@ deprecated_get_frame_saved_regs (struct frame_info *frame, } #endif +struct frame_extra_info * +get_frame_extra_info (struct frame_info *fi) +{ + return fi->extra_info; +} + void _initialize_frame (void) { diff --git a/gdb/frame.h b/gdb/frame.h index b9a933ae193..1fccc842186 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -643,4 +643,12 @@ extern struct frame_info *deprecated_selected_frame; extern void set_current_frame (struct frame_info *); extern struct frame_info *create_new_frame (CORE_ADDR, CORE_ADDR); + +/* NOTE: cagney/2002-12-10: + + Let older code access the member `extra_info'. This member is + always initialized during frame creation so is always non-null. */ + +extern struct frame_extra_info *get_frame_extra_info (struct frame_info *fi); + #endif /* !defined (FRAME_H) */ |