Commit Graph

9 Commits (d2d8a8681419ab5a4ad9e0127bf598ed73f358cb)

Author SHA1 Message Date
Jonathan G Rennison 4aa211e454 Merge branch 'crashlog_improvements' into jgrpp 6 years ago
Jonathan G Rennison bb8c18b017 Add scope info logging to LoadUnloadStation 6 years ago
Jonathan G Rennison faf4cdc0f4 Scope info: Add station/waypoint info dumper 6 years ago
Jonathan G Rennison 1615137481 Adjust format of vehicle scope dumping 7 years ago
Jonathan G Rennison 27ac2f5894 Scope info: Adjust formatting of vehicle dump info 7 years ago
Jonathan G Rennison f80bebae7c Scope info: Log whether vehicle pointer is a virtual vehicle. 8 years ago
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.
8 years ago
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.
8 years ago
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.
8 years ago