From owner-freebsd-questions@FreeBSD.ORG Mon Nov 10 03:59:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2BE7106568F for ; Mon, 10 Nov 2008 03:59:24 +0000 (UTC) (envelope-from rumuru@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 925178FC14 for ; Mon, 10 Nov 2008 03:59:24 +0000 (UTC) (envelope-from rumuru@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so1409578qwb.7 for ; Sun, 09 Nov 2008 19:59:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=nsYU549I2Ajjf9rNiHRksifeQFySfX0kuZ96xHfp98w=; b=DaYxfYiEg99hydvGYjXxGO13N4vEIVkRP0Fr1soXh+SPEKB5MOeAQ6mJ7GBJBR3jo4 KeG/Fe2G1AYUbuaOLn+k1Vy4tpfgpkdTerU3RdJtnhv/8xbo/WN5YJB6UrW/mABTSifM kkcNpr0XSn6XaI5kjWn5JK1rT0uPKJQEFkLg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=qaqkXAKDeCWTSyr3PfTCj7m/2SbsxL/wiPnG2zGVEFFCHrOsBBoFU0ZYk0+lT+cJVY K2i9azzdPepAK/apIh646eeZYWnOgnOgeCveSiZl/zgBXuj/JAVOR3iuQVNVi8WTAztH F3pNzSxntsuiC6mH1G/+a1urLzjfTFwE9eAJg= Received: by 10.215.39.5 with SMTP id r5mr6029091qaj.149.1226287891867; Sun, 09 Nov 2008 19:31:31 -0800 (PST) Received: by 10.215.41.10 with HTTP; Sun, 9 Nov 2008 19:31:31 -0800 (PST) Message-ID: Date: Sun, 9 Nov 2008 22:31:31 -0500 From: "Mungyung Ryu" To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 10 Nov 2008 12:15:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: eclipse-cdt debugging doesn't work on FreeBSD 7.0 amd64? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 03:59:24 -0000 Hello BSD guys, My system information is like this. - FreeBSD 7.0-RELEASE amd64 - gcc 4.2.1 - gdb 6.1.1 - eclipse-cdt-3.1.2_1 I used ports tree to compile and install eclipse-cdt-3.1.2_1. Running eclipse and compiling my C++ project are fine. But, when I try to debug, an error dialog box pops up and says 'Target selection failed'. The verbose console mode of the debugger option prints below. 46-gdb-set confirm off 46^done (gdb) 47-gdb-set width 0 47^done (gdb) 48-gdb-set height 0 48^done (gdb) 49-interpreter-exec console echo 49^done (gdb) 50-gdb-show prompt 50^done,value="(gdb) " (gdb) 51-gdb-set auto-solib-add on 51^done (gdb) 52-gdb-set stop-on-solib-events 0 52^done (gdb) 53-gdb-set stop-on-solib-events 1 53^done (gdb) 54-gdb-set remotebaud 115200 54^done (gdb) 55-target-select remote /dev/ttyS0 &"/dev/ttyS0: No such file or directory.\n" /dev/ttyS0: No such file or directory. 55^error,msg="/dev/ttyS0: No such file or directory." (gdb) 56-gdb-exit 56^exit The default debugger option of the eclipse is below. Debugger: gdbserver Debugger GDB debugger: gdb GDB command file: .gdbinit GDB command set: Standard Protocol: mi Connection Type: Serial Device: /dev/ttyS0 Speed: 115200 As the error message says, there is no file or directory at /dev/ttyS0 in my system. I've also tried another debugger connection option like below. Connection Type: TCP Host name or IP address: localhost Port number: 10000 It prints message like this. 68-gdb-set confirm off 68^done (gdb) 69-gdb-set width 0 69^done (gdb) 70-gdb-set height 0 70^done (gdb) 71-interpreter-exec console echo 71^done (gdb) 72-gdb-show prompt 72^done,value="(gdb) " (gdb) 73-gdb-set auto-solib-add on 73^done (gdb) 74-gdb-set stop-on-solib-events 0 74^done (gdb) 75-gdb-set stop-on-solib-events 1 75^done (gdb) 76-target-select remote localhost:10000 &"localhost:10000: Connection refused.\n" localhost:10000: Connection refused. 76^error,msg="localhost:10000: Connection refused." (gdb) 77-gdb-exit 77^exit I'm using PF for a firewall and opened TCP connection for port 10000 and I even disabled PF, but it has same error. There is anybody who've had and solved this kind of problem of eclipse? I'll really appreciate your solution. Going back to the command line gdb is quite miserable. I really wanna use eclipse for C++ debugging. Thanks.