Merge branch 'dev' into jr/universal-tracing
This commit is contained in:
commit
e3e80be02f
20
CHANGELOG.md
20
CHANGELOG.md
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
- [Changelog](#changelog)
|
||||
- [v0.6.3](#v063)
|
||||
- [v0.6.2](#v062)
|
||||
- [v0.6.1](#v061)
|
||||
- [v0.6.0](#v060)
|
||||
@ -18,6 +19,25 @@
|
||||
- [v0.1.1](#v011)
|
||||
- [v0.1](#v01)
|
||||
|
||||
# v0.6.3
|
||||
|
||||
Added:
|
||||
- Added a flag to disable inclusion of `<format>` by cpptrace.hpp and the definition of formatter specializations
|
||||
|
||||
Fixes:
|
||||
- Fixed use after free during cleanup of split dwarf information https://github.com/jeremy-rifkin/cpptrace/issues/141
|
||||
- Fixed an issue with TCO by clang on arm interfering with unwinding skip counts for internal methods
|
||||
- Fixed issue with incorrect object addresses being reported on macos when debug maps are used
|
||||
- Fixed issue with handling of split dwarf emitted by clang under dwarf4 mode
|
||||
|
||||
Other changes:
|
||||
- Added note about signal-safe tracing requiring `_dl_find_object` to documentation and fixed errors in the signal-safe
|
||||
tracing docs
|
||||
- Added more configurations to unittest ci setup
|
||||
- Optimized unittest ci matrix setup
|
||||
- Added options for zstd and libdwarf sources if FetchContent is being used to bring the dependencies in
|
||||
- Optimized includes in cpptrace.hpp
|
||||
|
||||
# v0.6.2
|
||||
|
||||
Fixes:
|
||||
|
||||
@ -9,7 +9,7 @@ set(package_name "cpptrace")
|
||||
|
||||
project(
|
||||
cpptrace
|
||||
VERSION 0.6.2
|
||||
VERSION 0.6.3
|
||||
DESCRIPTION "Simple, portable, and self-contained stacktrace library for C++11 and newer "
|
||||
HOMEPAGE_URL "https://github.com/jeremy-rifkin/cpptrace"
|
||||
LANGUAGES C CXX
|
||||
|
||||
14
README.md
14
README.md
@ -133,7 +133,7 @@ include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
cpptrace
|
||||
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
|
||||
GIT_TAG v0.6.2 # <HASH or TAG>
|
||||
GIT_TAG v0.6.3 # <HASH or TAG>
|
||||
)
|
||||
FetchContent_MakeAvailable(cpptrace)
|
||||
target_link_libraries(your_target cpptrace::cpptrace)
|
||||
@ -693,7 +693,7 @@ include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
cpptrace
|
||||
GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
|
||||
GIT_TAG v0.6.2 # <HASH or TAG>
|
||||
GIT_TAG v0.6.3 # <HASH or TAG>
|
||||
)
|
||||
FetchContent_MakeAvailable(cpptrace)
|
||||
target_link_libraries(your_target cpptrace::cpptrace)
|
||||
@ -709,7 +709,7 @@ information.
|
||||
|
||||
```sh
|
||||
git clone https://github.com/jeremy-rifkin/cpptrace.git
|
||||
git checkout v0.6.2
|
||||
git checkout v0.6.3
|
||||
mkdir cpptrace/build
|
||||
cd cpptrace/build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
@ -752,7 +752,7 @@ you when installing new libraries.
|
||||
|
||||
```ps1
|
||||
git clone https://github.com/jeremy-rifkin/cpptrace.git
|
||||
git checkout v0.6.2
|
||||
git checkout v0.6.3
|
||||
mkdir cpptrace/build
|
||||
cd cpptrace/build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
@ -770,7 +770,7 @@ To install just for the local user (or any custom prefix):
|
||||
|
||||
```sh
|
||||
git clone https://github.com/jeremy-rifkin/cpptrace.git
|
||||
git checkout v0.6.2
|
||||
git checkout v0.6.3
|
||||
mkdir cpptrace/build
|
||||
cd cpptrace/build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/wherever
|
||||
@ -853,7 +853,7 @@ make install
|
||||
cd ~/scratch/cpptrace-test
|
||||
git clone https://github.com/jeremy-rifkin/cpptrace.git
|
||||
cd cpptrace
|
||||
git checkout v0.6.2
|
||||
git checkout v0.6.3
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=On -DCPPTRACE_USE_EXTERNAL_LIBDWARF=On -DCMAKE_PREFIX_PATH=~/scratch/cpptrace-test/resources -DCMAKE_INSTALL_PREFIX=~/scratch/cpptrace-test/resources
|
||||
@ -873,7 +873,7 @@ cpptrace and its dependencies.
|
||||
Cpptrace is available through conan at https://conan.io/center/recipes/cpptrace.
|
||||
```
|
||||
[requires]
|
||||
cpptrace/0.6.2
|
||||
cpptrace/0.6.3
|
||||
[generators]
|
||||
CMakeDeps
|
||||
CMakeToolchain
|
||||
|
||||
@ -223,9 +223,6 @@ int main() {
|
||||
std::size_t res = fread(&frame, sizeof(frame), 1, stdin);
|
||||
if(res == 0) {
|
||||
break;
|
||||
} else if(res == -1) {
|
||||
perror("Something went wrong while reading from the pipe");
|
||||
break;
|
||||
} else if(res != 1) {
|
||||
std::cerr<<"Something went wrong while reading from the pipe"<<res<<" "<<std::endl;
|
||||
break;
|
||||
|
||||
@ -9,14 +9,9 @@ int main() {
|
||||
cpptrace::object_trace trace;
|
||||
while(true) {
|
||||
cpptrace::safe_object_frame frame;
|
||||
// std::size_t res = read(STDIN_FILENO, &frame, sizeof(frame));
|
||||
std::size_t res = fread(&frame, sizeof(frame), 1, stdin);
|
||||
if(res == 0) {
|
||||
break;
|
||||
} else if(res == -1) {
|
||||
perror("Oops");
|
||||
break;
|
||||
//} else if(res != sizeof(frame)) {
|
||||
} else if(res != 1) {
|
||||
std::cerr<<"Oops, size mismatch "<<res<<" "<<sizeof(frame)<<std::endl;
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user