GDB:(Permission denied) ?

qnx 6.2.0:
when I use :
#gcc -g -c test.c -o test
#gdb test
starting prgram :/root/test
Error spawning /root/test:13 (Permission denied)
why the root can encounter the Permission denied? Thanks very much!

in test.c, only one sentence: printf(“hello\n”);

Never call an executable test ( so much people get bitten by this), test is a buildin in command of the shell.

test there is just example . in fact , the name of my program isn’t test .
xtang said :astonished:mit -c