mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 10:14:04 +00:00
[all] be smarter about getting the git version
This commit is contained in:
1
common/include/common/version.h
Normal file
1
common/include/common/version.h
Normal file
@@ -0,0 +1 @@
|
||||
extern char * BUILD_VERSION;
|
@@ -19,6 +19,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
#include "common/crash.h"
|
||||
#include "common/debug.h"
|
||||
#include "common/version.h"
|
||||
|
||||
#if defined(ENABLE_BACKTRACE)
|
||||
|
||||
@@ -176,7 +177,7 @@ static void crit_err_hdlr(int sig_num, siginfo_t * info, void * ucontext)
|
||||
dl_iterate_phdr(dl_iterate_phdr_callback, NULL);
|
||||
load_symbols();
|
||||
|
||||
DEBUG_ERROR("==== FATAL CRASH (" BUILD_VERSION ") ====");
|
||||
DEBUG_ERROR("==== FATAL CRASH (%s) ====", BUILD_VERSION);
|
||||
DEBUG_ERROR("signal %d (%s), address is %p", sig_num, strsignal(sig_num), info->si_addr);
|
||||
|
||||
size = backtrace(array, 50);
|
||||
|
Reference in New Issue
Block a user