diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-03 14:48:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-03 14:48:38 +0100 |
| commit | 974c5553244616ba92caf70a67d42725c6224b97 (patch) | |
| tree | 45f49297ed4cbdf87b49a119cbc7023b9f73a1be /src/lib | |
| parent | 30c191768a0108edaf9bdf79febf1cc74ed73482 (diff) | |
Tweak backtrace file for Windows.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index e81165365..bbe6f77e1 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -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; |
