* suggestion for GCC 2.8 release notes re register_frame
[not found] <199712162213.OAA12009@vision.ucsd.edu>
@ 1997-12-16 16:01 ` Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 1997-12-16 16:01 UTC (permalink / raw)
To: gcc2; +Cc: egcs
If you're having trouble linking EGCS-1.0-generated shared libraries
with GCC 2.8.0-1997-12-13, then you should be able to work around the
problem by linking in the following code.
Perhaps this code could be put into a frame_egcs.c source file in the
GCC distribution, or put into the GCC and/or EGCS release notes, or
something like that. This would save experimental users some grief.
/* Stack frame unwinding backward compatibility with EGCS 1.0. */
#include <stdlib.h>
struct object {
void *pc_begin;
void *pc_end;
void *fde_begin;
void *fde_array;
size_t count;
struct object *next;
};
void __register_frame_info (void *, struct object *);
void __register_frame_info_table (void *, struct object *);
void __deregister_frame_info (void *);
void
__register_frame (void *begin)
{
__register_frame_info (begin, malloc (sizeof (struct object)));
}
void
__register_frame_table (void *begin)
{
__register_frame_info_table (begin, malloc (sizeof (struct object)));
}
void
__deregister_frame (void *begin)
{
/* This leaks the memory malloced above,
but that's good enough for backward compatibility purposes. */
__deregister_frame_info (begin);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-16 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <199712162213.OAA12009@vision.ucsd.edu>
1997-12-16 16:01 ` suggestion for GCC 2.8 release notes re register_frame Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).