blob: bc4b681b6d4561a55beedf5371e0be8afd4e7d34 [file] [log] [blame]
Juan Cespedesac3db291998-04-25 14:31:58 +02001#include "config.h"
Juan Cespedesac3db291998-04-25 14:31:58 +02002
Juan Cespedes3268a161997-08-25 16:45:22 +02003#include <stdio.h>
Juan Cespedesd65efa32003-02-03 00:22:30 +01004#include <stdlib.h>
Juan Cespedes5e4455b1997-08-24 01:48:26 +02005#include <stdarg.h>
Juan Cespedes1cd999a2001-07-03 00:46:04 +02006#include <string.h>
Juan Cespedes5e0acdb1998-04-04 08:34:07 +02007#include <time.h>
8#include <sys/time.h>
9#include <unistd.h>
Juan Cespedes5e4455b1997-08-24 01:48:26 +020010
Juan Cespedesf7281232009-06-25 16:11:21 +020011#include "common.h"
Petr Machata366c2f42012-02-09 19:34:36 +010012#include "proc.h"
Petr Machata29add4f2012-02-18 16:38:05 +010013#include "library.h"
Juan Cespedesac3db291998-04-25 14:31:58 +020014
Juan Cespedesf7281232009-06-25 16:11:21 +020015/* TODO FIXME XXX: include in common.h: */
Juan Cespedesd65efa32003-02-03 00:22:30 +010016extern struct timeval current_time_spent;
17
Juan Cespedes8d1b92b2009-07-03 10:39:34 +020018Dict *dict_opt_c = NULL;
Juan Cespedesd65efa32003-02-03 00:22:30 +010019
Juan Cespedesa8909f72009-04-28 20:02:41 +020020static Process *current_proc = 0;
Juan Cespedes5916fda2002-02-25 00:19:21 +010021static int current_depth = 0;
Juan Cespedes5e01f651998-03-08 22:31:44 +010022static int current_column = 0;
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020023
Juan Cespedesf1350522008-12-16 18:19:58 +010024static void
Juan Cespedesa8909f72009-04-28 20:02:41 +020025output_indent(Process *proc) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +010026 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +010027 fprintf(options.output, "%*s", options.indent * proc->callstack_depth, "");
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020028}
Juan Cespedes5e4455b1997-08-24 01:48:26 +020029
Juan Cespedesf1350522008-12-16 18:19:58 +010030static void
Juan Cespedesa8909f72009-04-28 20:02:41 +020031begin_of_line(enum tof type, Process *proc) {
Juan Cespedes5e01f651998-03-08 22:31:44 +010032 current_column = 0;
33 if (!proc) {
34 return;
Juan Cespedes5e4455b1997-08-24 01:48:26 +020035 }
Juan Cespedesc693f022009-05-21 18:59:41 +020036 if ((options.output != stderr) && (opt_p || options.follow)) {
37 current_column += fprintf(options.output, "%u ", proc->pid);
Juan Cespedese12df4c2009-05-28 19:06:35 +020038 } else if (options.follow) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010039 current_column += fprintf(options.output, "[pid %u] ", proc->pid);
Juan Cespedes5e01f651998-03-08 22:31:44 +010040 }
Juan Cespedesf666d191998-09-20 23:04:34 +020041 if (opt_r) {
42 struct timeval tv;
43 struct timezone tz;
Ian Wienand2d45b1a2006-02-20 22:48:07 +010044 static struct timeval old_tv = { 0, 0 };
Juan Cespedesf666d191998-09-20 23:04:34 +020045 struct timeval diff;
46
47 gettimeofday(&tv, &tz);
48
Ian Wienand2d45b1a2006-02-20 22:48:07 +010049 if (old_tv.tv_sec == 0 && old_tv.tv_usec == 0) {
50 old_tv.tv_sec = tv.tv_sec;
51 old_tv.tv_usec = tv.tv_usec;
Juan Cespedesf666d191998-09-20 23:04:34 +020052 }
53 diff.tv_sec = tv.tv_sec - old_tv.tv_sec;
54 if (tv.tv_usec >= old_tv.tv_usec) {
55 diff.tv_usec = tv.tv_usec - old_tv.tv_usec;
56 } else {
Juan Cespedes5c3fe062004-06-14 18:08:37 +020057 diff.tv_sec--;
Juan Cespedesf666d191998-09-20 23:04:34 +020058 diff.tv_usec = 1000000 + tv.tv_usec - old_tv.tv_usec;
59 }
60 old_tv.tv_sec = tv.tv_sec;
61 old_tv.tv_usec = tv.tv_usec;
Juan Cespedesb65bdc52008-12-16 19:50:16 +010062 current_column += fprintf(options.output, "%3lu.%06d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010063 diff.tv_sec, (int)diff.tv_usec);
Juan Cespedesf666d191998-09-20 23:04:34 +020064 }
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020065 if (opt_t) {
66 struct timeval tv;
67 struct timezone tz;
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020068
69 gettimeofday(&tv, &tz);
Ian Wienand2d45b1a2006-02-20 22:48:07 +010070 if (opt_t > 2) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010071 current_column += fprintf(options.output, "%lu.%06d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010072 tv.tv_sec, (int)tv.tv_usec);
73 } else if (opt_t > 1) {
74 struct tm *tmp = localtime(&tv.tv_sec);
75 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +010076 fprintf(options.output, "%02d:%02d:%02d.%06d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010077 tmp->tm_hour, tmp->tm_min, tmp->tm_sec,
78 (int)tv.tv_usec);
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020079 } else {
Ian Wienand2d45b1a2006-02-20 22:48:07 +010080 struct tm *tmp = localtime(&tv.tv_sec);
Juan Cespedesb65bdc52008-12-16 19:50:16 +010081 current_column += fprintf(options.output, "%02d:%02d:%02d ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010082 tmp->tm_hour, tmp->tm_min,
83 tmp->tm_sec);
Juan Cespedes5e0acdb1998-04-04 08:34:07 +020084 }
85 }
Juan Cespedes5e01f651998-03-08 22:31:44 +010086 if (opt_i) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +010087 if (type == LT_TOF_FUNCTION || type == LT_TOF_FUNCTIONR) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010088 current_column += fprintf(options.output, "[%p] ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010089 proc->return_addr);
Juan Cespedes5e01f651998-03-08 22:31:44 +010090 } else {
Juan Cespedesb65bdc52008-12-16 19:50:16 +010091 current_column += fprintf(options.output, "[%p] ",
Ian Wienand2d45b1a2006-02-20 22:48:07 +010092 proc->instruction_pointer);
Juan Cespedes5e01f651998-03-08 22:31:44 +010093 }
94 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +010095 if (options.indent > 0 && type != LT_TOF_NONE) {
Juan Cespedes3f0b62e2001-07-09 01:02:52 +020096 output_indent(proc);
Juan Cespedes5b3ffdf2001-07-02 00:52:45 +020097 }
Juan Cespedes5e4455b1997-08-24 01:48:26 +020098}
99
Juan Cespedescde58262009-05-07 11:09:00 +0200100static Function *
Petr Machata9a7f2322011-07-08 19:00:37 +0200101name2func(char const *name) {
Juan Cespedescde58262009-05-07 11:09:00 +0200102 Function *tmp;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100103 const char *str1, *str2;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100104
105 tmp = list_of_functions;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100106 while (tmp) {
Juan Cespedesd914a202004-11-10 00:15:33 +0100107#ifdef USE_DEMANGLE
Juan Cespedesce377d52008-12-16 19:38:10 +0100108 str1 = options.demangle ? my_demangle(tmp->name) : tmp->name;
109 str2 = options.demangle ? my_demangle(name) : name;
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200110#else
111 str1 = tmp->name;
112 str2 = name;
113#endif
114 if (!strcmp(str1, str2)) {
115
Juan Cespedes5e01f651998-03-08 22:31:44 +0100116 return tmp;
117 }
118 tmp = tmp->next;
119 }
120 return NULL;
121}
122
Juan Cespedesf1350522008-12-16 18:19:58 +0100123void
Juan Cespedesa8909f72009-04-28 20:02:41 +0200124output_line(Process *proc, char *fmt, ...) {
Juan Cespedes5e4455b1997-08-24 01:48:26 +0200125 va_list args;
126
Juan Cespedesda9b9532009-04-07 15:33:50 +0200127 if (options.summary) {
Juan Cespedesd65efa32003-02-03 00:22:30 +0100128 return;
129 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200130 if (current_proc) {
131 if (current_proc->callstack[current_depth].return_addr) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100132 fprintf(options.output, " <unfinished ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200133 } else {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100134 fprintf(options.output, " <no return ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200135 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100136 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200137 current_proc = 0;
Juan Cespedes28f60191998-04-12 00:04:39 +0200138 if (!fmt) {
139 return;
140 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100141 begin_of_line(LT_TOF_NONE, proc);
142
Juan Cespedes21c63a12001-07-07 20:56:56 +0200143 va_start(args, fmt);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100144 vfprintf(options.output, fmt, args);
145 fprintf(options.output, "\n");
Juan Cespedes21c63a12001-07-07 20:56:56 +0200146 va_end(args);
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100147 current_column = 0;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100148}
149
Juan Cespedesf1350522008-12-16 18:19:58 +0100150static void
151tabto(int col) {
Juan Cespedes5e01f651998-03-08 22:31:44 +0100152 if (current_column < col) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100153 fprintf(options.output, "%*s", col - current_column, "");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100154 }
155}
156
Juan Cespedesf1350522008-12-16 18:19:58 +0100157void
Petr Machata29add4f2012-02-18 16:38:05 +0100158output_left(enum tof type, struct Process *proc,
159 struct library_symbol *libsym)
160{
161 const char *function_name = libsym->name;
Juan Cespedescde58262009-05-07 11:09:00 +0200162 Function *func;
Steve Finkb0315a02006-08-07 04:22:06 +0200163 static arg_type_info *arg_unknown = NULL;
164 if (arg_unknown == NULL)
Steve Fink65b53df2006-09-25 02:27:08 +0200165 arg_unknown = lookup_prototype(ARGTYPE_UNKNOWN);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100166
Juan Cespedesda9b9532009-04-07 15:33:50 +0200167 if (options.summary) {
Juan Cespedesd65efa32003-02-03 00:22:30 +0100168 return;
169 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200170 if (current_proc) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100171 fprintf(options.output, " <unfinished ...>\n");
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100172 current_column = 0;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100173 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200174 current_proc = proc;
Juan Cespedes5916fda2002-02-25 00:19:21 +0100175 current_depth = proc->callstack_depth;
Juan Cespedes5e01f651998-03-08 22:31:44 +0100176 begin_of_line(type, proc);
Petr Machata03673892012-04-03 13:51:09 +0200177 if (!options.hide_caller)
178 fprintf(options.output, "%s->", libsym->lib->soname);
Juan Cespedesd914a202004-11-10 00:15:33 +0100179#ifdef USE_DEMANGLE
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100180 current_column +=
Petr Machata03673892012-04-03 13:51:09 +0200181 fprintf(options.output, "%s(",
Petr Machata29add4f2012-02-18 16:38:05 +0100182 (options.demangle
Petr Machataf3db07a2012-03-21 05:16:46 +0100183 ? my_demangle(function_name) : function_name));
Juan Cespedesac3db291998-04-25 14:31:58 +0200184#else
Petr Machata03673892012-04-03 13:51:09 +0200185 current_column += fprintf("%s(", function_name);
Juan Cespedesac3db291998-04-25 14:31:58 +0200186#endif
Juan Cespedes5e01f651998-03-08 22:31:44 +0100187
188 func = name2func(function_name);
189 if (!func) {
190 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100191 for (i = 0; i < 4; i++) {
192 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200193 display_arg(type, proc, i, arg_unknown);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100194 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100195 }
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200196 current_column += display_arg(type, proc, 4, arg_unknown);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100197 return;
198 } else {
199 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100200 for (i = 0; i < func->num_params - func->params_right - 1; i++) {
201 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200202 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100203 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100204 }
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100205 if (func->num_params > func->params_right) {
206 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200207 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100208 if (func->params_right) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100209 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100210 }
211 }
Petr Machata1d310382011-08-08 17:38:18 +0200212 if (func->params_right
213 || func->return_info->type == ARGTYPE_STRING_N
214 || func->return_info->type == ARGTYPE_ARRAY) {
Juan Cespedes5c3fe062004-06-14 18:08:37 +0200215 save_register_args(type, proc);
216 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100217 }
218}
219
Juan Cespedesf1350522008-12-16 18:19:58 +0100220void
Petr Machata29add4f2012-02-18 16:38:05 +0100221output_right(enum tof type, struct Process *proc, struct library_symbol *libsym)
Petr Machata14184b32012-02-10 13:10:26 +0100222{
Petr Machata29add4f2012-02-18 16:38:05 +0100223 const char *function_name = libsym->name;
Juan Cespedescde58262009-05-07 11:09:00 +0200224 Function *func = name2func(function_name);
Steve Finkb0315a02006-08-07 04:22:06 +0200225 static arg_type_info *arg_unknown = NULL;
226 if (arg_unknown == NULL)
Steve Fink65b53df2006-09-25 02:27:08 +0200227 arg_unknown = lookup_prototype(ARGTYPE_UNKNOWN);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100228
Juan Cespedesda9b9532009-04-07 15:33:50 +0200229 if (options.summary) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100230 struct opt_c_struct *st;
Juan Cespedesd65efa32003-02-03 00:22:30 +0100231 if (!dict_opt_c) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100232 dict_opt_c =
233 dict_init(dict_key2hash_string,
234 dict_key_cmp_string);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100235 }
236 st = dict_find_entry(dict_opt_c, function_name);
237 if (!st) {
238 char *na;
239 st = malloc(sizeof(struct opt_c_struct));
240 na = strdup(function_name);
241 if (!st || !na) {
242 perror("malloc()");
243 exit(1);
244 }
245 st->count = 0;
246 st->tv.tv_sec = st->tv.tv_usec = 0;
247 dict_enter(dict_opt_c, na, st);
248 }
249 if (st->tv.tv_usec + current_time_spent.tv_usec > 1000000) {
250 st->tv.tv_usec += current_time_spent.tv_usec - 1000000;
251 st->tv.tv_sec++;
252 } else {
253 st->tv.tv_usec += current_time_spent.tv_usec;
254 }
255 st->count++;
256 st->tv.tv_sec += current_time_spent.tv_sec;
257
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100258// fprintf(options.output, "%s <%lu.%06d>\n", function_name,
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100259// current_time_spent.tv_sec, (int)current_time_spent.tv_usec);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100260 return;
261 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200262 if (current_proc && (current_proc != proc ||
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100263 current_depth != proc->callstack_depth)) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100264 fprintf(options.output, " <unfinished ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200265 current_proc = 0;
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200266 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200267 if (current_proc != proc) {
Juan Cespedes5e01f651998-03-08 22:31:44 +0100268 begin_of_line(type, proc);
Juan Cespedesd914a202004-11-10 00:15:33 +0100269#ifdef USE_DEMANGLE
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100270 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100271 fprintf(options.output, "<... %s resumed> ",
Juan Cespedesce377d52008-12-16 19:38:10 +0100272 options.demangle ? my_demangle(function_name) : function_name);
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200273#else
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100274 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100275 fprintf(options.output, "<... %s resumed> ", function_name);
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200276#endif
Juan Cespedes5e01f651998-03-08 22:31:44 +0100277 }
278
279 if (!func) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100280 current_column += fprintf(options.output, ") ");
Juan Cespedesce377d52008-12-16 19:38:10 +0100281 tabto(options.align - 1);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100282 fprintf(options.output, "= ");
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200283 display_arg(type, proc, -1, arg_unknown);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100284 } else {
285 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100286 for (i = func->num_params - func->params_right;
287 i < func->num_params - 1; i++) {
288 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200289 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100290 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100291 }
292 if (func->params_right) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100293 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200294 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100295 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100296 current_column += fprintf(options.output, ") ");
Juan Cespedesce377d52008-12-16 19:38:10 +0100297 tabto(options.align - 1);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100298 fprintf(options.output, "= ");
Steve Finkb0315a02006-08-07 04:22:06 +0200299 if (func->return_info->type == ARGTYPE_VOID) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100300 fprintf(options.output, "<void>");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100301 } else {
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200302 display_arg(type, proc, -1, func->return_info);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100303 }
Juan Cespedes5e4455b1997-08-24 01:48:26 +0200304 }
Juan Cespedesd65efa32003-02-03 00:22:30 +0100305 if (opt_T) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100306 fprintf(options.output, " <%lu.%06d>",
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100307 current_time_spent.tv_sec,
308 (int)current_time_spent.tv_usec);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100309 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100310 fprintf(options.output, "\n");
Joe Damatoab3b72c2010-10-31 00:21:53 -0700311
312#if defined(HAVE_LIBUNWIND)
313 if (options.bt_depth > 0) {
314 unw_cursor_t cursor;
315 unw_word_t ip, sp;
316 int unwind_depth = options.bt_depth;
317 char fn_name[100];
318
319 unw_init_remote(&cursor, proc->unwind_as, proc->unwind_priv);
320 while (unwind_depth) {
321 unw_get_reg(&cursor, UNW_REG_IP, &ip);
322 unw_get_reg(&cursor, UNW_REG_SP, &sp);
323 unw_get_proc_name(&cursor, fn_name, 100, NULL);
324 fprintf(options.output, "\t\t\t%s (ip = 0x%lx)\n", fn_name, (long) ip);
325 if (unw_step(&cursor) <= 0)
326 break;
327 unwind_depth--;
328 }
329 fprintf(options.output, "\n");
330 }
331#endif /* defined(HAVE_LIBUNWIND) */
332
Paul Gilliam76c61f12006-06-14 06:55:21 +0200333 current_proc = 0;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100334 current_column = 0;
Juan Cespedesc40e64a1997-10-26 20:34:00 +0100335}