Tweak backtrace file for Windows.
authorCarl Hetherington <cth@carlh.net>
Tue, 3 Jun 2014 13:48:38 +0000 (14:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 3 Jun 2014 13:48:38 +0000 (14:48 +0100)
src/lib/util.cc

index e8116536526b0b0af4f20f64deafceae6adfc5e2..bbe6f77e1f26e2e8542031d18911632ba83d8f67 100644 (file)
@@ -266,8 +266,9 @@ LONG WINAPI exception_handler(struct _EXCEPTION_POINTERS *)
 {
        dbg::stack s;
        FILE* f = fopen_boost (backtrace_file, "w");
+       fprintf (f, "Exception thrown:");
        for (dbg::stack::const_iterator i = s.begin(); i != s.end(); ++i) {
-               fprintf (f, "%p %s %d %s", i->instruction, i->function.c_str(), i->line, i->module.c_str());
+               fprintf (f, "%p %s %d %s\n", i->instruction, i->function.c_str(), i->line, i->module.c_str());
        }
        fclose (f);
        return EXCEPTION_CONTINUE_SEARCH;