mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-03-02 14:26:39 +00:00
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_extra_info_zalloc): New function. * frame.h (frame_extra_info_zalloc): Declare.
This commit is contained in:
parent
516b1f280d
commit
2c517d0eb4
@ -1,3 +1,8 @@
|
||||
2002-12-13 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* frame.c (frame_extra_info_zalloc): New function.
|
||||
* frame.h (frame_extra_info_zalloc): Declare.
|
||||
|
||||
2002-12-13 Joel Brobecker <brobecker@gnat.com>
|
||||
|
||||
* hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
|
||||
|
@ -1209,6 +1209,14 @@ get_frame_extra_info (struct frame_info *fi)
|
||||
return fi->extra_info;
|
||||
}
|
||||
|
||||
struct frame_extra_info *
|
||||
frame_extra_info_zalloc (struct frame_info *fi, long size)
|
||||
{
|
||||
fi->extra_info = frame_obstack_alloc (size);
|
||||
memset (fi->extra_info, 0, size);
|
||||
return fi->extra_info;
|
||||
}
|
||||
|
||||
void
|
||||
_initialize_frame (void)
|
||||
{
|
||||
|
@ -644,11 +644,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. */
|
||||
/* Create/access the frame's `extra info'. The extra info is used by
|
||||
older code to store information such as the analyzed prologue. The
|
||||
zalloc() should only be called by the INIT_EXTRA_INFO method. */
|
||||
|
||||
extern struct frame_extra_info *frame_extra_info_zalloc (struct frame_info *fi,
|
||||
long size);
|
||||
extern struct frame_extra_info *get_frame_extra_info (struct frame_info *fi);
|
||||
|
||||
#endif /* !defined (FRAME_H) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user