How did you compile it?
gcc -g hello.c -o hello

I see, that you don't provided a binaryname (-o hello) so you got an old
binarytipe (.out).
Perhaps that's the problem. ELF is the type linux uses nowadays.

chenct schrieb:
> I have arch 0.8 installed, and all package is up to date.
> but when I debugging programs with GDB, i always get the "Failed to
> read a valid object file image from memory" error, which cause the
> anjuta debugger crash.
> 
> code:
> #include <stdio.h>
> int main()
> {
>       puts("hello!");
>       return 0;
> }
> 
> the output of GDB
> ...
> (gdb) run
> Starting program: /home/***/a.out
> (no debugging symbols found)
> Failed to read a valid object file image from memory.
> (no debugging symbols found)
> hello!
> 
> How can I fix it?
> 
> _______________________________________________
> arch mailing list
> arch@archlinux.org
> http://www.archlinux.org/mailman/listinfo/arch
> 
> 


-- 
Gruß, Johannes
http://www.hehejo.de

_______________________________________________
arch mailing list
arch@archlinux.org
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to