backward.cpp
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------------
2 // d-SEAMS is free software: you can redistribute it and/or modify
3 // it under the terms of the GNU General Public License as published by
4 // the Free Software Foundation, either version 3 of the License, or
5 // (at your option) any later version.
6 //
7 // A copy of the GNU General Public License is available at
8 // http://www.gnu.org/licenses/
9 //-----------------------------------------------------------------------------------
10 
11 // Pick your poison.
12 //
13 // On GNU/Linux, you have few choices to get the most out of your stack trace.
14 //
15 // By default you get:
16 // - object filename
17 // - function name
18 //
19 // In order to add:
20 // - source filename
21 // - line and column numbers
22 // - source code snippet (assuming the file is accessible)
23 
24 // Install one of the following library then uncomment one of the macro (or
25 // better, add the detection of the lib and the macro definition in your build
26 // system)
27 
28 // - apt-get install libdw-dev ...
29 // - g++/clang++ -ldw ...
30 // #define BACKWARD_HAS_DW 1
31 
32 // - apt-get install binutils-dev ...
33 // - g++/clang++ -lbfd ...
34 // #define BACKWARD_HAS_BFD 1
35 
36 #include "backward.hpp"
37 
38 namespace backward {
39 
40 backward::SignalHandling sh;
41 
42 } // namespace backward
backward::SignalHandling sh
Definition: backward.cpp:40