blob: ac8c9d02cc5801454b75955a185d4dd59ce1f940 [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 Machata53bc49b2012-04-25 17:23:02 +0200177 if (!options.hide_caller && libsym->lib != NULL
178 && libsym->plt_type != LS_TOPLT_NONE)
Petr Machatab89c2562012-04-03 17:00:28 +0200179 current_column += fprintf(options.output, "%s->",
180 libsym->lib->soname);
Juan Cespedesd914a202004-11-10 00:15:33 +0100181#ifdef USE_DEMANGLE
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100182 current_column +=
Petr Machata03673892012-04-03 13:51:09 +0200183 fprintf(options.output, "%s(",
Petr Machata29add4f2012-02-18 16:38:05 +0100184 (options.demangle
Petr Machataf3db07a2012-03-21 05:16:46 +0100185 ? my_demangle(function_name) : function_name));
Juan Cespedesac3db291998-04-25 14:31:58 +0200186#else
Petr Machataa43876e2012-04-17 00:40:04 +0200187 current_column += fprintf(options.output, "%s(", function_name);
Juan Cespedesac3db291998-04-25 14:31:58 +0200188#endif
Juan Cespedes5e01f651998-03-08 22:31:44 +0100189
190 func = name2func(function_name);
191 if (!func) {
192 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100193 for (i = 0; i < 4; i++) {
194 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200195 display_arg(type, proc, i, arg_unknown);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100196 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100197 }
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200198 current_column += display_arg(type, proc, 4, arg_unknown);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100199 return;
200 } else {
201 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100202 for (i = 0; i < func->num_params - func->params_right - 1; i++) {
203 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200204 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100205 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100206 }
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100207 if (func->num_params > func->params_right) {
208 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200209 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100210 if (func->params_right) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100211 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100212 }
213 }
Petr Machata1d310382011-08-08 17:38:18 +0200214 if (func->params_right
215 || func->return_info->type == ARGTYPE_STRING_N
216 || func->return_info->type == ARGTYPE_ARRAY) {
Juan Cespedes5c3fe062004-06-14 18:08:37 +0200217 save_register_args(type, proc);
218 }
Juan Cespedes5e01f651998-03-08 22:31:44 +0100219 }
220}
221
Juan Cespedesf1350522008-12-16 18:19:58 +0100222void
Petr Machata29add4f2012-02-18 16:38:05 +0100223output_right(enum tof type, struct Process *proc, struct library_symbol *libsym)
Petr Machata14184b32012-02-10 13:10:26 +0100224{
Petr Machata29add4f2012-02-18 16:38:05 +0100225 const char *function_name = libsym->name;
Juan Cespedescde58262009-05-07 11:09:00 +0200226 Function *func = name2func(function_name);
Steve Finkb0315a02006-08-07 04:22:06 +0200227 static arg_type_info *arg_unknown = NULL;
228 if (arg_unknown == NULL)
Steve Fink65b53df2006-09-25 02:27:08 +0200229 arg_unknown = lookup_prototype(ARGTYPE_UNKNOWN);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100230
Juan Cespedesda9b9532009-04-07 15:33:50 +0200231 if (options.summary) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100232 struct opt_c_struct *st;
Juan Cespedesd65efa32003-02-03 00:22:30 +0100233 if (!dict_opt_c) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100234 dict_opt_c =
235 dict_init(dict_key2hash_string,
236 dict_key_cmp_string);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100237 }
238 st = dict_find_entry(dict_opt_c, function_name);
239 if (!st) {
240 char *na;
241 st = malloc(sizeof(struct opt_c_struct));
242 na = strdup(function_name);
243 if (!st || !na) {
244 perror("malloc()");
245 exit(1);
246 }
247 st->count = 0;
248 st->tv.tv_sec = st->tv.tv_usec = 0;
249 dict_enter(dict_opt_c, na, st);
250 }
251 if (st->tv.tv_usec + current_time_spent.tv_usec > 1000000) {
252 st->tv.tv_usec += current_time_spent.tv_usec - 1000000;
253 st->tv.tv_sec++;
254 } else {
255 st->tv.tv_usec += current_time_spent.tv_usec;
256 }
257 st->count++;
258 st->tv.tv_sec += current_time_spent.tv_sec;
259
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100260// fprintf(options.output, "%s <%lu.%06d>\n", function_name,
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100261// current_time_spent.tv_sec, (int)current_time_spent.tv_usec);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100262 return;
263 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200264 if (current_proc && (current_proc != proc ||
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100265 current_depth != proc->callstack_depth)) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100266 fprintf(options.output, " <unfinished ...>\n");
Paul Gilliam76c61f12006-06-14 06:55:21 +0200267 current_proc = 0;
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200268 }
Paul Gilliam76c61f12006-06-14 06:55:21 +0200269 if (current_proc != proc) {
Juan Cespedes5e01f651998-03-08 22:31:44 +0100270 begin_of_line(type, proc);
Juan Cespedesd914a202004-11-10 00:15:33 +0100271#ifdef USE_DEMANGLE
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100272 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100273 fprintf(options.output, "<... %s resumed> ",
Juan Cespedesce377d52008-12-16 19:38:10 +0100274 options.demangle ? my_demangle(function_name) : function_name);
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200275#else
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100276 current_column +=
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100277 fprintf(options.output, "<... %s resumed> ", function_name);
Juan Cespedes1b9cfd61999-08-30 19:34:50 +0200278#endif
Juan Cespedes5e01f651998-03-08 22:31:44 +0100279 }
280
281 if (!func) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100282 current_column += fprintf(options.output, ") ");
Juan Cespedesce377d52008-12-16 19:38:10 +0100283 tabto(options.align - 1);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100284 fprintf(options.output, "= ");
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200285 display_arg(type, proc, -1, arg_unknown);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100286 } else {
287 int i;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100288 for (i = func->num_params - func->params_right;
289 i < func->num_params - 1; i++) {
290 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200291 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100292 current_column += fprintf(options.output, ", ");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100293 }
294 if (func->params_right) {
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100295 current_column +=
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200296 display_arg(type, proc, i, func->arg_info[i]);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100297 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100298 current_column += fprintf(options.output, ") ");
Juan Cespedesce377d52008-12-16 19:38:10 +0100299 tabto(options.align - 1);
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100300 fprintf(options.output, "= ");
Steve Finkb0315a02006-08-07 04:22:06 +0200301 if (func->return_info->type == ARGTYPE_VOID) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100302 fprintf(options.output, "<void>");
Juan Cespedes5e01f651998-03-08 22:31:44 +0100303 } else {
Juan Cespedesa413e5b2007-09-04 17:34:53 +0200304 display_arg(type, proc, -1, func->return_info);
Juan Cespedes5e01f651998-03-08 22:31:44 +0100305 }
Juan Cespedes5e4455b1997-08-24 01:48:26 +0200306 }
Juan Cespedesd65efa32003-02-03 00:22:30 +0100307 if (opt_T) {
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100308 fprintf(options.output, " <%lu.%06d>",
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100309 current_time_spent.tv_sec,
310 (int)current_time_spent.tv_usec);
Juan Cespedesd65efa32003-02-03 00:22:30 +0100311 }
Juan Cespedesb65bdc52008-12-16 19:50:16 +0100312 fprintf(options.output, "\n");
Joe Damatoab3b72c2010-10-31 00:21:53 -0700313
314#if defined(HAVE_LIBUNWIND)
315 if (options.bt_depth > 0) {
316 unw_cursor_t cursor;
317 unw_word_t ip, sp;
318 int unwind_depth = options.bt_depth;
319 char fn_name[100];
320
321 unw_init_remote(&cursor, proc->unwind_as, proc->unwind_priv);
322 while (unwind_depth) {
323 unw_get_reg(&cursor, UNW_REG_IP, &ip);
324 unw_get_reg(&cursor, UNW_REG_SP, &sp);
325 unw_get_proc_name(&cursor, fn_name, 100, NULL);
326 fprintf(options.output, "\t\t\t%s (ip = 0x%lx)\n", fn_name, (long) ip);
327 if (unw_step(&cursor) <= 0)
328 break;
329 unwind_depth--;
330 }
331 fprintf(options.output, "\n");
332 }
333#endif /* defined(HAVE_LIBUNWIND) */
334
Paul Gilliam76c61f12006-06-14 06:55:21 +0200335 current_proc = 0;
Ian Wienand2d45b1a2006-02-20 22:48:07 +0100336 current_column = 0;
Juan Cespedesc40e64a1997-10-26 20:34:00 +0100337}