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