This is the mail archive of the 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]

Re: Failed to read a valid object file image from memory (PLEASE HELP)

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 <>
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.
Cannot insert breakpoint 1.
Error accessing memory address 0x10000494: Input/output error.
Cannot insert breakpoint -1.
Temporarily disabling shared library breakpoints:
breakpoint #-1


Kernel version is:

Please help...


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