XCode as C compiler
Mac Mini, Mac OS X (10.6.4)
Mac Mini, Mac OS X (10.6.4)
#include <stdio.h>
int main(void) {
printf("Kostis");
fflush(stdout);
return 0;
}
[Session started at 2010-09-01 05:38:57 -1000.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys001
Loading program into debugger…
Program loaded.
run
[Switching to process 534]
Running…
Kostis
Debugger stopped.
Program exited with status value:0.
Path:~$cd /Users/YouUserID/XcodeProjects/Testc/build/Debug
Path:~/XcodeProjects/Testc/build/Debug$./hello
KostisPath:~/XcodeProjects/Testc/build/Debug$
#!/bin/sh
/usr/bin/gcc -xc - <<EVILEOF
EVILEOF
./a.out
XCode as C compiler