|
|
|
|
|
by strainer
2608 days ago
|
|
I wrote 3Kloc of C++ for a dwarf fortress plugin while convalescing with very poor eyesight, and did not ever get around to figuring out how to start gdb, so crashes could involve alot of pondering or compiling in logging to track down simply where in the source it occurred. A couple of months ago I finally had a go at using gdb to help fix a reported crash, and found that with a debug built executable, just type "gdb progname" and then at gdb's prompt "run" - hey presto if the program crashes it gives the source line. No problem that the entry executable wasnt built with symbols. It was hugely useful for a tiny learning step. |
|