From owner-freebsd-eclipse@FreeBSD.ORG Mon Nov 10 20:43:19 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 C526B106567B for ; Mon, 10 Nov 2008 20:43:19 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 579A18FC1A for ; Mon, 10 Nov 2008 20:43:19 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 57186 invoked by uid 2001); 10 Nov 2008 20:16:37 -0000 Date: Mon, 10 Nov 2008 14:16:37 -0600 From: "Rick C. Petty" To: "Stephane E. Potvin" Message-ID: <20081110201637.GA56821@keira.kiwi-computer.com> References: <49182E34.2010504@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49182E34.2010504@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-eclipse@freebsd.org Subject: Re: 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 Reply-To: rick-freebsd2008@kiwi-computer.com 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 20:43:19 -0000 On Mon, Nov 10, 2008 at 07:51:00AM -0500, Stephane E. Potvin wrote: > > You might want to try eclipse-devel (ganymede) with cdt installed via > Eclipse update (not via ports). Make sure you select the "Linux > Toolchain" when creating your project and debugging should work fine. > Bug me if something doesn't work. Unlike the original poster, I'm on FreeBSD 7.1-PRERELEASE for i386. I've been using ganymede and CDT 5.0.1 via the update site (http://download.eclipse.org/tools/cdt/releases/ganymede/) and was able to get debugging to work, eventually. It was painful to set up and I don't recall my exact steps. I did use the "Other Toolchain" instead of Linux Toolchain, but that shouldn't make a difference, right? Here are the two things that don't seem to be working correctly for me: - Program I/O does not appear in the console, even though a console is allocated when the program starts. I am able to step through code but nothing appears in the console, even if I use fflush(). Online investigation revealed few secrets. - Auto-build does not work as expected. Sometimes when I save files, it will run a "make build" (I gave it the "build" target for incremental builds). Othertimes (more often than not), it fails to do anything when I save changes. I had to disable the auto-build for this project and I have to manually build the project, of which I often forget to do. *** My installed software *** FreeBSD Eclipse SDK 3.4.1.1 (build id: M20080911-1700) CDT GNU Toolchain Build Support 5.0.1.200809120802 CDT GNU Toolchain Debug Support 5.0.1.200809120802 Eclipse C/C++++ Development Tools 5.0.1.200809120802 LR Parser 5.0.1.200809120802 -- Rick C. Petty