From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9653 invoked by alias); 12 Jan 2008 20:16:21 -0000 Received: (qmail 9643 invoked by uid 22791); 12 Jan 2008 20:16:21 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 12 Jan 2008 20:15:59 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9A95098223; Sat, 12 Jan 2008 20:15:57 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 6339B9811D; Sat, 12 Jan 2008 20:15:57 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JDmlo-0007m8-FL; Sat, 12 Jan 2008 15:15:56 -0500 Date: Sat, 12 Jan 2008 20:16:00 -0000 From: Daniel Jacobowitz To: Vadtec Cc: gdb@sourceware.org Subject: Re: gdb OS ABI support Message-ID: <20080112201556.GA29871@caradoc.them.org> Mail-Followup-To: Vadtec , gdb@sourceware.org References: <47890BA0.6070005@vadtec.net> <20080112194332.GA28094@caradoc.them.org> <47891B77.7040905@vadtec.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47891B77.7040905@vadtec.net> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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: 2008-01/txt/msg00087.txt.bz2 On Sat, Jan 12, 2008 at 01:56:39PM -0600, Vadtec wrote: > Daniel Jacobowitz wrote: >> On Sat, Jan 12, 2008 at 12:49:04PM -0600, Vadtec wrote: >> >>> I am running on CentOS 5 (RHEL offshoot). I need to be able to back >>> trace cores from a FreeBSD box. How can I compile the FreeBSD ELF OS >>> ABI into my gdb so that I can do it on my CentOS box? >>> >> >> Use --target. You'll also need to copy libraries from the FreeBSD >> system and use "set sysroot". >> >> > Ok, I am new to this. what do I provide to --target? --target=FreeBSD ? > And what libraries will i need to copy from the fBSD system? What is the > purpose of set sysroot in this case? Where do I use it? Inside gdb? On > the shell? > > Thanks for the reply, I just need some more info to go on. I've never > tried a cross system core back trace, so this is all new to me. Pretty much all of this is covered in the GDB manual. If you run GDB on the FreeBSD system its startup message will probably tell you what target to use. -- Daniel Jacobowitz CodeSourcery