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:
Thomas Clark
2014-07-28 16:25:37 -04:00
parent 338120c3a5
commit 89fe909ae6
9 changed files with 162 additions and 156 deletions

View File

@@ -6,7 +6,6 @@
#include "ErrorBase.h"
#include "HAL/cpp/Synchronized.hpp"
#include "HAL/cpp/StackTrace.hpp"
#include "nivision.h"
#define WPI_ERRORS_DEFINE_STRINGS
#include "WPIErrors.h"