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

Removing DWARF-2 duplicate symbols exhausts memory

I'm dealing with a large project that gets compiled as a shared object. Compiling it with DWARF-2 symbols (-g -feliminate-unused-debug-types) results in the .debug_info being around 700M. If I add -feliminate-dwarf2-dups, the linker dies: error…
mtijanic
  • 2,872
  • 11
  • 26
3
votes
2 answers

Why are my local dlls taking forever to load after setting _NT_SYMBOL_PATH?

I've setup _NT_SYMBOL_PATH and have pointed it to srv*c:\symbols*http://msdl.microsoft.com/download/symbols When starting the debugger, I notice that the Windows related dlls load quickly. However, our company's dlls are taking a god awful long…
Doug T.
  • 64,223
  • 27
  • 138
  • 202
3
votes
2 answers

How to debug in clr.dll or mscoree.dll

I followed these steps to be able to debug in the .Net framework code. This work well for some parts of the framework (for example for System.Drawing.dll), but not for other parts (clr.dll, mscoree.dll, ...). This seems a bit strange to me since the…
eli
  • 662
  • 8
  • 18
3
votes
1 answer

How can I debug multiple apps by loading multiple symbol definitions with GDB?

I am doing embedded software development. By nature, I have 3 different applications running simultaneously that are guaranteed to run in different ranges of virtual addresses, e.g. App 1 runs on 0x10000000 - 0x20000000, App2 runs in 0x20000000 -…
3
votes
1 answer

How to add debug symbols to stripped ELF binaries

I need to disassemble debian binaries with debug symbols and I am using IDA Pro for this. The problem is: IDA doesn't seem to recognize debug symbols if they are stored in a separate file (in the case of debian packages). However, when compiling a…
db_bin
  • 61
  • 1
  • 4
3
votes
4 answers

Cannot get PDB to load. "A matching symbol file was not found in this folder."

I've got a project that debugging was working just fine about an hour ago, and now after the latest rebuild I can't get it to load the symbol files, so I cannot hit my breakpoints. I've tried everything suggested here on Fixing “The breakpoint will…
CBRF23
  • 1,340
  • 1
  • 16
  • 44
3
votes
1 answer

How can I set a breakpoint in .NET Framework source code using Visual Studio 2010 Express?

I need to set a breakpoint in System.Web.Handlers.ScriptModule.OnPostAcquireRequestState and then step into some of the System.Web.Script.Services.WebServiceData methods. But I only have Visual Web Developer 2010 Express (or other Express SKUs). I…
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
3
votes
2 answers

Make gdb search for symbol files again

My distribution (Debian) ships debug files in separate packages. So what happens often is that I run a program in gdb until it crashes, in order to obtain a usable backtrace for a bug report. But bt is rather useless, missing the symbol information…
Joachim Breitner
  • 25,395
  • 6
  • 78
  • 139
3
votes
0 answers

Cannot step into System.Security.Cryptography.X509Certificates methods

I am trying to debug .net framework code for working with certificates. Code example: X509Store store = new X509Store(storeName, storeLocation); store.Certificates.Find(findType, findValue,…
3
votes
0 answers

Intel Inspector cannot find debug symbols Visual C++ MFC

I have just started to try out the Intel Inspector software for memory analysis in my Visual C++ MFC projects. The analysis run fine and some errors are found by the tool. However, I cannot naviage to the problem source files and code lines because…
10100111001
  • 735
  • 15
  • 31
3
votes
2 answers

GDB prints different C++ output between MSVC2012 and GCC 7.3.1

I am facing an issue with two release versions of our software. I have two executables (MS and Linux) respectively using MSVC and GCC compiled libraries. Context: My program contains a message_queue.hpp templated class, which inherits from a…
David
  • 83
  • 1
  • 7
3
votes
2 answers

Is it possible to obtain a stack trace on Windows without PDB files present? If yes, how?

I know StackWalk64() API can be used to print call stack in windows. There has been quite a few discussions about how does this work on SO. Function Call Stack in C++ StackWalk64 on Windows - Get symbol name StackWalker - Walking the callstack I…
irsis
  • 952
  • 1
  • 13
  • 33
3
votes
1 answer

Trying to debug Windows Store App from dump files

Let me start with my main questions, then below I will add some specifics and history. I have done research, but can't seem to fit the pieces together. Please ask for clarification before voting me down. My questions: Why would my Windows Store app…
3
votes
0 answers

Programmatically get debug information

Using #include one can access methods for unwinding the stack, at least on a most linux configurations. However, this allows one to fetch a char * to some NTBS (null terminated byte string) which shows some information, but not all of…
Herbert
  • 5,279
  • 5
  • 44
  • 69
3
votes
1 answer

How to debug problems in Linux kernel module `init()`?

I am using remote (k)gdb to debug a problem in a module that causes a panic when loaded e.g. when init() is called. The stack trace just shows that do_one_initcall(mod->init) causes the crash. In order to get the symbol file loaded in the gdb, I…
Kimvais
  • 38,306
  • 16
  • 108
  • 142