projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30c1917
)
Tweak backtrace file for Windows.
author
Carl Hetherington
<cth@carlh.net>
Tue, 3 Jun 2014 13:48:38 +0000
(14:48 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 3 Jun 2014 13:48:38 +0000
(14:48 +0100)
src/lib/util.cc
patch
|
blob
|
history
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index e8116536526b0b0af4f20f64deafceae6adfc5e2..bbe6f77e1f26e2e8542031d18911632ba83d8f67 100644
(file)
--- 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;