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
13
votes
1 answer

Using nuget & Symbols servers

I must be doing it wrong. I am using VS2012, c#. I am using nuget to manage my packages. Previously I always created an 'External References' directory and managed packages myself. I decided to now follow the new way of package management. Anyway,…
ozczecho
  • 8,649
  • 8
  • 36
  • 42
13
votes
3 answers

How to obtain pre-built *debug* version of Python library (e.g. Python27_d.dll) for Windows

Firstly, I should state that my current development environment is MSYS + mingw-w64 + ActivePython under Windows 7 and that on a normal day I am primarily a Linux developer. I am having no joy obtaining, or compiling, a version of the Python library…
codeasone
  • 1,953
  • 2
  • 23
  • 30
12
votes
2 answers

Is it possible to create a mono mdb from a .net pdb?

Is it possible to create a mono mdb from a .net pdb? Or do I need to build the binary with two compilers?
Simon
  • 33,714
  • 21
  • 133
  • 202
12
votes
1 answer

What to do with "DWARF error: section .debug_info is larger than its filesize!"?

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 using objdump? and based on answers there (and also…
Adam Badura
  • 5,069
  • 1
  • 35
  • 70
12
votes
2 answers

How to dump PHP backtrace on live running script in lldb?

I'm playing around with LLDB (debugger) and I did the following experiment. Run PHP script as: php -r "sleep(1000);" or: php -r "function r(){sleep(1000);}r();" On another console, I've called directly zif_debug_backtrace() from lldb: echo 'call…
kenorb
  • 155,785
  • 88
  • 678
  • 743
12
votes
4 answers

How do I initialize LLVM's external symbolizer?

When compiling with -fsanitize=memory I get WARNING: Trying to symbolize code, but external symbolizer is not initialized! when running the program. How do I initialize the external symbolizer?
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196
11
votes
3 answers

Unity android build symbols.zip file too big

I have started publishing my app to the Android play store and need to upload a symbols.zip file to de-obfuscate my crash reports. When I build my app in Unity 2020.1.0f1 ( had the same problem in the previous version) the app bundle(aab) is about…
11
votes
1 answer

Is there a downside to running `strip -S -x` on all frameworks in my macOS binary? If not, how can I automate that process?

I noticed that running strip -S -x (remove all debug and all local symbols) on the binaries in my app's 'Frameworks' folder makes them ~25% smaller, even when I have enabled stripping of debug symbols in my build settings. Also note that this makes…
MrMage
  • 7,282
  • 2
  • 41
  • 71
11
votes
1 answer

Swift: how to fully strip internal/inline symbols?

I need to write some license checking code in Swift. I know Swift is not optimal for that kind of code in the first place, as it is harder to obfuscate. But if the code that needs to know whether the app is registered is written in Swift, this is…
MrMage
  • 7,282
  • 2
  • 41
  • 71
11
votes
1 answer

How to know the name and/or path of the debug symbol file which is linked to a binary executable?

How to know the name and/or path of the debug symbol file which is linked to a binary executable? Suppose you did like this: objcopy --only-keep-debug foo foo.dbg objcopy --strip-debug foo objcopy --add-gnu-debuglink=foo.dbg foo Now foo.dbg has…
Sumit
  • 1,485
  • 11
  • 24
11
votes
3 answers

Reducing the footprint of debug symbols (executable is bloated to 4 GB)

So the basic problem is that my built executable is 4GB in size with debug symbols turned on (between 75 MB and 300 MB with no debug symbols and varying optimisation levels). How can I diagnose/analyse where all these symbols are coming from, and…
Ben Farmer
  • 2,387
  • 1
  • 25
  • 44
11
votes
1 answer

How to check if LLDB loaded debug symbols from shared libraries?

On Linux I use (gdb) i shared in gdb and gdb prints a list of libraries either with a star * if no debug symbols are loaded or without it if loaded, e.g: 0x0000000100c18660 0x0000000100c489a0 Yes (*) …
rightaway717
  • 2,631
  • 3
  • 29
  • 43
11
votes
2 answers

gdb add-symbol-file all sections and load address

I'm debugging a boot loader (syslinux) with gdb and the gdb-stub of qemu. At some point the main file load a shared object ldlinux.elf. I would like to add the symbols in gdb for that file. The command add-symbol-file seems like the way to go.…
Celelibi
  • 1,431
  • 1
  • 12
  • 30
11
votes
1 answer

How to get a Windows symbol server set up

I have a spare server on the network that I'd like to have host all of our build symbols. I already know how to set up a symbol cache on my local development system and pointing my debugger (e.g. Windbg) to that path in 'Symbol File Path'. I…
ykay
  • 1,877
  • 19
  • 24
11
votes
1 answer

Loading Specific Symbols from a Symbol Server in Visual Studio that match a regex

We have a symbol server that hosts our PDBs for our internal libraries. All DLLs that are published begin with prefix "ABC" I would like to configure Visual Studio to Load only specified modules that match ABC.* In Tools -> Options -> Debugging ->…