From: "Lenny K" <lennyk430@gmail.com>
To: gdb@sourceware.org
Subject: Failed to read a valid object file image from memory (PLEASE HELP)
Date: Mon, 25 Aug 2008 18:10:00 -0000 [thread overview]
Message-ID: <669c22570808230752o26d417d9wa0d03a84a48f59e6@mail.gmail.com> (raw)
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 <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!
next reply other threads:[~2008-08-23 14:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 18:10 Lenny K [this message]
2008-08-26 19:17 ` Michael Snyder
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=669c22570808230752o26d417d9wa0d03a84a48f59e6@mail.gmail.com \
--to=lennyk430@gmail.com \
--cc=gdb@sourceware.org \
/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