Not sure if this is the best forum to ask GDB questions. If someone can point me to a better place to ask GDB cross compilation questions that would be very appreciated. I'm new at this so please be gentle
I cross compiled gdb 6.4 on my i386-linux using mips-linux as the target. Once on the MIPS linux, I loaded my hello world program with gdb, walked through the lines, and everything worked fine. The mips hello world program was compiled using mips-gcc -g -O0.
I then changed the hello world program to cause a segmentation fault and produce the core. I then loaded up gdb to debug the core file but it was all empty??? Does anyone know why debugging core dumps will fail when debug of the original program works? I did an elf read and it looks like the symbols are there.
> ./gdb ./nebtest core.5132.nebtest
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mips-linux"...Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./nebtest'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
#0 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x00000000 in ?? ()