Is it possible to get a core dump of a running process and its symbol table?

Solution 1:

$ gdb --pid=26426
(gdb) gcore
Saved corefile core.26426
(gdb) detach

Solution 2:

Or run gcore $(pidof processname).

This has the benefit (over running gdb and issuing commands to the CLI) that you attach and detach in the shortest possible time.

Solution 3:

You can used generate-core-file command in gdb to generate core dump of running process.