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
6
votes
3 answers

GDB: lx-symbols undefined command

I am following the guide below: Debugging kernel and modules via gdb When I try to load the module symbols using the command below: (gdb) lx-symbols gdb says that the command is undefined. How do I add these helper command to gdb? gdb info:…
Chu Bun
  • 513
  • 1
  • 5
  • 17
6
votes
2 answers

need definition of android studio debug icon

I've searched on Intellij online help site, have Googled the question above, and have searched previous questions on this site and have not found out what the little green glasses icon signifies in the variables section of a debugging session of…
6
votes
0 answers

Teamcity as Symbol Server no pdbs found

I am trying to use Teamcity as Symbol Server. I set Up TC like I should and TC is indexing my files. I found THIS question so I tried it to find the symbols on the server. I get some .dll listed with the command symchk /r * /s…
Joerg
  • 131
  • 8
6
votes
2 answers

Non-compatible function addresses between gcc compiler flags and symbol table

I have compiled a project (openssh here but that is not important) with CFLAGS="-ggdb3 -O0 -lm -finstrument-functions" The symbol table is (small extract): nm -o somepath/sbin/sshd /mypath/install/sbin/sshd:000f3548 d…
lalebarde
  • 1,684
  • 1
  • 21
  • 36
6
votes
0 answers

Debugging .NET 4.5.1 System.Web.dll source with visual studio 2013

I am trying to debug using Visual Studio 2013 and want to step into the .NET source, especially the System.Web.dll but it cannot find the correct .pdb file. I tried the following steps already: set up visual studio as the setup guide from microsoft…
elch
  • 255
  • 2
  • 9
6
votes
1 answer

Source information is missing from the debug information for this module

I'm trying to debug a dump file (.DMP) in Visual Studio 2013. I clicked on "Debug with Managed only" action and cannot get pass this error: Source not available Source information is missing from the debug information for this module You can view…
knguyen
  • 519
  • 6
  • 13
6
votes
1 answer

NSThread callStackSymbols logs symbols

I am trying to debug some concurrency code and when I log [NSThread callStackSymbols]; the console shows most of the symbols I am interested in as . Is there a way to get around this during runtime? I have deleted the device symbols folder…
some_id
  • 29,466
  • 62
  • 182
  • 304
6
votes
1 answer

Saving C# Expression Tree to a File

I want to debug an expression and save the expression tree to a file: var generator = DebugInfoGenerator.CreatePdbGenerator(); var document = Expression.SymbolDocument(fileName: "MyDebug.txt"); var debugInfo = Expression.DebugInfo(document, 6, 9, 6,…
user2341923
  • 4,537
  • 6
  • 30
  • 44
6
votes
1 answer

Is it possible to remove symbols from a shared library built with Android NDK?

I'm building a shared library for use in a Java app using the Android NDK. Using readelf to inspect the lib/armeabi-v7a/libXXXlib.so file generated by a release build, it appears to contain all the symbols (function, variable names) of my native…
5
votes
1 answer

missing symbols in valgrind stacktrace

I'm using valgrind to debug a binary which uses loadable libraries via dlopen. On debian stable the stacktrace does not contain symbols for calls inside the loadable lib. | | ->11.55% (114,688B) 0x769492C: ??? | | | ->11.55% (114,688B) 0x7697289:…
b0ti
  • 2,319
  • 1
  • 18
  • 18
5
votes
2 answers

How operate and update a symbol server for Microsoft Windows on a closed network?

Background When working on a closed network (i.e. no internet connection), Microsoft's public symbol server isn't available during my debugging sessions. I'm most interested in the debug symbols for the Windows system libraries and the C-runtime…
Zach Burlingame
  • 13,476
  • 14
  • 56
  • 65
5
votes
3 answers

Missing line numbers from debug symbols for library in whole program, but not on its own

I'm seeing an odd issue when trying to use gdb to debug a test program for a package built with libtool. If I run libtool --mode=execute gdb .libs/libfoo.so and ask it to list the source of some function list Bar::Baz, I get the source code as…
Phil Miller
  • 36,389
  • 13
  • 67
  • 90
5
votes
2 answers

Compile Static Go Binary with Debug Symbols in Separate File?

I can't remember where I saw it, I thought it was on Datadog or on NewRelic or maybe CloudFlare? but I remember someone mentioning that with Golang, they run release binaries in production (of course), and within their Docker containers, they also…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
5
votes
3 answers

How to make profilers (valgrind, perf, pprof) pick up / use local version of library with debugging symbols when using mpirun?

Edit: added important note that it is about debugging MPI application System installed shared library doesn't have debugging symbols: $ readelf -S /usr/lib64/libfftw3.so | grep debug $ I have therefore compiled and instaled in my home directory my…
Jakub Narębski
  • 309,089
  • 65
  • 217
  • 230
5
votes
2 answers

Where can I create free symbol server for open source project?

My open source project it is C++ dynamic linking library. Most of bugs - crash. I want create public symbol server to simplify debugging with memory dump. See also: Setting up a Symbol Server
KindDragon
  • 6,558
  • 4
  • 47
  • 75