Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Can't debug core files with GDB
@ 2006-05-17  0:02 Tony Lin
  2006-05-17 13:34 ` Daniel Jacobowitz
  0 siblings, 1 reply; 14+ messages in thread
From: Tony Lin @ 2006-05-17  0:02 UTC (permalink / raw)
  To: linux-mips

Hi there,

I have a gdb-6.4 that I cross-compiled for mips-linux. Along with my
test program, I can use gdb to walk the code execution just fine, but
is unable to read core dumps. Maybe you guys can spot if I did
something wrong.

Machine used to compile gdb:
---
i386-linux, using cross-compiled mips toolchain (gcc 3.4.3, glibc 2.3.2)
target kernel is mips-linux-2.6.6

gdb was configured with:
---
export CC=mipsisa32-linux-gcc
export AR=mipsisa32-linux-ar
../gdb/configure --build=i386-linux --host=mips-linux
--target=mips-linux --disable-sim

resulting gdb file:
gdb: ELF 32-bit MSB executable, MIPS, version 1 (SYSV), for GNU/Linux
2.4.3, dynamically linked (uses shared libs), not stripped


When I force a core file and try to debug it, I get empty values:

> ./gdb ./nebtest ./core.524.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 ?? ()







Any idea what this may be? It's strange because if I just do 'gdb
nebtest' I can step through the program just fine. It's reading core
files that fail.

Thanks much!

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-05-27  0:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-17  0:02 Can't debug core files with GDB Tony Lin
2006-05-17 13:34 ` Daniel Jacobowitz
2006-05-17 18:39   ` Tony Lin
2006-05-19 13:02     ` Daniel Jacobowitz
2006-05-24  8:14     ` ashley jones
2006-05-25  1:44       ` Tony Lin
2006-05-25  6:05         ` ashley jones
2006-05-25 13:35         ` Daniel Jacobowitz
2006-05-26  0:50           ` Tony Lin
2006-05-26  2:45             ` Daniel Jacobowitz
2006-05-26 11:39               ` Johannes Stezenbach
2006-05-27  0:21                 ` Tony Lin
2006-05-27  0:45                   ` Daniel Jacobowitz
2006-05-27  0:46                   ` Johannes Stezenbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox