I run your code by compiling it in two ways.
1. gcc hello.c

(gdb) run
Starting program: /home/waldemar/tmp/a.out
(no debugging symbols found)
Failed to read a valid object file image from memory.
(no debugging symbols found)
hello!

2. gcc -g hello.c -o hello

(gdb) run
Starting program: /home/waldemar/tmp/hello
Failed to read a valid object file image from memory.
hello!

Just trying to provide more information.

-- 
Waldemar Amado Bautista

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

Reply via email to