mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Added stack traces and better error reporting in C++
When an error is reported or an assertion fails in C++, a line is now printed with information about where the error occured, and a stack trace is printed. The stacktrace isn't implemented in the HAL because it's not hardware-dependent, so StackTrace.hpp and StackTrace.cpp are gone. The Eclipse project template is modified to include "-export-dynamic" in the linker options, which is necessary for stack traces. Change-Id: Ie86c14185b13ed603d0fe6467e87ba4f731b1913
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __vxworks
|
||||
#include <vxWorks.h>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
void printCurrentStackTrace();
|
||||
}
|
||||
Reference in New Issue
Block a user