UNISTDX_SYSTEM_ERROR
class sys::stack_trace
Types
  • using iterator = void **
  • using pointer_array = std::array< value_type, 64 >
  • using const_pointer = const void *
  • using value_type = void *
Methods
  • operator=(stack_trace &&) -> stack_trace &
  • stack_trace(stack_trace &&)
  • operator=(const stack_trace &) -> stack_trace &
  • stack_trace(const stack_trace &)
  • ~stack_trace()
  • symbols() const -> std::vector< backtrace_symbol >
  • clear() -> void
  • back() const -> value_type
  • front() const -> value_type
  • empty() const -> bool
  • end() const -> iterator
  • begin() const -> iterator
  • size() const -> int
  • data() const -> iterator
  • stack_trace()
  • stack_trace(bool)explicit
class sys::error
Base classes
  • public std::exception
Methods
  • operator=(error &&) -> error &
  • error(error &&)
  • operator=(const error &) -> error &
  • error(const error &)
  • ~error()
  • error()
  • what() const -> const char *
  • backtrace() const -> const stack_trace &
  • error(std::string && message)explicit
  • error(const std::string & message)explicit
struct sys::backtrace_symbol
Fields
  • uintptr_t address
  • int line
  • std::string name
  • std::string filename
  • std::string object
Methods
  • backtrace_symbol(std::string && filename, std::string && name, int line, uintptr_t address)
  • backtrace_symbol()
backtrace(int fd) -> void

Print calling process function call trace (if supported).

  • Does not throw exceptions.
  • Handles memory allocation errors, degrading output to mangled function names.

backtrace_on_signal(int sig) -> void
dump_core() -> void

Dump core. Provoke kernel to dump the core by resetting abort signal handler to the default value and sending the signal to the process. Also raises resource limits to infinity.

print(std::ostream & out, const char * message, const stack_trace & trace) -> void
backtrace_on_terminate() -> void
operator<<(std::ostream & out, const backtrace_symbol & rhs) -> std::ostream &
operator<<(std::ostream & out, const stack_trace & rhs) -> std::ostream &
demangle(const char * symbol, string & buf) -> const char *