Arnaldo Carvalho de Melo

Results 36 comments of Arnaldo Carvalho de Melo

Em Fri, Apr 22, 2022 at 04:36:12AM -0700, a1batross escreveu: > @acmel ok, there is simple example I took from my own C++ library: https://github.com/FWGS/mainui_cpp/blob/master/EngineCallback.cpp. It implements GUI in a...

It doesn't, see this thread for a discussion about including them all: https://lore.kernel.org/all/[email protected]/T/#u

Em Thu, Jul 21, 2022 at 08:38:31PM -0700, zc escreveu: > According to man: > > https://github.com/acmel/dwarves/blob/49358dfe2aaae4e90b072332c3e324019826783f/man-pages/pahole.1#L286-L288 > > But in the HEAD of repo, there is no reference of...

⬢[acme@toolbox c]$ eu-readelf -winfo foo.o DWARF section [ 6] '.debug_info' at offset 0x67: [Offset] Compilation unit at offset 0: Version: 5, Abbreviation section offset: 0, Address size: 8, Offset size:...

The skeleton unit was when I built with g++ (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1), if I do it with clang version 14.0.0 (https://github.com/llvm/llvm-project f7e82e4fa849376ea9226220847a098dc92d74a0) I get: ⬢[acme@toolbox c]$ clang++...

ok, there is an extra file, extension .dwo: ⬢[acme@toolbox c]$ ls -la foo.* -rw-r--r--. 1 acme acme 86 Nov 12 14:46 foo.cpp -rw-r--r--. 1 acme acme 920 Nov 12 14:52...

yeah, we have: GNU_dwo_name (strp) "foo.dwo" So its a matter of looking for this attribute inside DW_TAG_compile_unit and open that file instead.

Furthermore, with g++ we also get an extra file, the only difference is that unknown to pahole DW_TAG_skeleton_unit: ⬢[acme@toolbox split]$ g++ -g -gsplit-dwarf -c foo.cpp -o foo.o ⬢[acme@toolbox split]$ ls...

The alt_dwarf branch should address this, I'll revisit the examples above and check if it works with them.

This is a mix of FORTRAN 95, ANSI C99 and MIPS assembler, so something not really tested before, I'll see if we can fix it to the point of not...