Remote debugging using Xcode
Remote debugging using Xcode
- Subject: Remote debugging using Xcode
- From: Cyril Dubus <email@hidden>
- Date: Tue, 13 Apr 2010 11:45:35 +0200
Hi all,
I'm planning to code on my mac and run on my server, because they don't have the same architecture. I really would like to build and debug remotely.
I've managed to create a shared build location, with sshfs, and I can build remotely via a ssh command in the target properties. Until now, everything is fine. But when I'm trying to debug remotely (via ssh and gdb) I'm getting an error :
Error Starting Executable
Check its arguments and the debugger console.
Undefined MI command: mi-verify-command
Here is the log in the console :
*******************************************************
[Session started at 2010-04-13 11:13:35 +0200.]
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to
myserver.com [xxx.xxx.xxx.xxx] port xx.
debug1: Connection established.
debug1: identity file /path/to/my/rsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '
myserver.com' is known and matches the RSA host key.
debug1: Found key in /Users/my_user/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Offering public key: /path/to/my/rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting
email@hiddendebug1: Entering interactive session.
debug1: Sending command: /usr/bin/gdb --interp=mi1 -q
GNU gdb (GDB) Fedora (6.8.50.20090302-40.fc11)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
Loading program into debugger…
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
(gdb) run
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>.
cd '/Users/my_user/my_project'
'/Users/my_user/my_project': No such file or directory.
Program loaded.
Running…
*running,thread-id="all"
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff7fec910 (LWP 6084)]
*running,thread-id="all"
[New Thread 0x7ffff77eb910 (LWP 6085)]
*running,thread-id="all"
[New Thread 0x7ffff6fea910 (LWP 6086)]
*running,thread-id="all"
[New Thread 0x7ffff67e9910 (LWP 6087)]
*running,thread-id="all"
[New Thread 0x7ffff5fe8910 (LWP 6088)]
*running,thread-id="all"
*******************************************************
I notice two things : No symbol table is loaded. Use the "file" command : I don't know what it means, but I think it's not important and '/Users/my_user/my_project': No such file or directory. This one is very strange. On my local computer, the directory exists. On my remote computer, the directory doesn't exist but I made it, to see if there is a difference, and ... there isn't. The command cd '/Users/my_user/my_project' is working on the remote computer (no rights problem) but Xcode keeps logging : '/Users/my_user/my_project': No such file or directory. Strange, but again, I don't think this is important.
Anyway, the strangest thing is that the program is launched on the server. Despite of the error called "Error starting executable", the program is there and running, but the debugger doesn't see it.
Does anyone know what is the mi-verify-command ? Why it says it's missing ? Is it a difference between gdb on fedora and gdb on Mac ? Is there any way to get around it ?
Thank you !
Cyril
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden