You have 3 problems:
1. you're using unbearably old gdb, try something with 7 as first version digit.
2. you're using 10.8 and this command
Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80001717)
failed. You have to search the internet how to make the terminal show using scripts, then tell us.
3. you're not using code tags when you're posting.