请问.gdb如何打开所调试的文件呢?

我写了个小程序.
main()
{
printf(“Hello World!”);
}
存成了test.c文件
我用命令:
gdb test.c之后,提示:
Not in executable format: File format not recognized

我应该怎么办??
初学者,请具体说明一下,谢谢.