patches/glibc/linuxthreads-2.1.3/rh62-99-glibc-2.1.3-allow-gcc-3.4-td.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Fixes following error building glibc-2.2.5 with gcc-3.4:
     2 td_init.c: In function `td_init':
     3 td_init.c:30: error: parse error before string constant
     4 td_init.c:30: error: parse error before string constant
     5 make[2]: *** [/home/dank/wk/crosstool-0.28-rc4h/build/i686-unknown-linux-gnu/gcc-3.4.0-20040406-glibc-2.2.5/build-glibc/linuxthreads_db/td_init.os] Error 1
     6 
     7 # Retrieved by diffing a +-1 day rng around the time mentioned
     8 # in http://sources.redhat.com/ml/glibc-cvs/2001-q4/msg00654.html
     9 # cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc diff -u -D"2001-12-27 08:41:30" -D"2001-12-29 08:41:32"
    10 # then fixing paths.
    11 
    12 # And then removing hunks that don't apply to rh6.2's glibc-2.1.3
    13 # (thankfully, all were comments)
    14 # and rediffing one hunk for glibc-2.1.3
    15 
    16 Index: td_init.c
    17 ===================================================================
    18 RCS file: /cvs/glibc/libc/linuxthreads_db/td_init.c,v
    19 retrieving revision 1.3
    20 retrieving revision 1.4
    21 diff -u -r1.3 -r1.4
    22 --- libc/linuxthreads_db/td_init.c	6 Jul 2001 05:27:23 -0000	1.3
    23 +++ libc/linuxthreads_db/td_init.c	28 Dec 2001 16:41:29 -0000	1.4
    24 @@ -1,5 +1,5 @@
    25  /* Initialization function of thread debugger support library.
    26 -   Copyright (C) 1999 Free Software Foundation, Inc.
    27 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
    28     This file is part of the GNU C Library.
    29     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
    30  
    31 @@ -27,6 +27,6 @@
    32  td_init (void)
    33  {
    34    /* XXX We have to figure out what has to be done.  */
    35 -  LOG (__FUNCTION__);
    36 +  LOG ("td_init");
    37    return TD_OK;
    38  }
    39 Index: td_log.c
    40 ===================================================================
    41 RCS file: /cvs/glibc/libc/linuxthreads_db/td_log.c,v
    42 retrieving revision 1.2
    43 retrieving revision 1.3
    44 diff -u -r1.2 -r1.3
    45 --- libc/linuxthreads_db/td_log.c	6 Jul 2001 05:27:23 -0000	1.2
    46 +++ libc/linuxthreads_db/td_log.c	28 Dec 2001 16:41:29 -0000	1.3
    47 @@ -1,5 +1,5 @@
    48  /* Noop, left for historical reasons.
    49 -   Copyright (C) 1999 Free Software Foundation, Inc.
    50 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
    51     This file is part of the GNU C Library.
    52     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
    53  
    54 @@ -25,8 +25,8 @@
    55  td_log (void)
    56  {
    57    /* This interface is deprecated in the Sun interface.  We provide it
    58 -     for compatibility but don't do anyhting ourself.  We might in
    59 +     for compatibility but don't do anything ourself.  We might in
    60       future do some logging if this seems reasonable.  */
    61 -  LOG (__FUNCTION__);
    62 +  LOG ("td_log");
    63    return TD_OK;
    64  }
    65 Index: td_ta_clear_event.c
    66 ===================================================================
    67 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_clear_event.c,v
    68 retrieving revision 1.3
    69 retrieving revision 1.4
    70 diff -u -r1.3 -r1.4
    71 --- libc/linuxthreads_db/td_ta_clear_event.c	6 Jul 2001 05:27:23 -0000	1.3
    72 +++ libc/linuxthreads_db/td_ta_clear_event.c	28 Dec 2001 16:41:29 -0000	1.4
    73 @@ -1,5 +1,5 @@
    74  /* Globally disable events.
    75 -   Copyright (C) 1999 Free Software Foundation, Inc.
    76 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
    77     This file is part of the GNU C Library.
    78     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
    79  
    80 @@ -29,7 +29,7 @@
    81    td_thr_events_t old_event;
    82    int i;
    83  
    84 -  LOG (__FUNCTION__);
    85 +  LOG ("td_ta_clear_event");
    86  
    87    /* Test whether the TA parameter is ok.  */
    88    if (! ta_ok (ta))
    89 Index: td_ta_delete.c
    90 ===================================================================
    91 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_delete.c,v
    92 retrieving revision 1.3
    93 retrieving revision 1.4
    94 diff -u -r1.3 -r1.4
    95 --- libc/linuxthreads_db/td_ta_delete.c	6 Jul 2001 05:27:23 -0000	1.3
    96 +++ libc/linuxthreads_db/td_ta_delete.c	28 Dec 2001 16:41:29 -0000	1.4
    97 @@ -1,5 +1,5 @@
    98  /* Detach to target process.
    99 -   Copyright (C) 1999 Free Software Foundation, Inc.
   100 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   101     This file is part of the GNU C Library.
   102     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   103  
   104 @@ -26,7 +26,7 @@
   105  td_err_e
   106  td_ta_delete (td_thragent_t *ta)
   107  {
   108 -  LOG (__FUNCTION__);
   109 +  LOG ("td_ta_delete");
   110  
   111    /* Safety check.  */
   112    if (ta == NULL || __td_agent_list == NULL)
   113 Index: td_ta_enable_stats.c
   114 ===================================================================
   115 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_enable_stats.c,v
   116 retrieving revision 1.3
   117 retrieving revision 1.4
   118 diff -u -r1.3 -r1.4
   119 --- libc/linuxthreads_db/td_ta_enable_stats.c	6 Jul 2001 05:27:23 -0000	1.3
   120 +++ libc/linuxthreads_db/td_ta_enable_stats.c	28 Dec 2001 16:41:29 -0000	1.4
   121 @@ -1,5 +1,5 @@
   122  /* Enable collection of statistics for process.
   123 -   Copyright (C) 1999 Free Software Foundation, Inc.
   124 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   125     This file is part of the GNU C Library.
   126     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   127  
   128 @@ -25,7 +25,7 @@
   129  td_ta_enable_stats (const td_thragent_t *ta, int enable)
   130  {
   131    /* XXX We have to figure out what has to be done.  */
   132 -  LOG (__FUNCTION__);
   133 +  LOG ("td_ta_enable_stats");
   134  
   135    /* Test whether the TA parameter is ok.  */
   136    if (! ta_ok (ta))
   137 Index: td_ta_event_addr.c
   138 ===================================================================
   139 --- glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c~	Tue Nov  9 21:05:07 1999
   140 +++ glibc-2.1.3/linuxthreads_db/td_ta_event_addr.c	Sun Apr 11 22:23:28 2004
   141 @@ -29,7 +29,7 @@
   142    td_err_e res = TD_NOEVENT;
   143    const char *symbol = NULL;
   144  
   145 -  LOG (__FUNCTION__);
   146 +  LOG ("td_ta_event_addr");
   147  
   148    /* Test whether the TA parameter is ok.  */
   149    if (! ta_ok (ta))
   150 Index: td_ta_event_getmsg.c
   151 ===================================================================
   152 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_event_getmsg.c,v
   153 retrieving revision 1.5
   154 retrieving revision 1.6
   155 diff -u -r1.5 -r1.6
   156 --- libc/linuxthreads_db/td_ta_event_getmsg.c	6 Jul 2001 05:27:23 -0000	1.5
   157 +++ libc/linuxthreads_db/td_ta_event_getmsg.c	28 Dec 2001 16:41:29 -0000	1.6
   158 @@ -1,5 +1,5 @@
   159  /* Retrieve event.
   160 -   Copyright (C) 1999 Free Software Foundation, Inc.
   161 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   162     This file is part of the GNU C Library.
   163     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   164  
   165 @@ -32,7 +32,7 @@
   166    td_eventbuf_t event;
   167    psaddr_t addr;
   168  
   169 -  LOG (__FUNCTION__);
   170 +  LOG ("td_ta_event_getmsg");
   171  
   172    /* Test whether the TA parameter is ok.  */
   173    if (! ta_ok (ta))
   174 Index: td_ta_get_nthreads.c
   175 ===================================================================
   176 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_nthreads.c,v
   177 retrieving revision 1.5
   178 retrieving revision 1.6
   179 diff -u -r1.5 -r1.6
   180 --- libc/linuxthreads_db/td_ta_get_nthreads.c	6 Jul 2001 05:27:23 -0000	1.5
   181 +++ libc/linuxthreads_db/td_ta_get_nthreads.c	28 Dec 2001 16:41:29 -0000	1.6
   182 @@ -25,7 +25,7 @@
   183  {
   184    psaddr_t addr;
   185  
   186 -  LOG (__FUNCTION__);
   187 +  LOG ("td_ta_get_nthreads");
   188  
   189    /* Test whether the TA parameter is ok.  */
   190    if (! ta_ok (ta))
   191 Index: td_ta_get_ph.c
   192 ===================================================================
   193 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_ph.c,v
   194 retrieving revision 1.3
   195 retrieving revision 1.4
   196 diff -u -r1.3 -r1.4
   197 --- libc/linuxthreads_db/td_ta_get_ph.c	6 Jul 2001 05:27:23 -0000	1.3
   198 +++ libc/linuxthreads_db/td_ta_get_ph.c	28 Dec 2001 16:41:29 -0000	1.4
   199 @@ -1,5 +1,5 @@
   200  /* Get external process handle.
   201 -   Copyright (C) 1999 Free Software Foundation, Inc.
   202 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   203     This file is part of the GNU C Library.
   204     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   205  
   206 @@ -24,7 +24,7 @@
   207  td_err_e
   208  td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
   209  {
   210 -  LOG (__FUNCTION__);
   211 +  LOG ("td_ta_get_ph");
   212  
   213    /* Test whether the TA parameter is ok.  */
   214    if (! ta_ok (ta))
   215 Index: td_ta_get_stats.c
   216 ===================================================================
   217 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_get_stats.c,v
   218 retrieving revision 1.3
   219 retrieving revision 1.4
   220 diff -u -r1.3 -r1.4
   221 --- libc/linuxthreads_db/td_ta_get_stats.c	6 Jul 2001 05:27:23 -0000	1.3
   222 +++ libc/linuxthreads_db/td_ta_get_stats.c	28 Dec 2001 16:41:29 -0000	1.4
   223 @@ -1,5 +1,5 @@
   224  /* Retrieve statistics for process.
   225 -   Copyright (C) 1999 Free Software Foundation, Inc.
   226 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   227     This file is part of the GNU C Library.
   228     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   229  
   230 @@ -25,7 +25,7 @@
   231  td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
   232  {
   233    /* XXX We have to figure out what has to be done.  */
   234 -  LOG (__FUNCTION__);
   235 +  LOG ("td_ta_get_stats");
   236  
   237    /* Test whether the TA parameter is ok.  */
   238    if (! ta_ok (ta))
   239 Index: td_ta_map_id2thr.c
   240 ===================================================================
   241 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_id2thr.c,v
   242 retrieving revision 1.4
   243 retrieving revision 1.5
   244 diff -u -r1.4 -r1.5
   245 --- libc/linuxthreads_db/td_ta_map_id2thr.c	6 Jul 2001 05:27:23 -0000	1.4
   246 +++ libc/linuxthreads_db/td_ta_map_id2thr.c	28 Dec 2001 16:41:29 -0000	1.5
   247 @@ -28,7 +28,7 @@
   248    struct _pthread_descr_struct pds;
   249    int pthread_threads_max;
   250  
   251 -  LOG (__FUNCTION__);
   252 +  LOG ("td_ta_map_id2thr");
   253  
   254    /* Test whether the TA parameter is ok.  */
   255    if (! ta_ok (ta))
   256 Index: td_ta_map_lwp2thr.c
   257 ===================================================================
   258 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_map_lwp2thr.c,v
   259 retrieving revision 1.5
   260 retrieving revision 1.6
   261 diff -u -r1.5 -r1.6
   262 --- libc/linuxthreads_db/td_ta_map_lwp2thr.c	6 Jul 2001 05:27:23 -0000	1.5
   263 +++ libc/linuxthreads_db/td_ta_map_lwp2thr.c	28 Dec 2001 16:41:29 -0000	1.6
   264 @@ -1,5 +1,5 @@
   265  /* Which thread is running on an lwp?
   266 -   Copyright (C) 1999 Free Software Foundation, Inc.
   267 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   268     This file is part of the GNU C Library.
   269     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   270  
   271 @@ -34,7 +34,7 @@
   272  # define num 1
   273  #endif
   274  
   275 -  LOG (__FUNCTION__);
   276 +  LOG ("td_ta_map_lwp2thr");
   277  
   278    /* Test whether the TA parameter is ok.  */
   279    if (! ta_ok (ta))
   280 Index: td_ta_new.c
   281 ===================================================================
   282 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_new.c,v
   283 retrieving revision 1.10
   284 retrieving revision 1.11
   285 diff -u -r1.10 -r1.11
   286 --- libc/linuxthreads_db/td_ta_new.c	6 Jul 2001 05:27:23 -0000	1.10
   287 +++ libc/linuxthreads_db/td_ta_new.c	28 Dec 2001 16:41:29 -0000	1.11
   288 @@ -35,7 +35,7 @@
   289    psaddr_t addr;
   290    struct agent_list *elemp;
   291  
   292 -  LOG (__FUNCTION__);
   293 +  LOG ("td_ta_new");
   294  
   295    /* Get the global event mask.  This is one of the variables which
   296       are new in the thread library to enable debugging.  If it is
   297 Index: td_ta_reset_stats.c
   298 ===================================================================
   299 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_reset_stats.c,v
   300 retrieving revision 1.3
   301 retrieving revision 1.4
   302 diff -u -r1.3 -r1.4
   303 --- libc/linuxthreads_db/td_ta_reset_stats.c	6 Jul 2001 05:27:23 -0000	1.3
   304 +++ libc/linuxthreads_db/td_ta_reset_stats.c	28 Dec 2001 16:41:29 -0000	1.4
   305 @@ -1,5 +1,5 @@
   306  /* Reset statistics.
   307 -   Copyright (C) 1999 Free Software Foundation, Inc.
   308 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   309     This file is part of the GNU C Library.
   310     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   311  
   312 @@ -25,7 +25,7 @@
   313  td_ta_reset_stats (const td_thragent_t *ta)
   314  {
   315    /* XXX We have to figure out what has to be done.  */
   316 -  LOG (__FUNCTION__);
   317 +  LOG ("td_ta_reset_stats");
   318  
   319    /* Test whether the TA parameter is ok.  */
   320    if (! ta_ok (ta))
   321 Index: td_ta_set_event.c
   322 ===================================================================
   323 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_set_event.c,v
   324 retrieving revision 1.4
   325 retrieving revision 1.5
   326 diff -u -r1.4 -r1.5
   327 --- libc/linuxthreads_db/td_ta_set_event.c	6 Jul 2001 05:27:23 -0000	1.4
   328 +++ libc/linuxthreads_db/td_ta_set_event.c	28 Dec 2001 16:41:29 -0000	1.5
   329 @@ -1,5 +1,5 @@
   330  /* Globally enable events.
   331 -   Copyright (C) 1999 Free Software Foundation, Inc.
   332 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   333     This file is part of the GNU C Library.
   334     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   335  
   336 @@ -29,7 +29,7 @@
   337    td_thr_events_t old_event;
   338    int i;
   339  
   340 -  LOG (__FUNCTION__);
   341 +  LOG ("td_ta_set_event");
   342  
   343    /* Test whether the TA parameter is ok.  */
   344    if (! ta_ok (ta))
   345 Index: td_ta_setconcurrency.c
   346 ===================================================================
   347 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_setconcurrency.c,v
   348 retrieving revision 1.3
   349 retrieving revision 1.4
   350 diff -u -r1.3 -r1.4
   351 --- libc/linuxthreads_db/td_ta_setconcurrency.c	6 Jul 2001 05:27:23 -0000	1.3
   352 +++ libc/linuxthreads_db/td_ta_setconcurrency.c	28 Dec 2001 16:41:29 -0000	1.4
   353 @@ -1,5 +1,5 @@
   354  /* Set suggested concurrency level for process.
   355 -   Copyright (C) 1999 Free Software Foundation, Inc.
   356 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   357     This file is part of the GNU C Library.
   358     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   359  
   360 @@ -25,7 +25,7 @@
   361  td_ta_setconcurrency (const td_thragent_t *ta, int level)
   362  {
   363    /* This is something LinuxThreads does not support.  */
   364 -  LOG (__FUNCTION__);
   365 +  LOG ("td_ta_setconcurrency");
   366  
   367    /* Test whether the TA parameter is ok.  */
   368    if (! ta_ok (ta))
   369 Index: td_ta_thr_iter.c
   370 ===================================================================
   371 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_thr_iter.c,v
   372 retrieving revision 1.11
   373 retrieving revision 1.12
   374 diff -u -r1.11 -r1.12
   375 --- libc/linuxthreads_db/td_ta_thr_iter.c	6 Jul 2001 05:27:23 -0000	1.11
   376 +++ libc/linuxthreads_db/td_ta_thr_iter.c	28 Dec 2001 16:41:29 -0000	1.12
   377 @@ -86,7 +86,7 @@
   378  # define num 1
   379  #endif
   380  
   381 -  LOG (__FUNCTION__);
   382 +  LOG ("td_ta_thr_iter");
   383  
   384    /* Test whether the TA parameter is ok.  */
   385    if (! ta_ok (ta))
   386 Index: td_ta_tsd_iter.c
   387 ===================================================================
   388 RCS file: /cvs/glibc/libc/linuxthreads_db/td_ta_tsd_iter.c,v
   389 retrieving revision 1.4
   390 retrieving revision 1.5
   391 diff -u -r1.4 -r1.5
   392 --- libc/linuxthreads_db/td_ta_tsd_iter.c	6 Jul 2001 05:27:23 -0000	1.4
   393 +++ libc/linuxthreads_db/td_ta_tsd_iter.c	28 Dec 2001 16:41:29 -0000	1.5
   394 @@ -29,7 +29,7 @@
   395    int pthread_keys_max;
   396    int cnt;
   397  
   398 -  LOG (__FUNCTION__);
   399 +  LOG ("td_ta_tsd_iter");
   400  
   401    /* Test whether the TA parameter is ok.  */
   402    if (! ta_ok (ta))
   403 Index: td_thr_clear_event.c
   404 ===================================================================
   405 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_clear_event.c,v
   406 retrieving revision 1.3
   407 retrieving revision 1.4
   408 diff -u -r1.3 -r1.4
   409 --- libc/linuxthreads_db/td_thr_clear_event.c	6 Jul 2001 05:27:23 -0000	1.3
   410 +++ libc/linuxthreads_db/td_thr_clear_event.c	28 Dec 2001 16:41:29 -0000	1.4
   411 @@ -1,5 +1,5 @@
   412  /* Disable specific event for thread.
   413 -   Copyright (C) 1999 Free Software Foundation, Inc.
   414 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   415     This file is part of the GNU C Library.
   416     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   417  
   418 @@ -31,7 +31,7 @@
   419    td_thr_events_t old_event;
   420    int i;
   421  
   422 -  LOG (__FUNCTION__);
   423 +  LOG ("td_thr_clear_event");
   424  
   425    /* Write the new value into the thread data structure.  */
   426    if (ps_pdread (th->th_ta_p->ph,
   427 Index: td_thr_dbresume.c
   428 ===================================================================
   429 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbresume.c,v
   430 retrieving revision 1.2
   431 retrieving revision 1.3
   432 diff -u -r1.2 -r1.3
   433 --- libc/linuxthreads_db/td_thr_dbresume.c	6 Jul 2001 05:27:23 -0000	1.2
   434 +++ libc/linuxthreads_db/td_thr_dbresume.c	28 Dec 2001 16:41:29 -0000	1.3
   435 @@ -1,5 +1,5 @@
   436  /* Resume execution of given thread.
   437 -   Copyright (C) 1999 Free Software Foundation, Inc.
   438 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   439     This file is part of the GNU C Library.
   440     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   441  
   442 @@ -25,6 +25,6 @@
   443  td_thr_dbresume (const td_thrhandle_t *th)
   444  {
   445    /* XXX We have to figure out what has to be done.  */
   446 -  LOG (__FUNCTION__);
   447 +  LOG ("td_thr_dbresume");
   448    return TD_NOCAPAB;
   449  }
   450 Index: td_thr_dbsuspend.c
   451 ===================================================================
   452 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_dbsuspend.c,v
   453 retrieving revision 1.2
   454 retrieving revision 1.3
   455 diff -u -r1.2 -r1.3
   456 --- libc/linuxthreads_db/td_thr_dbsuspend.c	6 Jul 2001 05:27:23 -0000	1.2
   457 +++ libc/linuxthreads_db/td_thr_dbsuspend.c	28 Dec 2001 16:41:29 -0000	1.3
   458 @@ -1,5 +1,5 @@
   459  /* Suspend execution of given thread.
   460 -   Copyright (C) 1999 Free Software Foundation, Inc.
   461 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   462     This file is part of the GNU C Library.
   463     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   464  
   465 @@ -25,6 +25,6 @@
   466  td_thr_dbsuspend (const td_thrhandle_t *th)
   467  {
   468    /* XXX We have to figure out what has to be done.  */
   469 -  LOG (__FUNCTION__);
   470 +  LOG ("td_thr_dbsuspend");
   471    return TD_NOCAPAB;
   472  }
   473 Index: td_thr_event_enable.c
   474 ===================================================================
   475 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_enable.c,v
   476 retrieving revision 1.3
   477 retrieving revision 1.4
   478 diff -u -r1.3 -r1.4
   479 --- libc/linuxthreads_db/td_thr_event_enable.c	6 Jul 2001 05:27:23 -0000	1.3
   480 +++ libc/linuxthreads_db/td_thr_event_enable.c	28 Dec 2001 16:41:29 -0000	1.4
   481 @@ -1,5 +1,5 @@
   482  /* Enable event process-wide.
   483 -   Copyright (C) 1999 Free Software Foundation, Inc.
   484 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   485     This file is part of the GNU C Library.
   486     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   487  
   488 @@ -28,7 +28,7 @@
   489       const td_thrhandle_t *th;
   490       int onoff;
   491  {
   492 -  LOG (__FUNCTION__);
   493 +  LOG ("td_thr_event_enable");
   494  
   495    /* Write the new value into the thread data structure.  */
   496    if (ps_pdwrite (th->th_ta_p->ph,
   497 Index: td_thr_event_getmsg.c
   498 ===================================================================
   499 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_event_getmsg.c,v
   500 retrieving revision 1.3
   501 retrieving revision 1.4
   502 diff -u -r1.3 -r1.4
   503 --- libc/linuxthreads_db/td_thr_event_getmsg.c	6 Jul 2001 05:27:23 -0000	1.3
   504 +++ libc/linuxthreads_db/td_thr_event_getmsg.c	28 Dec 2001 16:41:29 -0000	1.4
   505 @@ -1,5 +1,5 @@
   506  /* Retrieve event.
   507 -   Copyright (C) 1999 Free Software Foundation, Inc.
   508 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   509     This file is part of the GNU C Library.
   510     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   511  
   512 @@ -29,7 +29,7 @@
   513  {
   514    td_eventbuf_t event;
   515  
   516 -  LOG (__FUNCTION__);
   517 +  LOG ("td_thr_event_getmsg");
   518  
   519    /* Read the even structure from the target.  */
   520    if (ps_pdread (th->th_ta_p->ph,
   521 Index: td_thr_get_info.c
   522 ===================================================================
   523 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_get_info.c,v
   524 retrieving revision 1.9
   525 retrieving revision 1.10
   526 diff -u -r1.9 -r1.10
   527 --- libc/linuxthreads_db/td_thr_get_info.c	6 Jul 2001 05:27:23 -0000	1.9
   528 +++ libc/linuxthreads_db/td_thr_get_info.c	28 Dec 2001 16:41:29 -0000	1.10
   529 @@ -29,7 +29,7 @@
   530  {
   531    struct _pthread_descr_struct pds;
   532  
   533 -  LOG (__FUNCTION__);
   534 +  LOG ("td_thr_get_info");
   535  
   536    /* Get the thread descriptor.  */
   537    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   538 Index: td_thr_getfpregs.c
   539 ===================================================================
   540 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getfpregs.c,v
   541 retrieving revision 1.4
   542 retrieving revision 1.5
   543 diff -u -r1.4 -r1.5
   544 --- libc/linuxthreads_db/td_thr_getfpregs.c	6 Jul 2001 05:27:23 -0000	1.4
   545 +++ libc/linuxthreads_db/td_thr_getfpregs.c	28 Dec 2001 16:41:29 -0000	1.5
   546 @@ -26,7 +26,7 @@
   547  {
   548    struct _pthread_descr_struct pds;
   549  
   550 -  LOG (__FUNCTION__);
   551 +  LOG ("td_thr_getfpregs");
   552  
   553    /* We have to get the state and the PID for this thread.  */
   554    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   555 Index: td_thr_getgregs.c
   556 ===================================================================
   557 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getgregs.c,v
   558 retrieving revision 1.8
   559 retrieving revision 1.9
   560 diff -u -r1.8 -r1.9
   561 --- libc/linuxthreads_db/td_thr_getgregs.c	6 Jul 2001 05:27:23 -0000	1.8
   562 +++ libc/linuxthreads_db/td_thr_getgregs.c	28 Dec 2001 16:41:29 -0000	1.9
   563 @@ -26,7 +26,7 @@
   564  {
   565    struct _pthread_descr_struct pds;
   566  
   567 -  LOG (__FUNCTION__);
   568 +  LOG ("td_thr_getgregs");
   569  
   570    /* We have to get the state and the PID for this thread.  */
   571    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   572 Index: td_thr_getxregs.c
   573 ===================================================================
   574 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregs.c,v
   575 retrieving revision 1.2
   576 retrieving revision 1.3
   577 diff -u -r1.2 -r1.3
   578 --- libc/linuxthreads_db/td_thr_getxregs.c	6 Jul 2001 05:27:23 -0000	1.2
   579 +++ libc/linuxthreads_db/td_thr_getxregs.c	28 Dec 2001 16:41:29 -0000	1.3
   580 @@ -1,5 +1,5 @@
   581  /* Get a thread's extra state register set.
   582 -   Copyright (C) 1999 Free Software Foundation, Inc.
   583 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   584     This file is part of the GNU C Library.
   585     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   586  
   587 @@ -25,6 +25,6 @@
   588  td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
   589  {
   590    /* XXX This might be platform specific.  */
   591 -  LOG (__FUNCTION__);
   592 +  LOG ("td_thr_getxregs");
   593    return TD_NOXREGS;
   594  }
   595 Index: td_thr_getxregsize.c
   596 ===================================================================
   597 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_getxregsize.c,v
   598 retrieving revision 1.2
   599 retrieving revision 1.3
   600 diff -u -r1.2 -r1.3
   601 --- libc/linuxthreads_db/td_thr_getxregsize.c	6 Jul 2001 05:27:23 -0000	1.2
   602 +++ libc/linuxthreads_db/td_thr_getxregsize.c	28 Dec 2001 16:41:29 -0000	1.3
   603 @@ -1,5 +1,5 @@
   604  /* Get the size of the extra state register set for this architecture.
   605 -   Copyright (C) 1999 Free Software Foundation, Inc.
   606 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   607     This file is part of the GNU C Library.
   608     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   609  
   610 @@ -25,6 +25,6 @@
   611  td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
   612  {
   613    /* XXX This might be platform specific.  */
   614 -  LOG (__FUNCTION__);
   615 +  LOG ("td_thr_getxregsize");
   616    return TD_NOXREGS;
   617  }
   618 Index: td_thr_set_event.c
   619 ===================================================================
   620 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_set_event.c,v
   621 retrieving revision 1.4
   622 retrieving revision 1.5
   623 diff -u -r1.4 -r1.5
   624 --- libc/linuxthreads_db/td_thr_set_event.c	6 Jul 2001 05:27:23 -0000	1.4
   625 +++ libc/linuxthreads_db/td_thr_set_event.c	28 Dec 2001 16:41:29 -0000	1.5
   626 @@ -1,5 +1,5 @@
   627  /* Enable specific event for thread.
   628 -   Copyright (C) 1999 Free Software Foundation, Inc.
   629 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   630     This file is part of the GNU C Library.
   631     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   632  
   633 @@ -31,7 +31,7 @@
   634    td_thr_events_t old_event;
   635    int i;
   636  
   637 -  LOG (__FUNCTION__);
   638 +  LOG ("td_thr_set_event");
   639  
   640    /* Write the new value into the thread data structure.  */
   641    if (ps_pdread (th->th_ta_p->ph,
   642 Index: td_thr_setfpregs.c
   643 ===================================================================
   644 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setfpregs.c,v
   645 retrieving revision 1.4
   646 retrieving revision 1.5
   647 diff -u -r1.4 -r1.5
   648 --- libc/linuxthreads_db/td_thr_setfpregs.c	6 Jul 2001 05:27:23 -0000	1.4
   649 +++ libc/linuxthreads_db/td_thr_setfpregs.c	28 Dec 2001 16:41:29 -0000	1.5
   650 @@ -26,7 +26,7 @@
   651  {
   652    struct _pthread_descr_struct pds;
   653  
   654 -  LOG (__FUNCTION__);
   655 +  LOG ("td_thr_setfpregs");
   656  
   657    /* We have to get the state and the PID for this thread.  */
   658    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   659 Index: td_thr_setgregs.c
   660 ===================================================================
   661 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setgregs.c,v
   662 retrieving revision 1.6
   663 retrieving revision 1.7
   664 diff -u -r1.6 -r1.7
   665 --- libc/linuxthreads_db/td_thr_setgregs.c	6 Jul 2001 05:27:23 -0000	1.6
   666 +++ libc/linuxthreads_db/td_thr_setgregs.c	28 Dec 2001 16:41:29 -0000	1.7
   667 @@ -26,7 +26,7 @@
   668  {
   669    struct _pthread_descr_struct pds;
   670  
   671 -  LOG (__FUNCTION__);
   672 +  LOG ("td_thr_setgregs");
   673  
   674    /* We have to get the state and the PID for this thread.  */
   675    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   676 Index: td_thr_setprio.c
   677 ===================================================================
   678 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setprio.c,v
   679 retrieving revision 1.2
   680 retrieving revision 1.3
   681 diff -u -r1.2 -r1.3
   682 --- libc/linuxthreads_db/td_thr_setprio.c	6 Jul 2001 05:27:23 -0000	1.2
   683 +++ libc/linuxthreads_db/td_thr_setprio.c	28 Dec 2001 16:41:29 -0000	1.3
   684 @@ -1,5 +1,5 @@
   685  /* Set a thread's priority.
   686 -   Copyright (C) 1999 Free Software Foundation, Inc.
   687 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   688     This file is part of the GNU C Library.
   689     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   690  
   691 @@ -25,6 +25,6 @@
   692  td_thr_setprio (const td_thrhandle_t *th, int prio)
   693  {
   694    /* XXX We have to figure out what has to be done.  */
   695 -  LOG (__FUNCTION__);
   696 +  LOG ("td_thr_setprio");
   697    return TD_OK;
   698  }
   699 Index: td_thr_setsigpending.c
   700 ===================================================================
   701 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setsigpending.c,v
   702 retrieving revision 1.2
   703 retrieving revision 1.3
   704 diff -u -r1.2 -r1.3
   705 --- libc/linuxthreads_db/td_thr_setsigpending.c	6 Jul 2001 05:27:23 -0000	1.2
   706 +++ libc/linuxthreads_db/td_thr_setsigpending.c	28 Dec 2001 16:41:29 -0000	1.3
   707 @@ -1,5 +1,5 @@
   708  /* Raise a signal for a thread.
   709 -   Copyright (C) 1999 Free Software Foundation, Inc.
   710 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   711     This file is part of the GNU C Library.
   712     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   713  
   714 @@ -26,6 +26,6 @@
   715  		      const sigset_t *ss)
   716  {
   717    /* XXX We have to figure out what has to be done.  */
   718 -  LOG (__FUNCTION__);
   719 +  LOG ("td_thr_setsigpending");
   720    return TD_OK;
   721  }
   722 Index: td_thr_setxregs.c
   723 ===================================================================
   724 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_setxregs.c,v
   725 retrieving revision 1.2
   726 retrieving revision 1.3
   727 diff -u -r1.2 -r1.3
   728 --- libc/linuxthreads_db/td_thr_setxregs.c	6 Jul 2001 05:27:23 -0000	1.2
   729 +++ libc/linuxthreads_db/td_thr_setxregs.c	28 Dec 2001 16:41:29 -0000	1.3
   730 @@ -1,5 +1,5 @@
   731  /* Set a thread's extra state register set.
   732 -   Copyright (C) 1999 Free Software Foundation, Inc.
   733 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   734     This file is part of the GNU C Library.
   735     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   736  
   737 @@ -25,6 +25,6 @@
   738  td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
   739  {
   740    /* XXX This might have to be platform specific.  */
   741 -  LOG (__FUNCTION__);
   742 +  LOG ("td_thr_setxregs");
   743    return TD_NOXREGS;
   744  }
   745 Index: td_thr_sigsetmask.c
   746 ===================================================================
   747 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_sigsetmask.c,v
   748 retrieving revision 1.2
   749 retrieving revision 1.3
   750 diff -u -r1.2 -r1.3
   751 --- libc/linuxthreads_db/td_thr_sigsetmask.c	6 Jul 2001 05:27:23 -0000	1.2
   752 +++ libc/linuxthreads_db/td_thr_sigsetmask.c	28 Dec 2001 16:41:29 -0000	1.3
   753 @@ -1,5 +1,5 @@
   754  /* Set a thread's signal mask.
   755 -   Copyright (C) 1999 Free Software Foundation, Inc.
   756 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   757     This file is part of the GNU C Library.
   758     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   759  
   760 @@ -25,6 +25,6 @@
   761  td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
   762  {
   763    /* XXX We have to figure out what has to be done.  */
   764 -  LOG (__FUNCTION__);
   765 +  LOG ("td_thr_sigsetmask");
   766    return TD_OK;
   767  }
   768 Index: td_thr_tsd.c
   769 ===================================================================
   770 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_tsd.c,v
   771 retrieving revision 1.2
   772 retrieving revision 1.3
   773 diff -u -r1.2 -r1.3
   774 --- libc/linuxthreads_db/td_thr_tsd.c	6 Jul 2001 05:27:23 -0000	1.2
   775 +++ libc/linuxthreads_db/td_thr_tsd.c	28 Dec 2001 16:41:29 -0000	1.3
   776 @@ -1,5 +1,5 @@
   777  /* Get a thread-specific data pointer for a thread.
   778 -   Copyright (C) 1999 Free Software Foundation, Inc.
   779 +   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
   780     This file is part of the GNU C Library.
   781     Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
   782  
   783 @@ -33,7 +33,7 @@
   784    unsigned int idx2nd;
   785    void *p;
   786  
   787 -  LOG (__FUNCTION__);
   788 +  LOG ("td_thr_tsd");
   789  
   790    /* Get the thread descriptor.  */
   791    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   792 Index: td_thr_validate.c
   793 ===================================================================
   794 RCS file: /cvs/glibc/libc/linuxthreads_db/td_thr_validate.c,v
   795 retrieving revision 1.4
   796 retrieving revision 1.5
   797 diff -u -r1.4 -r1.5
   798 --- libc/linuxthreads_db/td_thr_validate.c	6 Jul 2001 05:27:23 -0000	1.4
   799 +++ libc/linuxthreads_db/td_thr_validate.c	28 Dec 2001 16:41:29 -0000	1.5
   800 @@ -28,7 +28,7 @@
   801    int pthread_threads_max = th->th_ta_p->pthread_threads_max;
   802    int cnt;
   803  
   804 -  LOG (__FUNCTION__);
   805 +  LOG ("td_thr_validate");
   806  
   807    /* Now get all descriptors, one after the other.  */
   808    for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)