1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../noad/backtrace.patch.uclibc
5 # Copyright (C) 2004 - 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- noad-0.5.2/main.cpp.orig 2004-12-17 22:26:42.000000000 +0100
18 +++ noad-0.5.2/main.cpp 2005-02-16 21:57:35.875947808 +0100
23 -#include <execinfo.h>
27 --- noad-0.5.2/tools.cpp.orig 2005-02-16 21:27:30.000000000 +0100
28 +++ noad-0.5.2/tools.cpp 2005-02-16 21:30:33.661561880 +0100
33 -#include <execinfo.h>
35 extern int SysLogLevel;
37 @@ -1042,6 +1041,11 @@
39 void show_stackframe(bool bFork)
41 + char *msg = "[bt] Execution path: <Sorry, stackframe backtrace not available with uClibc>";
43 + fprintf(stderr, "%s\n", msg);
44 + syslog(LOG_INFO, msg);
47 char **messages = (char **)NULL;
48 int i, trace_size = 0;
50 fprintf(stderr, "[bt] %s\n", messages[i]);
51 syslog(LOG_INFO, "[bt] %s\n", messages[i]);