Skip to content

Commit

Permalink
Rename php-trace to trace-php to avoid confusing when using autocompl…
Browse files Browse the repository at this point in the history
…ement with prefix "php"
  • Loading branch information
renyongquan committed Jan 27, 2015
1 parent 417bd1e commit efa7459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmdtool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LIBS = -lpthread
CFLAGS = -g -Wall -O2 -fno-strict-aliasing -D_GNU_SOURCE
CC = gcc

TARGET = php-trace
TARGET = trace-php
PWD := $(shell pwd)
INCLUDE_FLAG = -I$(PWD)/../common -I$(PWD)/../common/sds
DEPS_DIR = $(PWD)/../common $(PWD)/../common/sds
Expand All @@ -15,7 +15,7 @@ all: $(TARGET)

.SUFFIXES: .o .c .h

php-trace: $(TRACE_OBJS)
$(TARGET): $(TRACE_OBJS)
$(CC) $(CFLAGS) $(INCLUDE_FLAG) -o $@ $^ $(LIBS)

$(TRACE_OBJS):%.o:%.c
Expand Down
4 changes: 2 additions & 2 deletions cmdtool/phptrace
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ if [ $STACK_FLAG -eq 1 ] ; then
params=($lines)
params_num=${#params[@]}
if [ $params_num -eq 2 ]; then
"$SCRIPT_PATH/php-trace" $@ --php-version $version --sapi-globals ${params[0]} --executor-globals ${params[1]}
"$SCRIPT_PATH/trace-php" $@ --php-version $version --sapi-globals ${params[0]} --executor-globals ${params[1]}
break
fi
fi
Expand All @@ -139,6 +139,6 @@ if [ $STACK_FLAG -eq 1 ] ; then
echo "can not print php stack"
fi
else
"$SCRIPT_PATH/php-trace" $@
"$SCRIPT_PATH/trace-php" $@
fi

0 comments on commit efa7459

Please sign in to comment.