From owner-freebsd-hackers Sat Feb 7 08:02:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA22846 for hackers-outgoing; Sat, 7 Feb 1998 08:02:01 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bachue.usc.unal.edu.co ([168.176.3.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA22762 for ; Sat, 7 Feb 1998 08:01:38 -0800 (PST) (envelope-from pgiffuni@asme.org) Received: from pedro.unal.edu.co ([168.176.3.33]) by bachue.usc.unal.edu.co (Netscape Messaging Server 3.0) with SMTP id AAA16999; Sat, 7 Feb 1998 11:04:17 +0500 Message-ID: <34DBEE5A.41C67EA6@asme.org> Date: Sat, 07 Feb 1998 00:55:02 -0500 From: "Pedro F. Giffuni" Organization: U. Nacional de Colombia X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: "Helmut F. Wirth" CC: hackers@FreeBSD.ORG Subject: Re: Cross debugging Linux programs on FreeBSD works! References: <34D5F382.41C67EA6@eunet.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" BTW, FWIW, and so on. I finished a new version of the crosssco, Donald Maddox helped me with the Linux version, and Jerry Hicks is working on an m68k-coff port. Unfortunately the new kit causes a core dump with our old gas, so I'll have to wait for a real update of our native binutils to submit them. This will make a heck of a developers environment for FreeBSD :). cheers, Pedro. Helmut F. Wirth wrote: > > Hello ! > > To all interested parties: I have a solution for debugging Linux > programs under FreeBSD. I will give a short description here, because > the recent discussion was in hackers too. Look for more in emulation > or send an email to me: > What I did: > According to John Polstra's newer instructions I installed the > binutils-2.8.1 and built his elfkit. This step is useful, but not > neccessary. What you need in any case are the binutils-2.8.1. > I configured them for i386-unknown-freebsdelf. With some small patches > (rather hacks) I am able to build the FreeBSD-current sources of gdb > in a fresh directory for debugging of native FreeBSD programs in ELF > binary format and for debugging Linux ELF binaries, including shared > libs. > Please keep in mind, that this solution is *not well tested* !! > But it seems to work! > For detailed instructions and more please refer to emulation@freebsd.org > If somebody is willing to contribute free space on a ftp-server I will > download the binaries for linux-gdb and elf-gdb > > Regards > Helmut > -- > Helmut F. Wirth > Email: hfwirth@ping.at