From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13470 invoked by alias); 1 Nov 2011 19:24:48 -0000 Received: (qmail 13459 invoked by uid 22791); 1 Nov 2011 19:24:47 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Nov 2011 19:24:32 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA1JOU81025460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 1 Nov 2011 15:24:30 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pA1JOUkx012900; Tue, 1 Nov 2011 15:24:30 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id pA1JOTsG014574; Tue, 1 Nov 2011 15:24:29 -0400 From: Tom Tromey To: "John Hein" Cc: gdb@sourceware.org Subject: Re: cross gdb for arm-freebsd References: <31555-1320078547-391519@sneakemail.com> Date: Tue, 01 Nov 2011 19:24:00 -0000 In-Reply-To: <31555-1320078547-391519@sneakemail.com> (John Hein's message of "Mon, 31 Oct 2011 10:29:04 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2011-11/txt/msg00008.txt.bz2 >>>>> "John" == John Hein writes: John> The gdb in the base FreeBSD is quite old (6.1.1) and I'm having John> trouble debugging a core file from a threaded application. A newer John> gdb (7.2 and 7.3.1) are in FreeBSD's ports system, but getting it to John> build for --target=arm-freebsd and read core files is proving John> difficult - I could use a few hints. John> --- orig/armfbsd-tdep.c 2007-11-18 10:07:47.000000000 -0700 John> +++ armfbsd-tdep.c 2011-10-31 10:14:58.000000000 -0600 This file isn't in gdb. I guess it is a FreeBSD addition. John> It compiles, but I'm getting this when I try to debug a core file: [...] John> warning: "/tmp/core1.core": no core file handler recognizes format, using default I think this is probably the root of your problems. I suggest debugging gdb and stepping through sniff_core_bfd. I don't know this area well but I think this function should find the core file reader for your target. Tom