/contrib/sdk/sources/gcc_eh/Makefile |
---|
1,19 → 1,18 |
LIBRARY= libgcc_eh |
CC=gcc |
CPP=g++ |
CC = kos32-gcc |
AR = kos32-ar |
LD = kos32-ld |
CPP= kos32-g++ |
STRIP = kos32-strip |
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer |
LD = ld |
ARFLAG = crs |
AR= ar |
STRIP = $(PREFIX)strip |
INCLUDES= -I. -I../newlib/include |
LIBS:= -ldll -lc.dll |
24,22 → 23,17 |
unwind-dw2.c \ |
unwind-dw2-fde.c |
OBJECTS = $(patsubst %.cc, %.o, $(patsubst %.c, %.o, $(SOURCES))) |
# targets |
all:$(LIBRARY).a |
$(LIBRARY).a: $(OBJECTS) Makefile |
ar cvrs $(LIBRARY).a $(OBJECTS) |
$(AR) cvrs $(LIBRARY).a $(OBJECTS) |
mv -f $(LIBRARY).a ../../lib |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
/contrib/sdk/sources/gcc_eh/config/i386/w32-unwind.h |
---|
82,8 → 82,8 |
Note that this implementation follows closely the same principles as the |
GNU/Linux and OSF ones. */ |
#define WIN32_MEAN_AND_LEAN |
#include <windows.h> |
//#define WIN32_MEAN_AND_LEAN |
//#include <windows.h> |
/* Patterns found experimentally to be on a Windows signal handler */ |
/* In a standard exception filter */ |
123,6 → 123,7 |
_Unwind_FrameState *fs) |
{ |
#if 0 |
void * ctx_ra_ = (void *)(context->ra); /* return address */ |
void * ctx_cfa_ = (void *)(context->cfa); /* context frame address */ |
unsigned char * pc_ = (unsigned char *) ctx_ra_; |
209,4 → 210,7 |
} |
else |
return _URC_END_OF_STACK; |
#endif |
return _URC_NO_REASON; |
} |