* Failed to read a valid object file image from memory (PLEASE HELP)
@ 2008-08-25 18:10 Lenny K
2008-08-26 19:17 ` Michael Snyder
0 siblings, 1 reply; 2+ messages in thread
From: Lenny K @ 2008-08-25 18:10 UTC (permalink / raw)
To: gdb
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!
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Failed to read a valid object file image from memory (PLEASE HELP)
2008-08-25 18:10 Failed to read a valid object file image from memory (PLEASE HELP) Lenny K
@ 2008-08-26 19:17 ` Michael Snyder
0 siblings, 0 replies; 2+ messages in thread
From: Michael Snyder @ 2008-08-26 19:17 UTC (permalink / raw)
To: Lenny K; +Cc: gdb
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!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-25 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-25 18:10 Failed to read a valid object file image from memory (PLEASE HELP) Lenny K
2008-08-26 19:17 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox