This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Failed to read a valid object file image from memory (again???)


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]