2019-07-07 02:05:30 +02:00
|
|
|
//
|
2020-01-01 02:23:48 +01:00
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2020
|
2019-07-07 02:05:30 +02: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 20:07:07 +02:00
|
|
|
|
2019-07-07 02:05:30 +02:00
|
|
|
namespace td {
|
2019-07-21 20:07:07 +02:00
|
|
|
|
2019-07-07 02:05:30 +02:00
|
|
|
class Stacktrace {
|
|
|
|
public:
|
|
|
|
struct PrintOptions {
|
|
|
|
bool use_gdb = false;
|
2019-07-22 06:05:50 +02:00
|
|
|
PrintOptions() {
|
|
|
|
}
|
2019-07-07 02:05:30 +02:00
|
|
|
};
|
|
|
|
static void print_to_stderr(const PrintOptions &options = PrintOptions());
|
2019-12-20 18:12:52 +01:00
|
|
|
|
2019-08-14 10:31:25 +02:00
|
|
|
static void init();
|
2019-07-07 02:05:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace td
|