Skip to content
Snippets Groups Projects
Commit 943f8563 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added support for tracing individual threads.

Added support for tracing the compiler.

Rev: src/configure.in:1.175
Rev: src/main.c:1.48
parent 4406cf1d
Branches
Tags
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.174 1998/04/08 14:51:13 grubba Exp $") AC_REVISION("$Id: configure.in,v 1.175 1998/04/13 14:18:41 grubba Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -102,6 +102,8 @@ AC_ARG_WITH(profiling, [ --with-profiling add code used to profile pike ...@@ -102,6 +102,8 @@ AC_ARG_WITH(profiling, [ --with-profiling add code used to profile pike
AC_ARG_WITH(poll, [ --with-poll use poll instead of select],[AC_DEFINE(HAVE_AND_USE_POLL)],[]) AC_ARG_WITH(poll, [ --with-poll use poll instead of select],[AC_DEFINE(HAVE_AND_USE_POLL)],[])
AC_ARG_WITH(max-fd, [ --with-max-fd=X set how many filedescriptors can be used at once],[pike_cv_max_open_fd=$withval],[]) AC_ARG_WITH(max-fd, [ --with-max-fd=X set how many filedescriptors can be used at once],[pike_cv_max_open_fd=$withval],[])
AC_ARG_WITH(oob, [ --with-oob enable out-of-band data handling],[AC_DEFINE(WITH_OOB)],[]) AC_ARG_WITH(oob, [ --with-oob enable out-of-band data handling],[AC_DEFINE(WITH_OOB)],[])
AC_ARG_WITH(thread-trace,[ --with-trace-threads enable individual tracing of threads],[AC_DEFINE(TRACE_THREADS)],[])
AC_ARG_WITH(compiler-trace,[ --with-compiler-trace enable tracing of the compiler],[AC_DEFINE(YYDEBUG)],[])
# #
# Allow --with(out)-debug to toggle both cdebug and rtldebug, but # Allow --with(out)-debug to toggle both cdebug and rtldebug, but
...@@ -393,7 +395,7 @@ fi ...@@ -393,7 +395,7 @@ fi
echo Searching for library directories... echo Searching for library directories...
if test $ldflags_is_set = no ; then if test $ldflags_is_set = no ; then
for d in `echo ${with_lib_path} | sed 's/:/ /g'` \ for d in `echo ${with_lib_path} | sed 's/:/ /g'` \
`echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$ac_default_prefix@g"` \ `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
/usr/local/lib /sw/local/lib /sw/lib \ /usr/local/lib /sw/local/lib /sw/lib \
/usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib \ /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib \
`echo /usr/X11*/lib | sort -r` `echo /usr/X11*/lib | sort -r`
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information. ||| See the files COPYING and DISCLAIMER for more information.
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: main.c,v 1.47 1998/04/06 17:28:18 grubba Exp $"); RCSID("$Id: main.c,v 1.48 1998/04/13 14:21:28 grubba Exp $");
#include "fdlib.h" #include "fdlib.h"
#include "backend.h" #include "backend.h"
#include "module.h" #include "module.h"
...@@ -47,9 +47,13 @@ int debug_options=0; ...@@ -47,9 +47,13 @@ int debug_options=0;
int d_flag=0; int d_flag=0;
int c_flag=0; int c_flag=0;
int t_flag=0; int t_flag=0;
int default_t_flag=0;
int a_flag=0; int a_flag=0;
int l_flag=0; int l_flag=0;
int p_flag=0; int p_flag=0;
#ifdef YYDEBUG
extern int yydebug;
#endif /* YYDEBUG */
static long instructions_left; static long instructions_left;
static void time_to_exit(struct callback *cb,void *tmp,void *ignored) static void time_to_exit(struct callback *cb,void *tmp,void *ignored)
...@@ -225,6 +229,13 @@ int dbm_main(int argc, char **argv) ...@@ -225,6 +229,13 @@ int dbm_main(int argc, char **argv)
d_flag+=STRTOL(p+1,&p,10); d_flag+=STRTOL(p+1,&p,10);
break; break;
case 'c':
p++;
#ifdef YYDEBUG
yydebug++;
#endif /* YYDEBUG */
break;
case 's': case 's':
debug_options|=DEBUG_SIGNALS; debug_options|=DEBUG_SIGNALS;
p++; p++;
...@@ -254,6 +265,7 @@ int dbm_main(int argc, char **argv) ...@@ -254,6 +265,7 @@ int dbm_main(int argc, char **argv)
t_flag+=STRTOL(p+1,&p,10); t_flag+=STRTOL(p+1,&p,10);
else else
t_flag++,p++; t_flag++,p++;
default_t_flag = t_flag;
break; break;
case 'p': case 'p':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment