Questions tagged [debug-symbols]

A debug symbol is information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module.

A debug symbol is information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module. Sometimes the symbolic information is compiled together with the module's binary file, or distributed in a separate file, or simply discarded during the compilation and/or linking. This information enables a person using a symbolic debugger to gain additional information about the binary, such as the names of variables and routines from the original source code. This information can be extremely helpful while trying to investigate and fix a crashing application or any other fault.

865 questions
7
votes
2 answers

How can I check on debug symbol status with Eclipse?

While discussing another question I asked, @Aaron Digulla pointed out the following: If you installed the Java SDK, there should be a "src.zip" file in the root directory of the Java installation. If it's missing, download Java again. Eclipse…
Heisenbug
  • 38,762
  • 28
  • 132
  • 190
7
votes
2 answers

How to strip symbols from Android NDK .so file?

How do you strip symbols from an Android .so native code library? I have a .so built that has thousands of symbols clearly visible in a hex editor. IDA Pro automatically disassembles with proper symbols based on the ones in the executable. However,…
Myria
  • 3,372
  • 1
  • 24
  • 42
7
votes
2 answers

CMake with XCode target, generate debug symbols setting ignored for Release config

I am trying to generate a dSYM file for my Release configuration. In my CMake config, I have: if (CMAKE_GENERATOR STREQUAL "Xcode") # generate debug symbols in a .dsym file for release mode …
Jake Cobb
  • 1,811
  • 14
  • 27
7
votes
1 answer

Heap extension command fails: failed to initialize the extention

While trying to use the !heap extension in Windbg for investigating a dump, I get following error: 0:000> !heap -s -v -a SEGMENT HEAP ERROR: failed to initialize the extention This happens for every usage of the !heap extension. Google is not very…
Dominique
  • 16,450
  • 15
  • 56
  • 112
7
votes
2 answers

Debug Flag With GCC (compile phase / link phase)

I have a this Makefile application= CXXFLAGS=-g -std=c++14 -Wall -Werror -pedantic LDFLAGS=-g auto: $(application) $(application): main.o aaa.o aab.o aba.o baa.o $(CXX) $(LDFLAGS) -o $@ $^ %.o: %.cpp $(CXX)…
Novice User
  • 91
  • 1
  • 3
  • 5
7
votes
2 answers

Visual Studio Code not loading symbols on OS X

I am trying to set up a web api using ASP.NET Core on OS X. I have set up my environment correctly (I think) and I'm able to build and run my application using dotnet build from the terminal, and I'm able to start debugging from Visual Studio Code…
Erik
  • 714
  • 11
  • 29
7
votes
2 answers

Is stacktrace information available in .NET release mode build?

If I choose release mode to build a dll, is the stacktrace information still available? If so, then what information is unavailable in release mode?
Ricky
  • 34,377
  • 39
  • 91
  • 131
7
votes
3 answers

How can my C code find the symbol corresponding to an address at run-time (in Linux)?

Given a function or variable run-time address, my code needs to find out the name and, if it's a variable, type information of the symbol. Or at least provide enough information for later, off-line extraction of the name (and type info). It is Linux…
Sorin Papuc
  • 101
  • 1
  • 6
7
votes
6 answers

Xcode, no debug symbols for certain subclass

I'm using Xcode 3.2.3 and iPhone SDK So I'm trying to debug a UIView subclass, I hit a breakpoint in an overridden method and I can't see any symbols in either the GUI or gdb, just globals and registers. This is what I see: (gdb) po self No symbol…
MTS
  • 55
  • 5
7
votes
0 answers

Modifying the debug information of llvm IR

I want to modify debug information of an llvm instruction so that the modified debug info is subsequently passed to executable binary. So if I use "addr2line" utility on the binary, it will return my modified debug information. I've tried to…
user
  • 5,335
  • 7
  • 47
  • 63
7
votes
1 answer

Converting debug symbols from DWARF to PDB

Is there a way to convert the debugging information from binutils' DWARF format (as emitted by GCC on Cygwin, for example) to Microsoft PDB (as consumed by Visual Studio)?
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
7
votes
4 answers

How to build a debuginfo RPM without source code?

I'm working with a proprietary code base where the owner would like users to get useful stack traces but not be able to view the source code. Generating Debian dbg packages with debug symbols but no source code is straightforward but the Redhat…
Guy Lancaster
  • 219
  • 4
  • 6
7
votes
1 answer

Local labels in GNU assembler; gdb printing backtrace as though labels are functions

Two pieces of example code; first some C++ code calling into assembly: /* test1.cc */ #include extern "C" void blah(); extern "C" void stuff() { printf( "This is a test\n" ); } int main( int argc, char *argv[] ) { blah(); return…
Brian Vandenberg
  • 4,011
  • 2
  • 37
  • 53
7
votes
1 answer

Debugging NuGet Packages - Symbols with Sources not showing

I'm trying to build out both the nuget packages and symbols for my library. I'm using TeamCity to build the packages, then pushing them to my internal SymbolSource repo. Everything seems to be building/packaging/pushing fine, but when I go to debug…
gwing33
  • 230
  • 2
  • 7
7
votes
2 answers

Symbol stripping of Objective-C code still leaves method names, etc. in binary

I am trying to strip our iOS application binary of debug symbols to make it more difficult for hackers to modify the binary. I have tried both xcode's symbol stripping (enabling strip linked product and deployment postprocessing) and using "strip -S…
moinudin
  • 134,091
  • 45
  • 190
  • 216