freebsd-ports/sysutils/osquery/files/patch-third-party_glog_src_stacktrace__unittest.cc
Ryan Steinmetz 6efaeef862 New port: sysutils/osquery:
osquery exposes an operating system as a high-performance relational database.
This allows you to write SQL-based queries to explore operating system data.
With osquery, SQL tables represent abstract concepts such as running
processes, loaded kernel modules, open network connections, browser plugins,
hardware events or file hashes.

WWW: https://osquery.io/

Sponsored by:	Beer from wxs@
2015-05-10 15:19:11 +00:00

19 lines
745 B
C++

--- third-party/glog/src/stacktrace_unittest.cc.orig 2015-05-05 12:29:29 UTC
+++ third-party/glog/src/stacktrace_unittest.cc
@@ -125,16 +125,6 @@ void ATTRIBUTE_NOINLINE CheckStackTraceL
CHECK_GE(size, 1);
CHECK_LE(size, STACK_LEN);
- if (1) {
-#ifdef HAVE_EXECINFO_H
- char **strings = backtrace_symbols(stack, size);
- printf("Obtained %d stack frames.\n", size);
- for (int i = 0; i < size; i++)
- printf("%s %p\n", strings[i], stack[i]);
- printf("CheckStackTrace() addr: %p\n", &CheckStackTrace);
- free(strings);
-#endif
- }
for (int i = 0; i < BACKTRACE_STEPS; i++) {
printf("Backtrace %d: expected: %p..%p actual: %p ... ",
i, expected_range[i].start, expected_range[i].end, stack[i]);