#!/bin/sh #此bash主要用来产生gdb可以调试的可执行文件,输入参数为与编译文件同名 #比如:hello.c文件,只需输入./gccgo.sh hello即可,并执行调试 gcc -g $1.c -o $1 gdb $1