关于gdb
- test: debug.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BIGNUM 1111
void array(int ary[]);
int main(int argc, char *argv[])
{
int i[100];
/*选择性编译的时候gcc -o debug debug.c -DDEBUG*/
#ifdef DEBUG
printf("[%d]\n", __LINE__);