yann@1: Fixes yann@1: td_init.c:30: error: parse error before string constant yann@1: td_init.c:30: error: parse error before string constant yann@1: yann@1: From http://sources.redhat.com/ml/crossgcc/2005-01/msg00106.html : yann@1: --- yann@1: Date: Mon, 31 Jan 2005 10:27:32 -0800 yann@1: Message-ID: yann@1: From: "Vince Chen" yann@1: To: yann@1: yann@1: I needed to build glibc-2.2.2 using gcc-3.x to support yann@1: some of our older redhat machines. yann@1: yann@1: This file patches glibc-linuxthreads-2.2.2. yann@1: yann@1: When using crosstool, I placed it in: yann@1: yann@1: patches/glibc-linuxthreads-2.2.2/linuxthreads-gcc3.patch yann@1: yann@1: (you also need the glibc-gcc3.patch) yann@1: yann@1: -vince yann@1: --- yann@1: [removed parts already in threadparam.patch] yann@1: yann@1: =================================================================== yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_init.c 1999-11-22 12:52:34.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_init.c 2005-01-27 19:05:36.000000000 -0800 yann@1: @@ -27,6 +27,6 @@ yann@1: td_init (void) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_init"); yann@1: return TD_OK; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_log.c glibc-2.2.2/linuxthreads_db/td_log.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_log.c 1999-10-07 23:31:32.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_log.c 2005-01-27 19:05:29.000000000 -0800 yann@1: @@ -27,6 +27,6 @@ yann@1: /* This interface is deprecated in the Sun interface. We provide it yann@1: for compatibility but don't do anyhting ourself. We might in yann@1: future do some logging if this seems reasonable. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_log"); yann@1: return TD_OK; yann@1: } yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_clear_event.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_clear_event.c 2005-01-27 19:05:20.000000000 -0800 yann@1: @@ -22,14 +22,12 @@ yann@1: yann@1: yann@1: td_err_e yann@1: -td_ta_clear_event (ta, event) yann@1: - const td_thragent_t *ta; yann@1: - td_thr_events_t *event; yann@1: +td_ta_clear_event (const td_thragent_t *ta, td_thr_events_t *event) yann@1: { yann@1: td_thr_events_t old_event; yann@1: int i; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_clear_event"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c glibc-2.2.2/linuxthreads_db/td_ta_delete.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_delete.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_delete.c 2005-01-27 19:04:59.000000000 -0800 yann@1: @@ -26,7 +26,7 @@ yann@1: td_err_e yann@1: td_ta_delete (td_thragent_t *ta) yann@1: { yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_delete"); yann@1: yann@1: /* Safety check. */ yann@1: if (ta == NULL || __td_agent_list == NULL) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_enable_stats.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_enable_stats.c 2005-01-27 19:04:50.000000000 -0800 yann@1: @@ -25,7 +25,7 @@ yann@1: td_ta_enable_stats (const td_thragent_t *ta, int enable) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_enable_stats"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_addr.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_event_addr.c 2005-01-27 19:04:41.000000000 -0800 yann@1: @@ -29,7 +29,7 @@ yann@1: td_err_e res = TD_NOEVENT; yann@1: const char *symbol = NULL; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_event_addr"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_event_getmsg.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_event_getmsg.c 2005-01-27 19:04:33.000000000 -0800 yann@1: @@ -32,7 +32,7 @@ yann@1: td_eventbuf_t event; yann@1: psaddr_t addr; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_event_getmsg"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_nthreads.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_get_nthreads.c 2005-01-27 19:04:25.000000000 -0800 yann@1: @@ -26,7 +26,7 @@ yann@1: { yann@1: psaddr_t addr; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_get_nthreads"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_ph.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_get_ph.c 2005-01-27 19:04:17.000000000 -0800 yann@1: @@ -24,7 +24,7 @@ yann@1: td_err_e yann@1: td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph) yann@1: { yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_get_ph"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_get_stats.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_get_stats.c 2005-01-27 19:04:06.000000000 -0800 yann@1: @@ -25,7 +25,7 @@ yann@1: td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_get_stats"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_id2thr.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_map_id2thr.c 2005-01-27 19:03:54.000000000 -0800 yann@1: @@ -28,7 +28,7 @@ yann@1: struct _pthread_descr_struct pds; yann@1: int pthread_threads_max; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_map_id2thr"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_map_lwp2thr.c 1999-11-22 18:25:26.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_map_lwp2thr.c 2005-01-27 19:03:46.000000000 -0800 yann@1: @@ -34,7 +34,7 @@ yann@1: # define num 1 yann@1: #endif yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_map_lwp2thr"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c glibc-2.2.2/linuxthreads_db/td_ta_new.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_new.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_new.c 2005-01-27 19:03:36.000000000 -0800 yann@1: @@ -36,7 +36,7 @@ yann@1: psaddr_t addr; yann@1: struct agent_list *elemp; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_new"); yann@1: yann@1: /* Get the global event mask. This is one of the variables which yann@1: are new in the thread library to enable debugging. If it is yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_reset_stats.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_reset_stats.c 2005-01-27 19:03:27.000000000 -0800 yann@1: @@ -25,7 +25,7 @@ yann@1: td_ta_reset_stats (const td_thragent_t *ta) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_reset_stats"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_set_event.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_set_event.c 2005-01-27 19:03:15.000000000 -0800 yann@1: @@ -22,14 +22,12 @@ yann@1: yann@1: yann@1: td_err_e yann@1: -td_ta_set_event (ta, event) yann@1: - const td_thragent_t *ta; yann@1: - td_thr_events_t *event; yann@1: +td_ta_set_event (const td_thragent_t *ta, td_thr_events_t *event) yann@1: { yann@1: td_thr_events_t old_event; yann@1: int i; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_set_event"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_setconcurrency.c 1999-11-08 14:52:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_setconcurrency.c 2005-01-27 19:02:48.000000000 -0800 yann@1: @@ -25,7 +25,7 @@ yann@1: td_ta_setconcurrency (const td_thragent_t *ta, int level) yann@1: { yann@1: /* This is something LinuxThreads does not support. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_setconcurrency"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_thr_iter.c 2000-02-28 12:34:06.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_thr_iter.c 2005-01-27 19:02:39.000000000 -0800 yann@1: @@ -86,7 +86,7 @@ yann@1: # define num 1 yann@1: #endif yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_thr_iter"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_ta_tsd_iter.c 2000-02-28 12:34:06.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_ta_tsd_iter.c 2005-01-27 19:02:29.000000000 -0800 yann@1: @@ -29,7 +29,7 @@ yann@1: int pthread_keys_max; yann@1: int cnt; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_ta_tsd_iter"); yann@1: yann@1: /* Test whether the TA parameter is ok. */ yann@1: if (! ta_ok (ta)) yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_clear_event.c 1999-11-03 10:37:18.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_clear_event.c 2005-01-27 19:02:19.000000000 -0800 yann@1: @@ -24,14 +24,12 @@ yann@1: yann@1: yann@1: td_err_e yann@1: -td_thr_clear_event (th, event) yann@1: - const td_thrhandle_t *th; yann@1: - td_thr_events_t *event; yann@1: +td_thr_clear_event (const td_thrhandle_t *th, td_thr_events_t *event) yann@1: { yann@1: td_thr_events_t old_event; yann@1: int i; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_clear_event"); yann@1: yann@1: /* Write the new value into the thread data structure. */ yann@1: if (ps_pdread (th->th_ta_p->ph, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbresume.c 1999-10-07 23:40:02.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_dbresume.c 2005-01-27 19:01:54.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_dbresume (const td_thrhandle_t *th) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_dbresume"); yann@1: return TD_NOCAPAB; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_dbsuspend.c 1999-10-07 23:40:33.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_dbsuspend.c 2005-01-27 19:01:46.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_dbsuspend (const td_thrhandle_t *th) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_dbsuspend"); yann@1: return TD_NOCAPAB; yann@1: } yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_enable.c 1999-11-02 16:06:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_event_enable.c 2005-01-27 19:01:35.000000000 -0800 yann@1: @@ -24,11 +24,9 @@ yann@1: yann@1: yann@1: td_err_e yann@1: -td_thr_event_enable (th, onoff) yann@1: - const td_thrhandle_t *th; yann@1: - int onoff; yann@1: +td_thr_event_enable (const td_thrhandle_t *th, int onoff) yann@1: { yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_event_enable"); yann@1: yann@1: /* Write the new value into the thread data structure. */ yann@1: if (ps_pdwrite (th->th_ta_p->ph, yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_event_getmsg.c 1999-11-02 16:06:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_event_getmsg.c 2005-01-27 19:01:11.000000000 -0800 yann@1: @@ -29,7 +29,7 @@ yann@1: { yann@1: td_eventbuf_t event; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_event_getmsg"); yann@1: yann@1: /* Read the even structure from the target. */ yann@1: if (ps_pdread (th->th_ta_p->ph, yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_get_info.c 2000-05-01 14:56:42.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_get_info.c 2005-01-27 19:00:59.000000000 -0800 yann@1: @@ -29,7 +29,7 @@ yann@1: { yann@1: struct _pthread_descr_struct pds; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_get_info"); yann@1: yann@1: /* Get the thread descriptor. */ yann@1: if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getfpregs.c 1999-11-02 16:06:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_getfpregs.c 2005-01-27 19:00:49.000000000 -0800 yann@1: @@ -26,7 +26,7 @@ yann@1: { yann@1: struct _pthread_descr_struct pds; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_getfpregs"); yann@1: yann@1: /* We have to get the state and the PID for this thread. */ yann@1: if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getgregs.c 2000-02-11 15:48:51.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_getgregs.c 2005-01-27 19:00:37.000000000 -0800 yann@1: @@ -26,7 +26,7 @@ yann@1: { yann@1: struct _pthread_descr_struct pds; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_getgregs"); yann@1: yann@1: /* We have to get the state and the PID for this thread. */ yann@1: if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregs.c 1999-10-07 23:46:09.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_getxregs.c 2005-01-27 19:00:26.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_getxregs (const td_thrhandle_t *th, void *xregs) yann@1: { yann@1: /* XXX This might be platform specific. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_getxregs"); yann@1: return TD_NOXREGS; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_getxregsize.c 1999-10-07 23:46:33.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_getxregsize.c 2005-01-27 19:00:16.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_getxregsize (const td_thrhandle_t *th, int *sizep) yann@1: { yann@1: /* XXX This might be platform specific. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_getxregsize"); yann@1: return TD_NOXREGS; yann@1: } yann@1: 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 yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_set_event.c 1999-11-03 10:37:18.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_set_event.c 2005-01-27 19:00:08.000000000 -0800 yann@1: @@ -24,14 +24,12 @@ yann@1: yann@1: yann@1: td_err_e yann@1: -td_thr_set_event (th, event) yann@1: - const td_thrhandle_t *th; yann@1: - td_thr_events_t *event; yann@1: +td_thr_set_event (const td_thrhandle_t *th, td_thr_events_t *event) yann@1: { yann@1: td_thr_events_t old_event; yann@1: int i; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_set_event"); yann@1: yann@1: /* Write the new value into the thread data structure. */ yann@1: if (ps_pdread (th->th_ta_p->ph, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setfpregs.c 1999-11-02 16:06:10.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_setfpregs.c 2005-01-27 18:59:06.000000000 -0800 yann@1: @@ -26,7 +26,7 @@ yann@1: { yann@1: struct _pthread_descr_struct pds; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_setfpregs"); yann@1: yann@1: /* We have to get the state and the PID for this thread. */ yann@1: if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setgregs.c 2000-02-11 15:48:51.000000000 -0800 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_setgregs.c 2005-01-27 18:58:57.000000000 -0800 yann@1: @@ -26,7 +26,7 @@ yann@1: { yann@1: struct _pthread_descr_struct pds; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_setgregs"); yann@1: yann@1: /* We have to get the state and the PID for this thread. */ yann@1: if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c glibc-2.2.2/linuxthreads_db/td_thr_setprio.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setprio.c 1999-10-07 23:49:11.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_setprio.c 2005-01-27 18:58:46.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_setprio (const td_thrhandle_t *th, int prio) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_setprio"); yann@1: return TD_OK; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setsigpending.c 1999-10-07 23:49:38.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_setsigpending.c 2005-01-27 18:58:34.000000000 -0800 yann@1: @@ -26,6 +26,6 @@ yann@1: const sigset_t *ss) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_setsigpending"); yann@1: return TD_OK; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_setxregs.c 1999-10-07 23:48:20.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_setxregs.c 2005-01-27 18:58:21.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_setxregs (const td_thrhandle_t *ta, const void *addr) yann@1: { yann@1: /* XXX This might have to be platform specific. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_setxregs"); yann@1: return TD_NOXREGS; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_sigsetmask.c 1999-10-07 23:50:34.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_sigsetmask.c 2005-01-27 18:57:58.000000000 -0800 yann@1: @@ -25,6 +25,6 @@ yann@1: td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss) yann@1: { yann@1: /* XXX We have to figure out what has to be done. */ yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_sigsetmask"); yann@1: return TD_OK; yann@1: } yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c glibc-2.2.2/linuxthreads_db/td_thr_tsd.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_tsd.c 1999-10-07 23:52:15.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_tsd.c 2005-01-27 18:58:09.000000000 -0800 yann@1: @@ -33,7 +33,7 @@ yann@1: unsigned int idx2nd; yann@1: void *p; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_tsd"); yann@1: yann@1: /* Get the thread descriptor. */ yann@1: if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds, yann@1: diff -ru glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c glibc-2.2.2/linuxthreads_db/td_thr_validate.c yann@1: --- glibc-2.2.2/linuxthreads_db.orig/td_thr_validate.c 1999-10-14 17:24:20.000000000 -0700 yann@1: +++ glibc-2.2.2/linuxthreads_db/td_thr_validate.c 2005-01-27 18:57:41.000000000 -0800 yann@1: @@ -28,7 +28,7 @@ yann@1: int pthread_threads_max = th->th_ta_p->pthread_threads_max; yann@1: int cnt; yann@1: yann@1: - LOG (__FUNCTION__); yann@1: + LOG ("td_thr_validate"); yann@1: yann@1: /* Now get all descriptors, one after the other. */ yann@1: for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)