Wednesday, March 17, 2010

gcc, gdb and make commands

Macro definition
gcc -D DUMMY_DEF -c test_str.c

Makefile arguments
test:
./program $(PROG_ARGS)

make test PROG_ARGS='testfile1.txt'

gdb commands
run args - runs program
frame - examines current frame
up - examines previous frame

No comments:

Post a Comment