This starts partially from why doesn't gdb like aliases
Now I put the following arguments -
gdb firefox-esr
(gdb) set logging file my-firefox-esr-1802018.log
(gdb) set pagination 0
(gdb) show logging
Future logs will be written to firefox-esr-020818.log.
Logs will be appended to the log file.
Output will be logged and displayed.
(gdb) run --safe-mode
when it crashed I did -
(gdb) bt
(gdb) thread apply all bt
When it finished showing all the threads and the outputs therein I put
(gdb) quit
But now when I am in /home/shirish I don't see that log file. Should I have given the whole path ?