2019-07-07 03:05:30 +03:00
|
|
|
//
|
2023-01-01 00:28:08 +03:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
|
2019-07-07 03:05:30 +03:00
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#pragma once
|
2019-07-21 21:07:07 +03:00
|
|
|
|
2019-07-07 03:05:30 +03:00
|
|
|
namespace td {
|
2019-07-21 21:07:07 +03:00
|
|
|
|
2019-07-07 03:05:30 +03:00
|
|
|
class Stacktrace {
|
|
|
|
public:
|
|
|
|
struct PrintOptions {
|
|
|
|
bool use_gdb = false;
|
2019-07-22 07:05:50 +03:00
|
|
|
PrintOptions() {
|
|
|
|
}
|
2019-07-07 03:05:30 +03:00
|
|
|
};
|
|
|
|
static void print_to_stderr(const PrintOptions &options = PrintOptions());
|
2019-12-20 20:12:52 +03:00
|
|
|
|
2019-08-14 11:31:25 +03:00
|
|
|
static void init();
|
2019-07-07 03:05:30 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace td
|