dwarf Questions

2

Solved

I had an issue while installing headptrack with CMake when running cmake -DCMAKE_BUILD_TYPE=Release .. in heaptrack/build -- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR) CMake Err...
Hydrothorax asked 28/11, 2019 at 16:53

4

A shared object was built on RedHat Linux and while all the code was compiled with debug, the debugger (gdb) refused to load the symbols and issued an error as in: ... GNU gdb Fedora (6.8-37.el5) ...
Luxurious asked 26/7, 2012 at 14:2

12

Solved

I've got a binary installed on my system, and would like to look at the disassembly of a given function. Preferrably using objdump, but other solutions would be acceptable as well. From this quest...
Deputation asked 31/3, 2014 at 18:22

2

Solved

For any element in a C/C++ source file, I would like to be able to determine the corresponding memory location within its compiled executable. Compiling with debug, and using the resulting DWARF in...
Rothenberg asked 12/2, 2014 at 23:58

1

Solved

#include <stdio.h> #define A "hello world\n" void main() { printf(A); } $ gcc -gdwarf-4 -g3 a.c \ && gdb -ex 'set confirm off' \ -ex 'break main' \ -ex 'run' \ -ex 'p A...
Malformation asked 3/3, 2023 at 20:11

1

Solved

Looking for ways to see generated assembler of a specific function in my binary (an .so to be exact), just as I can see similar on Compiler Explorer, I found How to disassemble one single function ...
Highkeyed asked 9/3, 2022 at 13:47

1

In backtraces produced by perf record --call-graph dwarf and printed by perf script, I am consistently getting wrong addresses for maybe 5% of call stacks, i.e. unwinding fails. One example is my_b...
Donofrio asked 18/6, 2021 at 14:15

3

Solved

I am using the Crashlytics in order to report the crash occurs in the iOS app. Here, I want to know how to find the path of these below dwarf folder and file in xcode: DWARF_DSYM_FOLDER_PATH DWAR...
Strangle asked 4/5, 2018 at 8:36

5

Solved

XCode supports those 2 values for this Build Setting: Build Settings > Build Options > Debug Information Format. Could anybody explain the differences?
Gigantean asked 20/3, 2014 at 16:44

3

What's structure of a dsym file generated when build the app. I know it contain DWARF debug info, but what's a dsym file. I want to read the DWARF info in it. Is it just a Mach-O binary file that ...
Polytonality asked 25/7, 2014 at 17:53

3

In gdb how can I discover the value of a variable which displays as optimized out? Presumably the value is being stored in a register, how can I find out which one? Given this simple program (copie...
Animalism asked 27/11, 2019 at 13:44

2

Solved

all, is there a tool to check DWARF version of file? Something like this: $ dwarf_tool binary_name 4
Blighter asked 23/4, 2013 at 12:52

1

When writing assembly manually with GNU GAS, within a function, I want to set a label such that: GDB won't treat that label as the function name I can use b mylabel to break on the label A simi...
Barbershop asked 18/3, 2019 at 17:20

2

Solved

I'm using CMake on MacOS to generate Makefiles for my C++ project. When I build a target (say, test/AsyncTest), I get that target, plus a test/AsyncTest.dSYM/ directory that contains the following:...
Aquiline asked 31/7, 2018 at 20:39

2

I have a C program in file delay.c: void delay(int num) { volatile int i; for(i=0; i<num; i++); } Then I compile the program with gcc 4.6.3 on ARM emulator (armel, more specifically) with c...
Rhapsodize asked 17/11, 2017 at 21:54

6

Solved

I received a crash report via AirBrake.io that isn't symbolicated. Since the crash report is not in exactly the same format as an Apple crashlog I can't just drop it on XCode as usual, so I took th...
Finegrained asked 20/4, 2012 at 8:30

0

On OSX when you link a binary from multiple object files like this clang++ -g myfile.cpp -o myfile.o clang++ myfile.o -shared -o myfile.dylib it will generate a .debug_info section (etc.) in myf...
Niccolo asked 3/3, 2018 at 11:50

0

I'm programming in a mix of C, C++ and assembly and I'd like to get reliable backtraces from any part of the code. This mostly works fine for the C and C++ code since I can generate debugging info...
Towers asked 31/10, 2017 at 0:51

2

Solved

I would like an explanation for the values used with the .cfi_def_cfa_offset directives in assembly generated by GCC. I know vaguely that the .cfi directives are involved in call frames and stack u...
Caplan asked 23/9, 2011 at 20:24

4

Solved

Where/how does Apples GCC store DWARF inside an executable? I compiled a binary via gcc -gdwarf-2 (Apples GCC). However, neither objdump -g nor objdump -h does show me any debug information. Also...
Stomatology asked 6/4, 2012 at 14:11

1

Solved

For example: <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit) <c> DW_AT_producer : (indirect string, offset: 0xe): GNU C1 1 5.4.0 20160609 -masm=intel -m32 -mtune=generic -march=...
Camporee asked 12/1, 2017 at 10:23

1

Solved

I'm working with DWARF parser that looks for string data in the .debug_str section. In the ELF files I'm parsing, the string data is in the .strtab section. What's the difference between these two ...
Selfabasement asked 5/1, 2017 at 21:38

3

GCC 4.8 supports DWARF4. I'm wondering what is the difference between DWARF4 and DWARF2 from user point of view. Lets look at it from GDB point of view. Is there any difference for users when you ...
Azzieb asked 24/3, 2013 at 14:22

1

recently we started getting this warning on our OS X build. ld: warning: could not create compact unwind for __Z10createMenuv: stack subl instruction is too different from dwarf stack size ld: wa...
Parthenos asked 20/9, 2016 at 15:36

2

Solved

I've read in a few places that ASLR is supposed to load the .data section at random addresses each time a program is run, which means the addresses of global variables should be different. However,...
Iatric asked 20/4, 2016 at 19:2

© 2022 - 2025 — McMap. All rights reserved.