This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: Share the dwarf2 unwind code between glibc and gcc 3.0


On Sun, Jul 08, 2001 at 09:49:53PM -0700, Richard Henderson wrote:
> > 	* unwind-pe.h: Include <gccframe.h> if _LIBC is defined.
> >	...
> 
> What in the world are you doing?  You shouldn't be touching this file
> at all.  Why are you moving things away from unwind-dw2-fde.h?

I can do that or introduce a new file. I am working a patch for
frame-dwarf2.c in gcc 2.9x so that we can share the v2 frame unwind
code between gcc 2.9x and glibc. Together with that patch, glibc can
have a compiler version independent frame unwinder which supports mixed
gcc v2 and v3 unwind frames. Basically, I need a file, which defines
or decclares dwarf_eh_bases, _Unwind_Find_FDE and fde and can be safely
included in my patched frame-dwarf2.c. My patched frame-dwarf2.c starts
with

#ifdef _LIBC
#include <stdlib.h>
#include <string.h>
#include <error.h>
#include <libintl.h>
#include <dwarf2.h>
#define DWARF2_FRAME_UNWIND_V2
#define NEED__Unwind_GetFrameForV2
#include <unwind-pe.h>

That is why I moved them into unwind-pe.h. I can introduce a new file
if it is preferred.

Thanks.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]