Something about subject you may know, but let me summarize.
gdb is the tool, which can analyze core file.
Check the your version:
$ gdb --version
I will talk about
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
This GDB was configured as "x86_64-linux-gnu".
Syntax of command line is:
$ gdb [bin] [core]
The most rapid command is:
$ gdb core.12345
which prints binary of core, and the reason of core ( Aborted, Segmentaion Fault, and so on )