]> sourceware.org Git - newlib-cygwin.git/commitdiff
* init.cc (search_for): Put this in shared section or suffer subtle problems
authorChristopher Faylor <me@cgf.cx>
Sun, 12 Dec 2010 05:48:29 +0000 (05:48 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 12 Dec 2010 05:48:29 +0000 (05:48 +0000)
with the tls.
* pinfo.cc (status_exit): Add debug output to report on unexpected exit.
* tls_pbuf.cc (tmp_pathbuf::c_get): Add more details to internal error.

winsup/cygwin/ChangeLog
winsup/cygwin/init.cc
winsup/cygwin/pinfo.cc
winsup/cygwin/tls_pbuf.cc

index dfdba08414123d7873076db7659273df0032b3b4..1de5dee9febcd3bfff85c50d3fe668f46b0d93d0 100644 (file)
@@ -1,3 +1,10 @@
+2010-12-12  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * init.cc (search_for): Put this in shared section or suffer subtle
+       problems with the tls.
+       * pinfo.cc (status_exit): Add debug output to report on unexpected exit.
+       * tls_pbuf.cc (tmp_pathbuf::c_get): Add more details to internal error.
+
 2010-12-09  Corinna Vinschen  <corinna@vinschen.de>
 
        * autoload.cc (RETRY_COUNT): New define.
index 0f6b67e8844de48f02c84889787872cd8a69fc46..fab71ba27f4643fbea0bab97e45e705fa03b23dc 100644 (file)
@@ -16,7 +16,7 @@ details. */
 
 static DWORD _my_oldfunc;
 
-static char NO_COPY *search_for = (char *) cygthread::stub;
+static char *search_for  __attribute__((section (".cygwin_dll_common"), shared)) = (char *) cygthread::stub;
 unsigned threadfunc_ix[8] __attribute__((section (".cygwin_dll_common"), shared));
 
 static bool dll_finished_loading;
index f426bde6490f130ec69931cf7a2f3f56c314bd3b..03f85e5483453f7550090b4f9912d02855e8702a 100644 (file)
@@ -138,6 +138,7 @@ status_exit (DWORD x)
       x = 127;
       break;
     default:
+      debug_printf ("*** STATUS_%p\n", x);
       x = 127;
     }
   return x;
index f8102db8e663296ef0724d34b07ff35e5ba5eacc..2190e514965fd772dc6356e0ec9aab204ef64667 100644 (file)
@@ -39,7 +39,7 @@ char *
 tmp_pathbuf::c_get ()
 {
   if (tls_pbuf.c_cnt >= TP_NUM_C_BUFS)
-    api_fatal ("Internal error: TP_NUM_C_BUFS too small.");
+    api_fatal ("Internal error: TP_NUM_C_BUFS too small: %u > %u", tls_pbuf.c_cnt, TP_NUM_C_BUFS);
   if (!tls_pbuf.c_buf[tls_pbuf.c_cnt]
       && !(tls_pbuf.c_buf[tls_pbuf.c_cnt] = (char *) malloc (NT_MAX_PATH)))
     api_fatal ("Internal error: Out of memory for new path buf.");
This page took 0.037523 seconds and 5 git commands to generate.