This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Add get_frame_extra_info()
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 11 Dec 2002 19:05:48 -0500
- Subject: [commit] Add get_frame_extra_info()
Hello,
This patch adds the accessor method get_frame_extra_info().
committed,
Andrew
2002-12-11 Andrew Cagney <ac131313@redhat.com>
* frame.c (get_frame_extra_info): New function.
* frame.h (get_frame_extra_info): Declare.
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.41
diff -u -r1.41 frame.c
--- frame.c 11 Dec 2002 20:35:42 -0000 1.41
+++ frame.c 12 Dec 2002 00:03:27 -0000
@@ -1203,6 +1203,12 @@
}
#endif
+struct frame_extra_info *
+get_frame_extra_info (struct frame_info *fi)
+{
+ return fi->extra_info;
+}
+
void
_initialize_frame (void)
{
Index: frame.h
===================================================================
RCS file: /cvs/src/src/gdb/frame.h,v
retrieving revision 1.45
diff -u -r1.45 frame.h
--- frame.h 11 Dec 2002 20:35:43 -0000 1.45
+++ frame.h 12 Dec 2002 00:03:27 -0000
@@ -643,4 +643,12 @@
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) */