Marin D wrote:
> Hi,
>
> How could I know which executable has dumped a core by simply looking at
> the dumped core file? Is the name quoted in the very beginning of the core
> as I think?
I use a little trick :
$ gdb ls 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-debian-linux), Copyright 1996 Free Software Foundation, Inc...
(no debugging symbols found)...
warning: core file may not match specified executable file.
Core was generated by `cdrecord -v speed=4 fs=8 dev=s -isosize
/dev/hdd'.
Program terminated with signal 11, Segmentation fault.
...
As you see when you give a program that don't match the core file , gdb
will tell you what command has generated the core.
david