From 5046073446456512359493848692557442235294 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 17 Aug 2023 17:24:21 -0400 Subject: Make the IL exceptions include stack traces --- highlevelilinstruction.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'highlevelilinstruction.h') diff --git a/highlevelilinstruction.h b/highlevelilinstruction.h index 502dd582..0476a182 100644 --- a/highlevelilinstruction.h +++ b/highlevelilinstruction.h @@ -167,11 +167,10 @@ namespace BinaryNinja /*! \ingroup highlevelil */ - class HighLevelILInstructionAccessException : public std::exception + class HighLevelILInstructionAccessException : public ExceptionWithStackTrace { public: - HighLevelILInstructionAccessException() : std::exception() {} - virtual const char* what() const NOEXCEPT { return "invalid access to HLIL instruction"; } + HighLevelILInstructionAccessException() : ExceptionWithStackTrace("invalid access to HLIL instruction") {} }; /*! -- cgit v1.3.1