From owner-freebsd-eclipse@FreeBSD.ORG Mon Nov 10 20:57:59 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 9E0341065672 for ; Mon, 10 Nov 2008 20:57:59 +0000 (UTC) (envelope-from sepotvin@FreeBSD.org) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 7005B8FC16 for ; Mon, 10 Nov 2008 20:57:59 +0000 (UTC) (envelope-from sepotvin@FreeBSD.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [10.0.0.247] ([67.70.237.74]) by VL-MO-MR002.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTPA id <0KA4004V0Y8M6750@VL-MO-MR002.ip.videotron.ca> for freebsd-eclipse@freebsd.org; Mon, 10 Nov 2008 15:57:58 -0500 (EST) Message-id: <4918A055.7090505@FreeBSD.org> Date: Mon, 10 Nov 2008 15:57:57 -0500 From: "Stephane E. Potvin" Organization: FreeBSD User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) To: rick-freebsd2008@kiwi-computer.com References: <49182E34.2010504@FreeBSD.org> <20081110201637.GA56821@keira.kiwi-computer.com> In-reply-to: <20081110201637.GA56821@keira.kiwi-computer.com> 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 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:57:59 -0000 Rick C. Petty wrote: > 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? > It depends, If you want to use a managed Makefile project then you'll have to select a valid Toolchain (Linux being the one closest to us, so the more likely to work out of the box). If you provide your own Makefile then it should not make much of a difference as Eclipse won't control how the compiler/linker will be called anyway. > 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. > stdout and stdin should both work fine. stderr will not work with the stock cdt plugin. The pty allocation functions are not the same between Linux and FreeBSD and as such don't really work with the Linux plugin. The cdt plugin will need to be ported for this to work correctly. Could you provide me with a small Eclipse project that reproduce this? > - 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. Hmm... I never enable this function as I don't want a full buildworld/buildkernel to kick in each time I save a file so I can't comment. I'll try to setup a small project and see if I can find something. > > *** 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 Steph