From owner-freebsd-hackers Fri Feb 6 12:52:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA25561 for hackers-outgoing; Fri, 6 Feb 1998 12:52:55 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from atlantis.eunet.at (a064.static.Vienna.AT.EU.net [193.154.186.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA25514; Fri, 6 Feb 1998 12:52:44 -0800 (PST) (envelope-from hfwirth@eunet.at) Received: from atlantis (localhost.ping.at [127.0.0.1]) by atlantis.eunet.at (8.8.8/8.6.12) with SMTP id RAA07731; Mon, 2 Feb 1998 17:25:38 +0100 (MET) Message-ID: <34D5F382.41C67EA6@eunet.at> Date: Mon, 02 Feb 1998 17:25:38 +0100 From: "Helmut F. Wirth" X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: hackers@FreeBSD.ORG CC: emulation@FreeBSD.ORG Subject: Cross debugging Linux programs on FreeBSD works! 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" 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