From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7701 invoked by alias); 25 Aug 2008 17:29:05 -0000 Received: (qmail 7689 invoked by uid 22791); 25 Aug 2008 17:29:04 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.113.40.141) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Aug 2008 17:28:02 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.64.160]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id C1D0F6A5E; Mon, 25 Aug 2008 10:28:00 -0700 (PDT) Received: from [10.20.92.47] (promb-2s-dhcp47.eng.vmware.com [10.20.92.47]) by mailhost2.vmware.com (Postfix) with ESMTP id B260D8E7DF; Mon, 25 Aug 2008 10:28:00 -0700 (PDT) Message-ID: <48B2EB0A.2090305@vmware.com> Date: Tue, 26 Aug 2008 19:17:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Lenny K CC: "gdb@sourceware.org" Subject: Re: Failed to read a valid object file image from memory (PLEASE HELP) References: <669c22570808230752o26d417d9wa0d03a84a48f59e6@mail.gmail.com> In-Reply-To: <669c22570808230752o26d417d9wa0d03a84a48f59e6@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-08/txt/msg00274.txt.bz2 Lenny K wrote: > Hi all, > > I've cross-compiled gdb version 6.8 to powerpc-linux-gnu. > After installing it on my ppc embedded based machine - I ran it on > this simple C program: When you say "cross-compiled" -- what exactly do you mean? You used some other machine architecture to build a *native* ppc-linux-gnu gdb? And then you're running the gdb on the ppc-linux-gnu machine? > > #include > > int main() > { > printf("Hello World\n"); > return 0; > } > > And I got the following error: > gdb hello > GNU gdb 6.8 > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "powerpc-wrs-linux-gnu"... > (gdb) b main > Breakpoint 1 at 0x10000494: file hello.c, line 4. > (gdb) run > Starting program: /opt/dune_networks/ssf/v0000.0193/bins/hello > Failed to read a valid object file image from memory. > Warning: > Cannot insert breakpoint 1. > Error accessing memory address 0x10000494: Input/output error. > Cannot insert breakpoint -1. > Temporarily disabling shared library breakpoints: > breakpoint #-1 > > (gdb) > > > Kernel version is: 2.6.21.7 > > Please help... > > Thanks!