patches/glibc/linuxthreads-2.2.2/glibc-linuxthreads-2.2.2-allow-gcc3.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
     2 td_init.c:30: error: parse error before string constant
     3 td_init.c:30: error: parse error before string constant
     4 
     5 From http://sources.redhat.com/ml/crossgcc/2005-01/msg00106.html :
     6 ---
     7 Date: Mon, 31 Jan 2005 10:27:32 -0800
     8 Message-ID: <BF124E1E7928E546B5705D93C699ABDC0C7E99@glimmer.glimmerglassnet.com>
     9 From: "Vince Chen" <chen at glimmerglass dot com>
    10 To: <crossgcc at sources dot redhat dot com>
    11 
    12 I needed to build glibc-2.2.2 using gcc-3.x to support
    13 some of our older redhat machines.
    14 
    15 This file patches glibc-linuxthreads-2.2.2.
    16 
    17 When using crosstool, I placed it in:
    18 
    19    patches/glibc-linuxthreads-2.2.2/linuxthreads-gcc3.patch
    20 
    21 (you also need the glibc-gcc3.patch)
    22 
    23 -vince
    24 ---
    25 [removed parts already in threadparam.patch]
    26 
    27 ===================================================================
    28 --- glibc-2.2.2/linuxthreads_db.orig/td_init.c	1999-11-22 12:52:34.000000000 -0800
    29 +++ glibc-2.2.2/linuxthreads_db/td_init.c	2005-01-27 19:05:36.000000000 -0800
    30 @@ -27,6 +27,6 @@
    31  td_init (void)
    32  {
    33    /* XXX We have to figure out what has to be done.  */
    34 -  LOG (__FUNCTION__);
    35 +  LOG ("td_init");
    36    return TD_OK;
    37  }
    38 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_log.c glibc-2.2.2/linuxthreads_db/td_log.c
    39 --- glibc-2.2.2/linuxthreads_db.orig/td_log.c	1999-10-07 23:31:32.000000000 -0700
    40 +++ glibc-2.2.2/linuxthreads_db/td_log.c	2005-01-27 19:05:29.000000000 -0800
    41 @@ -27,6 +27,6 @@
    42    /* This interface is deprecated in the Sun interface.  We provide it
    43       for compatibility but don't do anyhting ourself.  We might in
    44       future do some logging if this seems reasonable.  */
    45 -  LOG (__FUNCTION__);
    46 +  LOG ("td_log");
    47    return TD_OK;
    48  }
    49 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c
    50 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c	1999-11-08 14:52:10.000000000 -0800
    51 +++ glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c	2005-01-27 19:05:20.000000000 -0800
    52 @@ -22,14 +22,12 @@
    53  
    54  
    55  td_err_e
    56 -td_ta_clear_event (ta, event)
    57 -     const td_thragent_t *ta;
    58 -     td_thr_events_t *event;
    59 +td_ta_clear_event (const td_thragent_t *ta, td_thr_events_t *event)
    60  {
    61    td_thr_events_t old_event;
    62    int i;
    63  
    64 -  LOG (__FUNCTION__);
    65 +  LOG ("td_ta_clear_event");
    66  
    67    /* Test whether the TA parameter is ok.  */
    68    if (! ta_ok (ta))
    69 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c glibc-2.2.2/linuxthreads_db/td_ta_delete.c
    70 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c	1999-11-08 14:52:10.000000000 -0800
    71 +++ glibc-2.2.2/linuxthreads_db/td_ta_delete.c	2005-01-27 19:04:59.000000000 -0800
    72 @@ -26,7 +26,7 @@
    73  td_err_e
    74  td_ta_delete (td_thragent_t *ta)
    75  {
    76 -  LOG (__FUNCTION__);
    77 +  LOG ("td_ta_delete");
    78  
    79    /* Safety check.  */
    80    if (ta == NULL || __td_agent_list == NULL)
    81 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c
    82 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c	1999-11-08 14:52:10.000000000 -0800
    83 +++ glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c	2005-01-27 19:04:50.000000000 -0800
    84 @@ -25,7 +25,7 @@
    85  td_ta_enable_stats (const td_thragent_t *ta, int enable)
    86  {
    87    /* XXX We have to figure out what has to be done.  */
    88 -  LOG (__FUNCTION__);
    89 +  LOG ("td_ta_enable_stats");
    90  
    91    /* Test whether the TA parameter is ok.  */
    92    if (! ta_ok (ta))
    93 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c
    94 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c	1999-11-08 14:52:10.000000000 -0800
    95 +++ glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c	2005-01-27 19:04:41.000000000 -0800
    96 @@ -29,7 +29,7 @@
    97    td_err_e res = TD_NOEVENT;
    98    const char *symbol = NULL;
    99  
   100 -  LOG (__FUNCTION__);
   101 +  LOG ("td_ta_event_addr");
   102  
   103    /* Test whether the TA parameter is ok.  */
   104    if (! ta_ok (ta))
   105 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c
   106 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c	1999-11-08 14:52:10.000000000 -0800
   107 +++ glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c	2005-01-27 19:04:33.000000000 -0800
   108 @@ -32,7 +32,7 @@
   109    td_eventbuf_t event;
   110    psaddr_t addr;
   111  
   112 -  LOG (__FUNCTION__);
   113 +  LOG ("td_ta_event_getmsg");
   114  
   115    /* Test whether the TA parameter is ok.  */
   116    if (! ta_ok (ta))
   117 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c
   118 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c	1999-11-08 14:52:10.000000000 -0800
   119 +++ glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c	2005-01-27 19:04:25.000000000 -0800
   120 @@ -26,7 +26,7 @@
   121  {
   122    psaddr_t addr;
   123  
   124 -  LOG (__FUNCTION__);
   125 +  LOG ("td_ta_get_nthreads");
   126  
   127    /* Test whether the TA parameter is ok.  */
   128    if (! ta_ok (ta))
   129 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c
   130 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c	1999-11-08 14:52:10.000000000 -0800
   131 +++ glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c	2005-01-27 19:04:17.000000000 -0800
   132 @@ -24,7 +24,7 @@
   133  td_err_e
   134  td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
   135  {
   136 -  LOG (__FUNCTION__);
   137 +  LOG ("td_ta_get_ph");
   138  
   139    /* Test whether the TA parameter is ok.  */
   140    if (! ta_ok (ta))
   141 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c
   142 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c	1999-11-08 14:52:10.000000000 -0800
   143 +++ glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c	2005-01-27 19:04:06.000000000 -0800
   144 @@ -25,7 +25,7 @@
   145  td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
   146  {
   147    /* XXX We have to figure out what has to be done.  */
   148 -  LOG (__FUNCTION__);
   149 +  LOG ("td_ta_get_stats");
   150  
   151    /* Test whether the TA parameter is ok.  */
   152    if (! ta_ok (ta))
   153 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c
   154 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c	1999-11-08 14:52:10.000000000 -0800
   155 +++ glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c	2005-01-27 19:03:54.000000000 -0800
   156 @@ -28,7 +28,7 @@
   157    struct _pthread_descr_struct pds;
   158    int pthread_threads_max;
   159  
   160 -  LOG (__FUNCTION__);
   161 +  LOG ("td_ta_map_id2thr");
   162  
   163    /* Test whether the TA parameter is ok.  */
   164    if (! ta_ok (ta))
   165 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c
   166 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c	1999-11-22 18:25:26.000000000 -0800
   167 +++ glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c	2005-01-27 19:03:46.000000000 -0800
   168 @@ -34,7 +34,7 @@
   169  # define num 1
   170  #endif
   171  
   172 -  LOG (__FUNCTION__);
   173 +  LOG ("td_ta_map_lwp2thr");
   174  
   175    /* Test whether the TA parameter is ok.  */
   176    if (! ta_ok (ta))
   177 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c glibc-2.2.2/linuxthreads_db/td_ta_new.c
   178 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c	1999-11-08 14:52:10.000000000 -0800
   179 +++ glibc-2.2.2/linuxthreads_db/td_ta_new.c	2005-01-27 19:03:36.000000000 -0800
   180 @@ -36,7 +36,7 @@
   181    psaddr_t addr;
   182    struct agent_list *elemp;
   183  
   184 -  LOG (__FUNCTION__);
   185 +  LOG ("td_ta_new");
   186  
   187    /* Get the global event mask.  This is one of the variables which
   188       are new in the thread library to enable debugging.  If it is
   189 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c
   190 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c	1999-11-08 14:52:10.000000000 -0800
   191 +++ glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c	2005-01-27 19:03:27.000000000 -0800
   192 @@ -25,7 +25,7 @@
   193  td_ta_reset_stats (const td_thragent_t *ta)
   194  {
   195    /* XXX We have to figure out what has to be done.  */
   196 -  LOG (__FUNCTION__);
   197 +  LOG ("td_ta_reset_stats");
   198  
   199    /* Test whether the TA parameter is ok.  */
   200    if (! ta_ok (ta))
   201 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c glibc-2.2.2/linuxthreads_db/td_ta_set_event.c
   202 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c	1999-11-08 14:52:10.000000000 -0800
   203 +++ glibc-2.2.2/linuxthreads_db/td_ta_set_event.c	2005-01-27 19:03:15.000000000 -0800
   204 @@ -22,14 +22,12 @@
   205  
   206  
   207  td_err_e
   208 -td_ta_set_event (ta, event)
   209 -     const td_thragent_t *ta;
   210 -     td_thr_events_t *event;
   211 +td_ta_set_event (const td_thragent_t *ta, td_thr_events_t *event)
   212  {
   213    td_thr_events_t old_event;
   214    int i;
   215  
   216 -  LOG (__FUNCTION__);
   217 +  LOG ("td_ta_set_event");
   218  
   219    /* Test whether the TA parameter is ok.  */
   220    if (! ta_ok (ta))
   221 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c
   222 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c	1999-11-08 14:52:10.000000000 -0800
   223 +++ glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c	2005-01-27 19:02:48.000000000 -0800
   224 @@ -25,7 +25,7 @@
   225  td_ta_setconcurrency (const td_thragent_t *ta, int level)
   226  {
   227    /* This is something LinuxThreads does not support.  */
   228 -  LOG (__FUNCTION__);
   229 +  LOG ("td_ta_setconcurrency");
   230  
   231    /* Test whether the TA parameter is ok.  */
   232    if (! ta_ok (ta))
   233 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c
   234 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c	2000-02-28 12:34:06.000000000 -0800
   235 +++ glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c	2005-01-27 19:02:39.000000000 -0800
   236 @@ -86,7 +86,7 @@
   237  # define num 1
   238  #endif
   239  
   240 -  LOG (__FUNCTION__);
   241 +  LOG ("td_ta_thr_iter");
   242  
   243    /* Test whether the TA parameter is ok.  */
   244    if (! ta_ok (ta))
   245 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c
   246 --- glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c	2000-02-28 12:34:06.000000000 -0800
   247 +++ glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c	2005-01-27 19:02:29.000000000 -0800
   248 @@ -29,7 +29,7 @@
   249    int pthread_keys_max;
   250    int cnt;
   251  
   252 -  LOG (__FUNCTION__);
   253 +  LOG ("td_ta_tsd_iter");
   254  
   255    /* Test whether the TA parameter is ok.  */
   256    if (! ta_ok (ta))
   257 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c
   258 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c	1999-11-03 10:37:18.000000000 -0800
   259 +++ glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c	2005-01-27 19:02:19.000000000 -0800
   260 @@ -24,14 +24,12 @@
   261  
   262  
   263  td_err_e
   264 -td_thr_clear_event (th, event)
   265 -     const td_thrhandle_t *th;
   266 -     td_thr_events_t *event;
   267 +td_thr_clear_event (const td_thrhandle_t *th, td_thr_events_t *event)
   268  {
   269    td_thr_events_t old_event;
   270    int i;
   271  
   272 -  LOG (__FUNCTION__);
   273 +  LOG ("td_thr_clear_event");
   274  
   275    /* Write the new value into the thread data structure.  */
   276    if (ps_pdread (th->th_ta_p->ph,
   277 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c
   278 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c	1999-10-07 23:40:02.000000000 -0700
   279 +++ glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c	2005-01-27 19:01:54.000000000 -0800
   280 @@ -25,6 +25,6 @@
   281  td_thr_dbresume (const td_thrhandle_t *th)
   282  {
   283    /* XXX We have to figure out what has to be done.  */
   284 -  LOG (__FUNCTION__);
   285 +  LOG ("td_thr_dbresume");
   286    return TD_NOCAPAB;
   287  }
   288 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c
   289 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c	1999-10-07 23:40:33.000000000 -0700
   290 +++ glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c	2005-01-27 19:01:46.000000000 -0800
   291 @@ -25,6 +25,6 @@
   292  td_thr_dbsuspend (const td_thrhandle_t *th)
   293  {
   294    /* XXX We have to figure out what has to be done.  */
   295 -  LOG (__FUNCTION__);
   296 +  LOG ("td_thr_dbsuspend");
   297    return TD_NOCAPAB;
   298  }
   299 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c
   300 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c	1999-11-02 16:06:10.000000000 -0800
   301 +++ glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c	2005-01-27 19:01:35.000000000 -0800
   302 @@ -24,11 +24,9 @@
   303  
   304  
   305  td_err_e
   306 -td_thr_event_enable (th, onoff)
   307 -     const td_thrhandle_t *th;
   308 -     int onoff;
   309 +td_thr_event_enable (const td_thrhandle_t *th, int onoff)
   310  {
   311 -  LOG (__FUNCTION__);
   312 +  LOG ("td_thr_event_enable");
   313  
   314    /* Write the new value into the thread data structure.  */
   315    if (ps_pdwrite (th->th_ta_p->ph,
   316 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c
   317 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c	1999-11-02 16:06:10.000000000 -0800
   318 +++ glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c	2005-01-27 19:01:11.000000000 -0800
   319 @@ -29,7 +29,7 @@
   320  {
   321    td_eventbuf_t event;
   322  
   323 -  LOG (__FUNCTION__);
   324 +  LOG ("td_thr_event_getmsg");
   325  
   326    /* Read the even structure from the target.  */
   327    if (ps_pdread (th->th_ta_p->ph,
   328 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c glibc-2.2.2/linuxthreads_db/td_thr_get_info.c
   329 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c	2000-05-01 14:56:42.000000000 -0700
   330 +++ glibc-2.2.2/linuxthreads_db/td_thr_get_info.c	2005-01-27 19:00:59.000000000 -0800
   331 @@ -29,7 +29,7 @@
   332  {
   333    struct _pthread_descr_struct pds;
   334  
   335 -  LOG (__FUNCTION__);
   336 +  LOG ("td_thr_get_info");
   337  
   338    /* Get the thread descriptor.  */
   339    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   340 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c
   341 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c	1999-11-02 16:06:10.000000000 -0800
   342 +++ glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c	2005-01-27 19:00:49.000000000 -0800
   343 @@ -26,7 +26,7 @@
   344  {
   345    struct _pthread_descr_struct pds;
   346  
   347 -  LOG (__FUNCTION__);
   348 +  LOG ("td_thr_getfpregs");
   349  
   350    /* We have to get the state and the PID for this thread.  */
   351    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   352 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c
   353 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c	2000-02-11 15:48:51.000000000 -0800
   354 +++ glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c	2005-01-27 19:00:37.000000000 -0800
   355 @@ -26,7 +26,7 @@
   356  {
   357    struct _pthread_descr_struct pds;
   358  
   359 -  LOG (__FUNCTION__);
   360 +  LOG ("td_thr_getgregs");
   361  
   362    /* We have to get the state and the PID for this thread.  */
   363    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   364 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c
   365 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c	1999-10-07 23:46:09.000000000 -0700
   366 +++ glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c	2005-01-27 19:00:26.000000000 -0800
   367 @@ -25,6 +25,6 @@
   368  td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
   369  {
   370    /* XXX This might be platform specific.  */
   371 -  LOG (__FUNCTION__);
   372 +  LOG ("td_thr_getxregs");
   373    return TD_NOXREGS;
   374  }
   375 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c
   376 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c	1999-10-07 23:46:33.000000000 -0700
   377 +++ glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c	2005-01-27 19:00:16.000000000 -0800
   378 @@ -25,6 +25,6 @@
   379  td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
   380  {
   381    /* XXX This might be platform specific.  */
   382 -  LOG (__FUNCTION__);
   383 +  LOG ("td_thr_getxregsize");
   384    return TD_NOXREGS;
   385  }
   386 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c glibc-2.2.2/linuxthreads_db/td_thr_set_event.c
   387 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c	1999-11-03 10:37:18.000000000 -0800
   388 +++ glibc-2.2.2/linuxthreads_db/td_thr_set_event.c	2005-01-27 19:00:08.000000000 -0800
   389 @@ -24,14 +24,12 @@
   390  
   391  
   392  td_err_e
   393 -td_thr_set_event (th, event)
   394 -     const td_thrhandle_t *th;
   395 -     td_thr_events_t *event;
   396 +td_thr_set_event (const td_thrhandle_t *th, td_thr_events_t *event)
   397  {
   398    td_thr_events_t old_event;
   399    int i;
   400  
   401 -  LOG (__FUNCTION__);
   402 +  LOG ("td_thr_set_event");
   403  
   404    /* Write the new value into the thread data structure.  */
   405    if (ps_pdread (th->th_ta_p->ph,
   406 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c
   407 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c	1999-11-02 16:06:10.000000000 -0800
   408 +++ glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c	2005-01-27 18:59:06.000000000 -0800
   409 @@ -26,7 +26,7 @@
   410  {
   411    struct _pthread_descr_struct pds;
   412  
   413 -  LOG (__FUNCTION__);
   414 +  LOG ("td_thr_setfpregs");
   415  
   416    /* We have to get the state and the PID for this thread.  */
   417    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   418 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c
   419 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c	2000-02-11 15:48:51.000000000 -0800
   420 +++ glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c	2005-01-27 18:58:57.000000000 -0800
   421 @@ -26,7 +26,7 @@
   422  {
   423    struct _pthread_descr_struct pds;
   424  
   425 -  LOG (__FUNCTION__);
   426 +  LOG ("td_thr_setgregs");
   427  
   428    /* We have to get the state and the PID for this thread.  */
   429    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   430 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c glibc-2.2.2/linuxthreads_db/td_thr_setprio.c
   431 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c	1999-10-07 23:49:11.000000000 -0700
   432 +++ glibc-2.2.2/linuxthreads_db/td_thr_setprio.c	2005-01-27 18:58:46.000000000 -0800
   433 @@ -25,6 +25,6 @@
   434  td_thr_setprio (const td_thrhandle_t *th, int prio)
   435  {
   436    /* XXX We have to figure out what has to be done.  */
   437 -  LOG (__FUNCTION__);
   438 +  LOG ("td_thr_setprio");
   439    return TD_OK;
   440  }
   441 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c
   442 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c	1999-10-07 23:49:38.000000000 -0700
   443 +++ glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c	2005-01-27 18:58:34.000000000 -0800
   444 @@ -26,6 +26,6 @@
   445  		      const sigset_t *ss)
   446  {
   447    /* XXX We have to figure out what has to be done.  */
   448 -  LOG (__FUNCTION__);
   449 +  LOG ("td_thr_setsigpending");
   450    return TD_OK;
   451  }
   452 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c
   453 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c	1999-10-07 23:48:20.000000000 -0700
   454 +++ glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c	2005-01-27 18:58:21.000000000 -0800
   455 @@ -25,6 +25,6 @@
   456  td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
   457  {
   458    /* XXX This might have to be platform specific.  */
   459 -  LOG (__FUNCTION__);
   460 +  LOG ("td_thr_setxregs");
   461    return TD_NOXREGS;
   462  }
   463 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c
   464 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c	1999-10-07 23:50:34.000000000 -0700
   465 +++ glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c	2005-01-27 18:57:58.000000000 -0800
   466 @@ -25,6 +25,6 @@
   467  td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
   468  {
   469    /* XXX We have to figure out what has to be done.  */
   470 -  LOG (__FUNCTION__);
   471 +  LOG ("td_thr_sigsetmask");
   472    return TD_OK;
   473  }
   474 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c glibc-2.2.2/linuxthreads_db/td_thr_tsd.c
   475 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c	1999-10-07 23:52:15.000000000 -0700
   476 +++ glibc-2.2.2/linuxthreads_db/td_thr_tsd.c	2005-01-27 18:58:09.000000000 -0800
   477 @@ -33,7 +33,7 @@
   478    unsigned int idx2nd;
   479    void *p;
   480  
   481 -  LOG (__FUNCTION__);
   482 +  LOG ("td_thr_tsd");
   483  
   484    /* Get the thread descriptor.  */
   485    if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
   486 diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c glibc-2.2.2/linuxthreads_db/td_thr_validate.c
   487 --- glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c	1999-10-14 17:24:20.000000000 -0700
   488 +++ glibc-2.2.2/linuxthreads_db/td_thr_validate.c	2005-01-27 18:57:41.000000000 -0800
   489 @@ -28,7 +28,7 @@
   490    int pthread_threads_max = th->th_ta_p->pthread_threads_max;
   491    int cnt;
   492  
   493 -  LOG (__FUNCTION__);
   494 +  LOG ("td_thr_validate");
   495  
   496    /* Now get all descriptors, one after the other.  */
   497    for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)