mirror of
https://github.com/boostorg/stacktrace.git
synced 2026-02-22 03:32:27 +00:00
Send source file and source line requests to the backend s
This commit is contained in:
@@ -49,6 +49,14 @@ struct backtrace_holder {
|
||||
return frames[frame].addr;
|
||||
}
|
||||
|
||||
inline std::string get_source_file(std::size_t /*frame*/) const {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
inline std::size_t get_source_line(std::size_t /*frame*/) const BOOST_NOEXCEPT {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline std::string get_frame(std::size_t frame) const {
|
||||
if (frame < frames_count) {
|
||||
return frames[frame].name;
|
||||
|
||||
@@ -34,6 +34,14 @@ struct backtrace_holder {
|
||||
return buffer[frame];
|
||||
}
|
||||
|
||||
inline std::string get_source_file(std::size_t /*frame*/) const {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
inline std::size_t get_source_line(std::size_t /*frame*/) const BOOST_NOEXCEPT {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline std::string get_frame(std::size_t frame) const {
|
||||
std::string res;
|
||||
if (frame >= frames_count) {
|
||||
|
||||
@@ -24,6 +24,14 @@ struct backtrace_holder {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline std::string get_source_file(std::size_t /*frame*/) const {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
inline std::size_t get_source_line(std::size_t /*frame*/) const BOOST_NOEXCEPT {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline std::string get_frame(std::size_t /*frame*/) const {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
@@ -66,6 +66,14 @@ struct backtrace_holder {
|
||||
return buffer[frame];
|
||||
}
|
||||
|
||||
inline std::string get_source_file(std::size_t /*frame*/) const {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
inline std::size_t get_source_line(std::size_t /*frame*/) const BOOST_NOEXCEPT {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline std::string get_frame(std::size_t frame) const {
|
||||
std::string res;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#pragma comment(lib, "Dbgeng.lib")
|
||||
|
||||
namespace boost { namespace stacktrace { namespace detail {
|
||||
|
||||
template <class T>
|
||||
class com_holder: boost::noncopyable {
|
||||
T* holder_;
|
||||
@@ -72,6 +73,14 @@ struct backtrace_holder {
|
||||
return buffer[frame];
|
||||
}
|
||||
|
||||
inline std::string get_source_file(std::size_t /*frame*/) const {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
inline std::size_t get_source_line(std::size_t /*frame*/) const BOOST_NOEXCEPT {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool try_init_com(com_holder<IDebugSymbols>& idebug_) BOOST_NOEXCEPT {
|
||||
if (idebug_.is_inited()) {
|
||||
return true;
|
||||
|
||||
@@ -60,11 +60,11 @@ const void* stacktrace::get_address(std::size_t frame) const BOOST_NOEXCEPT {
|
||||
}
|
||||
|
||||
std::string stacktrace::get_source_file(std::size_t frame) const {
|
||||
return std::string();
|
||||
return impl_.get_source_file(frame);
|
||||
}
|
||||
|
||||
std::size_t stacktrace::get_source_line(std::size_t frame) const BOOST_NOEXCEPT {
|
||||
return 0;
|
||||
return impl_.get_source_line(frame);
|
||||
}
|
||||
|
||||
bool stacktrace::operator< (const stacktrace& rhs) const BOOST_NOEXCEPT {
|
||||
|
||||
Reference in New Issue
Block a user