how do I debug core files?

Marty Leisner (leisner@sdsp.mc.xerox.com)
Fri, 3 May 1996 10:40:15 PDT


I'm running:
gdb 4.16
linux 1.3.94

I never got it working, I heard in the path it was problems...

Now I decided I need to...

How do I examine core files?
leisner@thingy; gdb --version
GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc.
: leisner@thingy; ulimit -c
unlimited
: leisner@thingy; file core
core: ELF 32-bit LSB core file i386 (386 and up) Version 1
: leisner@thingy; ls -l mkbuiltins
-rwxr-xr-x 1 leisner users 116262 May 3 13:31 mkbuiltins*
: leisner@thingy; file mkbuiltins
mkbuiltins: ELF 32-bit LSB executable i386 (386 and up) Version 1
: leisner@thingy; gdb mkbuiltins core
GDB is free software and you are welcome to 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.
GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
Couldn't fetch registers from core file: File in wrong format
Couldn't fetch registers from core file: File in wrong format
#0 0x0 in ?? ()
(gdb)

marty leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
Arthur C. Clarke, The Lost Worlds of 2001