/**************************************************************************** * gdb.c * * Computer Science 50 * David J. Malan * * Offers opportunities to poke around with GDB. ***************************************************************************/ #include int foo(int n); void bar(int m); int main(int argc, char * argv[]) { int a; a = 5; foo(a); return 0; } int foo(int n) { int b; b = n; b *= 2; bar(b); return b; } void bar(int m) { printf("Hi, I'm bar!\n"); }