mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Move GetStackTrace and Demangle to wpiutil, add Windows support (#1819)
For Windows, import the StackWalker source (https://github.com/JochenKalmbach/StackWalker) plus PR 35 in that repo, with a few simplifications to StackWalker.h.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "frc/Error.h"
|
||||
|
||||
#include <wpi/Path.h>
|
||||
#include <wpi/StackTrace.h>
|
||||
|
||||
#include "frc/DriverStation.h"
|
||||
#include "frc/Timer.h"
|
||||
@@ -84,7 +85,7 @@ void Error::Report() {
|
||||
true, m_code, m_message,
|
||||
m_function + wpi::Twine(" [") + wpi::sys::path::filename(m_filename) +
|
||||
wpi::Twine(':') + wpi::Twine(m_lineNumber) + wpi::Twine(']'),
|
||||
GetStackTrace(4));
|
||||
wpi::GetStackTrace(4));
|
||||
}
|
||||
|
||||
void Error::Clear() {
|
||||
|
||||
Reference in New Issue
Block a user