Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libdwfl based implementation #187

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

kanje
Copy link

@kanje kanje commented Sep 19, 2024

This commit adds an implementation based on libdwfl from elfutils.

Implements #176

This commit adds an implementation based on libdwfl from
elfutils.

Implements boostorg#176
@kanje
Copy link
Author

kanje commented Sep 19, 2024

@apolukhin, please have a look at this draft. Note, I was using CMake and b2 support is still missing. I would appreciate some help here as I know nothing about how to write Jamfiles.

@apolukhin
Copy link
Member

Tests are missing. You will need to write some b2 scripts: follow this sample

lib boost_stacktrace_backtrace
: # sources
../src/backtrace.cpp
: # requirements
<warnings>all
<target-os>linux:<library>dl
<library>backtrace
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
[ check-target-builds libbacktrace : : <build>no ]
: # default build
: # usage-requirements
#<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
<define>BOOST_STACKTRACE_NO_LIB=1
;
and add code to search for libdwfl
local LIBBACKTRACE_PATH = [ modules.peek : LIBBACKTRACE_PATH ] ;
lib backtrace
:
: <search>$(LIBBACKTRACE_PATH)/lib <link>static
:
: <include>$(LIBBACKTRACE_PATH)/include
;

After that adjust https://github.com/boostorg/stacktrace/blob/develop/test/Jamfile.v2 by adding each of the tests with libdwfl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants