From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17242 invoked by alias); 1 Jun 2004 00:49:19 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17234 invoked from network); 1 Jun 2004 00:49:19 -0000 Received: from unknown (HELO mail-fs.sunrise.ch) (194.158.229.32) by sourceware.org with SMTP; 1 Jun 2004 00:49:19 -0000 Received: from natsumi.localdomain (62.167.31.7) by mail-fs.sunrise.ch (7.0.028) id 409AC667007E9749 for gdb@sources.redhat.com; Tue, 1 Jun 2004 02:49:18 +0200 From: Gregor Riepl Organization: HTA Biel To: gdb@sources.redhat.com Subject: Building a cross-gdb with host=i686-pc-linux-gnu and target=powerpc-apple-darwin Date: Tue, 01 Jun 2004 00:49:00 -0000 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406010249.17839.seto-kun@freesurf.ch> X-SW-Source: 2004-06/txt/msg00000.txt.bz2 Hi, this is my first posting here. How can I build a cross-gcc on my Linux box (host=i686-pc-linux-gnu) for kernel debugging on my iBook G4 running Mac OS X 10.3.4? Apple doesn't cover this issue in their docs and I couldn't find any decent cross-gdb information on the net. I tried to use gdb-5.3 with a more recent libbfd (the included one doesn't know about Darwin), but this gives me a gdb that doesn't understand Mach-O: "I'm sorry, Dave, I can't do that. Symbol format `mach-o-be' unknown." gdb-6.3 builds, but I don't get a gdb, only a few support libs. I also tried Apple's gdb-309, which seems to need Darwin headers. Maybe I can get it to work if I just copy those over. Has someone tried this? gdb should easily do the job, but I had no luck yet. Thanks for your help! Gregor