I have core dump file and gdb. I can do
gdb <executable> <core_file>
(gdb)bt
This will give me backtrace but I want to do this using a shell script and in non-interactive mode. Writing gdb exe core
takes me to gdb CLI and needs manual intervention.
Any idea how can I automate it?