Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Lenny K <lennyk430@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Failed to read a valid object file image from memory (PLEASE  HELP)
Date: Tue, 26 Aug 2008 19:17:00 -0000	[thread overview]
Message-ID: <48B2EB0A.2090305@vmware.com> (raw)
In-Reply-To: <669c22570808230752o26d417d9wa0d03a84a48f59e6@mail.gmail.com>

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 <stdio.h>
> 
> 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 <http://gnu.org/licenses/gpl.html>
> 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!


      reply	other threads:[~2008-08-25 17:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-25 18:10 Lenny K
2008-08-26 19:17 ` Michael Snyder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48B2EB0A.2090305@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb@sourceware.org \
    --cc=lennyk430@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox