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