From 13938676af5e9fce9a4094b4a94cf6ceb1d1ffef Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 30 2021 13:18:10 +0000 Subject: import dwarves-1.19-1.el8 --- diff --git a/.dwarves.metadata b/.dwarves.metadata index 7354c60..00c2dac 100644 --- a/.dwarves.metadata +++ b/.dwarves.metadata @@ -1 +1 @@ -66b7c00296027a8a5858ef32427919c3a84cf5ef SOURCES/dwarves-1.17.tar.xz +e3c5737ab29d8ec8db5095d719baa96217bac60d SOURCES/dwarves-1.19.tar.xz diff --git a/.gitignore b/.gitignore index 42003a6..909eef8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/dwarves-1.17.tar.xz +SOURCES/dwarves-1.19.tar.xz diff --git a/SPECS/dwarves.spec b/SPECS/dwarves.spec index ca762c8..11ee2fc 100644 --- a/SPECS/dwarves.spec +++ b/SPECS/dwarves.spec @@ -2,7 +2,7 @@ %define libver 1 Name: dwarves -Version: 1.17 +Version: 1.19 Release: 1%{?dist} License: GPLv2 Summary: Debugging Information Manipulation Tools (pahole & friends) @@ -35,6 +35,21 @@ code generate on the resulting binaries. Another tool is pfunct, that can be used to find all sorts of information about functions, inlines, decisions made by the compiler about inlining, etc. +One example of pfunct usage is in the fullcircle tool, a shell that drivers +pfunct to generate compileable code out of a .o file and then build it using +gcc, with the same compiler flags, and then use codiff to make sure the +original .o file and the new one generated from debug info produces the same +debug info. + +Pahole also can be used to use all this type information to pretty print raw data +according to command line directions. + +Headers can have its data format described from debugging info and offsets from +it can be used to further format a number of records. + +The btfdiff utility compares the output of pahole from BTF and DWARF to make +sure they produce the same results. + %package -n %{libname}%{libver} Summary: Debugging information processing library @@ -49,10 +64,10 @@ Requires: %{libname}%{libver} = %{version}-%{release} Debugging information processing library development files. %prep -%setup -q -n %{name}-%{version} +%setup -q %build -%cmake . +%cmake -DCMAKE_BUILD_TYPE=Release . make VERBOSE=1 %{?_smp_mflags} %install @@ -64,6 +79,7 @@ make install DESTDIR=%{buildroot} %files %doc README.ctracer %doc README.btf +%doc changes-v1.19 %doc NEWS %{_bindir}/btfdiff %{_bindir}/codiff @@ -112,7 +128,7 @@ make install DESTDIR=%{buildroot} %{_includedir}/dwarves/libctf.h %{_includedir}/dwarves/list.h %{_includedir}/dwarves/rbtree.h -%{_includedir}/dwarves/strings.h +%{_includedir}/dwarves/pahole_strings.h %{_libdir}/%{libname}.so %{_libdir}/%{libname}_emit.so %{_libdir}/%{libname}_reorganize.so