Questions tagged [dwarf]

DWARF is a file format for representing debugging information.

The DWARF format is used to represent information needed for source-level debugging of programs.

The DWARF format is designed to be processor architecture and operating system independent, and supports debugging of programs written in procedural languages like C, C++, FORTRAN, Ada, Java, Modula2 and Pascal.

DWARF is widely used in modern proprietary and open-source operating systems, for example, Linux, Android, BlackBerry OS 10 and others.

288 questions
0
votes
1 answer

Exclude specific symbols from dSYM

I'm building an iOS project that includes a sub-project whose symbols I would like exclude from the product's .dSYM DWARF file. The situation is that the sub-project (a static library) contains valuable proprietary code that I would not want an…
MxSagan
  • 123
  • 1
  • 7
0
votes
1 answer

How can I convert from DWARF version4 to version2 ? ( without recompiling )

I'm trying to debug a program that uses DWARF-4 but my gdb is too old and only understands DWARF-2. I can't update gdb and I can't recompile, so I need a way to convert them, maybe with some binutils tool?
Sergio Martins
  • 897
  • 2
  • 8
  • 18
0
votes
1 answer

LD needs DWARF version 3 or 2, but mine is version 4

After hours of research (and tries) on how to install id3lib on Qt (windows), but with no success, I decided to use TagLib's library. I followed this tutorial to build a compatible version of taglib for Qt but still another problem (full log here): …
David
  • 4,785
  • 7
  • 39
  • 63
0
votes
1 answer

gprof gives Dwarf Error

I have compiled my apache2 on different server with gcc options, -pg -DGPROF -g -DNO_USE_SIGACTION I copied this apache2 binary to different server and executed it once and got gmon.out. But when creating the analysis file using command, gprof…
VoidPointer
  • 3,037
  • 21
  • 25
0
votes
0 answers

How to put STABS debugging information into Win32 PE file?

I'm asking this because I've been given a task which I don't yet know how to handle. You see, we're in a situation where we can execute legacy a.out programs on a virtual machine running a really old linux kernel. We would like the native MinGW gdb…
Einheri
  • 957
  • 1
  • 9
  • 22
0
votes
1 answer

Match the left side variable of an assignment to the return value of the right side function call

For the following statement inside function func(), I'm trying to figure out the variable name (which is 'dictionary' in the example) that points to the malloc'ed memory region. Void func() { uint64_t * dictionary = (uint64_t *) malloc (…
user1147800
  • 237
  • 4
  • 14
0
votes
1 answer

Find if library is compiled by SJLJ or DWARF2 compiler

Is there a way to figure out if a library archive is built using SJLJ or DWARF2 exception handling compiler? The library is compiled using 32 MinGW.
Dimon Buzz
  • 1,130
  • 3
  • 16
  • 35
0
votes
1 answer

Info.plist file processing modifies executable

I've been working on an iPhone application had an issue where dSYM file generation was seg faulting on me. GenerateDSYMFile /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM…
Kaom Te
  • 774
  • 1
  • 8
  • 17
0
votes
1 answer

How do I find the ELF section for a DWARF symbol?

I have an ELF file with DWARF debug info. Given a DWARF symbol (say function foo()) I want to find out which ELF section it resides in. I cannot do a PC match against each section's range, because the file has overlay sections, so there are multiple…
0
votes
1 answer

c++ dwarf tag numbering format

Consider the following sample of dwarf code - <0>: Abbrev Number: 1 (DW_TAG_compile_unit) DW_AT_producer : (indirect string, offset: 0xd): GNU C++ 4.3.0 20080428 (Red Hat 4.3.0-8) <10> DW_AT_language : 4 (C++) <11>…
David says Reinstate Monica
  • 19,209
  • 22
  • 79
  • 122
0
votes
1 answer

Type-Safe Linking using DWARF

Why doesn't GCC together with GNU ld support type-checked linking when the DWARF-format contains all the type-information we need? We waste a lot of time on our company trying to make Ada and C communicate safely. The problem is we have no help from…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
1 answer

debugging info for Mac System Python - how to get line numbers

When I have a some crash report including some MacOSX library (in this case, I'm mostly interested in Python), how can I get more info about it? The library does not contain the debugging information, so the crash report lacks line numbers and other…
Albert
  • 65,406
  • 61
  • 242
  • 386
0
votes
2 answers

Am I getting the wrong ebp using instrumentation routines (pin), or am I missing something here?

So here's the deal. I am working on a debugger using a pin tool and the dwarf info from the process that I am attaching to. Pin is a framework that lets you create instrumentation tools for processes that are already running, I attach to the process…
attis
  • 171
  • 1
  • 4
  • 16
0
votes
1 answer

Using pahole (from dwarves package) on Windows

Is there a way to easily configure/install the dwarves Linux package/tools on Windows systems? I need to use the pahole command in an automation script that will be run on Windows systems. I'm not too familiar with Linux systems, but I was able to…
anjayloo
  • 21
  • 4
0
votes
1 answer

Get location of symbols in a.out file

This question does a great job explaining how to get the symbols (variables, functions, etc) of an elf file. Now that I have the symbols I will like to know on what location (module) they are. For example if I compile a program that consists of…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
1 2 3
19
20