나는 이것 역시 알아 차렸다. 엑스 코드 4.1 (tty /dev/ttys000
) gdb
는 다음과 같이 시작되었는지 보인다 :
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
그러나 엑스 코드 4.2
- 없음
tty /dev/ttys000
:
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
이이 당신이 명령에서 다음을 수행 할 수 있습니다 해결하려면 줄 (Terminal.app/iTerm/etc) :
echo 'tty /dev/ttys000' >> ~/.gdbinit
# Or, put it into the global gdb config:
# echo 'tty /dev/ttys000' >> /etc/gdb.conf
그런 다음 Xcode를 다시 시작하면 종료 코드가 다시 나타납니다. !
는 엑스 코드 4.2의 GDB 래퍼 4.1
[ 13:29 [email protected]/]$ ls -l /Developer/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB
-rwxrwxr-x 1 root admin 351936 Sep 20 13:23 /Developer/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB
-rwxrwxr-x 1 root admin 353776 Oct 8 14:21 /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB
[ 13:33 [email protected]/]$ ls -l /Developer/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB
-rwxrwxr-x 1 root admin 1976144 Sep 20 13:23 /Developer/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB
-rwxrwxr-x 1 root admin 1948240 Oct 8 14:21 /Developer-4.2/Library/Xcode/PrivatePlugIns/DebuggerGDB.ideplugin/Contents/MacOS/DebuggerGDB
감사 이후 변경된 것 같습니다! 그게 완벽하게 작동합니다. – Jeff
불행히도이 진술서를 철회해야합니다. 처음에 그것은 작동하는 것처럼 보였지만 지금은 일관성이없는 것처럼 보입니다. 경우에 따라 종료 코드가 나타나기도하고 때로는 종료 코드가 나타나기도합니다. 다른 아이디어? – Jeff
@Jeff 이것을'echo 'tty/dev/ttys000 >> >>/etc/gdb.conf와 같이 글로벌 gdb 설정에 넣으십시오. – chown