aboutsummaryrefslogtreecommitdiffstats
path: root/devel/bloomberg-bde/files/patch-groups_bal_balst_balst__stacktraceresolverimpl__elf.cpp
blob: 6118709d020128074ee7120373be2c3277dbf7cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- groups/bal/balst/balst_stacktraceresolverimpl_elf.cpp.orig	2023-08-05 19:22:01 UTC
+++ groups/bal/balst/balst_stacktraceresolverimpl_elf.cpp
@@ -51,7 +51,7 @@ BSLS_IDENT_RCSID(balst_stacktraceresolverimpl_elf_cpp,
 # define u_DWARF 1
 #endif
 
-#if defined(BSLS_PLATFORM_OS_LINUX)
+#if defined(BSLS_PLATFORM_OS_LINUX) || defined(BSLS_PLATFORM_OS_FREEBSD)
 
 # include <cxxabi.h>
 # include <dlfcn.h>
@@ -4017,7 +4017,7 @@ void u::StackTraceResolver::setFrameSymbolName(
 #endif
 }
 
-#if defined(BSLS_PLATFORM_OS_LINUX)
+#if defined(BSLS_PLATFORM_OS_LINUX) || defined(BSLS_PLATFORM_OS_FREEBSD)
 // Linux could use the same method as Solaris, but we would need a special case
 // for statically linked apps.  Instead of that we're going to use the
 // 'dl_iterate_phdr' function, which works for static and dynamic apps (you get
@@ -4088,7 +4088,7 @@ int u::StackTraceResolver::resolve(
         return 0;                                                     // RETURN
     }
 
-#if defined(BSLS_PLATFORM_OS_LINUX)
+#if defined(BSLS_PLATFORM_OS_LINUX) || defined(BSLS_PLATFORM_OS_FREEBSD)
 
     u::StackTraceResolver resolver(stackTrace,
                                        demanglingPreferredFlag);