GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/publish/except.cc
Date: 2024-04-21 02:33:16
Exec Total Coverage
Lines: 0 8 0.0%
Branches: 0 10 0.0%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
5 #include "publish/except.h"
6
7 #include <execinfo.h>
8
9 #include <string>
10
11 publish::EPublish::~EPublish() throw() { }
12
13 std::string publish::EPublish::GetStacktrace() {
14 std::string result;
15 void *addr[kMaxBacktrace];
16 int num_addr = backtrace(addr, kMaxBacktrace);
17 char **symbols = backtrace_symbols(addr, num_addr);
18 for (int i = 0; i < num_addr; ++i)
19 result += std::string(symbols[i]) + "\n";
20 return result;
21 }
22