From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9565 invoked by alias); 29 Dec 2006 17:43:31 -0000 Received: (qmail 9550 invoked by uid 22791); 29 Dec 2006 17:43:31 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 29 Dec 2006 17:43:21 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H0LlG-0004Cg-Vm; Fri, 29 Dec 2006 12:43:19 -0500 Date: Fri, 29 Dec 2006 17:43:00 -0000 From: Daniel Jacobowitz To: John Utz Cc: gdb@sources.redhat.com, crossgcc@sourceware.org Subject: Re: gdb on fc6, gdbserver on rh62, which libthread_db.so do i use on which platform? Message-ID: <20061229174318.GA16093@nevyn.them.org> Mail-Followup-To: John Utz , gdb@sources.redhat.com, crossgcc@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-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: 2006-12/txt/msg00220.txt.bz2 On Fri, Dec 29, 2006 at 09:33:39AM -0800, John Utz wrote: > gdb indicates that my application is segfaulting, and based on googling > and finding my *own* email from 2004 and danielj's response, I know that > I need to have matching libthread_db's on both sides of the wire. > > *which* libthread_db? That's incorrect. You need matching _libraries_ - that's the libraries used by your program, not the libraries used by GDB. The gdb client will never look at its libthread_db. On your target, you should have the libthread_db that came with the libpthread you're using. On the host, you should have a complete filesystem image of the target. Use solib-absolute-prefix to point to it. I really need to write a section about this in the manual. -- Daniel Jacobowitz CodeSourcery