Jonathan G Rennison
1615137481
Adjust format of vehicle scope dumping
2018-01-29 00:14:55 +00:00
Jonathan G Rennison
27ac2f5894
Scope info: Adjust formatting of vehicle dump info
2017-06-21 21:10:22 +01:00
Jonathan G Rennison
f80bebae7c
Scope info: Log whether vehicle pointer is a virtual vehicle.
2016-12-18 00:47:11 +00:00
Jonathan G Rennison
cbc35e8aae
Try to make scope info logging more robust.
...
Add checks for validity of Vehicle ptrs in scope_dumper::VehicleInfo.
In Unix mode, try to handle SIGSEGVs when dumping scope info.
2016-02-25 19:21:06 +00:00
Jonathan G Rennison
0062881a46
Avoid using malloc in scope guard logger.
...
Use a temporary object with its own buffer, which lives on the stack.
Reformat SCOPE_INFO_FMT to not be all on one line.
Other minor reformatting.
2016-02-25 00:20:31 +00:00
Jonathan G Rennison
5cf2b04f6a
Initial implementation of scope guard logging for including in crash logs.
...
This adds a mechanism to create scope guards with an associated std::function
which is called to output diagnostic info in the event of a crash.
Add a macro to make it easy to efficiently capture variables on the stack
and output a formatted message.
Requires C++11, #ifdefed out for legacy compilers.
2016-02-17 22:41:07 +00:00