From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9499 invoked by alias); 23 Aug 2008 14:53:43 -0000 Received: (qmail 9491 invoked by uid 22791); 23 Aug 2008 14:53:42 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.242) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 23 Aug 2008 14:52:40 +0000 Received: by rv-out-0708.google.com with SMTP id b17so1034538rvf.48 for ; Sat, 23 Aug 2008 07:52:38 -0700 (PDT) Received: by 10.114.157.3 with SMTP id f3mr2075377wae.40.1219503158779; Sat, 23 Aug 2008 07:52:38 -0700 (PDT) Received: by 10.115.55.11 with HTTP; Sat, 23 Aug 2008 07:52:38 -0700 (PDT) Message-ID: <669c22570808230752o26d417d9wa0d03a84a48f59e6@mail.gmail.com> Date: Mon, 25 Aug 2008 18:10:00 -0000 From: "Lenny K" To: gdb@sourceware.org Subject: Failed to read a valid object file image from memory (PLEASE HELP) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00271.txt.bz2 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: #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!