From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21074 invoked by alias); 26 Jun 2007 08:55:21 -0000 Received: (qmail 21065 invoked by uid 22791); 26 Jun 2007 08:55:20 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO iceblock01.celunite.com) (66.220.2.179) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Jun 2007 08:55:04 +0000 Received: from localhost (iceblock01.celunite.com [127.0.0.1]) by iceblock01.celunite.com (Postfix) with ESMTP id 4421DBFC0C7; Tue, 26 Jun 2007 01:54:45 -0700 (PDT) Received: from iceblock01.celunite.com ([127.0.0.1]) by localhost (iceblock01.celunite.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 97ZZswwX+Euy; Tue, 26 Jun 2007 01:54:28 -0700 (PDT) Received: from [192.168.200.54] (unknown [203.193.154.202]) (Authenticated sender: ramana.radhakrishnan@celunite.com) by iceblock01.celunite.com (Postfix) with ESMTP id 6F3FBBFC0BF; Tue, 26 Jun 2007 01:54:26 -0700 (PDT) Subject: Re: "failed to find valid object file", but which object file? (using static libraries) From: Ramana Radhakrishnan Reply-To: ramana.radhakrishnan@celunite.com To: Bram Kuijper Cc: gdb@sourceware.org In-Reply-To: <4680D290.8020303@rug.nl> References: <4680D290.8020303@rug.nl> Content-Type: text/plain Date: Tue, 26 Jun 2007 08:55:00 -0000 Message-Id: <1182847989.32515.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit 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: 2007-06/txt/msg00293.txt.bz2 On Tue, 2007-06-26 at 10:47 +0200, Bram Kuijper wrote: > Hi all, > > as a newbie, I am debugging a program which uses a number of self-made > static libraries. When running (gdb) start, the first message I get is: > > Failed to read a valid object file image from memory. > 0x08048d15 in main () > > Is there any way to find _which_ object file has failed to be read in? > > A simple ldd ./program will only give me a listing of standard linux > shared libraries, whereas no static libraries are displayed (I presume > the error is in one of my self-made static libraries). Could you give more information regarding the version of gdb being used, for which architecture and a small test case for the same ? Also the set of commands that you give to launch gdb so that you get the error would be most useful. cheers -Ramana > > Can one point to more information with which program I can find out > which static libraries are included? > > thanks in advance, > > Bram > > -- cheers Ramana Ramana Radhakrishnan IDE & Tools Group Celunite Inc (www.celunite.com)