From 9aca6a48a57bca1a59a236cf6dd20c4da5f78fb2 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 8 Mar 2006 23:55:14 +0000 Subject: * cygtls.h (_cygtls::retaddr): New method. * dll_init.cc (cygwin_detach_dll): Use new tls function to find return address since this function is now signal guarded. (update_envptrs): Remove unneeded braces. * syscalls.cc (statvfs): Coerce full_path to avoid a gcc warning. --- winsup/cygwin/cygtls.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/cygtls.h') diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 609eb9697..5e3155a76 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -183,6 +183,7 @@ struct _cygtls void remove (DWORD); void push (__stack_t) __attribute__ ((regparm (2))); __stack_t pop () __attribute__ ((regparm (1))); + __stack_t retaddr () {return stackptr[-1];} bool isinitialized () const {return initialized == CYGTLS_INITIALIZED;} bool interrupt_now (CONTEXT *, int, void *, struct sigaction&) __attribute__((regparm(3))); -- cgit v1.2.3