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) ...
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...
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...
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...
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
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:...
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...
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...
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...
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=...
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 ...
3
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...
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,...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.