Assuming this is on a *nix system of some description:
$ file core
Or possibly:
$ gdb core
(But this is more an OS-specific question, not a C++ question)
--
Richard Herring
That's true, but there's a rather obvious answer (which is valid
for all systems---and all languages): the core dump is from the
program which crashed; i.e. which didn't finish its job.
--
James Kanze
Interesting, but in a way not helpful: since the core dump already
contains the process name, making the file name contain it too adds no
information.
Even more offtopic: I find naming core files counter-productive in
practice. If your software is broken and tends to crash, named core
dumps will eventually make someone decide to *disable* core dumps, to
avoid filling the disk. And then you are stuck with no information at
all for your C++ debugging sessions.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .