use cxxabi for demangling on linux/windows

This commit is contained in:
Michael Scire 2022-03-10 15:24:26 -08:00 committed by SciresM
parent ee5f99fdb4
commit 49cddd68e4
5 changed files with 15 additions and 5 deletions

View file

@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stratosphere.hpp>
#include "impl/diag_get_all_backtrace.hpp"
#include "impl/diag_invoke_abort.hpp"
namespace ams::diag {
@ -179,6 +180,9 @@ namespace ams::diag {
std::scoped_lock lk(g_abort_mutex);
/* Set the abort impl return address. */
impl::SetAbortImplReturnAddress(reinterpret_cast<uintptr_t>(__builtin_return_address(0)));
/* Create abort info. */
std::va_list cvl;
va_copy(cvl, vl);