From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6852 invoked by alias); 9 Sep 2009 18:50:16 -0000 Received: (qmail 6801 invoked by uid 22791); 9 Sep 2009 18:50:13 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Sep 2009 18:50:07 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n89InmmE006475; Wed, 9 Sep 2009 20:49:48 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n89Inmkr014770; Wed, 9 Sep 2009 20:49:48 +0200 (CEST) Date: Wed, 09 Sep 2009 18:50:00 -0000 Message-Id: <200909091849.n89Inmkr014770@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: andreast-list@fgznet.ch CC: gdb@sourceware.org In-reply-to: <4AA7F35A.8080705@fgznet.ch> (message from Andreas Tobler on Wed, 09 Sep 2009 20:26:34 +0200) Subject: Re: powerpc port question References: <4AA7F35A.8080705@fgznet.ch> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00148.txt.bz2 > Date: Wed, 09 Sep 2009 20:26:34 +0200 > From: Andreas Tobler > > My attempt bases on gdb-6.6 source, GPL-2 based. The structure of the > source is more or less equal as the NetBSD port for powerpc. In general you want to look at the OpenBSD support instead of NetBSD. It's in a much better shape ;). > I digged through the source and I do not get the point. > > In my _initialize_ppcfbsd_tdep I call > > gdbarch_register_osabi(bfd_arch_powerpc, bfd_mach_ppc, > GDB_OSABI_FREEBSD_ELF, > ppcfbsd_init_abi); You'll need to add something like: gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_FREEBSD_ELF, ppcfbsd_init_abi); gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_FREEBSD_ELF, ppcfbsd_init_abi); (both lines seem to be necessary given the way BFD makes a distinction between rs6000 and powerpc, but ELF doesn't).