From owner-freebsd-eclipse@FreeBSD.ORG Mon Nov 10 04:01:14 2008 Return-Path: Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFE251065686 for ; Mon, 10 Nov 2008 04:01:14 +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 8C7458FC12 for ; Mon, 10 Nov 2008 04:01:14 +0000 (UTC) (envelope-from rumuru@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so1409885qwb.7 for ; Sun, 09 Nov 2008 20:01:13 -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=s9oivxK8WSy9lUbiSYt4XPeGcQmUz7kR28l1AIcuPzU=; b=CQUsEWC/TyiJr9ppQNCFMTptNVEgceSsRzNAasOL3ybv6OGeB0+xrBluqE/UftANle ByYQ+8cLxw53ArN/cAkmWvHBCiRJISQdGDwZpe/OTmr49XUwvqF7k+uKwcmnjS/GkuGS EhVJThdKSdX4KKu6nIPZMk2kFyD0r85RzPIuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=nu0iE6kzqLnDuWphNUHp+owL84CJOnPhBXNZgO6DT3itYpTo3u1qsqBy7JdThgaO5E zXQ6LHfFQ+J4LKrHFNs6OA0ZUOdleT+Mxr1AK31MNwC5jQWsTzB4eAnpAZ6gDaJ/h2EC lOn68FbFjqVIvWG9z513Dodq4NKQZAU6RhGqs= Received: by 10.215.101.2 with SMTP id d2mr6026801qam.238.1226287998009; Sun, 09 Nov 2008 19:33:18 -0800 (PST) Received: by 10.215.41.10 with HTTP; Sun, 9 Nov 2008 19:33:17 -0800 (PST) Message-ID: Date: Sun, 9 Nov 2008 22:33:17 -0500 From: "Mungyung Ryu" To: freebsd-eclipse@freebsd.org MIME-Version: 1.0 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-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 04:01:14 -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.