diff options
Diffstat (limited to 'strace.c')
-rw-r--r-- | strace.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -62,12 +62,10 @@ # include <asm/ptrace_offsets.h> #endif - extern char **environ; extern int optind; extern char *optarg; - int debug = 0, followfork = 0; unsigned int ptrace_setoptions = 0; /* Which WSTOPSIG(status) value marks syscall traps? */ @@ -153,7 +151,6 @@ static volatile sig_atomic_t interrupted; static volatile int interrupted; #endif - static void usage(FILE *ofp, int exitval) { @@ -284,7 +281,6 @@ void die_out_of_memory(void) error_msg_and_die("Out of memory"); } - /* Glue for systems without a MMU that cannot provide fork() */ #ifdef HAVE_FORK # define strace_vforked 0 @@ -1007,7 +1003,6 @@ test_ptrace_seize(void) # define test_ptrace_seize() ((void)0) # endif - /* Noinline: don't want main to have struct utsname permanently on stack */ static void __attribute__ ((noinline)) get_os_release(void) @@ -1381,7 +1376,6 @@ alloc_tcb(int pid, int command_options_parsed) error_msg_and_die("bug in alloc_tcb"); } - static struct tcb * pid2tcb(int pid) { @@ -1399,7 +1393,6 @@ pid2tcb(int pid) return NULL; } - void droptcb(struct tcb *tcp) { @@ -1410,7 +1403,6 @@ droptcb(struct tcb *tcp) if (debug) fprintf(stderr, "dropped tcb for pid %d, %d remain\n", tcp->pid, nprocs); - if (outfname && followfork > 1 && tcp->outf) fclose(tcp->outf); @@ -1510,7 +1502,6 @@ detach(struct tcb *tcp) } } - if (!qflag) fprintf(stderr, "Process %u detached\n", tcp->pid); @@ -1519,7 +1510,6 @@ detach(struct tcb *tcp) return error; } - static void cleanup(void) { @@ -1609,7 +1599,6 @@ strsignal(int sig) #endif /* HAVE_STRSIGNAL */ - static int trace(void) { @@ -2025,7 +2014,6 @@ trace(void) return 0; } - void tprintf(const char *fmt, ...) { |